Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl =================================================================== diff -u -r7856 -r8202 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl (.../root_edit_password.tpl) (revision 7856) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/root_edit_password.tpl (.../root_edit_password.tpl) (revision 8202) @@ -27,7 +27,7 @@ - +
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/popups/translator.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/popups/translator.tpl (.../translator.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/popups/translator.tpl (.../translator.tpl) (revision 8202) @@ -75,7 +75,7 @@ "> "> - +
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/uploader.js =================================================================== diff -u -r8190 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/uploader.js (.../uploader.js) (revision 8190) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/uploader.js (.../uploader.js) (revision 8202) @@ -48,7 +48,6 @@ this.swf.addVariable("uploadFileCancelCallback", escape('UploadsManager.FileCancelled')); this.swf.addVariable("uploadQueueCompleteCallback", escape('UploadsManager.UploadQueueComplete')); this.swf.addVariable("uploadFileErrorCallback", escape('UploadsManager.UploadError')); - this.swf.addVariable("uploadCancelCallback", escape('uploadCancel')); this.swf.addVariable("autoUpload", escape('false')); // this.swf.addVariable("flashLoadedCallback", 'flashLoadedCallback'); @@ -337,8 +336,18 @@ UploadsManager.UploadError = function(errno, file, msg) { - alert('error '+errno) - alert('Error: '+msg+' on file '+file.name); + this.Uploaders[file.uploader_id].RemoveFile(file); + if (errno == -10) { + switch (msg.toString()) { + case '403': + msg = 'You don\'t have permission to upload'; + break; + case '500': + msg = 'Write permissions not set on the server, please contact server administrator'; + break; + } + } + alert('Error: '+msg+'\nOccured on file '+file.name); } UploadsManager.DeleteFile = function(mov, fname) Index: branches/unlabeled/unlabeled-1.5.2/core/kernel/utility/formatters/upload_formatter.php =================================================================== diff -u -r8180 -r8202 --- branches/unlabeled/unlabeled-1.5.2/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 8180) +++ branches/unlabeled/unlabeled-1.5.2/core/kernel/utility/formatters/upload_formatter.php (.../upload_formatter.php) (revision 8202) @@ -168,7 +168,12 @@ $names = array(); if ($value) { // if value string was not empty foreach ($files as $a_file) { - $urls[] = rtrim($this->Application->BaseURL(), '/').$upload_dir.$a_file; + if (isset($options['direct_links']) && $options['direct_links']) { + $urls[] = rtrim($this->Application->BaseURL(), '/').$upload_dir.$a_file; + } + else { + $urls[] = $this->Application->HREF('', '', array('no_amp'=>1, 'pass'=>'m,'.$object->Prefix, $object->Prefix.'_event'=>'OnViewFile', 'file'=>$a_file, 'field'=>$field_name)); + } $names[] = $a_file; $sizes[] = filesize(FULL_PATH.$upload_dir.$a_file); } Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_export.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_export.tpl (.../languages_export.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_export.tpl (.../languages_export.tpl) (revision 8202) @@ -27,11 +27,11 @@
- +
- "> + ">
" id="" value="" /> Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/login.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/login.tpl (.../login.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/login.tpl (.../login.tpl) (revision 8202) @@ -11,7 +11,7 @@
- +
"> + "> -
Index: branches/unlabeled/unlabeled-1.6.2/core/admin_templates/tools/system_tools.tpl =================================================================== diff -u -r8118 -r8202 --- branches/unlabeled/unlabeled-1.6.2/core/admin_templates/tools/system_tools.tpl (.../system_tools.tpl) (revision 8118) +++ branches/unlabeled/unlabeled-1.6.2/core/admin_templates/tools/system_tools.tpl (.../system_tools.tpl) (revision 8202) @@ -15,7 +15,7 @@ -
: @@ -27,15 +27,15 @@
+
- "> + ">
Table Structure: Index: branches/unlabeled/unlabeled-1.85.2/core/kernel/db/db_event_handler.php =================================================================== diff -u -r8180 -r8202 --- branches/unlabeled/unlabeled-1.85.2/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 8180) +++ branches/unlabeled/unlabeled-1.85.2/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 8202) @@ -2065,6 +2065,8 @@ $section = $event->getSection(); if (!$perm_helper->CheckUserPermission($user, $section.'.add') && !$perm_helper->CheckUserPermission($user, $section.'.edit')) { $event->status = erPERM_FAIL; + header('HTTP/1.0 403 You don\'t have permissions to upload'); + exit; return; } @@ -2077,6 +2079,11 @@ $id = $this->Application->GetVar('id'); if ($id) $fname = $id.'_'.$fname; + if (!is_writable($tmp_path)) { + header('HTTP/1.0 500 Write permissions not set on the server'); + exit; + } + move_uploaded_file($value['tmp_name'], $tmp_path.$fname); exit; } @@ -2118,6 +2125,8 @@ header('Content-Length: '.filesize($path)); header('Content-Type: '.$type); + safeDefine('DBG_SKIP_REPORTING',1); + readfile($path); exit(); } Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl =================================================================== diff -u -r7856 -r8202 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl (.../user_edit_password.tpl) (revision 7856) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/users/user_edit_password.tpl (.../user_edit_password.tpl) (revision 8202) @@ -26,7 +26,7 @@
- +
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/no_permission.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/no_permission.tpl (.../no_permission.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/no_permission.tpl (.../no_permission.tpl) (revision 8202) @@ -30,8 +30,8 @@
- - "> +
+ ">
No Permission

Index: branches/unlabeled/unlabeled-1.4.2/core/admin_templates/sections_list.tpl =================================================================== diff -u -r7859 -r8202 --- branches/unlabeled/unlabeled-1.4.2/core/admin_templates/sections_list.tpl (.../sections_list.tpl) (revision 7859) +++ branches/unlabeled/unlabeled-1.4.2/core/admin_templates/sections_list.tpl (.../sections_list.tpl) (revision 8202) @@ -25,9 +25,9 @@ Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/incs/config_blocks.tpl =================================================================== diff -u -r8062 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/incs/config_blocks.tpl (.../config_blocks.tpl) (revision 8062) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/incs/config_blocks.tpl (.../config_blocks.tpl) (revision 8202) @@ -9,7 +9,7 @@ - + @@ -54,18 +54,18 @@ - " id="_" header_label=""> + " id="_" header_label=""> - + - + @@ -82,21 +82,21 @@ - " id="_" header_label=""> + " id="_" header_label=""> - + - + Index: branches/unlabeled/unlabeled-1.11.2/core/admin_templates/incs/form_blocks.tpl =================================================================== diff -u -r8107 -r8202 --- branches/unlabeled/unlabeled-1.11.2/core/admin_templates/incs/form_blocks.tpl (.../form_blocks.tpl) (revision 8107) +++ branches/unlabeled/unlabeled-1.11.2/core/admin_templates/incs/form_blocks.tpl (.../form_blocks.tpl) (revision 8202) @@ -18,7 +18,7 @@
- +
- "> + "> @@ -42,7 +42,7 @@ - +
img/icons/icon46_list_.gif" border="0" alt="" align="absmiddle"/>

[] -
+
 

[] -
+
     
- +
@@ -46,7 +46,7 @@
- + @@ -74,7 +74,7 @@ - +
"> + "> @@ -142,7 +142,7 @@ - "> + "> "> + "> "> + "> "> + "> "> + "> @@ -241,7 +241,7 @@ - "> + "> "> + "> "> + "> "> + "> "> + "> "> + "> "> + "> "> + "> "> + "> "> + ">
@@ -124,7 +124,7 @@ -
 
" id="" value="" tabindex="" size="" maxlength="" class="" onblur="" onkeyup=""> @@ -156,7 +156,7 @@ -
" id="" value="" tabindex="" size="" class="" /> @@ -170,7 +170,7 @@ -
" id="" tabindex="" size="" class=""> @@ -187,7 +187,7 @@ -
error"> *:
@@ -208,7 +208,7 @@ -
" id="" value="" tabindex="" size="" class="" datepickerIcon="core/admin_templates/img/calendar_icon.gif"> () @@ -230,7 +230,7 @@ " id="" value="" tabindex="" size="" class="">  () - + " id="" value="">  
@@ -260,7 +260,7 @@ -
error"> *:
@@ -279,7 +279,7 @@ -
error"> *:
@@ -297,7 +297,7 @@ -
" id="" value="" tabindex="" size="" class="" onkeyup=""> @@ -326,7 +326,7 @@ -
@@ -370,7 +370,7 @@ -
" name="" value=""> @@ -395,7 +395,7 @@ -
@@ -413,7 +413,7 @@ -
" name="" value=""> @@ -427,7 +427,7 @@ -
@@ -450,8 +450,8 @@ - - +
+ - + - + - + - + Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_export_step2.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_export_step2.tpl (.../languages_export_step2.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_export_step2.tpl (.../languages_export_step2.tpl) (revision 8202) @@ -6,11 +6,11 @@ -

@@ -489,19 +489,19 @@
: 0%
: 00:00
: 00:00
" value="" />
+
- "> + "> - "> + "> Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl =================================================================== diff -u -r7856 -r8202 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl (.../config_search_edit.tpl) (revision 7856) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search_edit.tpl (.../config_search_edit.tpl) (revision 8202) @@ -54,7 +54,7 @@
@@ -19,7 +19,7 @@  
- +
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/custom_fields/custom_fields_edit.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/custom_fields/custom_fields_edit.tpl (.../custom_fields_edit.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/custom_fields/custom_fields_edit.tpl (.../custom_fields_edit.tpl) (revision 8202) @@ -56,7 +56,7 @@ -
+
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/email_messages_edit.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/email_messages_edit.tpl (.../email_messages_edit.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/email_messages_edit.tpl (.../email_messages_edit.tpl) (revision 8202) @@ -31,7 +31,7 @@
- +
Index: branches/unlabeled/unlabeled-1.7.2/core/admin_templates/incs/grid_blocks.tpl =================================================================== diff -u -r8120 -r8202 --- branches/unlabeled/unlabeled-1.7.2/core/admin_templates/incs/grid_blocks.tpl (.../grid_blocks.tpl) (revision 8120) +++ branches/unlabeled/unlabeled-1.7.2/core/admin_templates/incs/grid_blocks.tpl (.../grid_blocks.tpl) (revision 8202) @@ -27,7 +27,7 @@ -
tableborder_full_kernelpagination_bar"> +
borderedpagination_bar"> @@ -352,7 +352,7 @@ -
@@ -49,7 +49,7 @@ - + @@ -95,7 +95,7 @@ - ','', );" class="columntitle_small">.gif" border="0" align="absmiddle"> + ','', );">.gif" border="0" align="absmiddle">
+
@@ -365,11 +365,11 @@ - " id="_" sequence=""> + " id="_" sequence=""> - + @@ -452,7 +452,7 @@
- +
Index: branches/unlabeled/unlabeled-1.7.2/core/admin_templates/incs/style.css =================================================================== diff -u -r8120 -r8202 --- branches/unlabeled/unlabeled-1.7.2/core/admin_templates/incs/style.css (.../style.css) (revision 8120) +++ branches/unlabeled/unlabeled-1.7.2/core/admin_templates/incs/style.css (.../style.css) (revision 8202) @@ -332,16 +332,16 @@ color: #666666; } -.table_color1, .table_color2 { +.table-color1, .table-color2 { font-family: verdana, arial; font-size: 14px; font-weight: normal; color: #000000; text-decoration: none; } -.table_color1 { background-color: #F6F6F6; } -.table_color2 { background-color: #EBEBEB; } +.table-color1 { background-color: #F6F6F6; } +.table-color2 { background-color: #EBEBEB; } .table_white, .table_white_selected { Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl =================================================================== diff -u -r7856 -r8202 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 7856) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 8202) @@ -88,7 +88,7 @@ - +
- " header_label="la_Text_RootCategory"> + " header_label="la_Text_RootCategory"> Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_import.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_import.tpl (.../languages_import.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_import.tpl (.../languages_import.tpl) (revision 8202) @@ -27,7 +27,7 @@
@@ -99,7 +99,7 @@
- +
Index: branches/unlabeled/unlabeled-1.4.2/core/admin_templates/config/config_universal.tpl =================================================================== diff -u -r7859 -r8202 --- branches/unlabeled/unlabeled-1.4.2/core/admin_templates/config/config_universal.tpl (.../config_universal.tpl) (revision 7859) +++ branches/unlabeled/unlabeled-1.4.2/core/admin_templates/config/config_universal.tpl (.../config_universal.tpl) (revision 8202) @@ -85,7 +85,7 @@ -
+
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_edit.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_edit.tpl (.../languages_edit.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_edit.tpl (.../languages_edit.tpl) (revision 8202) @@ -58,7 +58,7 @@
- +
@@ -77,7 +77,7 @@ - "> + "> - "> + "> - "> + "> - "> + "> - "> + ">
: Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl =================================================================== diff -u -r7856 -r8202 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl (.../config_search.tpl) (revision 7856) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/config/config_search.tpl (.../config_search.tpl) (revision 8202) @@ -67,7 +67,7 @@
@@ -87,14 +87,14 @@
][VariableValue]" VALUE="">%
][VariableValue]" value="">%     @@ -110,7 +110,7 @@
][VariableValue]" id="_cb_conf[Search_ShowMultiple_][VariableValue]" onclick="update_checkbox(this, document.getElementById('conf[Search_ShowMultiple_][VariableValue]'))" > @@ -120,12 +120,12 @@ - style="border-bottom-width: 0px;"> +
style="border-bottom-width: 0px;">
- +
Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_import_step2.tpl =================================================================== diff -u -r7698 -r8202 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_import_step2.tpl (.../languages_import_step2.tpl) (revision 7698) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/regional/languages_import_step2.tpl (.../languages_import_step2.tpl) (revision 8202) @@ -4,13 +4,13 @@ - +

- +
%" class="progress_bar">  %">