diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-05-28 17:00:16 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-05-28 17:00:16 -0300 |
commit | e2935a75ac04dd1fa57bdeb20b016c029e07df2a (patch) | |
tree | 18eec54a29f428a81038cf34e849a07aa1adb444 /usr/local | |
parent | 504e5fd46f1c4840666d1f20ecac934c07e16a88 (diff) | |
parent | 9ef4289cd5da76cc84d4eac16463d399cd77e760 (diff) | |
download | pfsense-e2935a75ac04dd1fa57bdeb20b016c029e07df2a.zip pfsense-e2935a75ac04dd1fa57bdeb20b016c029e07df2a.tar.gz |
Merge pull request #1209 from ExolonDX/branch_master_01
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_usermanager.php | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index 4961a15..cf7db11 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -346,6 +346,7 @@ if ($_POST) { } } +$closehead = false; include("head.inc"); ?> @@ -353,10 +354,13 @@ include("head.inc"); <link rel="stylesheet" type="text/css" href="/javascript/jquery/jquery-ui.custom.css" /> <script type="text/javascript"> +//<![CDATA[ jQuery(function() { jQuery( "#expires" ).datepicker( { dateFormat: 'mm/dd/yy', changeYear: true, yearRange: "+0:+100" } ); }); +//]]> </script> +</head> <body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>"> <?php include("fbegin.inc"); ?> @@ -600,7 +604,7 @@ function sshkeyClicked(obj) { </td> <td valign="middle" class="list nowrap"> <?php if (!$group): ?> - <a href="system_usermanager.php?act=delpriv&id=<?=$id?>&privid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this privilege?");?>')"> + <a href="system_usermanager.php?act=delpriv&id=<?=$id?>&privid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this privilege?");?>')"> <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" /> </a> <?php endif; ?> @@ -653,13 +657,13 @@ function sshkeyClicked(obj) { <?=htmlspecialchars($ca['descr']);?> </td> <td valign="middle" class="list nowrap"> - <a href="system_usermanager.php?act=expckey&id=<?=$id;?>&certid=<?=$i;?>"> + <a href="system_usermanager.php?act=expckey&id=<?=$id;?>&certid=<?=$i;?>"> <img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export private key"); ?>" alt="<?=gettext("export private key"); ?>" width="17" height="17" border="0" /> </a> - <a href="system_usermanager.php?act=expcert&id=<?=$id;?>&certid=<?=$i;?>"> + <a href="system_usermanager.php?act=expcert&id=<?=$id;?>&certid=<?=$i;?>"> <img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export cert"); ?>" alt="<?=gettext("export cert"); ?>" width="17" height="17" border="0" /> </a> - <a href="system_usermanager.php?act=delcert&id=<?=$id?>&certid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>')"> + <a href="system_usermanager.php?act=delcert&id=<?=$id?>&certid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>')"> <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="<?=gettext("delete cert");?>" /> </a> </td> @@ -699,7 +703,7 @@ function sshkeyClicked(obj) { <?php if ($i > 0): ?> - <tr id="usercert" name="usercert" style="display:none"> + <tr id="usercert" style="display:none"> <td width="22%" valign="top" class="vncell"><?=gettext("Certificate");?></td> <td width="78%" class="vtable"> <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="certificate"> @@ -759,7 +763,14 @@ function sshkeyClicked(obj) { <tr id="sshkey" <?php if(empty($pconfig['authorizedkeys'])) echo 'style="display:none"'; ?>> <td width="22%" valign="top" class="vncell"><?=gettext("Authorized keys");?></td> <td width="78%" class="vtable"> - <textarea name="authorizedkeys" cols="65" rows="7" id="authorizedkeys" class="formfld_cert" wrap="off"><?=htmlspecialchars($pconfig['authorizedkeys']);?></textarea> + <script type="text/javascript"> + //<![CDATA[ + window.onload=function(){ + document.getElementById("authorizedkeys").wrap='off'; + } + //]]> + </script> + <textarea name="authorizedkeys" cols="65" rows="7" id="authorizedkeys" class="formfld_cert"><?=htmlspecialchars($pconfig['authorizedkeys']);?></textarea> <br /> <?=gettext("Paste an authorized keys file here.");?> </td> @@ -875,4 +886,3 @@ function sshkeyClicked(obj) { <?php include("fend.inc");?> </body> </html> - |