From 547fc51c3a3492011f8072a0e2b094d9792d07f6 Mon Sep 17 00:00:00 2001 From: rub Date: Mon, 29 Sep 2008 19:50:17 +0000 Subject: Resolved issue 0000872: [Butterfly2 and 2.0RC1] Error on picture upload by visitor and admin git-svn-id: http://piwigo.org/svn/trunk@2624 68402e56-0260-453c-a942-63ccdbb3a9ee --- upload.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/upload.php b/upload.php index bcb82bee9..7d04c5db1 100644 --- a/upload.php +++ b/upload.php @@ -27,19 +27,12 @@ define('PHPWG_ROOT_PATH','./'); // | Includes | // +-----------------------------------------------------------------------+ include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); -include_once(PHPWG_ROOT_PATH.'include/upload.class.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | // +-----------------------------------------------------------------------+ check_status($conf['upload_user_access']); -// +-----------------------------------------------------------------------+ -// | Create upload object | -// +-----------------------------------------------------------------------+ -$upload = new Upload(); - - $username = !empty($_POST['username']) ? $_POST['username']:(is_classic_user() ? $user['username'] : ''); $mail_address = !empty($_POST['mail_address']) ? $_POST['mail_address'] : (is_classic_user() ? $user['email'] : ''); $name = !empty($_POST['name']) ? $_POST['name'] : ''; -- cgit v1.2.3