aboutsummaryrefslogtreecommitdiff
path: root/mod/apiadmin/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 14:58:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 14:58:20 +0000
commit6ee2b596da12dc3ac5f6ba6d4ca5545df5beab2d (patch)
tree2cc20df8e2eb0345d934952cd06a4cf5a9430343 /mod/apiadmin/views/default
parent89a9e93a915ca7c576e187f0c38d2c202fed05b2 (diff)
downloadelgg-6ee2b596da12dc3ac5f6ba6d4ca5545df5beab2d.tar.gz
elgg-6ee2b596da12dc3ac5f6ba6d4ca5545df5beab2d.tar.bz2
Farewell APIadmin, farewell GUIDtool. We'll see you over in the plugins repo.
git-svn-id: https://code.elgg.org/elgg/trunk@3096 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/apiadmin/views/default')
-rw-r--r--mod/apiadmin/views/default/apiadmin/forms/add_key.php13
-rw-r--r--mod/apiadmin/views/default/object/api_key.php35
2 files changed, 0 insertions, 48 deletions
diff --git a/mod/apiadmin/views/default/apiadmin/forms/add_key.php b/mod/apiadmin/views/default/apiadmin/forms/add_key.php
deleted file mode 100644
index efa871e70..000000000
--- a/mod/apiadmin/views/default/apiadmin/forms/add_key.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
- $ref_label = elgg_echo('apiadmin:yourref');
- $ref_control = elgg_view('input/text', array('internalname' => 'ref'));
- $gen_control = elgg_view('input/submit', array('value' => elgg_echo('apiadmin:generate')));
-
- $form_body = <<< END
- <div class="contentWrapper">
- <p>$ref_label: $ref_control $gen_control</p>
- </div>
-END;
-
- echo elgg_view('input/form', array('action' => "{$vars['url']}action/apiadmin/generate", "body" => $form_body));
-?> \ No newline at end of file
diff --git a/mod/apiadmin/views/default/object/api_key.php b/mod/apiadmin/views/default/object/api_key.php
deleted file mode 100644
index 64ca3d087..000000000
--- a/mod/apiadmin/views/default/object/api_key.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
- global $CONFIG;
-
- $entity = $vars['entity'];
-
- $icon = elgg_view(
- 'graphics/icon', array(
- 'entity' => $entity,
- 'size' => 'small',
- )
- );
-
-
- $public_label = elgg_echo('apiadmin:public');
- $private_label = elgg_echo('apiadmin:private');
- $revoke_label = elgg_echo('apiadmin:revoke');
-
- $ts = time();
- $token = generate_action_token($ts);
-
-
- $info = "<div class=\"contentWrapper\"><p><b>{$entity->title}</b> <a href=\"{$CONFIG->url}action/apiadmin/revokekey?keyid={$entity->guid}&__elgg_token=$token&__elgg_ts=$ts\">$revoke_label</a></p></div>";
- $info .= "<div><p><b>$public_label:</b> {$entity->public}<br />";
- if (isadminloggedin()) {
- // Only show secret portion to admins
-
- // Fetch key
- $keypair = get_api_user($CONFIG->site_id, $entity->public);
-
- $info .= "<b>$private_label:</b> {$keypair->secret}";
- }
- $info .= "</p></div>";
-
- echo elgg_view_listing($icon, $info);
-?> \ No newline at end of file