diff options
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/welcome.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 2e58bd93..99797d2a 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -44,6 +44,7 @@ class Welcome_Controller extends Template_Controller { $this->template->album_tree = array(); $this->template->rearrange_html = ""; } + $this->template->add_photo_html = $this->_get_add_photo_html(); $this->_load_user_info(); $this->_load_group_info(); @@ -492,4 +493,24 @@ class Welcome_Controller extends Template_Controller { } url::redirect("welcome"); } + + public function form($arg1, $arg2) { + if ($arg1 == "add" && $arg2 == "photos") { + print $this->_get_add_photo_html(); + } + $this->auto_render = false; + } + + public function _get_add_photo_html() { + return ' + <fieldset> + <legend>Photos</legend> + <form method="post" action="' . url::site("albums/1") . '" enctype="multipart/form-data"> + <input type="submit" value="upload"/> + <input id="photo_upload" name="file[]" type="file"/> + <input type="hidden" name="type" value="photo"/> + </form> + </fieldset> + '; + } } |