Project

General

Profile

« Previous | Next » 

Revision 96267107

Added by Ermal LUÇI about 14 years ago

Correct whitespace and some problems in the just merged ldap auth sorce for racoon

View differences:

usr/local/www/vpn_ipsec_mobile.php
356 356
							<?=gettext("Source"); ?>:&nbsp;&nbsp;
357 357
							<select name="user_source" class="formselect" id="user_source">
358 358
								<option value="system" <?php if ($pconfig['user_source'] == 'system') echo "selected"; ?>><?=gettext("system"); ?></option>
359
								<?
360
									if (isset($config['system']['authserver']))
361
                                    {
359
								<?php
360
									if (is_array($config['system']['authserver'])) {
362 361
										foreach ($config['system']['authserver'] as $authcfg) {
363 362
											if ($authcfg['type'] == 'ldap') {
364 363
												$selected = "";
365
												if ($pconfig['user_source'] == $authcfg['name'])  $selected = "selected";
366
												print '<option value="'.$authcfg['name'].'" '. $selected.'>'.$authcfg['name'].'</option>';
364
												if ($pconfig['user_source'] == $authcfg['name'])
365
													$selected = "selected";
366
												echo "<option value='{$authcfg['name']}' {$selected} >{$authcfg['name']}</option>\n";
367 367
											}
368 368
										}
369 369
									}
370
                                ?>								
370
								?>
371 371
							</select>
372 372
						</td>
373 373
					</tr>

Also available in: Unified diff