phpBB

Code Changes

File: phpbb/attachment/upload.php

  Unmodified   Added   Modified   Removed
Line 14Line 14
namespace phpbb\attachment;

use phpbb\auth\auth;

namespace phpbb\attachment;

use phpbb\auth\auth;

use \phpbb\cache\service;
use \phpbb\config\config;
use \phpbb\event\dispatcher;
use \phpbb\language\language;
use \phpbb\mimetype\guesser;
use \phpbb\plupload\plupload;
use \phpbb\user;

use phpbb\cache\service;
use phpbb\config\config;
use phpbb\event\dispatcher;
use phpbb\language\language;
use phpbb\mimetype\guesser;
use phpbb\plupload\plupload;
use phpbb\user;


/**
* Attachment upload class


/**
* Attachment upload class

Line 47Line 47

/** @var dispatcher */
protected $phpbb_dispatcher;


/** @var dispatcher */
protected $phpbb_dispatcher;

 

/** @var string */
protected $phpbb_root_path;


/** @var plupload Plupload */
protected $plupload;


/** @var plupload Plupload */
protected $plupload;

Line 296Line 299
	 */
protected function check_disk_space()
{

	 */
protected function check_disk_space()
{

		if ($free_space = @disk_free_space($this->phpbb_root_path . $this->config['upload_path']))

		if (function_exists('disk_free_space'))

		{

		{

 
			$free_space = @disk_free_space($this->phpbb_root_path);


			if ($free_space <= $this->file->get('filesize'))
{
if ($this->auth->acl_get('a_'))

			if ($free_space <= $this->file->get('filesize'))
{
if ($this->auth->acl_get('a_'))