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
This commit is contained in:
parent
c50a7dca1e
commit
547fc51c3a
1 changed files with 0 additions and 7 deletions
|
@ -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'] : '';
|
||||
|
|
Loading…
Reference in a new issue