Révision e4761933
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/vpn_openvpn_csc.php | ||
---|---|---|
307 | 307 |
if ($savemsg) |
308 | 308 |
print_info_box($savemsg); |
309 | 309 |
?> |
310 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
310 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="vpn openvpn csc">
|
|
311 | 311 |
<tr> |
312 | 312 |
<td class="tabnavtbl"> |
313 |
<ul id="tabnav"> |
|
314 | 313 |
<?php |
315 | 314 |
$tab_array = array(); |
316 | 315 |
$tab_array[] = array(gettext("Server"), false, "vpn_openvpn_server.php"); |
... | ... | |
320 | 319 |
add_package_tabs("OpenVPN", $tab_array); |
321 | 320 |
display_top_tabs($tab_array); |
322 | 321 |
?> |
323 |
</ul> |
|
324 | 322 |
</td> |
325 | 323 |
</tr> |
326 | 324 |
<tr> |
... | ... | |
329 | 327 |
<?php if($act=="new" || $act=="edit"): ?> |
330 | 328 |
|
331 | 329 |
<form action="vpn_openvpn_csc.php" method="post" name="iform" id="iform" onsubmit="presubmit()"> |
332 |
<table width="100%" border="0" cellpadding="6" cellspacing="0"> |
|
330 |
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="general information">
|
|
333 | 331 |
<tr> |
334 | 332 |
<td colspan="2" valign="top" class="listtopic"><?=gettext("General information"); ?></td> |
335 | 333 |
</tr> |
336 | 334 |
<tr> |
337 | 335 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Disabled"); ?></td> |
338 | 336 |
<td width="78%" class="vtable"> |
339 |
<table border="0" cellpadding="0" cellspacing="0"> |
|
337 |
<table border="0" cellpadding="0" cellspacing="0" summary="enable disable">
|
|
340 | 338 |
<tr> |
341 | 339 |
<td> |
342 | 340 |
<?php set_checked($pconfig['disable'],$chk); ?> |
343 |
<input name="disable" type="checkbox" value="yes" <?=$chk;?>/> |
|
341 |
<input name="disable" type="checkbox" value="yes" <?=$chk;?> />
|
|
344 | 342 |
</td> |
345 | 343 |
<td> |
346 | 344 |
|
... | ... | |
356 | 354 |
<tr> |
357 | 355 |
<td width="22%" valign="top" class="vncellreq"><?=gettext("Common name"); ?></td> |
358 | 356 |
<td width="78%" class="vtable"> |
359 |
<input name="common_name" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['common_name']);?>"> |
|
357 |
<input name="common_name" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['common_name']);?>" />
|
|
360 | 358 |
<br /> |
361 | 359 |
<?=gettext("Enter the client's X.509 common name here"); ?>. |
362 | 360 |
</td> |
... | ... | |
364 | 362 |
<tr> |
365 | 363 |
<td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td> |
366 | 364 |
<td width="78%" class="vtable"> |
367 |
<input name="description" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['description']);?>"> |
|
365 |
<input name="description" type="text" class="formfld unknown" size="30" value="<?=htmlspecialchars($pconfig['description']);?>" />
|
|
368 | 366 |
<br /> |
369 | 367 |
<?=gettext("You may enter a description here for your reference (not parsed)"); ?>. |
370 | 368 |
</td> |
... | ... | |
372 | 370 |
<tr> |
373 | 371 |
<td width="22%" valign="top" class="vncell"><?=gettext("Connection blocking"); ?></td> |
374 | 372 |
<td width="78%" class="vtable"> |
375 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
373 |
<table border="0" cellpadding="2" cellspacing="0" summary="connection blocking">
|
|
376 | 374 |
<tr> |
377 | 375 |
<td> |
378 | 376 |
<?php set_checked($pconfig['block'],$chk); ?> |
379 |
<input name="block" type="checkbox" value="yes" <?=$chk;?>/> |
|
377 |
<input name="block" type="checkbox" value="yes" <?=$chk;?> />
|
|
380 | 378 |
</td> |
381 | 379 |
<td> |
382 | 380 |
<span class="vexpl"> |
... | ... | |
399 | 397 |
<tr> |
400 | 398 |
<td width="22%" valign="top" class="vncell"><?=gettext("Tunnel Network"); ?></td> |
401 | 399 |
<td width="78%" class="vtable"> |
402 |
<input name="tunnel_network" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_network']);?>"> |
|
400 |
<input name="tunnel_network" type="text" class="formfld unknown" size="20" value="<?=htmlspecialchars($pconfig['tunnel_network']);?>" />
|
|
403 | 401 |
<br /> |
404 | 402 |
<?=gettext("This is the virtual network used for private " . |
405 | 403 |
"communications between this client and the " . |
... | ... | |
413 | 411 |
<tr id="local_optsv4"> |
414 | 412 |
<td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Local Network/s"); ?></td> |
415 | 413 |
<td width="78%" class="vtable"> |
416 |
<input name="local_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_network']);?>"> |
|
414 |
<input name="local_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_network']);?>" />
|
|
417 | 415 |
<br /> |
418 | 416 |
<?=gettext("These are the IPv4 networks that will be accessible " . |
419 | 417 |
"from this particular client. Expressed as a comma-separated list of one or more CIDR ranges."); ?> |
... | ... | |
424 | 422 |
<tr id="local_optsv6"> |
425 | 423 |
<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Local Network/s"); ?></td> |
426 | 424 |
<td width="78%" class="vtable"> |
427 |
<input name="local_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_networkv6']);?>"> |
|
425 |
<input name="local_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['local_networkv6']);?>" />
|
|
428 | 426 |
<br /> |
429 | 427 |
<?=gettext("These are the IPv6 networks that will be accessible " . |
430 | 428 |
"from this particular client. Expressed as a comma-separated list of one or more IP/PREFIX networks."); ?> |
... | ... | |
435 | 433 |
<tr id="remote_optsv4"> |
436 | 434 |
<td width="22%" valign="top" class="vncell"><?=gettext("IPv4 Remote Network/s"); ?></td> |
437 | 435 |
<td width="78%" class="vtable"> |
438 |
<input name="remote_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_network']);?>"> |
|
436 |
<input name="remote_network" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_network']);?>" />
|
|
439 | 437 |
<br /> |
440 | 438 |
<?=gettext("These are the IPv4 networks that will be routed " . |
441 | 439 |
"to this client specifically using iroute, so that a site-to-site " . |
... | ... | |
450 | 448 |
<tr id="remote_optsv6"> |
451 | 449 |
<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 Remote Network/s"); ?></td> |
452 | 450 |
<td width="78%" class="vtable"> |
453 |
<input name="remote_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_networkv6']);?>"> |
|
451 |
<input name="remote_networkv6" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['remote_networkv6']);?>" />
|
|
454 | 452 |
<br /> |
455 | 453 |
<?=gettext("These are the IPv6 networks that will be routed " . |
456 | 454 |
"to this client specifically using iroute, so that a site-to-site " . |
... | ... | |
465 | 463 |
<tr> |
466 | 464 |
<td width="22%" valign="top" class="vncell"><?=gettext("Redirect Gateway"); ?></td> |
467 | 465 |
<td width="78%" class="vtable"> |
468 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
466 |
<table border="0" cellpadding="2" cellspacing="0" summary="redirect gateway">
|
|
469 | 467 |
<tr> |
470 | 468 |
<td> |
471 | 469 |
<?php set_checked($pconfig['gwredir'],$chk); ?> |
472 |
<input name="gwredir" type="checkbox" value="yes" <?=$chk;?>/> |
|
470 |
<input name="gwredir" type="checkbox" value="yes" <?=$chk;?> />
|
|
473 | 471 |
</td> |
474 | 472 |
<td> |
475 | 473 |
<span class="vexpl"> |
... | ... | |
489 | 487 |
<tr> |
490 | 488 |
<td width="22%" valign="top" class="vncell"><?=gettext("Server Definitions"); ?></td> |
491 | 489 |
<td width="78%" class="vtable"> |
492 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
490 |
<table border="0" cellpadding="2" cellspacing="0" summary="server definitions">
|
|
493 | 491 |
<tr> |
494 | 492 |
<td> |
495 | 493 |
<?php set_checked($pconfig['push_reset'],$chk); ?> |
496 |
<input name="push_reset" type="checkbox" value="yes" <?=$chk;?>/> |
|
494 |
<input name="push_reset" type="checkbox" value="yes" <?=$chk;?> />
|
|
497 | 495 |
</td> |
498 | 496 |
<td> |
499 | 497 |
<span class="vexpl"> |
... | ... | |
507 | 505 |
<tr> |
508 | 506 |
<td width="22%" valign="top" class="vncell"><?=gettext("DNS Default Domain"); ?></td> |
509 | 507 |
<td width="78%" class="vtable"> |
510 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
508 |
<table border="0" cellpadding="2" cellspacing="0" summary="dns default domain">
|
|
511 | 509 |
<tr> |
512 | 510 |
<td> |
513 | 511 |
<?php set_checked($pconfig['dns_domain_enable'],$chk); ?> |
514 |
<input name="dns_domain_enable" type="checkbox" id="dns_domain_enable" value="yes" <?=$chk;?> onClick="dns_domain_change()">
|
|
512 |
<input name="dns_domain_enable" type="checkbox" id="dns_domain_enable" value="yes" <?=$chk;?> onclick="dns_domain_change()" />
|
|
515 | 513 |
</td> |
516 | 514 |
<td> |
517 | 515 |
<span class="vexpl"> |
... | ... | |
520 | 518 |
</td> |
521 | 519 |
</tr> |
522 | 520 |
</table> |
523 |
<table border="0" cellpadding="2" cellspacing="0" id="dns_domain_data"> |
|
521 |
<table border="0" cellpadding="2" cellspacing="0" id="dns_domain_data" summary="dns domain data">
|
|
524 | 522 |
<tr> |
525 | 523 |
<td> |
526 |
<input name="dns_domain" type="text" class="formfld unknown" id="dns_domain" size="30" value="<?=htmlspecialchars($pconfig['dns_domain']);?>"> |
|
524 |
<input name="dns_domain" type="text" class="formfld unknown" id="dns_domain" size="30" value="<?=htmlspecialchars($pconfig['dns_domain']);?>" />
|
|
527 | 525 |
</td> |
528 | 526 |
</tr> |
529 | 527 |
</table> |
... | ... | |
532 | 530 |
<tr> |
533 | 531 |
<td width="22%" valign="top" class="vncell"><?=gettext("DNS Servers"); ?></td> |
534 | 532 |
<td width="78%" class="vtable"> |
535 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
533 |
<table border="0" cellpadding="2" cellspacing="0" summary="dns servers">
|
|
536 | 534 |
<tr> |
537 | 535 |
<td> |
538 | 536 |
<?php set_checked($pconfig['dns_server_enable'],$chk); ?> |
539 |
<input name="dns_server_enable" type="checkbox" id="dns_server_enable" value="yes" <?=$chk;?> onClick="dns_server_change()">
|
|
537 |
<input name="dns_server_enable" type="checkbox" id="dns_server_enable" value="yes" <?=$chk;?> onclick="dns_server_change()" />
|
|
540 | 538 |
</td> |
541 | 539 |
<td> |
542 | 540 |
<span class="vexpl"> |
... | ... | |
545 | 543 |
</td> |
546 | 544 |
</tr> |
547 | 545 |
</table> |
548 |
<table border="0" cellpadding="2" cellspacing="0" id="dns_server_data"> |
|
546 |
<table border="0" cellpadding="2" cellspacing="0" id="dns_server_data" summary="dns server list">
|
|
549 | 547 |
<tr> |
550 | 548 |
<td> |
551 | 549 |
<span class="vexpl"> |
552 | 550 |
<?=gettext("Server"); ?> #1: |
553 | 551 |
</span> |
554 |
<input name="dns_server1" type="text" class="formfld unknown" id="dns_server1" size="20" value="<?=htmlspecialchars($pconfig['dns_server1']);?>"> |
|
552 |
<input name="dns_server1" type="text" class="formfld unknown" id="dns_server1" size="20" value="<?=htmlspecialchars($pconfig['dns_server1']);?>" />
|
|
555 | 553 |
</td> |
556 | 554 |
</tr> |
557 | 555 |
<tr> |
... | ... | |
559 | 557 |
<span class="vexpl"> |
560 | 558 |
<?=gettext("Server"); ?> #2: |
561 | 559 |
</span> |
562 |
<input name="dns_server2" type="text" class="formfld unknown" id="dns_server2" size="20" value="<?=htmlspecialchars($pconfig['dns_server2']);?>"> |
|
560 |
<input name="dns_server2" type="text" class="formfld unknown" id="dns_server2" size="20" value="<?=htmlspecialchars($pconfig['dns_server2']);?>" />
|
|
563 | 561 |
</td> |
564 | 562 |
</tr> |
565 | 563 |
<tr> |
... | ... | |
567 | 565 |
<span class="vexpl"> |
568 | 566 |
<?=gettext("Server"); ?> #3: |
569 | 567 |
</span> |
570 |
<input name="dns_server3" type="text" class="formfld unknown" id="dns_server3" size="20" value="<?=htmlspecialchars($pconfig['dns_server3']);?>"> |
|
568 |
<input name="dns_server3" type="text" class="formfld unknown" id="dns_server3" size="20" value="<?=htmlspecialchars($pconfig['dns_server3']);?>" />
|
|
571 | 569 |
</td> |
572 | 570 |
</tr> |
573 | 571 |
<tr> |
... | ... | |
575 | 573 |
<span class="vexpl"> |
576 | 574 |
<?=gettext("Server"); ?> #4: |
577 | 575 |
</span> |
578 |
<input name="dns_server4" type="text" class="formfld unknown" id="dns_server4" size="20" value="<?=htmlspecialchars($pconfig['dns_server4']);?>"> |
|
576 |
<input name="dns_server4" type="text" class="formfld unknown" id="dns_server4" size="20" value="<?=htmlspecialchars($pconfig['dns_server4']);?>" />
|
|
579 | 577 |
</td> |
580 | 578 |
</tr> |
581 | 579 |
</table> |
... | ... | |
584 | 582 |
<tr> |
585 | 583 |
<td width="22%" valign="top" class="vncell"><?=gettext("NTP Servers"); ?></td> |
586 | 584 |
<td width="78%" class="vtable"> |
587 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
585 |
<table border="0" cellpadding="2" cellspacing="0" summary="ntp servers">
|
|
588 | 586 |
<tr> |
589 | 587 |
<td> |
590 | 588 |
<?php set_checked($pconfig['ntp_server_enable'],$chk); ?> |
591 |
<input name="ntp_server_enable" type="checkbox" id="ntp_server_enable" value="yes" <?=$chk;?> onClick="ntp_server_change()">
|
|
589 |
<input name="ntp_server_enable" type="checkbox" id="ntp_server_enable" value="yes" <?=$chk;?> onclick="ntp_server_change()" />
|
|
592 | 590 |
</td> |
593 | 591 |
<td> |
594 | 592 |
<span class="vexpl"> |
... | ... | |
597 | 595 |
</td> |
598 | 596 |
</tr> |
599 | 597 |
</table> |
600 |
<table border="0" cellpadding="2" cellspacing="0" id="ntp_server_data"> |
|
598 |
<table border="0" cellpadding="2" cellspacing="0" id="ntp_server_data" summary="ntp server list">
|
|
601 | 599 |
<tr> |
602 | 600 |
<td> |
603 | 601 |
<span class="vexpl"> |
604 | 602 |
<?=gettext("Server"); ?> #1: |
605 | 603 |
</span> |
606 |
<input name="ntp_server1" type="text" class="formfld unknown" id="ntp_server1" size="20" value="<?=$pconfig['ntp_server1'];?>"> |
|
604 |
<input name="ntp_server1" type="text" class="formfld unknown" id="ntp_server1" size="20" value="<?=$pconfig['ntp_server1'];?>" />
|
|
607 | 605 |
</td> |
608 | 606 |
</tr> |
609 | 607 |
<tr> |
... | ... | |
611 | 609 |
<span class="vexpl"> |
612 | 610 |
<?=gettext("Server"); ?> #2: |
613 | 611 |
</span> |
614 |
<input name="ntp_server2" type="text" class="formfld unknown" id="ntp_server2" size="20" value="<?=$pconfig['ntp_server2'];?>"> |
|
612 |
<input name="ntp_server2" type="text" class="formfld unknown" id="ntp_server2" size="20" value="<?=$pconfig['ntp_server2'];?>" />
|
|
615 | 613 |
</td> |
616 | 614 |
</tr> |
617 | 615 |
</table> |
... | ... | |
620 | 618 |
<tr> |
621 | 619 |
<td width="22%" valign="top" class="vncell"><?=gettext("NetBIOS Options"); ?></td> |
622 | 620 |
<td width="78%" class="vtable"> |
623 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
621 |
<table border="0" cellpadding="2" cellspacing="0" summary="netbios options">
|
|
624 | 622 |
<tr> |
625 | 623 |
<td> |
626 | 624 |
<?php set_checked($pconfig['netbios_enable'],$chk); ?> |
627 |
<input name="netbios_enable" type="checkbox" id="netbios_enable" value="yes" <?=$chk;?> onClick="netbios_change()">
|
|
625 |
<input name="netbios_enable" type="checkbox" id="netbios_enable" value="yes" <?=$chk;?> onclick="netbios_change()" />
|
|
628 | 626 |
</td> |
629 | 627 |
<td> |
630 | 628 |
<span class="vexpl"> |
... | ... | |
635 | 633 |
</table> |
636 | 634 |
<?=gettext("If this option is not set, all NetBIOS-over-TCP/IP options (including WINS) will be disabled"); ?>. |
637 | 635 |
<br /> |
638 |
<table border="0" cellpadding="2" cellspacing="0" id="netbios_data"> |
|
636 |
<table border="0" cellpadding="2" cellspacing="0" id="netbios_data" summary="netbios options">
|
|
639 | 637 |
<tr> |
640 | 638 |
<td> |
641 | 639 |
<br /> |
... | ... | |
647 | 645 |
foreach ($netbios_nodetypes as $type => $name): |
648 | 646 |
$selected = ""; |
649 | 647 |
if ($pconfig['netbios_ntype'] == $type) |
650 |
$selected = "selected"; |
|
648 |
$selected = "selected=\"selected\"";
|
|
651 | 649 |
?> |
652 | 650 |
<option value="<?=$type;?>" <?=$selected;?>><?=$name;?></option> |
653 | 651 |
<?php endforeach; ?> |
... | ... | |
665 | 663 |
<span class="vexpl"> |
666 | 664 |
Scope ID: |
667 | 665 |
</span> |
668 |
<input name="netbios_scope" type="text" class="formfld unknown" id="netbios_scope" size="30" value="<?=htmlspecialchars($pconfig['netbios_scope']);?>"> |
|
666 |
<input name="netbios_scope" type="text" class="formfld unknown" id="netbios_scope" size="30" value="<?=htmlspecialchars($pconfig['netbios_scope']);?>" />
|
|
669 | 667 |
<br /> |
670 | 668 |
<?=gettext("A NetBIOS Scope ID provides an extended naming " . |
671 | 669 |
"service for NetBIOS over TCP/IP. The NetBIOS " . |
... | ... | |
680 | 678 |
<tr id="wins_opts"> |
681 | 679 |
<td width="22%" valign="top" class="vncell"><?=gettext("WINS Servers"); ?></td> |
682 | 680 |
<td width="78%" class="vtable"> |
683 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
681 |
<table border="0" cellpadding="2" cellspacing="0" summary="wins servers">
|
|
684 | 682 |
<tr> |
685 | 683 |
<td> |
686 | 684 |
<?php set_checked($pconfig['wins_server_enable'],$chk); ?> |
687 |
<input name="wins_server_enable" type="checkbox" id="wins_server_enable" value="yes" <?=$chk;?> onClick="wins_server_change()">
|
|
685 |
<input name="wins_server_enable" type="checkbox" id="wins_server_enable" value="yes" <?=$chk;?> onclick="wins_server_change()" />
|
|
688 | 686 |
</td> |
689 | 687 |
<td> |
690 | 688 |
<span class="vexpl"> |
... | ... | |
693 | 691 |
</td> |
694 | 692 |
</tr> |
695 | 693 |
</table> |
696 |
<table border="0" cellpadding="2" cellspacing="0" id="wins_server_data"> |
|
694 |
<table border="0" cellpadding="2" cellspacing="0" id="wins_server_data" summary="wins server list">
|
|
697 | 695 |
<tr> |
698 | 696 |
<td> |
699 | 697 |
<span class="vexpl"> |
700 | 698 |
<?=gettext("Server"); ?> #1: |
701 | 699 |
</span> |
702 |
<input name="wins_server1" type="text" class="formfld unknown" id="wins_server1" size="20" value="<?=$pconfig['wins_server1'];?>"> |
|
700 |
<input name="wins_server1" type="text" class="formfld unknown" id="wins_server1" size="20" value="<?=$pconfig['wins_server1'];?>" />
|
|
703 | 701 |
</td> |
704 | 702 |
</tr> |
705 | 703 |
<tr> |
... | ... | |
707 | 705 |
<span class="vexpl"> |
708 | 706 |
<?=gettext("Server"); ?> #2: |
709 | 707 |
</span> |
710 |
<input name="wins_server2" type="text" class="formfld unknown" id="wins_server2" size="20" value="<?=$pconfig['wins_server2'];?>"> |
|
708 |
<input name="wins_server2" type="text" class="formfld unknown" id="wins_server2" size="20" value="<?=$pconfig['wins_server2'];?>" />
|
|
711 | 709 |
</td> |
712 | 710 |
</tr> |
713 | 711 |
</table> |
... | ... | |
716 | 714 |
<tr> |
717 | 715 |
<td width="22%" valign="top" class="vncell"><?=gettext("Advanced"); ?></td> |
718 | 716 |
<td width="78%" class="vtable"> |
719 |
<table border="0" cellpadding="2" cellspacing="0"> |
|
717 |
<table border="0" cellpadding="2" cellspacing="0" summary="advanced">
|
|
720 | 718 |
<tr> |
721 | 719 |
<td> |
722 | 720 |
<textarea rows="6" cols="70" name="custom_options" id="custom_options"><?=$pconfig['custom_options'];?></textarea><br /> |
... | ... | |
730 | 728 |
<tr> |
731 | 729 |
<td width="22%" valign="top"> </td> |
732 | 730 |
<td width="78%"> |
733 |
<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"> |
|
734 |
<input name="act" type="hidden" value="<?=$act;?>"> |
|
731 |
<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
|
|
732 |
<input name="act" type="hidden" value="<?=$act;?>" />
|
|
735 | 733 |
<?php if (isset($id) && $a_csc[$id]): ?> |
736 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>"> |
|
734 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
|
737 | 735 |
<?php endif; ?> |
738 | 736 |
</td> |
739 | 737 |
</tr> |
... | ... | |
742 | 740 |
|
743 | 741 |
<?php else: ?> |
744 | 742 |
|
745 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
743 |
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="list">
|
|
746 | 744 |
<tr> |
747 | 745 |
<td width="10%" class="listhdrr"><?=gettext("Disabled"); ?></td> |
748 | 746 |
<td width="40%" class="listhdrr"><?=gettext("Common Name"); ?></td> |
... | ... | |
756 | 754 |
if (isset($csc['disable'])) |
757 | 755 |
$disabled = "YES"; |
758 | 756 |
?> |
759 |
<tr ondblclick="document.location='vpn_openvpn_csc.php?act=edit&id=<?=$i;?>'"> |
|
757 |
<tr ondblclick="document.location='vpn_openvpn_csc.php?act=edit&id=<?=$i;?>'">
|
|
760 | 758 |
<td class="listlr"> |
761 | 759 |
<?=$disabled;?> |
762 | 760 |
</td> |
... | ... | |
766 | 764 |
<td class="listbg"> |
767 | 765 |
<?=htmlspecialchars($csc['description']);?> |
768 | 766 |
</td> |
769 |
<td valign="middle" nowrap class="list">
|
|
770 |
<a href="vpn_openvpn_csc.php?act=edit&id=<?=$i;?>"> |
|
771 |
<img src="./themes/<?=$g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("edit csc"); ?>" width="17" height="17" border="0"> |
|
767 |
<td valign="middle" class="list nowrap">
|
|
768 |
<a href="vpn_openvpn_csc.php?act=edit&id=<?=$i;?>">
|
|
769 |
<img src="./themes/<?=$g['theme'];?>/images/icons/icon_e.gif" title="<?=gettext("edit csc"); ?>" width="17" height="17" border="0" alt="edit" />
|
|
772 | 770 |
</a> |
773 | 771 |
|
774 |
<a href="vpn_openvpn_csc.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this csc?"); ?>')"> |
|
775 |
<img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete csc"); ?>" width="17" height="17" border="0"> |
|
772 |
<a href="vpn_openvpn_csc.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this csc?"); ?>')">
|
|
773 |
<img src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" title="<?=gettext("delete csc"); ?>" width="17" height="17" border="0" alt="delete" />
|
|
776 | 774 |
</a> |
777 | 775 |
</td> |
778 | 776 |
</tr> |
... | ... | |
783 | 781 |
<tr> |
784 | 782 |
<td class="list" colspan="3"></td> |
785 | 783 |
<td class="list"> |
786 |
<a href="vpn_openvpn_csc.php?act=new"><img src="./themes/<?=$g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add csc"); ?>" width="17" height="17" border="0"> |
|
784 |
<a href="vpn_openvpn_csc.php?act=new"><img src="./themes/<?=$g['theme'];?>/images/icons/icon_plus.gif" title="<?=gettext("add csc"); ?>" width="17" height="17" border="0" alt="add" />
|
|
787 | 785 |
</a> |
788 | 786 |
</td> |
789 | 787 |
</tr> |
... | ... | |
802 | 800 |
</tr> |
803 | 801 |
</table> |
804 | 802 |
<script type="text/javascript"> |
805 |
<!--
|
|
803 |
//<![CDATA[
|
|
806 | 804 |
dns_domain_change(); |
807 | 805 |
dns_server_change(); |
808 | 806 |
wins_server_change(); |
809 | 807 |
ntp_server_change(); |
810 | 808 |
netbios_change(); |
811 |
//-->
|
|
809 |
//]]>
|
|
812 | 810 |
</script> |
813 |
</body> |
|
814 | 811 |
<?php include("fend.inc"); ?> |
812 |
</body> |
|
813 |
</html> |
|
815 | 814 |
|
816 | 815 |
<?php |
817 | 816 |
|
... | ... | |
819 | 818 |
|
820 | 819 |
function set_checked($var,& $chk) { |
821 | 820 |
if($var) |
822 |
$chk = 'checked';
|
|
821 |
$chk = "checked=\"checked\"";
|
|
823 | 822 |
else |
824 |
$chk = '';
|
|
823 |
$chk = "";
|
|
825 | 824 |
} |
826 | 825 |
|
827 | 826 |
?> |
828 |
|
Formats disponibles : Unified diff
Tidy up "vpn_openvpn_csc.php" XHTML
Add CDATA sections to SCRIPTS
Add SUMMARY to TABLES
Remove Unordered List for tabs
Close INPUT and IMG tags and ALT to IMG
Move NOWRAP into CLASS statement
Deprecate Ampersand in Anchor tags