Rev 982 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 982 | Rev 1020 | ||
---|---|---|---|
Line 104... | Line 104... | ||
104 | var strCaptchaPlugin = e.options[e.selectedIndex].value; |
104 | var strCaptchaPlugin = e.options[e.selectedIndex].value; |
105 | 105 | ||
106 | $("#config")[0].innerHTML = '<b><?php</b><br><br>' + |
106 | $("#config")[0].innerHTML = '<b><?php</b><br><br>' + |
107 | '<i>// To renew this file, please run setup/ in your browser.</i><br>' + // do not translate |
107 | '<i>// To renew this file, please run setup/ in your browser.</i><br>' + // do not translate |
108 | '<i>// If you don\'t want to run setup again, you can also change most of the settings directly in this file.</i><br>' + // do not translate |
108 | '<i>// If you don\'t want to run setup again, you can also change most of the settings directly in this file.</i><br>' + // do not translate |
- | 109 | '<i>// List of possible values: doc/config_values.txt</i><br>' + // do not translate |
|
109 | '<br>' + |
110 | '<br>' + |
110 | 'OIDplus::baseConfig()->setValue(\'CONFIG_VERSION\', 2.1);<br>' + |
111 | 'OIDplus::baseConfig()->setValue(\'CONFIG_VERSION\', 2.1);<br>' + |
111 | '<br>' + |
112 | '<br>' + |
112 | // Passwords are Base64 encoded to avoid that passwords can be read upon first sight, |
113 | // Passwords are Base64 encoded to avoid that passwords can be read upon first sight, |
113 | // e.g. if collegues are looking over your shoulder while you accidently open (and quickly close) userdata/baseconfig/config.inc.php |
114 | // e.g. if collegues are looking over your shoulder while you accidently open (and quickly close) userdata/baseconfig/config.inc.php |
Line 138... | Line 139... | ||
138 | 139 | ||
139 | $("#config")[0].innerHTML = $("#config")[0].innerHTML + |
140 | $("#config")[0].innerHTML = $("#config")[0].innerHTML + |
140 | '<br>' + |
141 | '<br>' + |
141 | 'OIDplus::baseConfig()->setValue(\'ENFORCE_SSL\', '+$("#enforce_ssl")[0].value+');<br>'; |
142 | 'OIDplus::baseConfig()->setValue(\'ENFORCE_SSL\', '+$("#enforce_ssl")[0].value+');<br>'; |
142 | 143 | ||
- | 144 | if ($("#canonical_url")[0].value.trim() != '') { |
|
- | 145 | $("#config")[0].innerHTML = $("#config")[0].innerHTML + |
|
- | 146 | '<br>' + |
|
- | 147 | 'OIDplus::baseConfig()->setValue(\'CANONICAL_SYSTEM_URL\', \''+$("#canonical_url")[0].value.trim()+'\');<br>'; |
|
- | 148 | } |
|
- | 149 | ||
143 | $("#config")[0].innerHTML = $("#config")[0].innerHTML.replaceAll(' ', ' '); |
150 | $("#config")[0].innerHTML = $("#config")[0].innerHTML.replaceAll(' ', ' '); |
144 | } |
151 | } |
145 | 152 | ||
146 | // In case something is not good, do not allow the user to continue with the other configuration steps: |
153 | // In case something is not good, do not allow the user to continue with the other configuration steps: |
147 | if (error) { |
154 | if (error) { |