Version Description
- added option to restore default value for each attribute in Shortcode Composer
- added support for multilingual characters
- correction of bug in Shortcode Composer that was not allowing attributes with singular and plural form to be saved
- correction of bug that was not changing errormessage attribute in some cases
Download this release
Release Info
Developer | nickboss |
Plugin | WordPress File Upload |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.3.1
- css/wordpress_file_upload_adminstyle.css +41 -0
- images/restore_16.png +0 -0
- js/wordpress_file_upload_adminfunctions.js +192 -13
- js/wordpress_file_upload_functions.js +19 -11
- languages/wordpress-file-upload-fr_FR.mo +0 -0
- languages/wordpress-file-upload-fr_FR.po +556 -0
- lib/wfu_admin.php +5 -1
- lib/wfu_constants.php +2 -1
- lib/wfu_functions.php +5 -0
- readme.txt +13 -3
- wordpress_file_upload.php +9 -8
css/wordpress_file_upload_adminstyle.css
CHANGED
@@ -30,6 +30,47 @@ div.wfu_help_container
|
|
30 |
border: none;
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
div.wfu_td_div
|
34 |
{
|
35 |
display: block;
|
30 |
border: none;
|
31 |
}
|
32 |
|
33 |
+
div.wfu_help_container img
|
34 |
+
{
|
35 |
+
visibility: hidden;
|
36 |
+
}
|
37 |
+
|
38 |
+
table.wfu_main_table th:hover div.wfu_help_container img
|
39 |
+
{
|
40 |
+
visibility: visible;
|
41 |
+
}
|
42 |
+
|
43 |
+
table.wfu_inner_table th:hover div.wfu_help_container img
|
44 |
+
{
|
45 |
+
visibility: visible;
|
46 |
+
}
|
47 |
+
|
48 |
+
div.wfu_restore_container
|
49 |
+
{
|
50 |
+
display: inline-block;
|
51 |
+
position: relative;
|
52 |
+
top: 4px;
|
53 |
+
padding: 0;
|
54 |
+
margin: 0;
|
55 |
+
background: none;
|
56 |
+
border: none;
|
57 |
+
}
|
58 |
+
|
59 |
+
div.wfu_restore_container img
|
60 |
+
{
|
61 |
+
visibility: hidden;
|
62 |
+
}
|
63 |
+
|
64 |
+
table.wfu_main_table th:hover div.wfu_restore_container img
|
65 |
+
{
|
66 |
+
visibility: visible;
|
67 |
+
}
|
68 |
+
|
69 |
+
table.wfu_inner_table th:hover div.wfu_restore_container img
|
70 |
+
{
|
71 |
+
visibility: visible;
|
72 |
+
}
|
73 |
+
|
74 |
div.wfu_td_div
|
75 |
{
|
76 |
display: block;
|
images/restore_16.png
ADDED
Binary file
|
js/wordpress_file_upload_adminfunctions.js
CHANGED
@@ -291,7 +291,7 @@ function wfu_admin_recreate_placements_panel(placements_text) {
|
|
291 |
item = container.childNodes[i];
|
292 |
if (item.className == "wfu_component_box") {
|
293 |
itemname = item.id.replace("wfu_component_box_", "");
|
294 |
-
item.style.display = "
|
295 |
item.className = "wfu_component_box wfu_inbase";
|
296 |
document.getElementById('wfu_component_box_container_' + itemname).appendChild(item);
|
297 |
}
|
@@ -336,23 +336,27 @@ function wfu_admin_recreate_placements_panel(placements_text) {
|
|
336 |
wfu_attach_separator_dragdrop_events();
|
337 |
}
|
338 |
|
339 |
-
function
|
340 |
-
var line = obj.parentNode;
|
341 |
-
var newline = line.cloneNode(true);
|
342 |
var item;
|
343 |
-
for (var i = 0; i <
|
344 |
-
item =
|
345 |
if (item.tagName == "INPUT") {
|
346 |
if (item.type == "text") {
|
347 |
-
item.value =
|
348 |
wfu_attach_element_handlers(item, wfu_update_userfield_value);
|
349 |
}
|
350 |
else if (item.type == "checkbox") {
|
351 |
-
item.checked =
|
352 |
}
|
353 |
}
|
354 |
else if (item.tagName == "DIV") item.className = "wfu_userdata_action";
|
355 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
line.parentNode.insertBefore(newline, line.nextSibling);
|
357 |
}
|
358 |
|
@@ -454,10 +458,18 @@ function wfu_update_dimension_value(e) {
|
|
454 |
}
|
455 |
}
|
456 |
|
457 |
-
function wfu_update_ptext_value(
|
|
|
|
|
|
|
|
|
458 |
var singular = document.getElementById("wfu_attribute_s_" + attribute).value;
|
459 |
var plural = document.getElementById("wfu_attribute_p_" + attribute).value;
|
460 |
-
|
|
|
|
|
|
|
|
|
461 |
wfu_generate_shortcode();
|
462 |
}
|
463 |
|
@@ -550,6 +562,8 @@ function wfu_Attach_Admin_Events() {
|
|
550 |
wfu_Attach_Admin_DragDrop_Events();
|
551 |
var text_elements = document.getElementsByName("wfu_text_elements");
|
552 |
for (var i = 0; i < text_elements.length; i++) wfu_attach_element_handlers(text_elements[i], wfu_update_text_value);
|
|
|
|
|
553 |
var triplecolor_elements = document.getElementsByName("wfu_triplecolor_elements");
|
554 |
for (var i = 0; i < triplecolor_elements.length; i++) wfu_attach_element_handlers(triplecolor_elements[i], wfu_update_triplecolor_value);
|
555 |
var dimension_elements = document.getElementsByName("wfu_dimension_elements_widths");
|
@@ -609,10 +623,14 @@ function wfu_GetHttpRequestObject() {
|
|
609 |
function wfu_plugin_encode_string(str) {
|
610 |
var i = 0;
|
611 |
var newstr = "";
|
|
|
612 |
var hex = "";
|
613 |
for (i = 0; i < str.length; i++) {
|
614 |
-
|
615 |
-
if (
|
|
|
|
|
|
|
616 |
newstr += hex;
|
617 |
}
|
618 |
return newstr;
|
@@ -643,7 +661,7 @@ function wfu_save_shortcode() {
|
|
643 |
params[1][0] = 'shortcode';
|
644 |
params[1][1] = wfu_plugin_encode_string(ShortcodeString);
|
645 |
|
646 |
-
var parameters = '';
|
647 |
for (var i = 0; i < params.length; i++) {
|
648 |
parameters += (i > 0 ? "&" : "") + params[i][0] + "=" + encodeURI(params[i][1]);
|
649 |
}
|
@@ -692,3 +710,164 @@ function wfu_fadeout_element(interval) {
|
|
692 |
|
693 |
setTimeout('wfu_adjust_opacity("0.0")', i * interval / reps);
|
694 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
item = container.childNodes[i];
|
292 |
if (item.className == "wfu_component_box") {
|
293 |
itemname = item.id.replace("wfu_component_box_", "");
|
294 |
+
item.style.display = "inline-block";
|
295 |
item.className = "wfu_component_box wfu_inbase";
|
296 |
document.getElementById('wfu_component_box_container_' + itemname).appendChild(item);
|
297 |
}
|
336 |
wfu_attach_separator_dragdrop_events();
|
337 |
}
|
338 |
|
339 |
+
function wfu_userdata_edit_field(line, label, required) {
|
|
|
|
|
340 |
var item;
|
341 |
+
for (var i = 0; i < line.childNodes.length; i ++) {
|
342 |
+
item = line.childNodes[i];
|
343 |
if (item.tagName == "INPUT") {
|
344 |
if (item.type == "text") {
|
345 |
+
item.value = label;
|
346 |
wfu_attach_element_handlers(item, wfu_update_userfield_value);
|
347 |
}
|
348 |
else if (item.type == "checkbox") {
|
349 |
+
item.checked = required;
|
350 |
}
|
351 |
}
|
352 |
else if (item.tagName == "DIV") item.className = "wfu_userdata_action";
|
353 |
}
|
354 |
+
}
|
355 |
+
|
356 |
+
function wfu_userdata_add_field(obj) {
|
357 |
+
var line = obj.parentNode;
|
358 |
+
var newline = line.cloneNode(true);
|
359 |
+
wfu_userdata_edit_field(newline, "", false);
|
360 |
line.parentNode.insertBefore(newline, line.nextSibling);
|
361 |
}
|
362 |
|
458 |
}
|
459 |
}
|
460 |
|
461 |
+
function wfu_update_ptext_value(e) {
|
462 |
+
e = e || window.event;
|
463 |
+
var item = e.target;
|
464 |
+
var attribute = item.id.replace("wfu_attribute_", "");
|
465 |
+
attribute = attribute.substr(2);
|
466 |
var singular = document.getElementById("wfu_attribute_s_" + attribute).value;
|
467 |
var plural = document.getElementById("wfu_attribute_p_" + attribute).value;
|
468 |
+
var val = singular + "/" + plural;
|
469 |
+
if (val !== item.oldVal) {
|
470 |
+
item.oldVal = val;
|
471 |
+
document.getElementById("wfu_attribute_value_" + attribute).value = val;
|
472 |
+
}
|
473 |
wfu_generate_shortcode();
|
474 |
}
|
475 |
|
562 |
wfu_Attach_Admin_DragDrop_Events();
|
563 |
var text_elements = document.getElementsByName("wfu_text_elements");
|
564 |
for (var i = 0; i < text_elements.length; i++) wfu_attach_element_handlers(text_elements[i], wfu_update_text_value);
|
565 |
+
var ptext_elements = document.getElementsByName("wfu_ptext_elements");
|
566 |
+
for (var i = 0; i < ptext_elements.length; i++) wfu_attach_element_handlers(ptext_elements[i], wfu_update_ptext_value);
|
567 |
var triplecolor_elements = document.getElementsByName("wfu_triplecolor_elements");
|
568 |
for (var i = 0; i < triplecolor_elements.length; i++) wfu_attach_element_handlers(triplecolor_elements[i], wfu_update_triplecolor_value);
|
569 |
var dimension_elements = document.getElementsByName("wfu_dimension_elements_widths");
|
623 |
function wfu_plugin_encode_string(str) {
|
624 |
var i = 0;
|
625 |
var newstr = "";
|
626 |
+
var num;
|
627 |
var hex = "";
|
628 |
for (i = 0; i < str.length; i++) {
|
629 |
+
num = str.charCodeAt(i);
|
630 |
+
if (num >= 2048) num = (((num & 16773120) | 917504) << 4) + (((num & 4032) | 8192) << 2) + ((num & 63) | 128);
|
631 |
+
else if (num >= 128) num = (((num & 65472) | 12288) << 2) + ((num & 63) | 128);
|
632 |
+
hex = num.toString(16);
|
633 |
+
if (hex.length == 1 || hex.length == 3 || hex.length == 5) hex = "0" + hex;
|
634 |
newstr += hex;
|
635 |
}
|
636 |
return newstr;
|
661 |
params[1][0] = 'shortcode';
|
662 |
params[1][1] = wfu_plugin_encode_string(ShortcodeString);
|
663 |
|
664 |
+
var parameters = '';
|
665 |
for (var i = 0; i < params.length; i++) {
|
666 |
parameters += (i > 0 ? "&" : "") + params[i][0] + "=" + encodeURI(params[i][1]);
|
667 |
}
|
710 |
|
711 |
setTimeout('wfu_adjust_opacity("0.0")', i * interval / reps);
|
712 |
}
|
713 |
+
|
714 |
+
function wfu_apply_value(attribute, type, value) {
|
715 |
+
if (type == "onoff") {
|
716 |
+
document.getElementById("wfu_attribute_" + attribute).className = "wfu_onoff_container_" + (value != "true" ? "on" : "off");
|
717 |
+
wfu_admin_onoff_clicked(attribute);
|
718 |
+
}
|
719 |
+
else if (type == "text" || type == "ltext" || type == "integer" || type == "float" || type == "mtext" || type == "color" ) {
|
720 |
+
var item = document.getElementById("wfu_attribute_" + attribute);
|
721 |
+
if (item.tagName == "TEXTAREA") value = value.replace(/\%n\%/gm,"\n");
|
722 |
+
if (type == "color") {
|
723 |
+
var rgb = colourNameToHex(value);
|
724 |
+
if (!rgb) rgb = value;
|
725 |
+
jQuery('#wfu_attribute_' + attribute).wpColorPicker('color', rgb);
|
726 |
+
}
|
727 |
+
item.value = value;
|
728 |
+
wfu_update_text_value({target:item});
|
729 |
+
}
|
730 |
+
else if (type == "placements") {
|
731 |
+
wfu_admin_recreate_placements_panel(value);
|
732 |
+
document.getElementById("wfu_attribute_value_placements").value = value;
|
733 |
+
wfu_generate_shortcode();
|
734 |
+
}
|
735 |
+
else if (type == "radio") {
|
736 |
+
var radios = document.getElementsByName("wfu_radioattribute_" + attribute);
|
737 |
+
for (var i = 0; i < radios.length; i++)
|
738 |
+
radios[i].checked = (radios[i].value == value || ("*" + radios[i].value) == value);
|
739 |
+
wfu_admin_radio_clicked(attribute);
|
740 |
+
}
|
741 |
+
else if (type == "ptext" ) {
|
742 |
+
var parts = value.split("/");
|
743 |
+
var singular = parts.length < 1 ? "" : parts[0];
|
744 |
+
var plural = parts.length < 2 ? singular : parts[1];
|
745 |
+
var item1 = document.getElementById("wfu_attribute_s_" + attribute);
|
746 |
+
item1.value = singular;
|
747 |
+
var item2 = document.getElementById("wfu_attribute_p_" + attribute);
|
748 |
+
item2.value = plural;
|
749 |
+
wfu_update_ptext_value({target:item1});
|
750 |
+
wfu_update_ptext_value({target:item2});
|
751 |
+
}
|
752 |
+
else if (type == "rolelist" ) {
|
753 |
+
value = value.toLowerCase();
|
754 |
+
if (value == "all") document.getElementById("wfu_attribute_" + attribute + "_all").checked = true;
|
755 |
+
else {
|
756 |
+
document.getElementById("wfu_attribute_" + attribute + "_all").checked = false;
|
757 |
+
var roles = value.split(",");
|
758 |
+
for (var i = 0; i < roles.length; i++) roles[i] = roles[i].trim();
|
759 |
+
var item = document.getElementById("wfu_attribute_" + attribute);
|
760 |
+
for (var i = 0; i < item.options.length; i++)
|
761 |
+
item.options[i].selected = (roles.indexOf(item.options[i].value) > -1);
|
762 |
+
}
|
763 |
+
wfu_update_rolelist_value(attribute);
|
764 |
+
}
|
765 |
+
else if (type == "dimensions" ) {
|
766 |
+
var dims = value.split(",");
|
767 |
+
var details, nam, val, item;
|
768 |
+
var group = document.getElementsByName("wfu_dimension_elements_" + attribute);
|
769 |
+
for (var i = 0; i < group.length; i++) group[i].value = "";
|
770 |
+
for (var i = 0; i < dims.length; i++) {
|
771 |
+
details = dims[i].split(":", 2);
|
772 |
+
nam = details.length < 1 ? "" : details[0];
|
773 |
+
val = details.length < 2 ? nam : details[1];
|
774 |
+
item = document.getElementById("wfu_attribute_" + attribute + "_" + nam.trim());
|
775 |
+
if (item) item.value = val.trim();
|
776 |
+
}
|
777 |
+
item = group[0];
|
778 |
+
wfu_update_dimension_value({target:item});
|
779 |
+
}
|
780 |
+
else if (type == "userfields") {
|
781 |
+
var fields_arr = value.split("/");
|
782 |
+
var is_req;
|
783 |
+
var fields = Array();
|
784 |
+
for (var i = 0; i < fields_arr.length; i++) {
|
785 |
+
is_req = (fields_arr[i].substr(0, 1) == "*");
|
786 |
+
if (is_req) fields_arr[i] = fields_arr[i].substr(1);
|
787 |
+
if (fields_arr[i] != "") fields.push({name:fields_arr[i], required:is_req});
|
788 |
+
}
|
789 |
+
var container = document.getElementById("wfu_attribute_" + attribute);
|
790 |
+
var first = null;
|
791 |
+
var remove_array = Array();
|
792 |
+
for (var i = 0; i < container.childNodes.length; i++)
|
793 |
+
if (container.childNodes[i].nodeType === 1) {
|
794 |
+
if (first == null) first = container.childNodes[i];
|
795 |
+
else remove_array.push(container.childNodes[i]);
|
796 |
+
}
|
797 |
+
for (var i = 0; i < remove_array.length; i++) container.removeChild(remove_array[i]);
|
798 |
+
wfu_userdata_edit_field(first, "", false);
|
799 |
+
|
800 |
+
var newline;
|
801 |
+
var prevline = first;
|
802 |
+
for (var i = 0; i < fields.length; i++) {
|
803 |
+
if (i == 0) wfu_userdata_edit_field(first, fields[i].name, fields[i].required);
|
804 |
+
else {
|
805 |
+
newline = prevline.cloneNode(true);
|
806 |
+
wfu_userdata_edit_field(newline, fields[i].name, fields[i].required);
|
807 |
+
container.insertBefore(newline, prevline.nextSibling);
|
808 |
+
prevline = newline;
|
809 |
+
}
|
810 |
+
}
|
811 |
+
var item;
|
812 |
+
for (var i = 0; i < first.childNodes.length; i++) {
|
813 |
+
item = first.childNodes[i];
|
814 |
+
if (item.tagName == "INPUT") break;
|
815 |
+
}
|
816 |
+
wfu_update_userfield_value({target:item});
|
817 |
+
}
|
818 |
+
else if (type == "color-triplet") {
|
819 |
+
var colors = value.split(",");
|
820 |
+
for (var i = 0; i < colors.length; i++) colors[i] = colors[i].trim();
|
821 |
+
if (colors.length == 2) colors = [colors[0], colors[1], "#000000"];
|
822 |
+
else if (colors.length == 1) colors = [colors[0], "#FFFFFF", "#000000"];
|
823 |
+
else if (colors.length < 3) colors = ["#000000", "#FFFFFF", "#000000"];
|
824 |
+
var rgb = colourNameToHex(colors[0]);
|
825 |
+
if (!rgb) rgb = colors[0];
|
826 |
+
jQuery('#wfu_attribute_' + attribute + "_color").wpColorPicker('color', rgb);
|
827 |
+
var item = document.getElementById("wfu_attribute_" + attribute + "_color");
|
828 |
+
item.value = colors[0];
|
829 |
+
rgb = colourNameToHex(colors[1]);
|
830 |
+
if (!rgb) rgb = colors[1];
|
831 |
+
jQuery('#wfu_attribute_' + attribute + "_bgcolor").wpColorPicker('color', rgb);
|
832 |
+
document.getElementById("wfu_attribute_" + attribute + "_bgcolor").value = colors[1];
|
833 |
+
rgb = colourNameToHex(colors[2]);
|
834 |
+
if (!rgb) rgb = colors[2];
|
835 |
+
jQuery('#wfu_attribute_' + attribute + "_borcolor").wpColorPicker('color', rgb);
|
836 |
+
document.getElementById("wfu_attribute_" + attribute + "_borcolor").value = colors[2];
|
837 |
+
wfu_update_triplecolor_value({target:item});
|
838 |
+
}
|
839 |
+
}
|
840 |
+
|
841 |
+
function colourNameToHex(colour)
|
842 |
+
{
|
843 |
+
var colours = {"aliceblue":"#f0f8ff","antiquewhite":"#faebd7","aqua":"#00ffff","aquamarine":"#7fffd4","azure":"#f0ffff",
|
844 |
+
"beige":"#f5f5dc","bisque":"#ffe4c4","black":"#000000","blanchedalmond":"#ffebcd","blue":"#0000ff","blueviolet":"#8a2be2","brown":"#a52a2a","burlywood":"#deb887",
|
845 |
+
"cadetblue":"#5f9ea0","chartreuse":"#7fff00","chocolate":"#d2691e","coral":"#ff7f50","cornflowerblue":"#6495ed","cornsilk":"#fff8dc","crimson":"#dc143c","cyan":"#00ffff",
|
846 |
+
"darkblue":"#00008b","darkcyan":"#008b8b","darkgoldenrod":"#b8860b","darkgray":"#a9a9a9","darkgreen":"#006400","darkkhaki":"#bdb76b","darkmagenta":"#8b008b","darkolivegreen":"#556b2f",
|
847 |
+
"darkorange":"#ff8c00","darkorchid":"#9932cc","darkred":"#8b0000","darksalmon":"#e9967a","darkseagreen":"#8fbc8f","darkslateblue":"#483d8b","darkslategray":"#2f4f4f","darkturquoise":"#00ced1",
|
848 |
+
"darkviolet":"#9400d3","deeppink":"#ff1493","deepskyblue":"#00bfff","dimgray":"#696969","dodgerblue":"#1e90ff",
|
849 |
+
"firebrick":"#b22222","floralwhite":"#fffaf0","forestgreen":"#228b22","fuchsia":"#ff00ff",
|
850 |
+
"gainsboro":"#dcdcdc","ghostwhite":"#f8f8ff","gold":"#ffd700","goldenrod":"#daa520","gray":"#808080","green":"#008000","greenyellow":"#adff2f",
|
851 |
+
"honeydew":"#f0fff0","hotpink":"#ff69b4",
|
852 |
+
"indianred ":"#cd5c5c","indigo ":"#4b0082","ivory":"#fffff0","khaki":"#f0e68c",
|
853 |
+
"lavender":"#e6e6fa","lavenderblush":"#fff0f5","lawngreen":"#7cfc00","lemonchiffon":"#fffacd","lightblue":"#add8e6","lightcoral":"#f08080","lightcyan":"#e0ffff","lightgoldenrodyellow":"#fafad2",
|
854 |
+
"lightgrey":"#d3d3d3","lightgreen":"#90ee90","lightpink":"#ffb6c1","lightsalmon":"#ffa07a","lightseagreen":"#20b2aa","lightskyblue":"#87cefa","lightslategray":"#778899","lightsteelblue":"#b0c4de",
|
855 |
+
"lightyellow":"#ffffe0","lime":"#00ff00","limegreen":"#32cd32","linen":"#faf0e6",
|
856 |
+
"magenta":"#ff00ff","maroon":"#800000","mediumaquamarine":"#66cdaa","mediumblue":"#0000cd","mediumorchid":"#ba55d3","mediumpurple":"#9370d8","mediumseagreen":"#3cb371","mediumslateblue":"#7b68ee",
|
857 |
+
"mediumspringgreen":"#00fa9a","mediumturquoise":"#48d1cc","mediumvioletred":"#c71585","midnightblue":"#191970","mintcream":"#f5fffa","mistyrose":"#ffe4e1","moccasin":"#ffe4b5",
|
858 |
+
"navajowhite":"#ffdead","navy":"#000080",
|
859 |
+
"oldlace":"#fdf5e6","olive":"#808000","olivedrab":"#6b8e23","orange":"#ffa500","orangered":"#ff4500","orchid":"#da70d6",
|
860 |
+
"palegoldenrod":"#eee8aa","palegreen":"#98fb98","paleturquoise":"#afeeee","palevioletred":"#d87093","papayawhip":"#ffefd5","peachpuff":"#ffdab9","peru":"#cd853f","pink":"#ffc0cb","plum":"#dda0dd","powderblue":"#b0e0e6","purple":"#800080",
|
861 |
+
"red":"#ff0000","rosybrown":"#bc8f8f","royalblue":"#4169e1",
|
862 |
+
"saddlebrown":"#8b4513","salmon":"#fa8072","sandybrown":"#f4a460","seagreen":"#2e8b57","seashell":"#fff5ee","sienna":"#a0522d","silver":"#c0c0c0","skyblue":"#87ceeb","slateblue":"#6a5acd","slategray":"#708090","snow":"#fffafa","springgreen":"#00ff7f","steelblue":"#4682b4",
|
863 |
+
"tan":"#d2b48c","teal":"#008080","thistle":"#d8bfd8","tomato":"#ff6347","turquoise":"#40e0d0",
|
864 |
+
"violet":"#ee82ee",
|
865 |
+
"wheat":"#f5deb3","white":"#ffffff","whitesmoke":"#f5f5f5",
|
866 |
+
"yellow":"#ffff00","yellowgreen":"#9acd32"
|
867 |
+
};
|
868 |
+
|
869 |
+
if (typeof colours[colour.toLowerCase()] != 'undefined')
|
870 |
+
return colours[colour.toLowerCase()];
|
871 |
+
|
872 |
+
return false;
|
873 |
+
}
|
js/wordpress_file_upload_functions.js
CHANGED
@@ -51,11 +51,11 @@ function wfu_check_animation() {
|
|
51 |
animationstring = 'animation',
|
52 |
keyframeprefix = '',
|
53 |
domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
|
54 |
-
pfx
|
55 |
|
56 |
var elm = document.createElement('DIV');
|
57 |
|
58 |
-
if( elm.style.animationName ) { animation = true; }
|
59 |
|
60 |
if( animation === false ) {
|
61 |
for( var i = 0; i < domPrefixes.length; i++ ) {
|
@@ -88,10 +88,14 @@ function wfu_join_strings(delimeter) {
|
|
88 |
function wfu_plugin_decode_string(str) {
|
89 |
var i = 0;
|
90 |
var newstr = "";
|
91 |
-
var
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
return newstr;
|
97 |
}
|
@@ -102,8 +106,11 @@ function wfu_plugin_encode_string(str) {
|
|
102 |
var newstr = "";
|
103 |
var hex = "";
|
104 |
for (i = 0; i < str.length; i++) {
|
105 |
-
|
106 |
-
if (
|
|
|
|
|
|
|
107 |
newstr += hex;
|
108 |
}
|
109 |
return newstr;
|
@@ -379,7 +386,7 @@ function wfu_send_email_notification(sid, unique_id, params_index, session_token
|
|
379 |
params[7 + i][1] = document.getElementById('hiddeninput_' + sid + '_userdata_' + i).value;
|
380 |
}
|
381 |
|
382 |
-
var parameters = '';
|
383 |
for (var i = 0; i < params.length; i++) {
|
384 |
parameters += (i > 0 ? "&" : "") + params[i][0] + "=" + encodeURI(params[i][1]);
|
385 |
}
|
@@ -1022,7 +1029,7 @@ function wfu_HTML5UploadFile_cont(sid, JSONobj, session_token, other_params) {
|
|
1022 |
fd.append("session_token", session_token);
|
1023 |
fd.append("unique_id", rand_str);
|
1024 |
var userdata_count = wfu_get_userdata_count(sid);
|
1025 |
-
for (var ii = 0; ii < userdata_count; ii++)
|
1026 |
fd.append("hiddeninput_" + sid + "_userdata_" + ii, document.getElementById('hiddeninput_' + sid + '_userdata_' + ii).value);
|
1027 |
|
1028 |
// define variables
|
@@ -1040,7 +1047,8 @@ function wfu_HTML5UploadFile_cont(sid, JSONobj, session_token, other_params) {
|
|
1040 |
xhr.is_admin = JSONobj.is_admin;
|
1041 |
xhr.finish_time = d.getTime() + parseInt(GlobalData.consts.max_time_limit) * 1000;
|
1042 |
xhr.fail_colors = JSONobj.fail_colors;
|
1043 |
-
xhr.error_message_header = GlobalData.consts.message_header.replace(/%username%/g, "no data");
|
|
|
1044 |
xhr.error_message_header = xhr.error_message_header.replace(/%useremail%/g, "no data");
|
1045 |
xhr.error_message_header = xhr.error_message_header.replace(/%filename%/g, file.name);
|
1046 |
xhr.error_message_header = xhr.error_message_header.replace(/%filepath%/g, file.name);
|
51 |
animationstring = 'animation',
|
52 |
keyframeprefix = '',
|
53 |
domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
|
54 |
+
pfx = '';
|
55 |
|
56 |
var elm = document.createElement('DIV');
|
57 |
|
58 |
+
if( elm.style.animationName ) { animation = true; }
|
59 |
|
60 |
if( animation === false ) {
|
61 |
for( var i = 0; i < domPrefixes.length; i++ ) {
|
88 |
function wfu_plugin_decode_string(str) {
|
89 |
var i = 0;
|
90 |
var newstr = "";
|
91 |
+
var num, val;
|
92 |
+
while (i < str.length) {
|
93 |
+
num = parseInt(str.substr(i, 2), 16);
|
94 |
+
if (num < 128) val = num;
|
95 |
+
else if (num < 224) val = ((num & 31) << 6) + (parseInt(str.substr((i += 2), 2), 16) & 63);
|
96 |
+
else val = ((num & 15) << 12) + ((parseInt(str.substr((i += 2), 2), 16) & 63) << 6) + (parseInt(str.substr((i += 2), 2), 16) & 63);
|
97 |
+
newstr += String.fromCharCode(val);
|
98 |
+
i += 2;
|
99 |
}
|
100 |
return newstr;
|
101 |
}
|
106 |
var newstr = "";
|
107 |
var hex = "";
|
108 |
for (i = 0; i < str.length; i++) {
|
109 |
+
num = str.charCodeAt(i);
|
110 |
+
if (num >= 2048) num = (((num & 16773120) | 917504) << 4) + (((num & 4032) | 8192) << 2) + ((num & 63) | 128);
|
111 |
+
else if (num >= 128) num = (((num & 65472) | 12288) << 2) + ((num & 63) | 128);
|
112 |
+
hex = num.toString(16);
|
113 |
+
if (hex.length == 1 || hex.length == 3 || hex.length == 5) hex = "0" + hex;
|
114 |
newstr += hex;
|
115 |
}
|
116 |
return newstr;
|
386 |
params[7 + i][1] = document.getElementById('hiddeninput_' + sid + '_userdata_' + i).value;
|
387 |
}
|
388 |
|
389 |
+
var parameters = '';
|
390 |
for (var i = 0; i < params.length; i++) {
|
391 |
parameters += (i > 0 ? "&" : "") + params[i][0] + "=" + encodeURI(params[i][1]);
|
392 |
}
|
1029 |
fd.append("session_token", session_token);
|
1030 |
fd.append("unique_id", rand_str);
|
1031 |
var userdata_count = wfu_get_userdata_count(sid);
|
1032 |
+
for (var ii = 0; ii < userdata_count; ii++)
|
1033 |
fd.append("hiddeninput_" + sid + "_userdata_" + ii, document.getElementById('hiddeninput_' + sid + '_userdata_' + ii).value);
|
1034 |
|
1035 |
// define variables
|
1047 |
xhr.is_admin = JSONobj.is_admin;
|
1048 |
xhr.finish_time = d.getTime() + parseInt(GlobalData.consts.max_time_limit) * 1000;
|
1049 |
xhr.fail_colors = JSONobj.fail_colors;
|
1050 |
+
// xhr.error_message_header = GlobalData.consts.message_header.replace(/%username%/g, "no data");
|
1051 |
+
xhr.error_message_header = JSONobj.error_header.replace(/%username%/g, "no data");
|
1052 |
xhr.error_message_header = xhr.error_message_header.replace(/%useremail%/g, "no data");
|
1053 |
xhr.error_message_header = xhr.error_message_header.replace(/%filename%/g, file.name);
|
1054 |
xhr.error_message_header = xhr.error_message_header.replace(/%filepath%/g, file.name);
|
languages/wordpress-file-upload-fr_FR.mo
ADDED
Binary file
|
languages/wordpress-file-upload-fr_FR.po
ADDED
@@ -0,0 +1,556 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Wordpress File Upload\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-02-22 22:06+0200\n"
|
6 |
+
"PO-Revision-Date: 2014-02-22 22:07+0200\n"
|
7 |
+
"Last-Translator: nickboss <nickboss@iptanus.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: fr_FR\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: __;gettext;gettext_noop\n"
|
14 |
+
"X-Poedit-Basepath: ../\n"
|
15 |
+
"X-Generator: Poedit 1.6.3\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
|
18 |
+
#: lib/wfu_constants.php:7
|
19 |
+
msgid "Upload files"
|
20 |
+
msgstr "Envoyer des fichiers"
|
21 |
+
|
22 |
+
#: lib/wfu_constants.php:8
|
23 |
+
msgid "Select File"
|
24 |
+
msgstr "Sélectionner un fichier"
|
25 |
+
|
26 |
+
#: lib/wfu_constants.php:9
|
27 |
+
msgid "Upload File"
|
28 |
+
msgstr "Envoyer de fichier"
|
29 |
+
|
30 |
+
#: lib/wfu_constants.php:24
|
31 |
+
msgid "File Upload Notification"
|
32 |
+
msgstr "Notification d'envoi de fichier"
|
33 |
+
|
34 |
+
#: lib/wfu_constants.php:25
|
35 |
+
msgid ""
|
36 |
+
"Dear Recipient,%n%%n% This is an automatic delivery message to notify you "
|
37 |
+
"that a new file has been uploaded.%n%%n%Best Regards"
|
38 |
+
msgstr ""
|
39 |
+
"Cher Destinataire,%n%%n% Ceci est un message envoyé automatiquement pour "
|
40 |
+
"vous prevenir qu'un nouveau fichier a été uploadé. %n%%n%Cordialement"
|
41 |
+
|
42 |
+
#: lib/wfu_constants.php:31
|
43 |
+
#, fuzzy, php-format
|
44 |
+
msgid "File %filename% uploaded successfully"
|
45 |
+
msgstr "Le fichier %filename% a été correctement envoyé"
|
46 |
+
|
47 |
+
#: lib/wfu_constants.php:32
|
48 |
+
#, fuzzy, php-format
|
49 |
+
msgid "File %filename% uploaded successfully but with warnings"
|
50 |
+
msgstr ""
|
51 |
+
"Le fichier %filename% a été envoyé avec succès mais avec des avertissements"
|
52 |
+
|
53 |
+
#: lib/wfu_constants.php:33
|
54 |
+
msgid "File %filename% not uploaded"
|
55 |
+
msgstr "Le fichier %filename% n'a pas été envoyé"
|
56 |
+
|
57 |
+
#: lib/wfu_constants.php:34
|
58 |
+
msgid "File %filename% is being uploaded"
|
59 |
+
msgstr "Le fichier %filename% est en cours d'envoi"
|
60 |
+
|
61 |
+
#: lib/wfu_constants.php:51
|
62 |
+
msgid "Your message"
|
63 |
+
msgstr "Votre message"
|
64 |
+
|
65 |
+
#: lib/wfu_constants.php:55
|
66 |
+
msgid ""
|
67 |
+
"Error. Could not resolve ftp target filedir. Check the domain in 'ftpinfo' "
|
68 |
+
"attribute."
|
69 |
+
msgstr ""
|
70 |
+
"Erreur. Impossible d'atteindre le repertoire ftp de destination. Vérifier le "
|
71 |
+
"domaine dans l'attribut 'ftpinfo'."
|
72 |
+
|
73 |
+
#: lib/wfu_constants.php:56
|
74 |
+
msgid "Error. Invalid ftp information. Check 'ftpinfo' attribute."
|
75 |
+
msgstr ""
|
76 |
+
"Erreur. Les informations de ftp sont invalides. Vérifier le domaine dans "
|
77 |
+
"l'attribut 'ftpinfo'."
|
78 |
+
|
79 |
+
#: lib/wfu_constants.php:57
|
80 |
+
msgid ""
|
81 |
+
"Error. Could not extract ftp information from 'ftpinfo' attribute. Check its "
|
82 |
+
"syntax."
|
83 |
+
msgstr ""
|
84 |
+
"Erreur. Impossible d'obtenir les informations dans l'attribut 'ftpinfo'. "
|
85 |
+
"Vérifez sa syntax."
|
86 |
+
|
87 |
+
#: lib/wfu_constants.php:58
|
88 |
+
msgid ""
|
89 |
+
"Error. Could not resolve ftp target filename. Check the domain in 'ftpinfo' "
|
90 |
+
"attribute."
|
91 |
+
msgstr ""
|
92 |
+
"Erreur. Impossible de résoudre le nom de fichier de destination ftp. "
|
93 |
+
"Vérifiez le domaine dans l'attribut 'ftpinfo'."
|
94 |
+
|
95 |
+
#: lib/wfu_constants.php:59
|
96 |
+
msgid ""
|
97 |
+
"Error. The upload size limit of PHP directive upload_max_filesize is "
|
98 |
+
"preventing the upload of big files.\n"
|
99 |
+
"PHP directive upload_max_filesize limit is: "
|
100 |
+
msgstr ""
|
101 |
+
"Erreur. La directive PHP de taille limite d'envoi de fichier "
|
102 |
+
"upload_max_filesize, empêche l'envoi de gros fichier.\n"
|
103 |
+
"La limite de la directive PHP upload_max_filesize est de :"
|
104 |
+
|
105 |
+
#: lib/wfu_constants.php:60
|
106 |
+
msgid ""
|
107 |
+
"The upload time limit of PHP directive max_input_time is preventing the "
|
108 |
+
"upload of big files.\n"
|
109 |
+
"PHP directive max_input_time limit is: "
|
110 |
+
msgstr ""
|
111 |
+
"La limite de temps d'envoi de la directive PHP max_input_time, empêche "
|
112 |
+
"l'envoi de gros fichier.\n"
|
113 |
+
"La limite de la directive PHP max_input_time est de :"
|
114 |
+
|
115 |
+
#: lib/wfu_constants.php:61
|
116 |
+
msgid ""
|
117 |
+
"Error. Permission denied to write to target folder.\n"
|
118 |
+
"Check and correct read/write permissions of target folder."
|
119 |
+
msgstr ""
|
120 |
+
"Erreur. La premission d'écrire dans le repertoire de destination.\n"
|
121 |
+
"Vérifiez et corrigez les permission en lecture/ecriture du repertoire de "
|
122 |
+
"destination."
|
123 |
+
|
124 |
+
#: lib/wfu_constants.php:62
|
125 |
+
msgid "Targer folder doesn't exist."
|
126 |
+
msgstr "Le répertoire de destination n'existe pas."
|
127 |
+
|
128 |
+
#: lib/wfu_constants.php:63
|
129 |
+
msgid "Upload failed! Missing a temporary folder."
|
130 |
+
msgstr "Envoi impossible! Il manque un répertoire temporaire."
|
131 |
+
|
132 |
+
#: lib/wfu_constants.php:64
|
133 |
+
msgid "Upload failed! Permission denied to write to target folder."
|
134 |
+
msgstr ""
|
135 |
+
"Envoi impossible! Permission refusée dans le répertoire de destination."
|
136 |
+
|
137 |
+
#: lib/wfu_constants.php:65
|
138 |
+
msgid "File not allowed."
|
139 |
+
msgstr "Type de fichier non autorisé."
|
140 |
+
|
141 |
+
#: lib/wfu_constants.php:66
|
142 |
+
msgid "The uploaded file exceeds the file size limit."
|
143 |
+
msgstr "La taille du fichier est supérieure à la taille limite."
|
144 |
+
|
145 |
+
#: lib/wfu_constants.php:67
|
146 |
+
msgid ""
|
147 |
+
"Upload failed! The uploaded file exceeds the file size limit of the server. "
|
148 |
+
"Please contact the administrator."
|
149 |
+
msgstr ""
|
150 |
+
"Envoi impossible! La taille du fichier excède la taille limite du serveur. "
|
151 |
+
"Merci de contacter l'administrateur."
|
152 |
+
|
153 |
+
#: lib/wfu_constants.php:68
|
154 |
+
msgid ""
|
155 |
+
"Upload failed! The duration of the upload exceeded the time limit of the "
|
156 |
+
"server. Please contact the administrator."
|
157 |
+
msgstr ""
|
158 |
+
"Envoi impossible! La durée maximum d'envoi sur le serveur excède la durée "
|
159 |
+
"limite du serveur. Merci de contacter l'administrateur."
|
160 |
+
|
161 |
+
#: lib/wfu_constants.php:69
|
162 |
+
msgid ""
|
163 |
+
"Upload failed! The uploaded file exceeds the MAX_FILE_SIZE directive that "
|
164 |
+
"was specified in the HTML form."
|
165 |
+
msgstr ""
|
166 |
+
"Envoi impossible! La taille du fichier excède la directive MAX_FILE_SIZE "
|
167 |
+
"spécifiée dans le formulaire HTML."
|
168 |
+
|
169 |
+
#: lib/wfu_constants.php:70
|
170 |
+
msgid "Upload failed! The uploaded file was only partially uploaded."
|
171 |
+
msgstr "Envoi impossible! Le fichier à été partiellement envoyé."
|
172 |
+
|
173 |
+
#: lib/wfu_constants.php:71
|
174 |
+
msgid "Upload failed! No file was uploaded."
|
175 |
+
msgstr "Envoi impossible! Le fichier n'a pas été envoyé."
|
176 |
+
|
177 |
+
#: lib/wfu_constants.php:72
|
178 |
+
msgid "Upload failed! Failed to write file to disk."
|
179 |
+
msgstr "Envoi impossible! Impossible d'écrire sur le fichier sur le disque."
|
180 |
+
|
181 |
+
#: lib/wfu_constants.php:73
|
182 |
+
msgid ""
|
183 |
+
"Upload failed! Error occured while moving temporary file. Please contact "
|
184 |
+
"administrator."
|
185 |
+
msgstr ""
|
186 |
+
"Envoi impossible! Une erreur est survenue lors du déplacement du fichier "
|
187 |
+
"temporaire. merci de contacter l'administrateur."
|
188 |
+
|
189 |
+
#: lib/wfu_constants.php:74
|
190 |
+
msgid ""
|
191 |
+
"Upload failed! A PHP extension stopped the file upload. PHP does not provide "
|
192 |
+
"a way to ascertain which extension caused the file upload to stop; examining "
|
193 |
+
"the list of loaded extensions with phpinfo() may help."
|
194 |
+
msgstr ""
|
195 |
+
"Envoi impossible! Une extension PHP a arrété l'envoi du fichier. PHP ne peut "
|
196 |
+
"pas fournir avec certitude quelle extension est en cause; examiner la liste "
|
197 |
+
"des extensions chargées avec phpinfo() peut être nécessaire."
|
198 |
+
|
199 |
+
#: lib/wfu_constants.php:75
|
200 |
+
msgid "Upload failed! Error occured while attemting to upload the file."
|
201 |
+
msgstr ""
|
202 |
+
"Envoi impossible! Une erreur est survenue pendant la tentative d'envoi du "
|
203 |
+
"fichier."
|
204 |
+
|
205 |
+
#: lib/wfu_constants.php:76
|
206 |
+
msgid "Upload failed!"
|
207 |
+
msgstr "Envoi impossible!"
|
208 |
+
|
209 |
+
#: lib/wfu_constants.php:77
|
210 |
+
msgid "No file!"
|
211 |
+
msgstr "Pas de fichier!"
|
212 |
+
|
213 |
+
#: lib/wfu_constants.php:78
|
214 |
+
msgid ""
|
215 |
+
"Upload failed! The upload has been canceled by the user or the browser "
|
216 |
+
"dropped the connection."
|
217 |
+
msgstr ""
|
218 |
+
"Envoi impossible! L'envoi a été annulé par l'utilisateur ou le navigateur à "
|
219 |
+
"cassé la connexion."
|
220 |
+
|
221 |
+
#: lib/wfu_constants.php:79
|
222 |
+
msgid "Upload failed! Unknown error."
|
223 |
+
msgstr "Envoi impossible! Erreur inconnue."
|
224 |
+
|
225 |
+
#: lib/wfu_constants.php:80
|
226 |
+
msgid "Please contact the administrator."
|
227 |
+
msgstr "Merci de contacter l'administrateur."
|
228 |
+
|
229 |
+
#: lib/wfu_constants.php:81
|
230 |
+
msgid "No result from remote server!"
|
231 |
+
msgstr "Pas de résultat du serveur distant!"
|
232 |
+
|
233 |
+
#: lib/wfu_constants.php:82
|
234 |
+
msgid " but with warnings"
|
235 |
+
msgstr "mais avec des avertissements"
|
236 |
+
|
237 |
+
#: lib/wfu_constants.php:83 lib/wfu_constants.php:85
|
238 |
+
msgid "Warning: JSON parse error."
|
239 |
+
msgstr "Attention: Erreur d'analyse JSON"
|
240 |
+
|
241 |
+
#: lib/wfu_constants.php:84
|
242 |
+
msgid ""
|
243 |
+
"Upload parameters of this file, passed as JSON string to the handler, could "
|
244 |
+
"not be parsed."
|
245 |
+
msgstr ""
|
246 |
+
"Les paramètres d'envoi de ce fichier, passés en tant que chaine JSON, ne "
|
247 |
+
"peuvent pas être analysés."
|
248 |
+
|
249 |
+
#: lib/wfu_constants.php:86
|
250 |
+
msgid ""
|
251 |
+
"UploadStates, passed as JSON string to the handler, could not be parsed."
|
252 |
+
msgstr "UploadStates, passé en tant que chaine JSON, ne peut pas être analysé."
|
253 |
+
|
254 |
+
#: lib/wfu_constants.php:87
|
255 |
+
msgid ""
|
256 |
+
"Redirection to classic form functionality occurred due to unknown error."
|
257 |
+
msgstr ""
|
258 |
+
"La redirection vers la fonctionalité classique des formulaire s'est produit "
|
259 |
+
"à cause d'une erreur inconue."
|
260 |
+
|
261 |
+
#: lib/wfu_constants.php:88
|
262 |
+
msgid ""
|
263 |
+
"Redirection to classic form functionality occurred because AJAX is not "
|
264 |
+
"supported."
|
265 |
+
msgstr ""
|
266 |
+
"La redirection vers la fonctionalité classique des formulaire s'est produit "
|
267 |
+
"car AJAX n'est pas supporté."
|
268 |
+
|
269 |
+
#: lib/wfu_constants.php:89
|
270 |
+
msgid ""
|
271 |
+
"Redirection to classic form functionality occurred because HTML5 is not "
|
272 |
+
"supported."
|
273 |
+
msgstr ""
|
274 |
+
"La redirection vers la fonctionalité classique des formulaire s'est produit "
|
275 |
+
"car HTML5 n'est pas supporté."
|
276 |
+
|
277 |
+
#: lib/wfu_constants.php:90
|
278 |
+
msgid ""
|
279 |
+
"Redirection to classic form functionality occurred due to JSON parse error."
|
280 |
+
msgstr ""
|
281 |
+
"La redirection vers la fonctionalité classique des formulaire s'est produit "
|
282 |
+
"à cause d'une erreur d'analyse JSON."
|
283 |
+
|
284 |
+
#: lib/wfu_constants.php:91
|
285 |
+
msgid "cannot be empty!"
|
286 |
+
msgstr "ne peut pas être vide!"
|
287 |
+
|
288 |
+
#: lib/wfu_constants.php:94
|
289 |
+
msgid "Upload skipped! File already exists."
|
290 |
+
msgstr "Envoi passé! Le fichier existe déjà."
|
291 |
+
|
292 |
+
#: lib/wfu_constants.php:95
|
293 |
+
msgid "No files have been selected!"
|
294 |
+
msgstr "Aucun fichier n'a été envoyés!"
|
295 |
+
|
296 |
+
#: lib/wfu_constants.php:96
|
297 |
+
msgid "WPFilebase Plugin not updated because there were no files uploaded."
|
298 |
+
msgstr ""
|
299 |
+
"WPFilebase Plugin n'a pas été mis à jour car il n'y a pas de fichiers à "
|
300 |
+
"envoyer."
|
301 |
+
|
302 |
+
#: lib/wfu_constants.php:97
|
303 |
+
msgid "Notification email was not sent because there were no files uploaded."
|
304 |
+
msgstr ""
|
305 |
+
"Le mail de notification n'a pas été envoyé car il n'y a pas de fichiers à "
|
306 |
+
"envoyer."
|
307 |
+
|
308 |
+
#: lib/wfu_constants.php:98
|
309 |
+
msgid ""
|
310 |
+
"Notification email was not sent because no recipients were defined. Please "
|
311 |
+
"check notifyrecipients attribute in the shortcode."
|
312 |
+
msgstr ""
|
313 |
+
"Le mail de notification n'a pas été envoyé car il n'y a pas de destinataire. "
|
314 |
+
"Merci de vérifier l'attribut notifyrecipients dans le shortcode."
|
315 |
+
|
316 |
+
#: lib/wfu_constants.php:99
|
317 |
+
msgid ""
|
318 |
+
"Notification email was not sent due to an error. Please check "
|
319 |
+
"notifyrecipients, notifysubject and notifymessage attributes for errors."
|
320 |
+
msgstr ""
|
321 |
+
"Le mail de notification n'a pas été envoyé car il n'y a une erreur. Merci de "
|
322 |
+
"vérifier les attributs notifyrecipients, notifysubject et notifymessage."
|
323 |
+
|
324 |
+
#: lib/wfu_constants.php:100
|
325 |
+
msgid ""
|
326 |
+
"Redirection not executed because redirection link is empty. Please check "
|
327 |
+
"redirectlink attribute."
|
328 |
+
msgstr ""
|
329 |
+
"La redirection n'a pas été effectuée car le lien de redirection est vide. "
|
330 |
+
"Merci de vérifier l'attribut redirectlink."
|
331 |
+
|
332 |
+
#: lib/wfu_constants.php:101
|
333 |
+
msgid ""
|
334 |
+
"Redirection not executed because not all files were successfully uploaded."
|
335 |
+
msgstr ""
|
336 |
+
"La redirection n'est pas éxécuté car tous les fichiers n'ont pas été envoyés."
|
337 |
+
|
338 |
+
#: lib/wfu_constants.php:104
|
339 |
+
msgid "Test Mode"
|
340 |
+
msgstr "Mode de test"
|
341 |
+
|
342 |
+
#: lib/wfu_constants.php:105
|
343 |
+
msgid "Upload path: %filepath%"
|
344 |
+
msgstr "Chemin d'Upload : %filepath%"
|
345 |
+
|
346 |
+
#: lib/wfu_constants.php:106
|
347 |
+
msgid "Failed upload path: %filepath%"
|
348 |
+
msgstr "Mauvais répertoir d'envoi: %filepath%"
|
349 |
+
|
350 |
+
#: lib/wfu_constants.php:109
|
351 |
+
msgid "This is a test message"
|
352 |
+
msgstr "Ceci est un message de test"
|
353 |
+
|
354 |
+
#: lib/wfu_constants.php:110
|
355 |
+
msgid "This is a test administrator message"
|
356 |
+
msgstr "Ceci est un message administrateur de test"
|
357 |
+
|
358 |
+
#: lib/wfu_constants.php:111
|
359 |
+
msgid "File testfile 1 under test"
|
360 |
+
msgstr "File testfile 1 under test"
|
361 |
+
|
362 |
+
#: lib/wfu_constants.php:112
|
363 |
+
msgid "File testfile 1 message"
|
364 |
+
msgstr "File testfile 1 message"
|
365 |
+
|
366 |
+
#: lib/wfu_constants.php:113
|
367 |
+
msgid "File testfile 1 administrator message"
|
368 |
+
msgstr "Message administrateur File testfile"
|
369 |
+
|
370 |
+
#: lib/wfu_constants.php:114
|
371 |
+
msgid "File testfile 2 under test"
|
372 |
+
msgstr "En test File testfile"
|
373 |
+
|
374 |
+
#: lib/wfu_constants.php:115
|
375 |
+
msgid "File testfile 2 message"
|
376 |
+
msgstr "Message File testfile 2"
|
377 |
+
|
378 |
+
#: lib/wfu_constants.php:116
|
379 |
+
msgid "File testfile 2 administrator message"
|
380 |
+
msgstr "Message administrateur File testfile 2"
|
381 |
+
|
382 |
+
#: lib/wfu_constants.php:119
|
383 |
+
msgid ""
|
384 |
+
"Insert variable %username% inside text. It will be replaced by the username "
|
385 |
+
"of the current user."
|
386 |
+
msgstr ""
|
387 |
+
"Insérez la variable %username% dans le texte. Il sera remplacé par le "
|
388 |
+
"username de l'utilisateur courant."
|
389 |
+
|
390 |
+
#: lib/wfu_constants.php:120
|
391 |
+
msgid ""
|
392 |
+
"Insert variable %useremail% inside text. It will be replaced by the email of "
|
393 |
+
"the current user."
|
394 |
+
msgstr ""
|
395 |
+
"Insérez la variable %useremail% dans le texte. Il sera remplacé par l'email "
|
396 |
+
"de l'utilisateur courant."
|
397 |
+
|
398 |
+
#: lib/wfu_constants.php:121
|
399 |
+
msgid ""
|
400 |
+
"Insert variable %filename% inside text. It will be replaced by the filename "
|
401 |
+
"of the uploaded file."
|
402 |
+
msgstr ""
|
403 |
+
"Insérez la variable %filename% dans le texte. Il sera remplacé par le nom du "
|
404 |
+
"fichier à envoyer."
|
405 |
+
|
406 |
+
#: lib/wfu_constants.php:122
|
407 |
+
msgid ""
|
408 |
+
"Insert variable %filepath% inside text. It will be replaced by the full "
|
409 |
+
"filepath of the uploaded file."
|
410 |
+
msgstr ""
|
411 |
+
"Insérez la variable %filepath% dans le texte. Il sera remplacé par le chemin "
|
412 |
+
"complet du fichier envoyé."
|
413 |
+
|
414 |
+
#: lib/wfu_constants.php:123
|
415 |
+
msgid ""
|
416 |
+
"Insert variable %blogid% inside text. It will be replaced by the blog id of "
|
417 |
+
"the website."
|
418 |
+
msgstr ""
|
419 |
+
"Insérez la variable %blogid% dans le texte. Il sera remplacé par l'id du "
|
420 |
+
"blog du site web."
|
421 |
+
|
422 |
+
#: lib/wfu_constants.php:124
|
423 |
+
msgid ""
|
424 |
+
"Insert variable %userdataXXX% inside text. Select the user field from the "
|
425 |
+
"drop-down list. It will be replaced by the value that the user entered in "
|
426 |
+
"this field."
|
427 |
+
msgstr ""
|
428 |
+
"Insérez la variable %userdataXXX% dans le texte. Sélectionnez le champ de "
|
429 |
+
"l'utilisateur dans la liste déroulante. Il sera remplacé par la valeur que "
|
430 |
+
"l'utilisateur aura entré dans ce champs."
|
431 |
+
|
432 |
+
#: lib/wfu_constants.php:125
|
433 |
+
msgid "Insert variable %n% inside text to denote a line change."
|
434 |
+
msgstr ""
|
435 |
+
"Insérez la variable %n% à l'intérieur du texte pour indiquer un changement "
|
436 |
+
"de ligne."
|
437 |
+
|
438 |
+
#: lib/wfu_constants.php:128
|
439 |
+
msgid "Upload in progress"
|
440 |
+
msgstr "Envoi en cours"
|
441 |
+
|
442 |
+
#: lib/wfu_constants.php:129
|
443 |
+
msgid "Upload in progress with warnings!"
|
444 |
+
msgstr "Envoi en cours mais avec des avertissements!"
|
445 |
+
|
446 |
+
#: lib/wfu_constants.php:130
|
447 |
+
msgid "Upload in progress but some files already failed!"
|
448 |
+
msgstr "Envoi en cours mais certains fichiers ont échoués!"
|
449 |
+
|
450 |
+
#: lib/wfu_constants.php:131
|
451 |
+
msgid "Upload in progress but no files uploaded so far!"
|
452 |
+
msgstr "Envoi en cours mais aucun fichiers n'a été envoyé pour le moment!"
|
453 |
+
|
454 |
+
#: lib/wfu_constants.php:132
|
455 |
+
msgid "All files uploaded successfully"
|
456 |
+
msgstr "Tous les fichiers ont été envoyés avec succès"
|
457 |
+
|
458 |
+
#: lib/wfu_constants.php:133
|
459 |
+
msgid "All files uploaded successfully but there are warnings!"
|
460 |
+
msgstr ""
|
461 |
+
"Tous les fichiers ont été envoyer avec succès mais avec des avertissements!"
|
462 |
+
|
463 |
+
#: lib/wfu_constants.php:134
|
464 |
+
msgid "File uploaded successfully but there are warnings!"
|
465 |
+
msgstr "Fichiers envoyés avec succès mais certain avec un avertissement."
|
466 |
+
|
467 |
+
#: lib/wfu_constants.php:135
|
468 |
+
msgid "Some files failed to upload!"
|
469 |
+
msgstr "Certains fichiers n'ont pas été envoyé"
|
470 |
+
|
471 |
+
#: lib/wfu_constants.php:136
|
472 |
+
msgid "All files failed to upload"
|
473 |
+
msgstr "Impossible d'envoyer les fichiers"
|
474 |
+
|
475 |
+
#: lib/wfu_constants.php:137
|
476 |
+
msgid "File failed to upload"
|
477 |
+
msgstr "Impossible d'envoyer le fichier"
|
478 |
+
|
479 |
+
#: lib/wfu_constants.php:138
|
480 |
+
msgid "There are no files to upload!"
|
481 |
+
msgstr "Il n'y a pas de fichiers à envoyer"
|
482 |
+
|
483 |
+
#: lib/wfu_constants.php:139
|
484 |
+
msgid "Test upload message"
|
485 |
+
msgstr "Message de test d'upload"
|
486 |
+
|
487 |
+
#: lib/wfu_constants.php:140
|
488 |
+
msgid "JSON parse warning!"
|
489 |
+
msgstr "Avertisements d'analyse JSON."
|
490 |
+
|
491 |
+
#: lib/wfu_constants.php:141
|
492 |
+
msgid "please wait while redirecting..."
|
493 |
+
msgstr "merci de patienter pendans la redirection..."
|
494 |
+
|
495 |
+
#~ msgid "Upload File/Upload Files"
|
496 |
+
#~ msgstr "Envoyer le fichier/Envoyer les fichiers"
|
497 |
+
|
498 |
+
#~ msgid "Please fill in the above words: "
|
499 |
+
#~ msgstr "Merci de remplir dans les mots ci-dessus:"
|
500 |
+
|
501 |
+
#~ msgid "Bad captcha image!"
|
502 |
+
#~ msgstr "Mauvaise image de captcha!"
|
503 |
+
|
504 |
+
#~ msgid "No input!"
|
505 |
+
#~ msgstr "Aucune entrée!"
|
506 |
+
|
507 |
+
#~ msgid "Wrong captcha!"
|
508 |
+
#~ msgstr "Mauvaise captcha!"
|
509 |
+
|
510 |
+
#~ msgid "Error refreshing captcha!"
|
511 |
+
#~ msgstr "Erreur rafraîchissant captcha!"
|
512 |
+
|
513 |
+
#~ msgid "Unknown captcha error!"
|
514 |
+
#~ msgstr "Captcha erreur inconnue!"
|
515 |
+
|
516 |
+
#~ msgid "Captcha not supported by your browser!"
|
517 |
+
#~ msgstr "Captcha n'a pas supporté par votre navigateur!"
|
518 |
+
|
519 |
+
#~ msgid "Please do not use drag drop due to an internal problem."
|
520 |
+
#~ msgstr "Ne pas utiliser un glisser-déposer à cause d'un problème interne."
|
521 |
+
|
522 |
+
#~ msgid "Error during chunked upload. Unique ID empty in chunk %d"
|
523 |
+
#~ msgstr ""
|
524 |
+
#~ "Erreur pendant l'envoi de ficher en blocs. Unique ID vide en bloc %d"
|
525 |
+
|
526 |
+
#~ msgid "Chunked upload is not allowed!"
|
527 |
+
#~ msgstr "Envoi des fichers en blocs n'est pas autorisé!"
|
528 |
+
|
529 |
+
#~ msgid "Chunked upload aborted due to error in previous chunk!"
|
530 |
+
#~ msgstr ""
|
531 |
+
#~ "Envoi de ficher en blocs interrompu suite à une erreur dans bloc "
|
532 |
+
#~ "précédent!"
|
533 |
+
|
534 |
+
#~ msgid "Could not write file chuck to destination on chunk %d"
|
535 |
+
#~ msgstr "Impossible d'écrire le bloc de fichier a destination sur bloc %d"
|
536 |
+
|
537 |
+
#~ msgid "Could not enlarge destination file on chunk %d"
|
538 |
+
#~ msgstr "Impossible agrandir fichier de destination sur bloc %d"
|
539 |
+
|
540 |
+
#~ msgid "Could not open file handles on chunk %d"
|
541 |
+
#~ msgstr "Impossible d'ouvrir le fichier handles sur bloc %d"
|
542 |
+
|
543 |
+
#~ msgid "checking captcha..."
|
544 |
+
#~ msgstr "vérifier captcha..."
|
545 |
+
|
546 |
+
#~ msgid "refreshing..."
|
547 |
+
#~ msgstr "rafraîchissant..."
|
548 |
+
|
549 |
+
#~ msgid "correct captcha"
|
550 |
+
#~ msgstr "exact captcha"
|
551 |
+
|
552 |
+
#~ msgid "Clear file list?"
|
553 |
+
#~ msgstr "Effacer la liste des fichiers?"
|
554 |
+
|
555 |
+
#~ msgid "DROP HERE"
|
556 |
+
#~ msgstr "DEPOSER ICI"
|
lib/wfu_admin.php
CHANGED
@@ -230,6 +230,7 @@ function wfu_shortcode_composer() {
|
|
230 |
$echo_str .= $dlp.'<tr class="form-field">';
|
231 |
$echo_str .= $dlp."\t".'<th scope="row"><div class="wfu_td_div">';
|
232 |
if ( $def['parent'] == "" ) $echo_str .= $dlp."\t\t".'<div class="wfu_shadow wfu_shadow_'.$governor['attribute'].$governor['inv'].'" style="display:'.( $governor['active'] ? 'none' : 'block' ).';"></div>';
|
|
|
233 |
$echo_str .= $dlp."\t\t".'<label for="wfu_attribute_'.$attr.'">'.$def['name'].'</label>';
|
234 |
$echo_str .= $dlp."\t\t".'<div class="wfu_help_container" title="'.$def['help'].'"><img src="'.WFU_IMAGE_ADMIN_HELP.'" ></div>';
|
235 |
$echo_str .= $dlp."\t".'</div></th>';
|
@@ -357,7 +358,7 @@ function wfu_shortcode_composer() {
|
|
357 |
if ( $field_raw != "" ) array_push($fields, array( "name" => $field_raw, "required" => $is_req ));
|
358 |
}
|
359 |
if ( count($fields) == 0 ) array_push($fields, array( "name" => "", "required" => false ));
|
360 |
-
$echo_str .= $dlp."\t\t".'<div class="wfu_userdata_container">';
|
361 |
foreach ( $fields as $field ) {
|
362 |
$echo_str .= $dlp."\t\t\t".'<div class="wfu_userdata_line">';
|
363 |
$echo_str .= $dlp."\t\t\t\t".'<input type="text" name="wfu_userfield_elements" value="'.$field['name'].'" />';
|
@@ -375,6 +376,9 @@ function wfu_shortcode_composer() {
|
|
375 |
elseif ( $def['type'] == "color-triplet" ) {
|
376 |
$triplet = explode(",", $def['value']);
|
377 |
foreach ( $triplet as $key => $item ) $triplet[$key] = trim($item);
|
|
|
|
|
|
|
378 |
$echo_str .= $dlp."\t\t".'<div class="wfu_color_container"><label style="display:inline-block; width:120px; margin-top:-16px;">Text Color</label><input id="wfu_attribute_'.$attr.'_color" type="text" class="wfu_color_field" name="wfu_triplecolor_elements" value="'.$triplet[0].'" /></div>';
|
379 |
$echo_str .= $dlp."\t\t".'<div class="wfu_color_container"><label style="display:inline-block; width:120px; margin-top:-16px;">Background Color</label><input id="wfu_attribute_'.$attr.'_bgcolor" type="text" class="wfu_color_field" name="wfu_triplecolor_elements" value="'.$triplet[1].'" /></div>';
|
380 |
$echo_str .= $dlp."\t\t".'<div class="wfu_color_container"><label style="display:inline-block; width:120px; margin-top:-16px;">Border Color</label><input id="wfu_attribute_'.$attr.'_borcolor" type="text" class="wfu_color_field" name="wfu_triplecolor_elements" value="'.$triplet[2].'" /></div>';
|
230 |
$echo_str .= $dlp.'<tr class="form-field">';
|
231 |
$echo_str .= $dlp."\t".'<th scope="row"><div class="wfu_td_div">';
|
232 |
if ( $def['parent'] == "" ) $echo_str .= $dlp."\t\t".'<div class="wfu_shadow wfu_shadow_'.$governor['attribute'].$governor['inv'].'" style="display:'.( $governor['active'] ? 'none' : 'block' ).';"></div>';
|
233 |
+
$echo_str .= $dlp."\t\t".'<div class="wfu_restore_container" title="Double-click to restore defaults setting"><img src="'.WFU_IMAGE_ADMIN_RESTOREDEFAULT.'" ondblclick="wfu_apply_value(\''.$attr.'\', \''.$def['type'].'\', \''.$def['default'].'\');" ></div>';
|
234 |
$echo_str .= $dlp."\t\t".'<label for="wfu_attribute_'.$attr.'">'.$def['name'].'</label>';
|
235 |
$echo_str .= $dlp."\t\t".'<div class="wfu_help_container" title="'.$def['help'].'"><img src="'.WFU_IMAGE_ADMIN_HELP.'" ></div>';
|
236 |
$echo_str .= $dlp."\t".'</div></th>';
|
358 |
if ( $field_raw != "" ) array_push($fields, array( "name" => $field_raw, "required" => $is_req ));
|
359 |
}
|
360 |
if ( count($fields) == 0 ) array_push($fields, array( "name" => "", "required" => false ));
|
361 |
+
$echo_str .= $dlp."\t\t".'<div id="wfu_attribute_'.$attr.'" class="wfu_userdata_container">';
|
362 |
foreach ( $fields as $field ) {
|
363 |
$echo_str .= $dlp."\t\t\t".'<div class="wfu_userdata_line">';
|
364 |
$echo_str .= $dlp."\t\t\t\t".'<input type="text" name="wfu_userfield_elements" value="'.$field['name'].'" />';
|
376 |
elseif ( $def['type'] == "color-triplet" ) {
|
377 |
$triplet = explode(",", $def['value']);
|
378 |
foreach ( $triplet as $key => $item ) $triplet[$key] = trim($item);
|
379 |
+
if ( count($triplet) == 2 ) $triplet = array( $triplet[0], $triplet[1], "#000000");
|
380 |
+
elseif ( count($triplet) == 1 ) $triplet = array( $triplet[0], "#FFFFFF", "#000000");
|
381 |
+
elseif ( count($triplet) < 3 ) $triplet = array( "#000000", "#FFFFFF", "#000000");
|
382 |
$echo_str .= $dlp."\t\t".'<div class="wfu_color_container"><label style="display:inline-block; width:120px; margin-top:-16px;">Text Color</label><input id="wfu_attribute_'.$attr.'_color" type="text" class="wfu_color_field" name="wfu_triplecolor_elements" value="'.$triplet[0].'" /></div>';
|
383 |
$echo_str .= $dlp."\t\t".'<div class="wfu_color_container"><label style="display:inline-block; width:120px; margin-top:-16px;">Background Color</label><input id="wfu_attribute_'.$attr.'_bgcolor" type="text" class="wfu_color_field" name="wfu_triplecolor_elements" value="'.$triplet[1].'" /></div>';
|
384 |
$echo_str .= $dlp."\t\t".'<div class="wfu_color_container"><label style="display:inline-block; width:120px; margin-top:-16px;">Border Color</label><input id="wfu_attribute_'.$attr.'_borcolor" type="text" class="wfu_color_field" name="wfu_triplecolor_elements" value="'.$triplet[2].'" /></div>';
|
lib/wfu_constants.php
CHANGED
@@ -30,7 +30,7 @@ DEFINE("WFU_REDIRECTLINK", "");
|
|
30 |
DEFINE("WFU_ADMINMESSAGES", "false");
|
31 |
DEFINE("WFU_SUCCESSMESSAGE", __('File %filename% uploaded successfully', 'wordpress-file-upload'));
|
32 |
DEFINE("WFU_WARNINGMESSAGE", __('File %filename% uploaded successfully but with warnings', 'wordpress-file-upload'));
|
33 |
-
DEFINE("WFU_ERRORMESSAGE", __('File %filename% not uploaded', 'wordpress-file-upload'));
|
34 |
DEFINE("WFU_WAITMESSAGE", __('File %filename% is being uploaded', 'wordpress-file-upload'));
|
35 |
DEFINE("WFU_SUCCESSMESSAGECOLOR", "green");
|
36 |
DEFINE("WFU_SUCCESSMESSAGECOLORS", "#006600,#EEFFEE,#006666");
|
@@ -161,6 +161,7 @@ DEFINE("WFU_HEADERMESSAGECOLORS_STATE11", "#666666,#EEEEEE,#333333");
|
|
161 |
|
162 |
//define images
|
163 |
DEFINE("WFU_IMAGE_ADMIN_HELP", $siteurl.WPFILEUPLOAD_DIR.'images/help_16.png');
|
|
|
164 |
DEFINE("WFU_IMAGE_ADMIN_USERDATA_ADD", $siteurl.WPFILEUPLOAD_DIR.'images/add_12.png');
|
165 |
DEFINE("WFU_IMAGE_ADMIN_USERDATA_REMOVE", $siteurl.WPFILEUPLOAD_DIR.'images/remove_12.png');
|
166 |
DEFINE("WFU_IMAGE_SIMPLE_PROGBAR", $siteurl.WPFILEUPLOAD_DIR.'images/progbar.gif');
|
30 |
DEFINE("WFU_ADMINMESSAGES", "false");
|
31 |
DEFINE("WFU_SUCCESSMESSAGE", __('File %filename% uploaded successfully', 'wordpress-file-upload'));
|
32 |
DEFINE("WFU_WARNINGMESSAGE", __('File %filename% uploaded successfully but with warnings', 'wordpress-file-upload'));
|
33 |
+
DEFINE("WFU_ERRORMESSAGE", __('File %filename% not uploaded', 'wordpress-file-upload'));
|
34 |
DEFINE("WFU_WAITMESSAGE", __('File %filename% is being uploaded', 'wordpress-file-upload'));
|
35 |
DEFINE("WFU_SUCCESSMESSAGECOLOR", "green");
|
36 |
DEFINE("WFU_SUCCESSMESSAGECOLORS", "#006600,#EEFFEE,#006666");
|
161 |
|
162 |
//define images
|
163 |
DEFINE("WFU_IMAGE_ADMIN_HELP", $siteurl.WPFILEUPLOAD_DIR.'images/help_16.png');
|
164 |
+
DEFINE("WFU_IMAGE_ADMIN_RESTOREDEFAULT", $siteurl.WPFILEUPLOAD_DIR.'images/restore_16.png');
|
165 |
DEFINE("WFU_IMAGE_ADMIN_USERDATA_ADD", $siteurl.WPFILEUPLOAD_DIR.'images/add_12.png');
|
166 |
DEFINE("WFU_IMAGE_ADMIN_USERDATA_REMOVE", $siteurl.WPFILEUPLOAD_DIR.'images/remove_12.png');
|
167 |
DEFINE("WFU_IMAGE_SIMPLE_PROGBAR", $siteurl.WPFILEUPLOAD_DIR.'images/progbar.gif');
|
lib/wfu_functions.php
CHANGED
@@ -25,6 +25,9 @@ function wfu_upload_plugin_wildcard_match($pattern, $str) {
|
|
25 |
}
|
26 |
|
27 |
function wfu_plugin_encode_string($string) {
|
|
|
|
|
|
|
28 |
$array = unpack('C*', $string);
|
29 |
$new_string = "";
|
30 |
for ($i = 1; $i <= count($array); $i ++) {
|
@@ -34,6 +37,8 @@ function wfu_plugin_encode_string($string) {
|
|
34 |
}
|
35 |
|
36 |
function wfu_plugin_decode_string($string) {
|
|
|
|
|
37 |
$new_string = "";
|
38 |
for ($i = 0; $i < strlen($string); $i += 2 ) {
|
39 |
$new_string .= sprintf("%c", hexdec(substr($string, $i ,2)));
|
25 |
}
|
26 |
|
27 |
function wfu_plugin_encode_string($string) {
|
28 |
+
$array = unpack('H*', $string);
|
29 |
+
return $array[1];
|
30 |
+
|
31 |
$array = unpack('C*', $string);
|
32 |
$new_string = "";
|
33 |
for ($i = 1; $i <= count($array); $i ++) {
|
37 |
}
|
38 |
|
39 |
function wfu_plugin_decode_string($string) {
|
40 |
+
return pack('H*', $string);
|
41 |
+
|
42 |
$new_string = "";
|
43 |
for ($i = 0; $i < strlen($string); $i += 2 ) {
|
44 |
$new_string .= sprintf("%c", hexdec(substr($string, $i ,2)));
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: nickboss
|
|
3 |
Donate link: http://www.iptanus.com/support/wordpress-file-upload
|
4 |
Tags: upload, upload file, upload files, multiple, multiple upload, multiple uploads, captcha, progress bar, form, ajax, directory, HTML5, filelist
|
5 |
Requires at least: 2.9.2
|
6 |
-
Tested up to: 3.8
|
7 |
Stable tag: "trunk"
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -26,7 +26,7 @@ The characteristics of the plugin are:
|
|
26 |
* You can have more than one instances of the shortcode in the same page.
|
27 |
* It includes a file browser.
|
28 |
* It includes an overall upload progress bar.
|
29 |
-
* It supports localization.
|
30 |
* It integrates with WP-Filebase.
|
31 |
* It is highly customizable with many options.
|
32 |
* It produces notification messages and e-mails.
|
@@ -101,6 +101,12 @@ The plugin is designed not to expose website information by using sessions. Para
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
= 2.2.3 =
|
105 |
* correction of bug that was freezing the Shortcode Composer in some cases
|
106 |
* correction of bug with successmessage attribute
|
@@ -263,6 +269,9 @@ Initial version.
|
|
263 |
|
264 |
== Upgrade Notice ==
|
265 |
|
|
|
|
|
|
|
266 |
= 2.2.3 =
|
267 |
Upgrade to address some minor bugs.
|
268 |
|
@@ -405,6 +414,7 @@ A detailed list of attributes, together with instructions is shown below:
|
|
405 |
* **redirectlink:** This attribute defines the url of the redirection page. Please use the prefix "http://" if the redirection page is in another domain, otherwise the server will assume that the url is relative to the server path.
|
406 |
|
407 |
*Other Administrator Options*
|
|
|
408 |
* **adminmessages:** This attribute offers the option to administrator users to receive additional information about upload errors. These messages will be visible only to administrators. Default value is "false".
|
409 |
* **forceclassic:** This attribute defines if the plugin will use the old classic functionality to upload files (using forms) or ajax functionality (supported in HTML5). Default value is "false". Please note that if your browser does not support HTML ajax functionality, then the plugin will automatically switch to classic one.
|
410 |
* **testmode:** This attribute defines if the plugin will be shown in test mode. Default value is "false". If it is set to "true", then the plugin will obtain a "dummy" functionality (it will not be able to upload files) and it will appear showing all of its objects (the selection of subfolders, progress bar, a test message), while the buttons will show a "Test Mode" message when pressed. This option can be used to configure the dimensions of the individual objects of the plugin more easily.
|
@@ -527,4 +537,4 @@ For the time being, the following variables are supported:
|
|
527 |
== Requirements ==
|
528 |
|
529 |
The plugin requires to have Javascript enabled in your browser. For Internet Explorer you also need to have Active-X enabled.
|
530 |
-
Please note that old desktop browsers or mobile browsers may not support all of the plugin's features. In order to get full functionality use the latest versions of browsers, supporting HTML5, AJAX and CSS3.
|
3 |
Donate link: http://www.iptanus.com/support/wordpress-file-upload
|
4 |
Tags: upload, upload file, upload files, multiple, multiple upload, multiple uploads, captcha, progress bar, form, ajax, directory, HTML5, filelist
|
5 |
Requires at least: 2.9.2
|
6 |
+
Tested up to: 3.8.1
|
7 |
Stable tag: "trunk"
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
26 |
* You can have more than one instances of the shortcode in the same page.
|
27 |
* It includes a file browser.
|
28 |
* It includes an overall upload progress bar.
|
29 |
+
* It supports multilingual characters and localization.
|
30 |
* It integrates with WP-Filebase.
|
31 |
* It is highly customizable with many options.
|
32 |
* It produces notification messages and e-mails.
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 2.3.1 =
|
105 |
+
* added option to restore default value for each attribute in Shortcode Composer
|
106 |
+
* added support for multilingual characters
|
107 |
+
* correction of bug in Shortcode Composer that was not allowing attributes with singular and plural form to be saved
|
108 |
+
* correction of bug that was not changing errormessage attribute in some cases
|
109 |
+
|
110 |
= 2.2.3 =
|
111 |
* correction of bug that was freezing the Shortcode Composer in some cases
|
112 |
* correction of bug with successmessage attribute
|
269 |
|
270 |
== Upgrade Notice ==
|
271 |
|
272 |
+
= 2.3.1 =
|
273 |
+
Upgrade to add some features and address some minor bugs.
|
274 |
+
|
275 |
= 2.2.3 =
|
276 |
Upgrade to address some minor bugs.
|
277 |
|
414 |
* **redirectlink:** This attribute defines the url of the redirection page. Please use the prefix "http://" if the redirection page is in another domain, otherwise the server will assume that the url is relative to the server path.
|
415 |
|
416 |
*Other Administrator Options*
|
417 |
+
|
418 |
* **adminmessages:** This attribute offers the option to administrator users to receive additional information about upload errors. These messages will be visible only to administrators. Default value is "false".
|
419 |
* **forceclassic:** This attribute defines if the plugin will use the old classic functionality to upload files (using forms) or ajax functionality (supported in HTML5). Default value is "false". Please note that if your browser does not support HTML ajax functionality, then the plugin will automatically switch to classic one.
|
420 |
* **testmode:** This attribute defines if the plugin will be shown in test mode. Default value is "false". If it is set to "true", then the plugin will obtain a "dummy" functionality (it will not be able to upload files) and it will appear showing all of its objects (the selection of subfolders, progress bar, a test message), while the buttons will show a "Test Mode" message when pressed. This option can be used to configure the dimensions of the individual objects of the plugin more easily.
|
537 |
== Requirements ==
|
538 |
|
539 |
The plugin requires to have Javascript enabled in your browser. For Internet Explorer you also need to have Active-X enabled.
|
540 |
+
Please note that old desktop browsers or mobile browsers may not support all of the plugin's features. In order to get full functionality use the latest versions of browsers, supporting HTML5, AJAX and CSS3.
|
wordpress_file_upload.php
CHANGED
@@ -4,7 +4,7 @@ session_start();
|
|
4 |
Plugin Name: Wordpress File Upload
|
5 |
Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
|
6 |
Description: Simple interface to upload files from a page.
|
7 |
-
Version: 2.
|
8 |
Author: Nickolas Bossinas
|
9 |
Author URI: http://www.iptanus.com
|
10 |
*/
|
@@ -15,7 +15,7 @@ Copyright (C) 2010-2014 Nickolas Bossinas
|
|
15 |
Contact me at http://www.iptanus.com
|
16 |
|
17 |
This program is free software: you can redistribute it and/or modify
|
18 |
-
it under the terms of the GNU General Public License as published by
|
19 |
the Free Software Foundation, either version 3 of the License, or
|
20 |
(at your option) any later version.
|
21 |
|
@@ -124,7 +124,7 @@ function wordpress_file_upload_function($incomingfromhandler) {
|
|
124 |
if ( is_user_logged_in() ) $username = $user->user_login;
|
125 |
else $username = "guests";
|
126 |
$replace = array ($username, $blog_id, $post->ID, get_the_title($post->ID));
|
127 |
-
$params["uploadpath"] =
|
128 |
|
129 |
/* Determine if userdata fields have been defined */
|
130 |
$userdata_fields = array();
|
@@ -178,6 +178,7 @@ function wordpress_file_upload_function($incomingfromhandler) {
|
|
178 |
$ajax_params['params_index'] = $params_index;
|
179 |
$ajax_params['debugmode'] = $params["debugmode"];
|
180 |
$ajax_params['is_admin'] = ( $plugin_upload_user_role == 'administrator' ? "true" : "false" );
|
|
|
181 |
$ajax_params["fail_colors"] = $params["failmessagecolors"];
|
182 |
|
183 |
$ajax_params_str = wfu_encode_array_to_string($ajax_params);
|
@@ -203,7 +204,7 @@ function wordpress_file_upload_function($incomingfromhandler) {
|
|
203 |
|
204 |
/* Compose the html code for the plugin */
|
205 |
$wordpress_file_upload_output = "";
|
206 |
-
$wordpress_file_upload_output .= '<div id="wordpress_file_upload_block_'.$sid.'" class="file_div_clean">';
|
207 |
$itemplaces = explode("/", $params["placements"]);
|
208 |
foreach ( $itemplaces as $section ) {
|
209 |
$items_in_section = explode("+", trim($section));
|
@@ -236,10 +237,10 @@ function wordpress_file_upload_function($incomingfromhandler) {
|
|
236 |
$consts = wfu_set_javascript_constants();
|
237 |
$handler = 'function() { wfu_Initialize_Consts("'.$consts.'") }';
|
238 |
$wordpress_file_upload_output .= "\n\t".'<script type="text/javascript">if(window.addEventListener) { window.addEventListener("load", '.$handler.', false); } else if(window.attachEvent) { window.attachEvent("onload", '.$handler.'); } else { window["onload"] = '.$handler.'; }</script>';
|
239 |
-
$wordpress_file_upload_output .= '</div>';
|
240 |
-
// $wordpress_file_upload_output .= '<div>';
|
241 |
-
// $wordpress_file_upload_output .= wfu_test_admin();
|
242 |
-
// $wordpress_file_upload_output .= '</div>';
|
243 |
|
244 |
// The plugin uses sessions in order to detect if the page was loaded due to file upload or
|
245 |
// because the user pressed the Refresh button (or F5) of the page.
|
4 |
Plugin Name: Wordpress File Upload
|
5 |
Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
|
6 |
Description: Simple interface to upload files from a page.
|
7 |
+
Version: 2.3.1
|
8 |
Author: Nickolas Bossinas
|
9 |
Author URI: http://www.iptanus.com
|
10 |
*/
|
15 |
Contact me at http://www.iptanus.com
|
16 |
|
17 |
This program is free software: you can redistribute it and/or modify
|
18 |
+
it under the terms of the GNU General Public License as published by
|
19 |
the Free Software Foundation, either version 3 of the License, or
|
20 |
(at your option) any later version.
|
21 |
|
124 |
if ( is_user_logged_in() ) $username = $user->user_login;
|
125 |
else $username = "guests";
|
126 |
$replace = array ($username, $blog_id, $post->ID, get_the_title($post->ID));
|
127 |
+
$params["uploadpath"] = preg_replace($search, $replace, $params["uploadpath"]);
|
128 |
|
129 |
/* Determine if userdata fields have been defined */
|
130 |
$userdata_fields = array();
|
178 |
$ajax_params['params_index'] = $params_index;
|
179 |
$ajax_params['debugmode'] = $params["debugmode"];
|
180 |
$ajax_params['is_admin'] = ( $plugin_upload_user_role == 'administrator' ? "true" : "false" );
|
181 |
+
$ajax_params["error_header"] = $params["errormessage"];
|
182 |
$ajax_params["fail_colors"] = $params["failmessagecolors"];
|
183 |
|
184 |
$ajax_params_str = wfu_encode_array_to_string($ajax_params);
|
204 |
|
205 |
/* Compose the html code for the plugin */
|
206 |
$wordpress_file_upload_output = "";
|
207 |
+
$wordpress_file_upload_output .= '<div id="wordpress_file_upload_block_'.$sid.'" class="file_div_clean">';
|
208 |
$itemplaces = explode("/", $params["placements"]);
|
209 |
foreach ( $itemplaces as $section ) {
|
210 |
$items_in_section = explode("+", trim($section));
|
237 |
$consts = wfu_set_javascript_constants();
|
238 |
$handler = 'function() { wfu_Initialize_Consts("'.$consts.'") }';
|
239 |
$wordpress_file_upload_output .= "\n\t".'<script type="text/javascript">if(window.addEventListener) { window.addEventListener("load", '.$handler.', false); } else if(window.attachEvent) { window.attachEvent("onload", '.$handler.'); } else { window["onload"] = '.$handler.'; }</script>';
|
240 |
+
$wordpress_file_upload_output .= '</div>';
|
241 |
+
// $wordpress_file_upload_output .= '<div>';
|
242 |
+
// $wordpress_file_upload_output .= wfu_test_admin();
|
243 |
+
// $wordpress_file_upload_output .= '</div>';
|
244 |
|
245 |
// The plugin uses sessions in order to detect if the page was loaded due to file upload or
|
246 |
// because the user pressed the Refresh button (or F5) of the page.
|