$message .= $upload_errors[$index]; } } elseif ($thiscat['cat_approval'] == 0) { $message = $lang['Album_upload_successful']; } else { $message = $lang['Album_upload_need_approval']; } if ($thiscat['cat_approval'] == 0 && sizeof($upload_errors) == 0) { if (album_is_debug_enabled() == false) { $redirect_url = append_sid(album_append_uid('album_cat.' . PHP_EXT . '?cat_id=' . $cat_id)); meta_refresh(3, $redirect_url); } } if ($album_user_id == ALBUM_PUBLIC_GALLERY) { $message .= '<br /><br />' . sprintf($lang['Click_return_category'], '<a href="' . append_sid(album_append_uid('album_cat.' . PHP_EXT . '?cat_id=' . $cat_id)) . '">', '</a>'); } else { $message .= '<br /><br />' . sprintf($lang['Click_return_personal_gallery'], '<a href="' . append_sid(album_append_uid('album_cat.' . PHP_EXT . '?cat_id=' . $cat_id)) . '">', '</a>'); } $message .= '<br /><br />' . sprintf($lang['Click_return_album_index'], '<a href="' . append_sid('album.' . PHP_EXT) . '">', '</a>'); synchronize_cat_pics_counter($cat_id); if ($album_config['switch_nuffload'] == 1) { message_die(GENERAL_MESSAGE, multi_loop($message, true)); } else { message_die(GENERAL_MESSAGE, $message); } } function getmicrotime() { list($usec, $sec) = explode(' ', microtime()); return (double) $usec + (double) $sec; }
message_die(GENERAL_MESSAGE, multi_loop($lang['file_too_big'])); } // Handle large thumbnail file error. if ($album_config['gd_version'] == 0 && $_FILES['pic_thumbnail']['size'] > $album_config['max_file_size']) { message_die(GENERAL_MESSAGE, multi_loop($lang['thumbnail_too_big'])); } // Handle large resolution pic error. $image_data = getimagesize($_FILES['pic_file']['tmp_name']); if ($image_data[0] > $album_config['max_width'] || $image_data[1] > $album_config['max_height']) { message_die(GENERAL_MESSAGE, multi_loop($lang['image_res_too_high'])); } // Handle large resolution thumbnail error. if ($album_config['gd_version'] == 0) { $image_data = getimagesize($_FILES['pic_thumbnail']['tmp_name']); if ($image_data[0] > $album_config['thumbnail_size'] || $image_data[1] > $album_config['thumbnail_size']) { message_die(GENERAL_MESSAGE, multi_loop($lang['thumb_res_too_high'])); } } // Last pass? delete query string because we don't need it anymore... if ($multi_id >= $multi_max) { @unlink($path_to_bin . 'tmp/' . $psid . '_qstring'); } else { $album_config['email_notification'] = 0; } // If idlevoids multi mod installed convert array. if (isset($album_config['max_files_to_upload'])) { $tmp_tmp_name = $_FILES['pic_file']['tmp_name']; $tmp_name = $_FILES['pic_file']['name']; $tmp_size = $_FILES['pic_file']['size']; $tmp_type = $_FILES['pic_file']['type']; $ttmp_tmp_name = $_FILES['pic_thumbnail']['tmp_name'];