aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-28 03:01:00 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-28 03:01:00 +0000
commit09619e09ed4544a0529231bfc8dd81ec719f2810 (patch)
tree3e74b71b9682174770518f3e9b6781911d05b2e5 /start.php
parent8275ddfe8ebe821f1062f280696d475940461ba9 (diff)
downloadelgg-09619e09ed4544a0529231bfc8dd81ec719f2810.tar.gz
elgg-09619e09ed4544a0529231bfc8dd81ec719f2810.tar.bz2
moved edit and delete to page handler - need to update links
Diffstat (limited to 'start.php')
-rw-r--r--start.php59
1 files changed, 34 insertions, 25 deletions
diff --git a/start.php b/start.php
index 16923787e..798becce4 100644
--- a/start.php
+++ b/start.php
@@ -113,48 +113,57 @@
if (isset($page[0]))
{
- switch($page[0])
- {
+ switch($page[0])
+ {
case "owned": //view list of albums owned by container
if (isset($page[1])) set_input('username',$page[1]);
include($CONFIG->pluginspath . "tidypics/index.php");
- break;
-
- case "view": //view an image individually
- set_input('guid',$page[1]);
+ break;
+
+ case "view": //view an image individually
+ if (isset($page[1])) set_input('guid',$page[1]);
include($CONFIG->pluginspath . "tidypics/viewimage.php");
break;
case "album": //view an album individually
- set_input('guid',$page[1]);
+ if (isset($page[1])) set_input('guid',$page[1]);
include($CONFIG->pluginspath . "tidypics/viewalbum.php");
break;
case "new": //create new album
if (isset($page[1])) set_input('username',$page[1]);
- include($CONFIG->pluginspath . "tidypics/newalbum.php");
- break;
-
- case "upload": //upload images to album
+ include($CONFIG->pluginspath . "tidypics/newalbum.php");
+ break;
+
+ case "upload": //upload images to album
if (isset($page[1])) set_input('container_guid',$page[1]);
- include($CONFIG->pluginspath . "tidypics/upload.php");
- break;
-
- case "friends":
+ include($CONFIG->pluginspath . "tidypics/upload.php");
+ break;
+
+ case "edit": //edit image or album
+ if (isset($page[1])) set_input('guid',$page[1]);
+ include($CONFIG->pluginspath . "tidypics/edit.php");
+ break;
+
+ case "delete": //edit image or album
+ if (isset($page[1])) set_input('guid',$page[1]);
+ include($CONFIG->pluginspath . "tidypics/actions/delete.php");
+ break;
+
+ case "friends":
if (isset($page[1])) set_input('username',$page[1]);
- include($CONFIG->pluginspath . "tidypics/friends.php");
- break;
-
- case "world":
- include($CONFIG->pluginspath . "tidypics/world.php");
- break;
-
- }
+ include($CONFIG->pluginspath . "tidypics/friends.php");
+ break;
+
+ case "world":
+ include($CONFIG->pluginspath . "tidypics/world.php");
+ break;
+
+ }
}
else
{
- // Include the standard profile index
- if (isset($page[1])) set_input('username',$page[1]);
+ // going to the index because something is wrong with the page handler
include($CONFIG->pluginspath . "tidypics/index.php");
}