Rev 156 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 156 | Rev 219 | ||
---|---|---|---|
Line 115... | Line 115... | ||
115 | 115 | ||
116 | $out['text'] .= '<noscript>'; |
116 | $out['text'] .= '<noscript>'; |
117 | $out['text'] .= '<p>You need to enable JavaScript to use the login area.</p>'; |
117 | $out['text'] .= '<p>You need to enable JavaScript to use the login area.</p>'; |
118 | $out['text'] .= '</noscript>'; |
118 | $out['text'] .= '</noscript>'; |
119 | 119 | ||
- | 120 | $out['text'] .= '<div id="loginArea" style="visibility: hidden"><div id="loginTab" class="container" style="width:100%;">'; |
|
120 | $out['text'] .= (RECAPTCHA_ENABLED ? '<script> grecaptcha.render(document.getElementById("g-recaptcha"), { "sitekey" : "'.RECAPTCHA_PUBLIC.'" }); </script>'. |
121 | $out['text'] .= (RECAPTCHA_ENABLED ? '<script> grecaptcha.render(document.getElementById("g-recaptcha"), { "sitekey" : "'.RECAPTCHA_PUBLIC.'" }); </script>'. |
121 | '<p>Before logging in, please solve the following CAPTCHA</p><div id="g-recaptcha" class="g-recaptcha" data-sitekey="'.RECAPTCHA_PUBLIC.'"></div>' : ''); |
122 | '<p>Before logging in, please solve the following CAPTCHA</p><div id="g-recaptcha" class="g-recaptcha" data-sitekey="'.RECAPTCHA_PUBLIC.'"></div>' : ''); |
122 | - | ||
123 | - | ||
124 | $out['text'] .= '<br>'; |
123 | $out['text'] .= '<br>'; |
125 | - | ||
126 | $out['text'] .= '<div id="loginArea" style="visibility: hidden"><div id="loginTab" class="container" style="width:100%;">'; |
- | |
127 | $out['text'] .= '<ul class="nav nav-pills">'; |
124 | $out['text'] .= '<ul class="nav nav-pills">'; |
128 | $out['text'] .= ' <li class="active">'; |
125 | $out['text'] .= ' <li class="active">'; |
129 | $out['text'] .= ' <a href="#1a" data-toggle="tab">Login as RA</a>'; |
126 | $out['text'] .= ' <a href="#1a" data-toggle="tab">Login as RA</a>'; |
130 | $out['text'] .= ' </li>'; |
127 | $out['text'] .= ' </li>'; |
131 | $out['text'] .= ' <li><a href="#2a" data-toggle="tab">Login as administrator</a>'; |
128 | $out['text'] .= ' <li><a href="#2a" data-toggle="tab">Login as administrator</a>'; |
Line 180... | Line 177... | ||
180 | $out['text'] .= ' </div>'; |
177 | $out['text'] .= ' </div>'; |
181 | $out['text'] .= ' </div>'; |
178 | $out['text'] .= ' </div>'; |
182 | $out['text'] .= ' </div><br>'; |
179 | $out['text'] .= ' </div><br>'; |
183 | $out['text'] .= '<p><font size="-1"><i>Privacy information</i>: By using the login functionality, you are accepting that a "session cookie" is temporarily stored in your browser. '. |
180 | $out['text'] .= '<p><font size="-1"><i>Privacy information</i>: By using the login functionality, you are accepting that a "session cookie" is temporarily stored in your browser. '. |
184 | 'The session cookie is a small text file that is sent to this website every time you visit it, to identify you as an already logged in user. '. |
181 | 'The session cookie is a small text file that is sent to this website every time you visit it, to identify you as an already logged in user. '. |
185 | 'It does not track any of your online activities outside OIDplus. The cookie will be destroyed when you log out or after an inactivity of '.ceil(SESSION_LIFETIME/60).' minutes.</font></p></div>'; |
182 | 'It does not track any of your online activities outside OIDplus. The cookie will be destroyed when you log out or after an inactivity of '.ceil(SESSION_LIFETIME/60).' minutes.'; |
- | 183 | $privacy_document_file = 'res/OIDplus/privacy_documentation.html'; |
|
- | 184 | if (class_exists('OIDplusPagePublicResources') && file_exists($privacy_document_file)) { |
|
- | 185 | $out['text'] .= ' <a '.oidplus_link('oidplus:resources$'.$privacy_document_file.'$'.OIDplus::authUtils()::makeAuthKey("resources;".$privacy_document_file).'#cookies').'>More information about the cookies used</a>'; |
|
- | 186 | } |
|
- | 187 | $out['text'] .= '</font></p></div>'; |
|
186 | 188 | ||
187 | $out['text'] .= '<script>document.getElementById("loginArea").style.visibility = "visible";</script>'; |
189 | $out['text'] .= '<script>document.getElementById("loginArea").style.visibility = "visible";</script>'; |
188 | } |
190 | } |
189 | } |
191 | } |
190 | 192 |