diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-15 13:35:37 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-15 13:35:37 +0000 |
commit | 1a08a1f4a273737afb508c781d5f39cef021a273 (patch) | |
tree | 7b4c1766c7b6d0f1e492e467dccb19869f39445a /mod/tasklist/index.php | |
parent | ef3e87ebcf82fbf172aa719e23ef1a6cfca7a948 (diff) | |
download | elgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.gz elgg-1a08a1f4a273737afb508c781d5f39cef021a273.tar.bz2 |
Moving some stuff into the plugins repo, where it belongs.
git-svn-id: https://code.elgg.org/elgg/trunk@646 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tasklist/index.php')
-rw-r--r-- | mod/tasklist/index.php | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/mod/tasklist/index.php b/mod/tasklist/index.php deleted file mode 100644 index e21303638..000000000 --- a/mod/tasklist/index.php +++ /dev/null @@ -1,72 +0,0 @@ -<?php - /** - * Elgg tasklist test - * - * @package ElggTasklist - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Marcus Povey <marcus@marcus-povey.co.uk> - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - require_once("../../engine/start.php"); - - global $CONFIG; - $_SESSION['id'] = 2; - - // Get the user - $owner_id = page_owner(); - $owner = get_user(page_owner()); - - $description = get_input("task"); - $status = get_input("status"); - $action = get_input("action"); - $guid = get_input("guid"); - $tags = get_input("tags"); - - $limit = get_input("limit",10); - $offset = get_input("offset",0); - - switch ($action) - { - case 'newtask' : - $taskid = create_entity("object", "task", $owner_id, 0); - - if ($taskid) - { - $entity = get_entity($taskid); - - $entity->setMetaData('task', $task, 'text'); - $entity->setMetaData('status', 'notdone', 'text'); - - if ($tags!="") - { - $tags = explode(",",$tags); - - foreach ($tags as $tag) - { - $tag = sanitise_string($tag); - $entity->setMetaData($tag, $tag); - } - } - - $entity->save(); - } else echo "error"; - - break; - - case 'tick' : - $entity = get_entity($guid); - - $entity->setMetaData('status', 'done', 'text'); - break; - } - - $body = elgg_view("tasklist/main", array( - "name" => $owner->name, - "tasklist" => tasklist_drawtasks($owner_id, $limit, $offset), - "newtask" => tasklist_draw_newtask_form($owner_id) - )); - page_draw("Tasklist",$body); - -?>
\ No newline at end of file |