Projet

Général

Profil

« Précédent | Suivant » 

Révision f1bede03

Ajouté par Ermal il y a presque 10 ans

Allow a key to specified for all users as for exmpale when connecting from Apple iOS

Voir les différences:

usr/local/www/vpn_ipsec_keys.php
49 49
$userkeys = array();
50 50
foreach ($config['system']['user'] as $id => $user) {
51 51
	if (!empty($user['ipsecpsk'])) {
52
		$k = array();
53
		$k["ident"] = $user['name'];
54
		$k["pre-shared-key"] = $user['ipsecpsk'];
55
		$k["id"] = $id;
56
		$userkeys[] = $k;
52
		$userkeys[] = array('ident' => $user['name'], 'pre-shared-key' => $user['ipsecpsk'], 'id' => $id);;
57 53
	}
58 54
}
59 55

  
......
115 111
			  <?php $i = 0; foreach ($userkeys as $secretent): ?>
116 112
		<tr>
117 113
		<td class="listlr gray">
118
			<?=htmlspecialchars($secretent['ident']);?>
114
			<?php
115
				if ($secretent['ident'] == 'allusers')
116
					echo gettext("ANY USER");
117
				else
118
					echo htmlspecialchars($secretent['ident']);
119
			?>
119 120
		</td>
120 121
		<td class="listr gray">
121 122
			<?=htmlspecialchars($secretent['pre-shared-key']);?>
......
152 153
	</div>
153 154
      </td>
154 155
    </tr>
156
	<tr>
157
		<td colspan="4">
158
			<p>
159
			<span class="vexpl">
160
			<span class="red">
161
				<strong><?=gettext("Note"); ?>:<br /></strong>
162
			</span>
163
			<?=gettext("PSK for any user can be set by using an identifier of any/ANY");?>
164
			</span>
165
			</p>
166
		</td>
167
	</tr>
155 168
</table>
156 169
</form>
157 170
<?php include("fend.inc"); ?>

Formats disponibles : Unified diff