$alertmessage=gettext("You will need to recreate any existing Voucher Rolls due to the public and private key changes. Click cancel if you do not wish to recreate the vouchers.");
$alertmessage=gettext("You will need to recreate any existing Voucher Rolls due to the public and private key changes. Click cancel if you do not wish to recreate the vouchers.");
echo<<<EOF
echojson_encode(array(
jQuery('#publickey').val('{$publickey}');
'alertmessage'=>$alertmessage,
jQuery('#privatekey').val('{$privatekey}');
'privatekey'=>$privatekey,
alert('{$alertmessage}');
'publickey'=>$publickey,
jQuery('#publickey').effect('highlight');
));
jQuery('#privatekey').effect('highlight');
EOF;
exit;
exit;
}
}
...
@@ -361,6 +359,9 @@ if ($pconfig['enable']) {
...
@@ -361,6 +359,9 @@ if ($pconfig['enable']) {
}
}
?>
?>
<body>
<script type="text/javascript">
<script type="text/javascript">
//<![CDATA[
//<![CDATA[
functiongeneratenewkey(){
functiongeneratenewkey(){
...
@@ -368,10 +369,14 @@ function generatenewkey() {
...
@@ -368,10 +369,14 @@ function generatenewkey() {
jQuery('#privatekey').val('One moment please...');
jQuery('#privatekey').val('One moment please...');