Vergleich inc/functions_upload.php - 1.6.5 - 1.6.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: functions_upload.php 5623 2011-10-01 02:46:09Z ralgith $

 * $Id$

 */



 */



Zeile 432Zeile 432
		return $ret;
}


		return $ret;
}


	// Check if the attachment directory (YYYYMM) exists, if not, create it
$month_dir = gmdate("Ym");
if(!@is_dir($mybb->settings['uploadspath']."/".$month_dir))

	$month_dir = '';
if(ini_get('safe_mode') != 1 && strtolower(ini_get('safe_mode')) != 'on')


	{

	{

		@mkdir($mybb->settings['uploadspath']."/".$month_dir);
// Still doesn't exist - oh well, throw it in the main directory

		// Check if the attachment directory (YYYYMM) exists, if not, create it
$month_dir = gmdate("Ym");

		if(!@is_dir($mybb->settings['uploadspath']."/".$month_dir))
{

		if(!@is_dir($mybb->settings['uploadspath']."/".$month_dir))
{

			$month_dir = '';






			@mkdir($mybb->settings['uploadspath']."/".$month_dir);
// Still doesn't exist - oh well, throw it in the main directory
if(!@is_dir($mybb->settings['uploadspath']."/".$month_dir))
{
$month_dir = '';
}

		}
}


		}
}