Revision 1605d940
Added by Steve Beaver almost 8 years ago
src/etc/inc/authgui.inc | ||
---|---|---|
137 | 137 |
return; |
138 | 138 |
} |
139 | 139 |
|
140 |
$cssfile = "/css/pfSense.css"; |
|
141 |
|
|
142 |
if (isset($user_settings['webgui']['webguicss'])) { |
|
143 |
if (file_exists("/usr/local/www/css/" . $user_settings['webgui']['webguicss'])) { |
|
144 |
$cssfile = "/css/" . $user_settings['webgui']['webguicss']; |
|
145 |
} |
|
146 |
} |
|
140 |
$logincssfile = "#770101"; |
|
147 | 141 |
|
148 | 142 |
?> |
149 | 143 |
<!DOCTYPE html> |
150 | 144 |
<html lang="en"> |
151 |
<head> |
|
152 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
153 |
<link rel="stylesheet" href="<?=$cssfile?>" /> |
|
154 |
<title><?=gettext("Error: not allowed"); ?></title> |
|
155 |
</head> |
|
156 |
<body id="error" class="no-menu"> |
|
157 |
<div id="jumbotron"> |
|
158 |
<div class="container"> |
|
159 |
<div class="col-sm-offset-3 col-sm-6 col-xs-12"> |
|
160 |
<!-- FIXME: We really need to POST the logout action --> |
|
161 |
<div class="alert alert-danger" role="alert"><a href="index.php?logout"><?=$desc;?></a></div> |
|
145 |
<head> |
|
146 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
147 |
<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css" type="text/css"> |
|
148 |
<link rel="stylesheet" href="/css/login.css" type="text/css"> |
|
149 |
<title><?=gettext("Error"); ?></title> |
|
150 |
</head> |
|
151 |
|
|
152 |
<body id="error" > |
|
153 |
<div id="total"> |
|
154 |
<header> |
|
155 |
<div id="headerrow"> |
|
156 |
<div class="row"> |
|
157 |
<div class="col-sm-4"> |
|
158 |
<div id="logodiv" style="text-align:center" class="nowarning"> |
|
159 |
<svg role="img" aria-labelledby="pfsense-logo" x="0px" y="0px" viewBox="0 0 282.8 84.2" width="240" height="100%"> |
|
160 |
<title id="pfsense-logo-svg">pfSense Logo</title> |
|
161 |
<style type="text/css"> |
|
162 |
.logo-st0{fill:#2B40B5;} |
|
163 |
.logo-st1{fill:#1475CF;} |
|
164 |
.logo-st2{fill:#1C1275;} |
|
165 |
</style> |
|
166 |
<path class="logo-st0" d="M27.8,57.7c2.9,0,5.4-0.9,7.5-2.6c2.1-1.7,3.6-4,4.4-6.8c0.8-2.8,0.6-5.1-0.5-6.8c-1.1-1.7-3.2-2.6-6.1-2.6 c-2.9,0-5.4,0.9-7.5,2.6c-2.1,1.7-3.5,4-4.3,6.8c-0.8,2.8-0.7,5.1,0.5,6.8C22.8,56.9,24.8,57.7,27.8,57.7"/> |
|
167 |
<path class="logo-st0" d="M115.1,46.6c-1.5-0.8-3-1.4-4.7-1.8c-1.7-0.4-3.2-0.7-4.7-1.1c-1.5-0.3-2.7-0.7-3.6-1.1c-0.9-0.4-1.4-1.1-1.4-2 c0-1.1,0.5-1.9,1.4-2.4c0.9-0.5,1.9-0.7,2.8-0.7c2.8,0,5,1,6.7,3.1l7-7c-1.7-1.8-3.9-3.1-6.4-3.8c-2.5-0.7-5-1.1-7.4-1.1 c-1.9,0-3.9,0.2-5.7,0.7c-1.9,0.5-3.6,1.2-5,2.3c-1.5,1-2.6,2.3-3.5,3.9c-0.9,1.6-1.3,3.5-1.3,5.7c0,2.3,0.5,4.2,1.4,5.6 c0.9,1.4,2.1,2.5,3.6,3.3c1.5,0.8,3,1.3,4.7,1.7c1.7,0.4,3.2,0.7,4.7,1.1c1.5,0.3,2.7,0.7,3.6,1.2c0.9,0.5,1.4,1.2,1.4,2.2 c0,1-0.5,1.7-1.6,2.1c-1.1,0.4-2.3,0.6-3.6,0.6c-1.7,0-3.3-0.3-4.6-1c-1.3-0.7-2.5-1.7-3.6-3l-7,7.7c1.8,1.9,4.1,3.2,6.7,3.9 c2.7,0.7,5.3,1.1,7.9,1.1c2,0,4-0.2,6.1-0.6c2-0.4,3.9-1,5.5-2c1.6-0.9,3-2.2,4-3.8c1-1.6,1.6-3.5,1.6-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1-1.3,1.3 c-0.6,0.3-1.2,0.5-1.8,0.5c-0.6,0-1.2-0.2-1.8-0.5c-0.6-0.3-1-0.8-1.3-1.3c-0.3-0.6-0.5-1.2-0.5-1.8c0-0.6,0.2-1.2,0.5-1.8 c0.3-0.6,0.8-1,1.3-1.3C277.4,65.2,278,65.1,278.6,65.1z"/> |
|
175 |
</svg> |
|
176 |
</div> |
|
177 |
</div> |
|
178 |
<div class="col-sm-8 nowarning msgbox text-center"> |
|
179 |
<span id="hostspan"> |
|
180 |
</span> |
|
181 |
</div> |
|
182 |
</div> |
|
183 |
</div> |
|
184 |
</header> |
|
185 |
|
|
186 |
<div style="background: <?=$logincssfile?>;" class="pagebody"> |
|
187 |
<div class="col-sm-2"></div> |
|
188 |
|
|
189 |
<div class="col-sm-8 offset-md-4 logoCol"> |
|
190 |
<div class="loginCont center-block error-panel"> |
|
191 |
<a href="index.php?logout"><?=$desc;?></a> |
|
192 |
</div> |
|
193 |
</div> |
|
194 |
|
|
195 |
<div class="col-sm-2"></div> |
|
162 | 196 |
</div> |
197 |
|
|
198 |
<footer id="3"> |
|
199 |
<div id="footertext"> |
|
200 |
<p class="text-muted"> |
|
201 |
<a target="_blank" href="https://www.pfsense.org/?gui=bootstrap">pfSense</a> is © |
|
202 |
2004 - 2017 by <a href="https://pfsense.org/license" class="tblnk">Rubicon Communications, LLC (Netgate)</a>. All Rights Reserved. |
|
203 |
[<a href="/license.php" class="tblnk">view license</a>] |
|
204 |
</p> |
|
205 |
</div> |
|
206 |
</footer> |
|
163 | 207 |
</div> |
164 |
</div> |
|
165 |
</body> |
|
208 |
</body> |
|
166 | 209 |
</html> |
210 |
|
|
211 |
|
|
167 | 212 |
<?php |
168 | 213 |
|
169 | 214 |
} // end function |
... | ... | |
252 | 297 |
} |
253 | 298 |
} |
254 | 299 |
|
300 |
$logincssfile = "#1e3f75"; |
|
301 |
|
|
302 |
if (isset($user_settings['webgui']['logincss']) && strlen($user_settings['webgui']['logincss']) == 6) { |
|
303 |
$logincssfile = "#" . $user_settings['webgui']['logincss']; |
|
304 |
} |
|
305 |
|
|
255 | 306 |
if (isset($config['system']['webgui']['loginshowhost'])) { |
256 |
$hoststr = sprintf(gettext(" on %s.%s"), htmlspecialchars($config['system']['hostname']), htmlspecialchars($config['system']['domain']));
|
|
307 |
$loginbannerstr = sprintf(gettext('%1$s.%2$s'), htmlspecialchars($config['system']['hostname']), htmlspecialchars($config['system']['domain']));
|
|
257 | 308 |
} else { |
258 |
$hoststr = "";
|
|
309 |
$loginbannerstr = sprintf(gettext('Login to %1$s'), $g['product_name']);
|
|
259 | 310 |
} |
260 | 311 |
|
312 |
$loginautocomplete = isset($config['system']['webgui']['loginautocomplete']) ? '' : 'autocomplete="off"'; |
|
313 |
|
|
314 |
if (is_ipaddr($http_host) && !$local_ip && !isset($config['system']['webgui']['nohttpreferercheck'])) { |
|
315 |
$warnclass = "pagebodywarn"; // Make room for a warning display row |
|
316 |
} else { |
|
317 |
$warnclass = "pagebody"; |
|
318 |
} |
|
319 |
|
|
320 |
|
|
261 | 321 |
?> |
262 | 322 |
<!DOCTYPE html> |
263 | 323 |
<html lang="en"> |
264 |
<head> |
|
265 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
266 |
<link rel="stylesheet" href="<?=$cssfile?>" /> |
|
267 |
<title><?=gettext("Login"); ?></title> |
|
268 |
<script type="text/javascript"> |
|
269 |
//<![CDATA{ |
|
270 |
var events = events || []; |
|
271 |
//]]> |
|
272 |
</script> |
|
273 |
</head> |
|
274 |
<body id="login" class="no-menu"> |
|
275 |
<div id="jumbotron"> |
|
276 |
<div class="container"> |
|
277 |
<div class="col-sm-offset-3 col-sm-6 col-xs-12"> |
|
324 |
<head> |
|
325 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
326 |
<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css" type="text/css"> |
|
327 |
<link rel="stylesheet" href="/css/login.css" type="text/css"> |
|
328 |
<title><?=gettext("Login"); ?></title> |
|
329 |
<script type="text/javascript"> |
|
330 |
//<![CDATA{ |
|
331 |
var events = events || []; |
|
332 |
//]]> |
|
333 |
</script> |
|
334 |
</head> |
|
335 |
|
|
336 |
<body id="login" > |
|
337 |
<div id="total"> |
|
338 |
<header> |
|
339 |
<div id="headerrow"> |
|
340 |
<div class="row"> |
|
341 |
<div class="col-sm-4"> |
|
342 |
<div id="logodiv" style="text-align:center" class="nowarning"> |
|
343 |
<svg role="img" aria-labelledby="pfsense-logo" x="0px" y="0px" viewBox="0 0 282.8 84.2" width="240" height="100%"> |
|
344 |
<title id="pfsense-logo-svg">pfSense Logo</title> |
|
345 |
<style type="text/css"> |
|
346 |
.logo-st0{fill:#2B40B5;} |
|
347 |
.logo-st1{fill:#1475CF;} |
|
348 |
.logo-st2{fill:#1C1275;} |
|
349 |
</style> |
|
350 |
<path class="logo-st0" d="M27.8,57.7c2.9,0,5.4-0.9,7.5-2.6c2.1-1.7,3.6-4,4.4-6.8c0.8-2.8,0.6-5.1-0.5-6.8c-1.1-1.7-3.2-2.6-6.1-2.6 c-2.9,0-5.4,0.9-7.5,2.6c-2.1,1.7-3.5,4-4.3,6.8c-0.8,2.8-0.7,5.1,0.5,6.8C22.8,56.9,24.8,57.7,27.8,57.7"/> |
|
351 |
<path class="logo-st0" d="M115.1,46.6c-1.5-0.8-3-1.4-4.7-1.8c-1.7-0.4-3.2-0.7-4.7-1.1c-1.5-0.3-2.7-0.7-3.6-1.1c-0.9-0.4-1.4-1.1-1.4-2 c0-1.1,0.5-1.9,1.4-2.4c0.9-0.5,1.9-0.7,2.8-0.7c2.8,0,5,1,6.7,3.1l7-7c-1.7-1.8-3.9-3.1-6.4-3.8c-2.5-0.7-5-1.1-7.4-1.1 c-1.9,0-3.9,0.2-5.7,0.7c-1.9,0.5-3.6,1.2-5,2.3c-1.5,1-2.6,2.3-3.5,3.9c-0.9,1.6-1.3,3.5-1.3,5.7c0,2.3,0.5,4.2,1.4,5.6 c0.9,1.4,2.1,2.5,3.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4,1.5c0,0.5,0.1,1,0.4,1.5c0.3,0.5,0.6,0.8,1.1,1.1c0.5,0.3,1,0.4,1.5,0.4c0.5,0,1-0.1,1.5-0.4 c0.5-0.3,0.8-0.6,1.1-1.1c0.3-0.5,0.4-1,0.4-1.5c0-0.5-0.1-1-0.4-1.5c-0.3-0.5-0.6-0.8-1.1-1.1C279.6,65.8,279.1,65.7,278.6,65.7z M278.6,65.1c0.6,0,1.2,0.2,1.8,0.5c0.6,0.3,1,0.7,1.3,1.3c0.3,0.6,0.5,1.2,0.5,1.8c0,0.6-0.2,1.2-0.5,1.8c-0.3,0.6-0.8,1-1.3,1.3 c-0.6,0.3-1.2,0.5-1.8,0.5c-0.6,0-1.2-0.2-1.8-0.5c-0.6-0.3-1-0.8-1.3-1.3c-0.3-0.6-0.5-1.2-0.5-1.8c0-0.6,0.2-1.2,0.5-1.8 c0.3-0.6,0.8-1,1.3-1.3C277.4,65.2,278,65.1,278.6,65.1z"/> |
|
359 |
</svg> |
|
360 |
</div> |
|
361 |
</div> |
|
362 |
<div class="col-sm-8 nowarning msgbox text-center"> |
|
363 |
<span id="hostspan"> |
|
364 |
<a><h4><?=$loginbannerstr?></h4></a> |
|
365 |
</span> |
|
366 |
</div> |
|
367 |
</div> |
|
278 | 368 |
<?php |
279 |
if (is_ipaddr($http_host) && !$local_ip && !isset($config['system']['webgui']['nohttpreferercheck'])) { |
|
280 |
$nifty_background = "#999"; |
|
281 |
print_info_box(gettext("The IP address being used to access this router is not configured locally, which may be forwarded by NAT or other means. <br /><br />If this forwarding is unexpected, it should be verified that a man-in-the-middle attack is not taking place.")); |
|
282 |
} |
|
283 |
|
|
284 |
$loginautocomplete = isset($config['system']['webgui']['loginautocomplete']) ? '' : 'autocomplete="off"'; |
|
369 |
if ($warnclass == "pagebodywarn") { |
|
285 | 370 |
?> |
286 |
|
|
287 |
<div class="panel panel-default"> |
|
288 |
<div class="panel-heading"> |
|
289 |
<h2 class="panel-title"><?=sprintf(gettext("Login to %s %s"), $g['product_name'], $hoststr)?></h2> |
|
290 |
</div> |
|
291 |
|
|
292 |
<div class="panel-body"> |
|
293 |
<?php if (!empty($_SESSION['Login_Error'])): ?> |
|
294 |
<div class="alert alert-danger" role="alert"><?=$_SESSION['Login_Error'];?></div> |
|
295 |
<?php endif ?> |
|
296 |
<div class="alert alert-warning hidden" id="no_cookies"><?= gettext("The browser must support cookies to login."); ?></div> |
|
297 |
|
|
298 |
<form method="post" <?= $loginautocomplete ?> action="<?=$_SERVER['SCRIPT_NAME'];?>" class="form-horizontal"> |
|
299 |
<div class="form-group"> |
|
300 |
<label for="usernamefld" class="col-sm-3 control-label"><?=gettext("Username")?></label> |
|
301 |
<div class="col-sm-9 col-md-7"> |
|
302 |
<input type="text" class="form-control" name="usernamefld" id="usernamefld" placeholder="<?=gettext("Enter your username")?>" autocorrect="off" autocapitalize="none" spellcheck="false"> |
|
303 |
</div> |
|
304 |
</div> |
|
305 |
|
|
306 |
<div class="form-group"> |
|
307 |
<label for="passwordfld" class="col-sm-3 control-label"><?=gettext("Password")?></label> |
|
308 |
<div class="col-sm-9 col-md-7"> |
|
309 |
<input type="password" class="form-control" name="passwordfld" id="passwordfld" placeholder="<?=gettext("Enter your password")?>"> |
|
310 |
</div> |
|
311 |
</div> |
|
312 |
|
|
313 |
<div class="form-group"> |
|
314 |
<div class="col-sm-offset-3 col-sm-9 col-md-7"> |
|
315 |
<button type="submit" class="btn btn-primary" name="login"><?=gettext("Login")?></button> |
|
316 |
</div> |
|
371 |
<div class="row"> |
|
372 |
<div class="col-sm-12"> |
|
373 |
<div class="alert alert-warning <?=$warnclass?>"> |
|
374 |
<?=gettext("The IP address being used to access this router is not configured locally, which may be forwarded by NAT or other means. |
|
375 |
If this forwarding is unexpected, it should be verified that a man-in-the-middle attack is not taking place.")?> |
|
317 | 376 |
</div> |
318 |
</form>
|
|
377 |
</div>
|
|
319 | 378 |
</div> |
320 |
</div> |
|
321 |
</div> |
|
322 |
</div> |
|
379 |
<?php |
|
380 |
} |
|
381 |
?> |
|
382 |
</div> |
|
383 |
</header> |
|
384 |
|
|
385 |
<div style="background: <?=$logincssfile?>;" class="<?=$warnclass?>"> |
|
386 |
<div class="col-sm-4"></div> |
|
387 |
|
|
388 |
<div class="col-sm-4 offset-md-4 logoCol"> |
|
389 |
<div class="loginCont center-block"> |
|
390 |
<form method="post" <?=$loginautocomplete?> class="login"> |
|
391 |
<p class="form-title">Sign In</p> |
|
392 |
<input name="usernamefld" id="usernamefld" type="text" placeholder="Username" autocorrect="off" autocapitalize="none"/> |
|
393 |
<input name="passwordfld" id="passwordfld" type="password" placeholder="Password" /> |
|
394 |
<input type="submit" name="login" value="Sign In" class="btn btn-success btn-sm" /> |
|
395 |
</form> |
|
396 |
</div> |
|
397 |
</div> |
|
398 |
|
|
399 |
<div class="col-sm-4"></div> |
|
400 |
</div> |
|
401 |
|
|
402 |
<footer id="3"> |
|
403 |
<div id="footertext"> |
|
404 |
<p class="text-muted"> |
|
405 |
<a target="_blank" href="https://www.pfsense.org/?gui=bootstrap">pfSense</a> is © |
|
406 |
2004 - 2017 by <a href="https://pfsense.org/license" class="tblnk">Rubicon Communications, LLC (Netgate)</a>. All Rights Reserved. |
|
407 |
[<a href="/license.php" class="tblnk">view license</a>] |
|
408 |
</p> |
|
409 |
</div> |
|
410 |
</footer> |
|
411 |
</div> |
|
412 |
|
|
413 |
<script src="/vendor/jquery/jquery-1.12.0.min.js?v=<?=filemtime('/usr/local/www/vendor/jquery/jquery-1.12.0.min.js')?>"></script> |
|
414 |
<script src="/vendor/bootstrap/js/bootstrap.min.js?v=<?=filemtime('/usr/local/www/vendor/bootstrap/js/bootstrap.min.js')?>"></script> |
|
415 |
<script src="/js/pfSense.js?v=<?=filemtime('/usr/local/www/js/pfSense.js')?>"></script> |
|
323 | 416 |
|
324 | 417 |
<script type="text/javascript"> |
325 | 418 |
//!<[CDATA[ |
... | ... | |
328 | 421 |
"cookie_test=1" + |
329 | 422 |
"<?php echo $config['system']['webgui']['protocol'] == 'https' ? '; secure' : '';?>"; |
330 | 423 |
|
331 |
if (document.cookie.indexOf("cookie_test") == -1) |
|
332 |
document.getElementById("no_cookies").style.display=""; |
|
333 |
else |
|
334 |
document.getElementById("no_cookies").style.display="none"; |
|
424 |
if (document.cookie.indexOf("cookie_test") == -1) { |
|
425 |
alert("<?=gettext('The browser must support cookies to login.')?>"); |
|
426 |
} |
|
335 | 427 |
|
336 | 428 |
// Delete it |
337 | 429 |
document.cookie = "cookie_test=1; expires=Thu, 01-Jan-1970 00:00:01 GMT"; |
338 | 430 |
}); |
339 | 431 |
//]]> |
340 | 432 |
</script> |
341 |
<?php |
|
342 |
require_once('foot.inc'); |
|
343 | 433 |
|
434 |
</body> |
|
435 |
</html> |
|
436 |
|
|
437 |
<?php |
|
344 | 438 |
} // end function |
Also available in: Unified diff
New login design back-ported from 2.4