aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd/actions
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-30 09:53:19 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-30 09:53:19 +0000
commit85b94b0c3c9360bd8cf0aa8f9ba69a821d36f14b (patch)
tree55f89100b8b7bd576a0b92e8c0b895e09a95b7f5 /mod/opendd/actions
parent57153e4292a1b9c2f4f840f3027d4c5c7b06b719 (diff)
downloadelgg-85b94b0c3c9360bd8cf0aa8f9ba69a821d36f14b.tar.gz
elgg-85b94b0c3c9360bd8cf0aa8f9ba69a821d36f14b.tar.bz2
Moved OpenDD out of the central repo.
git-svn-id: https://code.elgg.org/elgg/trunk@1590 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/opendd/actions')
-rw-r--r--mod/opendd/actions/opendd/feed/delete.php42
-rw-r--r--mod/opendd/actions/opendd/feed/subscribe.php58
2 files changed, 0 insertions, 100 deletions
diff --git a/mod/opendd/actions/opendd/feed/delete.php b/mod/opendd/actions/opendd/feed/delete.php
deleted file mode 100644
index 6e7731df3..000000000
--- a/mod/opendd/actions/opendd/feed/delete.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- // Load configuration
- global $CONFIG;
-
- gatekeeper();
-
- $returnurl = $_SERVER['HTTP_REFERER'];
-
- $feed_guid = get_input('feed_guid');
- $feed = NULL;
- if ($feed_guid)
- $feed = get_entity($feed_guid);
-
- if (($feed) || (!($feed instanceof ElggObject)))
- {
- if ($feed->delete()) {
- system_message(elgg_echo("opendd:deleted"));
- $returnurl = $CONFIG->url . "mod/opendd/";
- }
- else
- register_error(elgg_echo("opendd:notdeleted"));
-
- }
- else
- register_error(elgg_echo("opendd:notobject"));
-
-
-
- $returnurl = $CONFIG->url . "mod/opendd/";
- forward($returnurl);
- exit;
-?> \ No newline at end of file
diff --git a/mod/opendd/actions/opendd/feed/subscribe.php b/mod/opendd/actions/opendd/feed/subscribe.php
deleted file mode 100644
index d96c93218..000000000
--- a/mod/opendd/actions/opendd/feed/subscribe.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
- /**
- * Elgg OpenDD aggregator
- *
- * @package ElggOpenDD
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- // Load configuration
- global $CONFIG;
-
- gatekeeper();
-
- $input = array();
- foreach($CONFIG->opendd as $shortname => $valuetype) {
- $input[$shortname] = get_input($shortname);
- if ($valuetype == 'tags')
- $input[$shortname] = string_to_tag_array($input[$shortname]);
- }
-
- $feed_guid = get_input('feed_guid');
- $feed = NULL;
- if ($feed_guid)
- $feed = get_entity($feed_guid);
- else
- {
- $feed = new ElggObject();
- $feed->subtype = 'oddfeed';
- }
-
- if (!($feed instanceof ElggObject))
- {
- register_error(elgg_echo("opendd:notobject"));
-
- forward($_SERVER['HTTP_REFERER']);
- exit;
- }
-
- // Assume we can edit or this is a new group
- if (sizeof($input) > 0)
- {
- foreach($input as $shortname => $value) {
- $feed->$shortname = $value;
- }
- }
-
-
- if ($feed->save())
- system_message(elgg_echo("opendd:feedok"));
- else
- register_error(elgg_echo("opendd:feednotok"));
-
- forward($_SERVER['HTTP_REFERER']);
- exit;
-?> \ No newline at end of file