diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:09:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:09:48 -0300 |
commit | 7d9fff84991467dfe4d28f206663f50e38dbbc6d (patch) | |
tree | 47355573880b175fed210689363c10d6f2d77d2b /mod/foafssl/generate.php | |
parent | 80ea7ce46f9f6f760570370ff45f73cf29c9e5af (diff) | |
parent | 4fb376687dc1546f51e637cae1478582309f85f0 (diff) | |
download | elgg-7d9fff84991467dfe4d28f206663f50e38dbbc6d.tar.gz elgg-7d9fff84991467dfe4d28f206663f50e38dbbc6d.tar.bz2 |
Merge commit '4fb376687dc1546f51e637cae1478582309f85f0' as 'mod/foafssl'
Diffstat (limited to 'mod/foafssl/generate.php')
-rw-r--r-- | mod/foafssl/generate.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mod/foafssl/generate.php b/mod/foafssl/generate.php new file mode 100644 index 000000000..1e86a7070 --- /dev/null +++ b/mod/foafssl/generate.php @@ -0,0 +1,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); + +?> |