aboutsummaryrefslogtreecommitdiff
path: root/mod/foafssl/manage.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/foafssl/manage.php')
-rw-r--r--mod/foafssl/manage.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/mod/foafssl/manage.php b/mod/foafssl/manage.php
new file mode 100644
index 000000000..4a38c7342
--- /dev/null
+++ b/mod/foafssl/manage.php
@@ -0,0 +1,27 @@
+<?php
+gatekeeper();
+global $CONFIG;
+set_context("settings");
+$user = get_loggedin_user();
+
+$title = elgg_echo("foafssl:your");
+$options = array('types'=>'object','subtypes'=>'sslkey','owner_guid'=>$user->getGUID(),'full_view'=>false);
+$objects = elgg_list_entities($options);
+
+$body = elgg_view_title($title);
+$body .= "<div class='contentWrapper'>";
+$body .= sprintf(elgg_echo("foafssl:explain"), $user->getURL()."?view=foaf")."<br/><br/>";
+$body .= "<a class='add_topic_button' href='".$CONFIG->wwwroot."pg/foafssl/add'>".elgg_echo('foafssl:addforeign')."</a> ";
+$body .= "<a class='add_topic_button' href='".$CONFIG->wwwroot."pg/foafssl/generate'>".elgg_echo('foafssl:generate')."</a> ";
+$body .= "<a class='add_topic_button' href='".elgg_add_action_tokens_to_url($CONFIG->wwwroot."action/foafssl/suck")."'>".elgg_echo('foafssl:suck')."</a><br/>";
+$body .= "</div>";
+
+//$body .= elgg_view("pages/welcome", array('entity' => $welcome_message));
+$body .= $objects;
+
+$body = elgg_view_layout('two_column_left_sidebar', '', $body, $area3);
+
+// Finally draw the page
+page_draw($title, $body);
+
+?>