Révision 9bfbd73b
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/vpn_ipsec_mobile.php | ||
---|---|---|
247 | 247 |
<?php include("fbegin.inc"); ?> |
248 | 248 |
|
249 | 249 |
<script type="text/javascript"> |
250 |
<!--
|
|
250 |
//<![CDATA[
|
|
251 | 251 |
|
252 | 252 |
function pool_change() { |
253 | 253 |
|
... | ... | |
318 | 318 |
document.iform.login_banner.disabled = 1; |
319 | 319 |
} |
320 | 320 |
|
321 |
//-->
|
|
321 |
//]]>
|
|
322 | 322 |
</script> |
323 | 323 |
|
324 | 324 |
<form action="vpn_ipsec_mobile.php" method="post" name="iform" id="iform"> |
... | ... | |
337 | 337 |
print_input_errors($input_errors); |
338 | 338 |
?> |
339 | 339 |
|
340 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
340 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="vpn ipsec mobile">
|
|
341 | 341 |
<tr> |
342 | 342 |
<td class="tabnavtbl"> |
343 | 343 |
<?php |
... | ... | |
353 | 353 |
<tr> |
354 | 354 |
<td id="mainarea"> |
355 | 355 |
<div class="tabcont"> |
356 |
<table width="100%" border="0" cellpadding="6" cellspacing="0"> |
|
356 |
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
|
357 | 357 |
<tr> |
358 | 358 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("IKE Extensions"); ?></td> |
359 | 359 |
<td width="78%" class="vtable"> |
360 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
360 |
<table border="0" cellspacing="2" cellpadding="0" summary="ike extensions">
|
|
361 | 361 |
<tr> |
362 | 362 |
<td> |
363 | 363 |
<?php set_checked($pconfig['enable'],$chk); ?> |
364 |
<input name="enable" type="checkbox" id="enable" value="yes" <?=$chk;?>> |
|
364 |
<input name="enable" type="checkbox" id="enable" value="yes" <?=$chk;?> />
|
|
365 | 365 |
</td> |
366 | 366 |
<td> |
367 | 367 |
<strong><?=gettext("Enable IPsec Mobile Client Support"); ?></strong> |
... | ... | |
382 | 382 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("User Authentication"); ?></td> |
383 | 383 |
<td width="78%" class="vtable"> |
384 | 384 |
<?=gettext("Source"); ?>: |
385 |
<select name="user_source[]" class="formselect" id="user_source" multiple="true" size="3">
|
|
385 |
<select name="user_source[]" class="formselect" id="user_source" multiple="multiple" size="3">
|
|
386 | 386 |
<?php |
387 | 387 |
$authmodes = explode(",", $pconfig['user_source']); |
388 | 388 |
$auth_servers = auth_get_authserver_list(); |
389 | 389 |
foreach ($auth_servers as $auth_server) { |
390 | 390 |
$selected = ""; |
391 | 391 |
if (in_array($auth_server['name'], $authmodes)) |
392 |
$selected = "selected"; |
|
392 |
$selected = "selected=\"selected\"";
|
|
393 | 393 |
echo "<option value='{$auth_server['name']}' {$selected}>{$auth_server['name']}</option>\n"; |
394 | 394 |
} |
395 | 395 |
?> |
... | ... | |
402 | 402 |
<?=gettext("Source"); ?>: |
403 | 403 |
<select name="group_source" class="formselect" id="group_source"> |
404 | 404 |
<option value="none"><?=gettext("none"); ?></option> |
405 |
<option value="system" <?php if ($pconfig['group_source'] == "system") echo "selected"; ?> ><?=gettext("system"); ?></option> |
|
405 |
<option value="system" <?php if ($pconfig['group_source'] == "system") echo "selected=\"selected\""; ?> ><?=gettext("system"); ?></option>
|
|
406 | 406 |
</select> |
407 | 407 |
</td> |
408 | 408 |
</tr> |
... | ... | |
417 | 417 |
<tr> |
418 | 418 |
<td width="22%" valign="top" class="vncell"><?=gettext("Virtual Address Pool"); ?></td> |
419 | 419 |
<td width="78%" class="vtable"> |
420 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
420 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable pool">
|
|
421 | 421 |
<tr> |
422 | 422 |
<td> |
423 | 423 |
<?php set_checked($pconfig['pool_enable'],$chk); ?> |
424 |
<input name="pool_enable" type="checkbox" id="pool_enable" value="yes" <?=$chk;?> onClick="pool_change()">
|
|
424 |
<input name="pool_enable" type="checkbox" id="pool_enable" value="yes" <?=$chk;?> onclick="pool_change()" />
|
|
425 | 425 |
</td> |
426 | 426 |
<td> |
427 | 427 |
<?=gettext("Provide a virtual IP address to clients"); ?><br /> |
428 | 428 |
</td> |
429 | 429 |
</tr> |
430 | 430 |
</table> |
431 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
431 |
<table border="0" cellspacing="2" cellpadding="0" summary="virtual address pool">
|
|
432 | 432 |
<tr> |
433 | 433 |
<td> |
434 | 434 |
<?=gettext("Network"); ?>: |
435 |
<input name="pool_address" type="text" class="formfld unknown" id="pool_address" size="20" value="<?=htmlspecialchars($pconfig['pool_address']);?>"> |
|
435 |
<input name="pool_address" type="text" class="formfld unknown" id="pool_address" size="20" value="<?=htmlspecialchars($pconfig['pool_address']);?>" />
|
|
436 | 436 |
/ |
437 | 437 |
<select name="pool_netbits" class="formselect" id="pool_netbits"> |
438 | 438 |
<?php for ($i = 32; $i >= 0; $i--): ?> |
439 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['pool_netbits']) echo "selected"; ?>> |
|
439 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['pool_netbits']) echo "selected=\"selected\""; ?>>
|
|
440 | 440 |
<?=$i;?> |
441 | 441 |
</option> |
442 | 442 |
<?php endfor; ?> |
... | ... | |
449 | 449 |
<tr> |
450 | 450 |
<td width="22%" valign="top" class="vncell"><?=gettext("Network List"); ?></td> |
451 | 451 |
<td width="78%" class="vtable"> |
452 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
452 |
<table border="0" cellspacing="2" cellpadding="0" summary="network list">
|
|
453 | 453 |
<tr> |
454 | 454 |
<td> |
455 | 455 |
<?php set_checked($pconfig['net_list_enable'],$chk); ?> |
456 |
<input name="net_list_enable" type="checkbox" id="net_list_enable" value="yes" <?=$chk;?>> |
|
456 |
<input name="net_list_enable" type="checkbox" id="net_list_enable" value="yes" <?=$chk;?> />
|
|
457 | 457 |
</td> |
458 | 458 |
<td> |
459 | 459 |
<?=gettext("Provide a list of accessible networks to clients"); ?><br /> |
... | ... | |
465 | 465 |
<tr> |
466 | 466 |
<td width="22%" valign="top" class="vncell"><?=gettext("Save Xauth Password"); ?></td> |
467 | 467 |
<td width="78%" class="vtable"> |
468 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
468 |
<table border="0" cellspacing="2" cellpadding="0" summary="password">
|
|
469 | 469 |
<tr> |
470 | 470 |
<td> |
471 | 471 |
<?php set_checked($pconfig['save_passwd_enable'],$chk); ?> |
472 |
<input name="save_passwd_enable" type="checkbox" id="save_passwd_enable" value="yes" <?=$chk;?>> |
|
472 |
<input name="save_passwd_enable" type="checkbox" id="save_passwd_enable" value="yes" <?=$chk;?> />
|
|
473 | 473 |
</td> |
474 | 474 |
<td> |
475 | 475 |
<?=gettext("Allow clients to save Xauth passwords (Cisco VPN client only)."); ?><br /> |
... | ... | |
482 | 482 |
<tr> |
483 | 483 |
<td width="22%" valign="top" class="vncell"><?=gettext("DNS Default Domain"); ?></td> |
484 | 484 |
<td width="78%" class="vtable"> |
485 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
485 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable dns default domain">
|
|
486 | 486 |
<tr> |
487 | 487 |
<td> |
488 | 488 |
<?php set_checked($pconfig['dns_domain_enable'],$chk); ?> |
489 |
<input name="dns_domain_enable" type="checkbox" id="dns_domain_enable" value="yes" <?=$chk;?> onClick="dns_domain_change()">
|
|
489 |
<input name="dns_domain_enable" type="checkbox" id="dns_domain_enable" value="yes" <?=$chk;?> onclick="dns_domain_change()" />
|
|
490 | 490 |
</td> |
491 | 491 |
<td> |
492 | 492 |
<?=gettext("Provide a default domain name to clients"); ?><br /> |
493 | 493 |
</td> |
494 | 494 |
</tr> |
495 | 495 |
</table> |
496 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
496 |
<table border="0" cellspacing="2" cellpadding="0" summary="dns default domain">
|
|
497 | 497 |
<tr> |
498 | 498 |
<td> |
499 |
<input name="dns_domain" type="text" class="formfld unknown" id="dns_domain" size="30" value="<?=htmlspecialchars($pconfig['dns_domain']);?>"> |
|
499 |
<input name="dns_domain" type="text" class="formfld unknown" id="dns_domain" size="30" value="<?=htmlspecialchars($pconfig['dns_domain']);?>" />
|
|
500 | 500 |
</td> |
501 | 501 |
</tr> |
502 | 502 |
</table> |
... | ... | |
505 | 505 |
<tr> |
506 | 506 |
<td width="22%" valign="top" class="vncell"><?=gettext("Split DNS"); ?></td> |
507 | 507 |
<td width="78%" class="vtable"> |
508 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
508 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable split dns">
|
|
509 | 509 |
<tr> |
510 | 510 |
<td> |
511 | 511 |
<?php set_checked($pconfig['dns_split_enable'],$chk); ?> |
512 |
<input name="dns_split_enable" type="checkbox" id="dns_split_enable" value="yes" <?=$chk;?> onClick="dns_split_change()">
|
|
512 |
<input name="dns_split_enable" type="checkbox" id="dns_split_enable" value="yes" <?=$chk;?> onclick="dns_split_change()" />
|
|
513 | 513 |
</td> |
514 | 514 |
<td> |
515 | 515 |
<?=gettext("Provide a list of split DNS domain names to clients. Enter a comma separated list."); ?><br /> |
... | ... | |
517 | 517 |
</td> |
518 | 518 |
</tr> |
519 | 519 |
</table> |
520 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
520 |
<table border="0" cellspacing="2" cellpadding="0" summary="split dns">
|
|
521 | 521 |
<tr> |
522 | 522 |
<td> |
523 |
<input name="dns_split" type="text" class="formfld unknown" id="dns_split" size="30" value="<?=htmlspecialchars($pconfig['dns_split']);?>"> |
|
523 |
<input name="dns_split" type="text" class="formfld unknown" id="dns_split" size="30" value="<?=htmlspecialchars($pconfig['dns_split']);?>" />
|
|
524 | 524 |
</td> |
525 | 525 |
</tr> |
526 | 526 |
</table> |
... | ... | |
529 | 529 |
<tr> |
530 | 530 |
<td width="22%" valign="top" class="vncell"><?=gettext("DNS Servers"); ?></td> |
531 | 531 |
<td width="78%" class="vtable"> |
532 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
532 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable dns servers">
|
|
533 | 533 |
<tr> |
534 | 534 |
<td> |
535 | 535 |
<?php set_checked($pconfig['dns_server_enable'],$chk); ?> |
536 |
<input name="dns_server_enable" type="checkbox" id="dns_server_enable" value="yes" <?=$chk;?> onClick="dns_server_change()">
|
|
536 |
<input name="dns_server_enable" type="checkbox" id="dns_server_enable" value="yes" <?=$chk;?> onclick="dns_server_change()" />
|
|
537 | 537 |
</td> |
538 | 538 |
<td> |
539 | 539 |
<?=gettext("Provide a DNS server list to clients"); ?><br /> |
540 | 540 |
</td> |
541 | 541 |
</tr> |
542 | 542 |
</table> |
543 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
543 |
<table border="0" cellspacing="2" cellpadding="0" summary="dns servers">
|
|
544 | 544 |
<tr> |
545 | 545 |
<td> |
546 | 546 |
<?=gettext("Server"); ?> #1: |
547 |
<input name="dns_server1" type="text" class="formfld unknown" id="dns_server1" size="20" value="<?=htmlspecialchars($pconfig['dns_server1']);?>"> |
|
547 |
<input name="dns_server1" type="text" class="formfld unknown" id="dns_server1" size="20" value="<?=htmlspecialchars($pconfig['dns_server1']);?>" />
|
|
548 | 548 |
</td> |
549 | 549 |
</tr> |
550 | 550 |
<tr> |
551 | 551 |
<td> |
552 | 552 |
<?=gettext("Server"); ?> #2: |
553 |
<input name="dns_server2" type="text" class="formfld unknown" id="dns_server2" size="20" value="<?=htmlspecialchars($pconfig['dns_server2']);?>"> |
|
553 |
<input name="dns_server2" type="text" class="formfld unknown" id="dns_server2" size="20" value="<?=htmlspecialchars($pconfig['dns_server2']);?>" />
|
|
554 | 554 |
</td> |
555 | 555 |
</tr> |
556 | 556 |
<tr> |
557 | 557 |
<td> |
558 | 558 |
<?=gettext("Server"); ?> #3: |
559 |
<input name="dns_server3" type="text" class="formfld unknown" id="dns_server3" size="20" value="<?=htmlspecialchars($pconfig['dns_server3']);?>"> |
|
559 |
<input name="dns_server3" type="text" class="formfld unknown" id="dns_server3" size="20" value="<?=htmlspecialchars($pconfig['dns_server3']);?>" />
|
|
560 | 560 |
</td> |
561 | 561 |
</tr> |
562 | 562 |
<tr> |
563 | 563 |
<td> |
564 | 564 |
<?=gettext("Server"); ?> #4: |
565 |
<input name="dns_server4" type="text" class="formfld unknown" id="dns_server4" size="20" value="<?=htmlspecialchars($pconfig['dns_server4']);?>"> |
|
565 |
<input name="dns_server4" type="text" class="formfld unknown" id="dns_server4" size="20" value="<?=htmlspecialchars($pconfig['dns_server4']);?>" />
|
|
566 | 566 |
</td> |
567 | 567 |
</tr> |
568 | 568 |
</table> |
... | ... | |
571 | 571 |
<tr> |
572 | 572 |
<td width="22%" valign="top" class="vncell"><?=gettext("WINS Servers"); ?></td> |
573 | 573 |
<td width="78%" class="vtable"> |
574 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
574 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable wins servers">
|
|
575 | 575 |
<tr> |
576 | 576 |
<td> |
577 | 577 |
<?php set_checked($pconfig['wins_server_enable'],$chk); ?> |
578 |
<input name="wins_server_enable" type="checkbox" id="wins_server_enable" value="yes" <?=$chk;?> onClick="wins_server_change()">
|
|
578 |
<input name="wins_server_enable" type="checkbox" id="wins_server_enable" value="yes" <?=$chk;?> onclick="wins_server_change()" />
|
|
579 | 579 |
</td> |
580 | 580 |
<td> |
581 | 581 |
<?=gettext("Provide a WINS server list to clients"); ?><br /> |
582 | 582 |
</td> |
583 | 583 |
</tr> |
584 | 584 |
</table> |
585 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
585 |
<table border="0" cellspacing="2" cellpadding="0" summary="wins servers">
|
|
586 | 586 |
<tr> |
587 | 587 |
<td> |
588 | 588 |
<?=gettext("Server"); ?> #1: |
589 |
<input name="wins_server1" type="text" class="formfld unknown" id="wins_server1" size="20" value="<?=htmlspecialchars($pconfig['wins_server1']);?>"> |
|
589 |
<input name="wins_server1" type="text" class="formfld unknown" id="wins_server1" size="20" value="<?=htmlspecialchars($pconfig['wins_server1']);?>" />
|
|
590 | 590 |
</td> |
591 | 591 |
</tr> |
592 | 592 |
<tr> |
593 | 593 |
<td> |
594 | 594 |
<?=gettext("Server"); ?> #2: |
595 |
<input name="wins_server2" type="text" class="formfld unknown" id="wins_server2" size="20" value="<?=htmlspecialchars($pconfig['wins_server2']);?>"> |
|
595 |
<input name="wins_server2" type="text" class="formfld unknown" id="wins_server2" size="20" value="<?=htmlspecialchars($pconfig['wins_server2']);?>" />
|
|
596 | 596 |
</td> |
597 | 597 |
</tr> |
598 | 598 |
</table> |
... | ... | |
601 | 601 |
<tr> |
602 | 602 |
<td width="22%" valign="top" class="vncell"><?=gettext("Phase2 PFS Group"); ?></td> |
603 | 603 |
<td width="78%" class="vtable"> |
604 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
604 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable pfs group">
|
|
605 | 605 |
<tr> |
606 | 606 |
<td> |
607 | 607 |
<?php set_checked($pconfig['pfs_group_enable'],$chk); ?> |
608 |
<input name="pfs_group_enable" type="checkbox" id="pfs_group_enable" value="yes" <?=$chk;?> onClick="pfs_group_change()">
|
|
608 |
<input name="pfs_group_enable" type="checkbox" id="pfs_group_enable" value="yes" <?=$chk;?> onclick="pfs_group_change()" />
|
|
609 | 609 |
</td> |
610 | 610 |
<td> |
611 | 611 |
<?=gettext("Provide the Phase2 PFS group to clients ( overrides all mobile phase2 settings )"); ?><br /> |
612 | 612 |
</td> |
613 | 613 |
</tr> |
614 | 614 |
</table> |
615 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
615 |
<table border="0" cellspacing="2" cellpadding="0" summary="phase-2 pfs group">
|
|
616 | 616 |
<tr> |
617 | 617 |
<td> |
618 | 618 |
<?=gettext("Group"); ?>: |
619 | 619 |
<select name="pfs_group" class="formselect" id="pfs_group"> |
620 | 620 |
<?php foreach ($p2_pfskeygroups as $keygroup => $keygroupname): ?> |
621 |
<option value="<?=$keygroup;?>" <?php if ($pconfig['pfs_group'] == $keygroup) echo "selected"; ?>> |
|
621 |
<option value="<?=$keygroup;?>" <?php if ($pconfig['pfs_group'] == $keygroup) echo "selected=\"selected\""; ?>>
|
|
622 | 622 |
<?=htmlspecialchars($keygroupname);?> |
623 | 623 |
</option> |
624 | 624 |
<?php endforeach; ?> |
... | ... | |
631 | 631 |
<tr> |
632 | 632 |
<td width="22%" valign="top" class="vncell"><?=gettext("Login Banner"); ?></td> |
633 | 633 |
<td width="78%" class="vtable"> |
634 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
634 |
<table border="0" cellspacing="2" cellpadding="0" summary="enable login banner">
|
|
635 | 635 |
<tr> |
636 | 636 |
<td> |
637 | 637 |
<?php set_checked($pconfig['login_banner_enable'],$chk); ?> |
638 |
<input name="login_banner_enable" type="checkbox" id="login_banner_enable" value="yes" <?=$chk;?> onClick="login_banner_change()">
|
|
638 |
<input name="login_banner_enable" type="checkbox" id="login_banner_enable" value="yes" <?=$chk;?> onclick="login_banner_change()" />
|
|
639 | 639 |
</td> |
640 | 640 |
<td> |
641 | 641 |
<?=gettext("Provide a login banner to clients"); ?><br /> |
642 | 642 |
</td> |
643 | 643 |
</tr> |
644 | 644 |
</table> |
645 |
<table border="0" cellspacing="2" cellpadding="0"> |
|
645 |
<table border="0" cellspacing="2" cellpadding="0" summary="banner">
|
|
646 | 646 |
<tr> |
647 | 647 |
<td> |
648 | 648 |
<?php $banner = htmlspecialchars($pconfig['login_banner']); ?> |
... | ... | |
655 | 655 |
<tr> |
656 | 656 |
<td width="22%" valign="top"> </td> |
657 | 657 |
<td width="78%"> |
658 |
<input name="submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> |
|
658 |
<input name="submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
|
|
659 | 659 |
</td> |
660 | 660 |
</tr> |
661 | 661 |
</table> |
... | ... | |
665 | 665 |
</table> |
666 | 666 |
</form> |
667 | 667 |
<script type="text/javascript"> |
668 |
//<![CDATA[ |
|
668 | 669 |
pool_change(); |
669 | 670 |
dns_domain_change(); |
670 | 671 |
dns_split_change(); |
... | ... | |
672 | 673 |
wins_server_change(); |
673 | 674 |
pfs_group_change(); |
674 | 675 |
login_banner_change(); |
675 |
//-->
|
|
676 |
//]]>
|
|
676 | 677 |
</script> |
677 | 678 |
<?php include("fend.inc"); ?> |
678 | 679 |
</body> |
... | ... | |
684 | 685 |
|
685 | 686 |
function set_checked($var,& $chk) { |
686 | 687 |
if($var) |
687 |
$chk = 'checked';
|
|
688 |
$chk = "checked=\"checked\"";
|
|
688 | 689 |
else |
689 |
$chk = '';
|
|
690 |
$chk = "";
|
|
690 | 691 |
} |
691 | 692 |
|
692 | 693 |
?> |
693 |
|
Formats disponibles : Unified diff
Tidy up "vpn_ipsec_mobile.php" XHTML
Add CDATA sections to SCRIPTS
Add SUMMARY to TABLES
Close INPUT tags
Update HTML Boolean operators