Zeile 6 | Zeile 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: functions_upload.php 5760 2012-03-09 15:40:38Z Tomm $
|
*/
| */
|
Zeile 432 | Zeile 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 = ''; }
|
} }
| } }
|