aboutsummaryrefslogtreecommitdiff
path: root/mod/apiadmin/actions/revokekey.php
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/actions/revokekey.php
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/actions/revokekey.php')
-rw-r--r--mod/apiadmin/actions/revokekey.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/mod/apiadmin/actions/revokekey.php b/mod/apiadmin/actions/revokekey.php
deleted file mode 100644
index 6252c3828..000000000
--- a/mod/apiadmin/actions/revokekey.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
- global $CONFIG;
-
- admin_gatekeeper();
- action_gatekeeper();
-
- $key = (int)get_input('keyid');
-
- $obj = get_entity($key);
-
- if (($obj) && ($obj instanceof ElggObject) && ($obj->subtype == get_subtype_id('object', 'api_key')))
- {
- if ($obj->delete())
- system_message(elgg_echo('apiadmin:keyrevoked'));
- else
- register_error(elgg_echo('apiadmin:keynotrevoked'));
- }
- else
- register_error(elgg_echo('apiadmin:keynotrevoked'));
-
- forward($_SERVER['HTTP_REFERER']);
-?> \ No newline at end of file