blob: 1e86a7070acc87ee417ff0c56acb4badc5d34ede (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
set_context("settings");
global $CONFIG;
$form_body = "<p>".elgg_echo('foafssl:generate:description')."</p>";
$form_body .= elgg_echo('foafssl:name').":";
$form_body .= elgg_view('input/text',array('internalname' => 'name'));
$form_body .= '<keygen name="pubkey" challenge="TheChallenge1" style="display:none">';
$form_body .= elgg_view('input/submit', array('value'=>elgg_echo('foafssl:generate')));
$objects = elgg_view('input/form',array('body' => $form_body, 'action' => $CONFIG->wwwroot . 'action/foafssl/generate', 'method' => 'post'));
$title = elgg_echo('foafssl:generatecert');
$body = elgg_view_title($title);
$body .= $objects;
$body .= "<a href='".$CONFIG->wwwroot."pg/foafssl/manage"."'>".elgg_echo('foafssl:return')."</a>";
$body = elgg_view_layout('two_column_left_sidebar', '', $body, $area3);
// Finally draw the page
echo page_draw($title, $body);
?>
|