Subversion Repositories ALCASAR

Rev

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

Rev 2609 Rev 2610
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: network.php 2609 2018-08-22 07:55:28Z rexy $
2
# $Id: network.php 2610 2018-08-22 16:31:17Z tom.houdayer $
3
 
3
 
4
// written by steweb57, Rexy & Tom HOUDAYER
4
// written by steweb57, Rexy & Tom HOUDAYER
5
 
5
 
6
/********************
6
/********************
7
*  READ CONF FILES  *
7
*  READ CONF FILES  *
Line 272... Line 272...
272
					move_uploaded_file($_FILES['key']['tmp_name'], $keypath);
272
					move_uploaded_file($_FILES['key']['tmp_name'], $keypath);
273
					move_uploaded_file($_FILES['crt']['tmp_name'], $crtpath);
273
					move_uploaded_file($_FILES['crt']['tmp_name'], $crtpath);
274
					exec("sudo alcasar-importcert.sh -i $crtpath -k $keypath -c $scpath");
274
					exec("sudo alcasar-importcert.sh -i $crtpath -k $keypath -c $scpath");
275
					if (file_exists($crtpath)) unlink($crtpath); 
275
					if (file_exists($crtpath)) unlink($crtpath); 
276
					if (file_exists($keypath)) unlink($keypath); 
276
					if (file_exists($keypath)) unlink($keypath); 
277
					if (file_exists($scpath))  unlink($scpath); 
277
					if (file_exists($scpath))  unlink($scpath);
278
				}
278
				}
279
			}
279
			}
280
		}
280
		}
281
		break;
281
		break;
282
 
282
 
Line 754... Line 754...
754
</tr>
754
</tr>
755
</table>
755
</table>
756
<br>
756
<br>
757
 
757
 
758
<table width="100%" cellspacing="0" cellpadding="0" border="0">
758
<table width="100%" cellspacing="0" cellpadding="0" border="0">
759
	<tr><th><?= $l_ssl_title?></th></tr>
759
	<tr><th><?= $l_ssl_title ?></th></tr>
760
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
760
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
761
</table>
761
</table>
762
<table width="100%" cellspacing="0" cellpadding="5" border="1">
762
<table width="100%" cellspacing="0" cellpadding="5" border="1">
763
	<tr><td valign="middle" align="left">
763
	<tr><td valign="middle" align="left">
764
		<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>">
764
		<form method="post" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>">
765
		<input type="hidden" name="choix" value="https_login">
765
		<input type="hidden" name="choix" value="https_login">
766
		<span><?= $l_allow_unsecured_login ?></span><br>
-
 
767
		<select name="https_login">
766
		<select name="https_login">
768
			<option value="on"<?=  (($conf['HTTPS_LOGIN'] === 'on')  ? ' selected' : '') ?>><?= $l_yes ?></option>
767
			<option value="on"<?=  (($conf['HTTPS_LOGIN'] === 'on')  ? ' selected' : '') ?>><?= $l_yes ?></option>
769
			<option value="off"<?= (($conf['HTTPS_LOGIN'] === 'off') ? ' selected' : '') ?>><?= $l_no ?></option>
768
			<option value="off"<?= (($conf['HTTPS_LOGIN'] === 'off') ? ' selected' : '') ?>><?= $l_no ?></option>
770
		</select>
769
		</select>
771
		<input type="submit" value="<?= $l_apply ?>"><br>
770
		<input type="submit" value="<?= $l_apply ?>"><br>