Subversion Repositories ALCASAR

Rev

Rev 2819 | Rev 2823 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2819 Rev 2822
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: password.php 2819 2020-05-17 21:59:10Z rexy $
2
# $Id: password.php 2822 2020-05-23 16:03:33Z rexy $
3
#
3
#
4
# change user password on ALCASAR
4
# change user password on ALCASAR
5
# by ANGEL95 & REXY
5
# by ANGEL95 & REXY
6
 
6
 
7
/****************************************************************
7
/****************************************************************
Line 36... Line 36...
36
		$conf[trim($tmp[0])] = trim($tmp[1]);
36
		$conf[trim($tmp[0])] = trim($tmp[1]);
37
	}
37
	}
38
}
38
}
39
fclose($file_conf);
39
fclose($file_conf);
40
 
40
 
-
 
41
if ($conf['HTTPS_LOGIN'] === 'on') {
41
// Redirect to HTTPS
42
// Redirect to HTTPS
42
if ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off')) {
43
if ((!isset($_SERVER['HTTPS'])) || (empty($_SERVER['HTTPS'])) || ($_SERVER['HTTPS'] === 'off')) {
43
	header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
44
	header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
44
	exit();
45
	exit(); }
45
}
46
}
46
 
47
 
47
require('/etc/freeradius-web/config.php');
48
require('/etc/freeradius-web/config.php');
48
 
49
 
49
$current_page = htmlspecialchars($_SERVER['PHP_SELF']);
50
$current_page = htmlspecialchars($_SERVER['PHP_SELF']);
Line 203... Line 204...
203
	<link rel="stylesheet" type="text/css" href="/css/pass.css">
204
	<link rel="stylesheet" type="text/css" href="/css/pass.css">
204
	<script src="/js/pwdmeter.js"></script>
205
	<script src="/js/pwdmeter.js"></script>
205
</head>
206
</head>
206
<body>
207
<body>
207
	<div class="col-xs-12 col-md-10 col-md-offset-1"> 
208
	<div class="col-xs-12 col-md-10 col-md-offset-1"> 
208
 
-
 
209
		<!-- HeaderBox -->
209
		<!-- HeaderBox -->
210
		<div class="row banner">
210
		<div class="row banner">
211
			<!-- Logo box -->
211
			<!-- Logo box -->
212
			<!-- <div class="img_banner hidden-xs col-sm-3 col-md-2 col-lg-2"> -->
-
 
213
			<div class="hidden-xs col-sm-3 col-md-2 col-lg-2"> 
212
			<div class="hidden-xs col-sm-3 col-md-2 col-lg-2"> 
214
				<img class="img-responsive img-organisme" src="images/organisme.png">
213
				<img class="img-responsive img-organisme" src="images/organisme.png">
215
			</div>
214
			</div>
216
 
-
 
217
			<!-- Title -->
215
			<!-- Title -->
218
			<div id="cadre_titre" class="titre_banner col-xs-12 col-sm-8">
216
			<div id="cadre_titre" class="titre_banner col-xs-12 col-sm-8">
219
				<div class="row">
217
				<div class="row">
220
					<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
218
					<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
221
				</div>
219
				</div>