Plugin Directory

Changeset 630203


Ignore:
Timestamp:
11/26/2012 05:07:40 PM (13 years ago)
Author:
fabifott
Message:

WP-Filebase 0.2.9.26

  • Fixed flash uploader
  • Fixed admin bar context menu
  • Re-organized some settings tabs
  • Missing files will automatically set offline during sync
  • Updated Brazillian Portuguese translation by Felipe Cavalcanti
  • Fixed Item::GetParents() stuck in endless loop
Location:
wp-filebase
Files:
272 added
2 deleted
26 edited

Legend:

Unmodified
Added
Removed
  • wp-filebase/trunk/classes/Admin.php

    r624879 r630203  
    1313
    1414    wp_enqueue_style('widgets');
     15   
     16    require_once(ABSPATH . 'wp-admin/includes/file.php');
    1517}
    1618
     
    2931       
    3032    $last_sync_time = intval(get_option(WPFB_OPT_NAME.'_cron_sync_time'));
    31     $last_sync_time = ($last_sync_time > 0) ? (" (".sprintf( __('Last cron sync on %1$s at %2$s.',WPFB), date_i18n( get_option( 'date_format', $last_sync_time ) ), date_i18n( get_option( 'time_format', $last_sync_time ) ) ).")") : '';
     33    $last_sync_time = ($last_sync_time > 0) ? (" (".sprintf( __('Last cron sync on %1$s at %2$s.',WPFB), date_i18n( get_option( 'date_format'), $last_sync_time ), date_i18n( get_option( 'time_format'), $last_sync_time ) ).")") : '';
    3234       
    3335    return array (
     
    121123   
    122124    'cron_sync' => array('default' => false, 'title' => __('Automatic Sync', WPFB), 'type' => 'checkbox', 'desc' => __('Schedules a cronjob to hourly synchronize the filesystem and the database.', WPFB).$last_sync_time),
     125   
     126    'remove_missing_files'  => array('default' => false, 'title' => __('Remove Missing Files', WPFB), 'type' => 'checkbox', 'desc' => __('Missing files are removed from the database during sync', WPFB)),
    123127   
    124128   
     
    553557    // VALIDATION
    554558    $current_user = wp_get_current_user();
    555     if(!$add_existing && empty($current_user->ID)) return array( 'error' => __('Could not get user id!', WPFB) );   
     559    if(empty($data->frontend_upload) && !$add_existing && empty($current_user->ID)) return array( 'error' => __('Could not get user id!', WPFB) ); 
    556560   
    557561    if(!$update && !$add_existing && !$upload && !$remote_upload) return array( 'error' => __('No file was uploaded.', WPFB) );
     
    681685    $file->file_author = isset($data->file_author) ? $data->file_author : WPFB_Core::GetOpt('default_author');
    682686   
    683     $var_names = array('remote_uri', 'description', 'hits', 'license');
     687    $var_names = array('remote_uri', 'description', 'hits', 'license'
     688    );
    684689    for($i = 0; $i < count($var_names); $i++)
    685690    {
     
    11031108       
    11041109    // if category is set in widget options, force to use this. security done with nonce checking ($_POST['cat'] is reliable)
    1105     if($_POST['cat'] >= 0) $_POST['file_category'] = $_POST['cat']; 
    1106     $result = WPFB_Admin::InsertFile(array_merge(stripslashes_deep($_POST), $_FILES));
     1110    if($_POST['cat'] >= 0) $_POST['file_category'] = $_POST['cat'];
     1111    $result = WPFB_Admin::InsertFile(array_merge(stripslashes_deep($_POST), $_FILES, array('frontend_upload' => true)));
    11071112    if(isset($result['error']) && $result['error']) {
    11081113        $content .= '<div id="message" class="updated fade"><p>'.$result['error'].'</p></div>';
     
    11171122   
    11181123    wpfb_loadclass('Output');
    1119     WPFB_Output::GeneratePage($title, $content);
     1124    WPFB_Output::GeneratePage($title, $content, !empty($_POST['form_tag'])); // prepend to content if embedded form!
    11201125}
    11211126
     
    11721177}
    11731178
    1174 public function SettingsUpdated($old, $new) {
     1179public function SettingsUpdated($old, &$new) {
    11751180    $messages = array();
    11761181    wpfb_call('Setup','ProtectUploadPath');
  • wp-filebase/trunk/classes/AdminGuiCats.php

    r624879 r630203  
    2222                <td><code><?php echo esc_html($cat->cat_path) ?></code></td>
    2323                <td><?php echo WPFB_Output::RoleNames($user_roles,true) ?></td>
    24 <?php
    25 ?>
     24
    2625                <td><?php echo ($cat->GetOwnerId() <= 0 || !($usr = get_userdata($cat->GetOwnerId()))) ? '-' : esc_html($usr->user_login) ?></td>
    2726                <td class="num"><?php echo $cat->cat_order ?></td>
     
    159158                <th scope="col"><a href="<?php echo WPFB_Admin::AdminTableSortLink('cat_path') ?>"><?php _e('Path'/*def*/) ?></a></th>
    160159                <th scope="col"><a href="<?php echo WPFB_Admin::AdminTableSortLink('cat_user_roles') ?>"><?php _e('Access Permission',WPFB) ?></a></th>
    161 <?php
    162 ?>
     160
    163161                <th scope="col"><a href="<?php echo WPFB_Admin::AdminTableSortLink('cat_owner') ?>"><?php _e('Owner',WPFB) ?></a></th>
    164162                <th scope="col"><a href="<?php echo WPFB_Admin::AdminTableSortLink('cat_order') ?>"><?php _e('Custom Sort Order',WPFB) ?></a></th>
  • wp-filebase/trunk/classes/AdminGuiManage.php

    r624879 r630203  
    176176                array('action' => 'sync',
    177177                )); ?>" class="button"><?php _e('Sync Filebase',WPFB)?></a> &nbsp; <?php _e('Synchronises the database with the file system. Use this to add FTP-uploaded files.',WPFB) ?></p>
     178   
     179<p>
     180<?php       
     181if(WPFB_Core::GetOpt('cron_sync')) {
     182    _e('Automatic sync is enabled. Cronjob scheduled hourly.');
     183    $last_sync_time = intval(get_option(WPFB_OPT_NAME.'_cron_sync_time'));
     184    echo ($last_sync_time > 0) ? (" (".sprintf( __('Last cron sync on %1$s at %2$s.',WPFB), date_i18n( get_option( 'date_format'), $last_sync_time ), date_i18n( get_option( 'time_format'), $last_sync_time ) ).")") : '';
     185} else {
     186    _e('Cron sync is disabled.');
     187}
     188?>
     189</p>
     190
     191           
     192               
    178193<?php if(WPFB_Core::GetOpt('tag_conv_req')) { ?><p><a href="<?php echo add_query_arg('action', 'convert-tags') ?>" class="button"><?php _e('Convert old Tags',WPFB)?></a> &nbsp; <?php printf(__('Convert tags from versions earlier than %s.',WPFB), '0.2.0') ?></p> <?php } ?>
    179194<!--  <p><a href="<?php echo add_query_arg('action', 'add-urls') ?>" class="button"><?php _e('Add multiple URLs',WPFB)?></a> &nbsp; <?php _e('Add multiple remote files at once.', WPFB); ?></p>
     
    274289           
    275290        break; // sync
     291       
     292       
     293       
    276294    } // switch
    277295    ?>
  • wp-filebase/trunk/classes/AdminGuiSettings.php

    r615301 r630203  
    199199    <?php
    200200   
    201     $misc_tags = array('hide_links','base_auto_thumb','cron_sync','fext_blacklist','disable_id3','search_id3','thumbnail_path','use_path_tags','no_name_formatting');
     201    $misc_tags = array('disable_id3','search_id3','thumbnail_path','use_path_tags','no_name_formatting');
    202202    if(function_exists('wp_admin_bar_render'))
    203203        $misc_tags[] = 'admin_bar';
     
    210210        ),
    211211        __('Download', WPFB)                => array(
    212                                                 'disable_permalinks', 'download_base', 'force_download', 'range_download', 'http_nocache', 'ignore_admin_dls', 'accept_empty_referers','allowed_referers','dl_destroy_session'),
     212                                                'hide_links', 'disable_permalinks', 'download_base', 'force_download', 'range_download', 'http_nocache', 'ignore_admin_dls', 'accept_empty_referers','allowed_referers','dl_destroy_session'),
    213213        __('Form Presets', WPFB)            => array('default_author','default_roles', 'default_cat', 'languages', 'platforms', 'licenses', 'requirements', 'custom_fields'),
    214214        __('Limits', WPFB)                  => array('bitrate_unregistered', 'bitrate_registered', 'traffic_day', 'traffic_month', 'traffic_exceeded_msg', 'file_offline_msg', 'daily_user_limits', 'daily_limit_subscriber', 'daily_limit_contributor', 'daily_limit_author', 'daily_limit_editor', 'daily_limit_exceeded_msg'),
    215         __('Security', WPFB)                => array('allow_srv_script_upload', 'frontend_upload', 'hide_inaccessible', 'inaccessible_msg', 'inaccessible_redirect', 'cat_inaccessible_msg', 'login_redirect_src', 'protect_upload_path', 'private_files'),
     215        __('Security', WPFB)                => array('allow_srv_script_upload', 'fext_blacklist', 'frontend_upload', 'hide_inaccessible', 'inaccessible_msg', 'inaccessible_redirect', 'cat_inaccessible_msg', 'login_redirect_src', 'protect_upload_path', 'private_files'),
    216216        __('Templates and Scripts', WPFB)   => array('template_file', 'template_cat', 'dlclick_js'),
     217        __('Sync',WPFB)                     => array('cron_sync', 'base_auto_thumb', 'remove_missing_files'),
    217218        __('Misc')                          => $misc_tags,
    218219    );
     
    229230    foreach($option_categories as $opt_cat => $opt_cat_fields) {
    230231        //echo "\n".'<h3>'.$opt_cat.'</h3>';   
    231         echo "\n\n".'<div id="'. sanitize_title($opt_cat) .'" class="wpfilebase-opttab"><table class="form-table">';
     232        echo "\n\n".'<div id="'. sanitize_title($opt_cat) .'" class="wpfilebase-opttab"><h3>'.$opt_cat.'</h3><table class="form-table">';
    232233        foreach($opt_cat_fields as $opt_tag)
    233234        {
  • wp-filebase/trunk/classes/AdvUploader.php

    r624879 r630203  
    33    var $uploader;
    44    var $form_url;
     5   
     6    static function GetAjaxAuthData($json=false)
     7    {
     8        $dat = array(
     9            "auth_cookie" => (is_ssl() ? @$_COOKIE[SECURE_AUTH_COOKIE] : @$_COOKIE[AUTH_COOKIE]),
     10            "logged_in_cookie" => @$_COOKIE[LOGGED_IN_COOKIE],
     11            "_wpnonce" => wp_create_nonce(WPFB.'-async-upload'),
     12            "frontend_upload" => !is_admin()
     13        );
     14        return $json ? trim(json_encode($dat),'{}') : $dat;
     15    }
    516   
    617    public function __construct($form_url)
     
    1324    }
    1425   
    15     function PrintScripts()
     26    function PrintScripts($prefix='', $auto_submit=false)
    1627    {
    17         $this->uploader->Scripts();
     28        $this->uploader->Scripts($prefix);
     29        ?>
    1830       
    19         // getUserSetting dummy function!
    20         ?>
    21         <script type='text/javascript'>
    22         if(typeof(getUserSetting) != 'function') {
    23             function getUserSetting( name, def ) {
    24                 return false;
    25             }
    26         }
    27         </script>
     31<script type="text/javascript">
     32//<![CDATA[
     33
     34function fileQueued(fileObj) {
     35    jQuery('#file-upload-progress').show().html('<div class="progress"><div class="percent">0%</div><div class="bar" style="width: 30px"></div></div><div class="filename original"> ' + fileObj.name + '</div>');
     36
     37    jQuery('.progress', '#file-upload-progress').show();
     38    jQuery('.filename', '#file-upload-progress').show();
     39
     40    jQuery("#media-upload-error").empty();
     41    jQuery('.upload-flash-bypass').hide();
     42   
     43    jQuery('#file-submit').prop('disabled', true);
     44    jQuery('#cancel-upload').show().prop('disabled', false);
     45
     46     // delete already uploaded temp file   
     47    if(jQuery('#file_flash_upload').val() != '0') {
     48        jQuery.ajax({type: 'POST', async: true, url:"<?php echo esc_attr( WPFB_PLUGIN_URI.'wpfb-async-upload.php' ); ?>",
     49        data: {<?php echo WPFB_AdvUploader::GetAjaxAuthData(true) ?> , "delupload":jQuery('#file_flash_upload').val()},
     50        success: (function(data){})
     51        });
     52        jQuery('#file_flash_upload').val(0);
     53    }
     54}
     55           
     56function wpFileError(fileObj, message) {
     57    jQuery('#media-upload-error').show().html(message);
     58    jQuery('.upload-flash-bypass').show();
     59    jQuery("#file-upload-progress").hide().empty();
     60    jQuery('#cancel-upload').hide().prop('disabled', true);
     61}
     62
     63
     64function uploadError(fileObj, errorCode, message, uploader) {
     65    wpFileError(fileObj, "Error "+errorCode+": "+message);
     66}
     67
     68function uploadSuccess(fileObj, serverData) {
     69    // if async-upload returned an error message, place it in the media item div and return
     70    if ( serverData.match('media-upload-error') ) {
     71        wpFileError(fileObj, serverData);
     72        return;
     73    }
     74    jQuery('#file_flash_upload').val(serverData);
     75    jQuery('#file-submit').prop('disabled', false);
     76
     77    <?php if($auto_submit) { ?>
     78    jQuery('#file_flash_upload').closest("form").submit();
     79    <?php } ?>
     80}
     81
     82function uploadComplete(fileObj) {
     83    jQuery('#cancel-upload').hide().prop('disabled', true);
     84}
     85   
     86
     87if(typeof(getUserSetting) != 'function') {
     88    function getUserSetting( name, def ) { // getUserSetting dummy function!
     89        return false;
     90    }
     91}
     92//]]>
     93</script>
    2894        <?php
    2995    }
  • wp-filebase/trunk/classes/Category.php

    r624879 r630203  
    145145    }
    146146   
     147    function HasChildren($cats_only=false)
     148    {
     149        //return ($cats_only ? (count($c->GetChildCats())>0) : ($c->cat_num_files_total > 0)), // FIXME: does not work with secondary categories!
     150        return true;
     151    }
     152   
    147153    function Delete()
    148154    {   
  • wp-filebase/trunk/classes/Core.php

    r624879 r630203  
    461461
    462462static function PrintJS() {
     463    static $printed = false;
     464    if($printed) return;
     465    $printed = true;
     466   
    463467    wp_print_scripts(WPFB);
    464468   
     
    549553    global $wp_admin_bar;
    550554   
    551     self::$load_js = true;
     555    self::PrintJS();
    552556   
    553557    $wp_admin_bar->add_menu(array('id' => WPFB, 'title' => WPFB_PLUGIN_NAME, 'href' => admin_url('admin.php?page=wpfilebase_manage')));
     
    579583
    580584static function GetMaxUlSize() {
    581     $val = ini_get('upload_max_filesize');
     585    return self::ParseIniFileSize(ini_get('upload_max_filesize'));
     586}
     587
     588static function ParseIniFileSize($val) {
    582589    if (is_numeric($val))
    583590        return $val;
    584591
    585592    $val_len = strlen($val);
    586     $max_bytes = substr($val, 0, $val_len - 1);
     593    $bytes = substr($val, 0, $val_len - 1);
    587594    $unit = strtolower(substr($val, $val_len - 1));
    588595    switch($unit) {
    589596        case 'k':
    590             $max_bytes *= 1024;
     597            $bytes *= 1024;
    591598            break;
    592599        case 'm':
    593             $max_bytes *= 1048576;
     600            $bytes *= 1048576;
    594601            break;
    595602        case 'g':
    596             $max_bytes *= 1073741824;
     603            $bytes *= 1073741824;
    597604            break;
    598605    }
    599     return $max_bytes;
     606    return $bytes;
    600607}
    601608
  • wp-filebase/trunk/classes/File.php

    r624879 r630203  
    461461        $logged_in = (!empty($user_ID));
    462462        $user_role = $logged_in ? array_shift($current_user->roles) : null; // get user's highest role (like in user-eidt.php)
    463         $is_admin = ('administrator' == $user_role);
     463        $is_admin = current_user_can('edit_files');
    464464       
    465465        // check user level
     
    481481            }
    482482        }
     483       
    483484       
    484485        // check traffic
  • wp-filebase/trunk/classes/GetID3.php

    r615301 r630203  
    1616        else $info =& self::$engine->analyze($filename);
    1717       
     18        if(!empty($_GET['debug'])) {
     19            wpfb_loadclass('Sync');
     20            WPFB_Sync::PrintDebugTrace("file_analyzed");
     21        }
    1822        return $info;
    1923    }
  • wp-filebase/trunk/classes/Item.php

    r624879 r630203  
    4848    function GetParents()
    4949    {
     50        $p = $this;
    5051        $parents = array();
    51         while(!is_null($p = $this->GetParent())) $parents[] = $p;
     52        while(!is_null($p = $p->GetParent())) $parents[] = $p;
    5253        return $parents;
    5354    }
  • wp-filebase/trunk/classes/Output.php

    r624879 r630203  
    165165       
    166166        $liclass = '';
    167         if($has_children = ($cat->cat_num_files_total > 0)) $liclass .= 'hasChildren';
     167        if($has_children = $cat->HasChildren()) $liclass .= 'hasChildren';
    168168        if($open = $cat->Equals($open_cat)) $liclass .= ' open';
    169169       
     
    337337*/
    338338
    339 static function GeneratePage($title, $content) {
     339static function GeneratePage($title, $content, $prepend_to_current=false) {
    340340    self::$page_content = $content;
    341341    self::$page_title = $title;
    342     add_filter('the_posts',array(__CLASS__,'GeneratePagePostFilter'),9,2);
    343     add_filter('edit_post_link', array('WPFB_Core', 'Nothing')); // hide edit link 
     342    if($prepend_to_current) {
     343        add_filter('the_content', array(__CLASS__,'GeneratePageContentFilter'), 10);
     344    } else {
     345        add_filter('the_posts',array(__CLASS__,'GeneratePagePostFilter'),9,2);
     346        add_filter('edit_post_link', array('WPFB_Core', 'Nothing')); // hide edit link
     347    }
     348}
     349
     350static function GeneratePageContentFilter($content)
     351{
     352    if(empty(self::$page_content)) return $content;
     353    $content = self::$page_content . $content;
     354    self::$page_content = '';
     355    return $content;
    344356}
    345357
     
    420432   
    421433   
    422     if(!empty($vars['adv_uploader'])) {
    423         wpfb_loadclass('AdvUploader');
    424         $adv_uploader = new WPFB_AdvUploader($form_url);
    425         $adv_uploader->PrintScripts();
    426     }
    427434    unset($vars['adv_uploader']); // dont use adv_uploader arg for noncing! TODO
    428435    ?>
    429         <form enctype="multipart/form-data" name="<?php echo $prefix; ?>form" method="post" action="<?php echo $form_url; ?>">
     436        <form enctype="multipart/form-data" name="<?php echo $prefix; ?>form" id="<?php echo $prefix; ?>form" method="post" action="<?php echo $form_url; ?>">
    430437        <?php
    431438        foreach($vars as $n => $v) {
    432             echo '<input type="hidden" name="'.esc_attr($n).'" value="'.esc_attr($v).'" />';
     439            echo '<input type="hidden" name="'.esc_attr($n).'" value="'.esc_attr($v).'" id="'.$prefix.esc_attr($n).'" />';
    433440            $nonce_action .= "&$n=$v";
    434441        }
     
    437444            <input type="hidden" name="prefix" value="<?php echo $prefix ?>" />
    438445            <div>
     446                <?php if($category == -1) { ?><br />
     447                <label for="<?php echo $prefix ?>file_category"><?php _e('Category') ?></label>
     448                <select name="file_category" id="<?php echo $prefix; ?>file_category"><?php wpfb_loadclass('Category'); echo WPFB_Output::CatSelTree(); ?></select>
     449                <?php } else { ?>
     450                <input type="hidden" name="file_category" value="<?php echo $category; ?>" id="<?php echo $prefix ?>file_category" />
     451                <?php } ?>
     452               
     453               
    439454                <?php if(empty($adv_uploader)) { ?>
    440455                    <label for="<?php echo $prefix ?>file_upload"><?php _e('Choose File', WPFB) ?></label>
    441456                    <input type="file" name="file_upload" id="<?php echo $prefix ?>file_upload" /><br /> <!--   style="width: 160px" size="10" -->
    442457                <?php  } else {
    443                     $adv_uploader->Display();
     458                    $adv_uploader->Display($prefix);
    444459                } ?>
    445460                <small><?php printf(str_replace('%d%s','%s',__('Maximum upload file size: %d%s'/*def*/)), WPFB_Output::FormatFilesize(WPFB_Core::GetMaxUlSize())) ?></small>
    446461               
    447462                <div style="float: right; text-align:right;"><input type="submit" class="button-primary" name="submit-btn" value="<?php _ex('Add New', 'file'); ?>" /></div>
    448                
    449                 <?php if($category == -1) { ?><br />
    450                 <label for="<?php echo $prefix ?>file_category"><?php _e('Category') ?></label>
    451                 <select name="file_category" id="<?php echo $prefix; ?>file_category"><?php wpfb_loadclass('Category'); echo WPFB_Output::CatSelTree(); ?></select>
    452                 <?php } else { ?>
    453                 <input type="hidden" name="file_category" value="<?php echo $category; ?>" />
    454                 <?php } ?>
    455463            </div> 
    456464        </form>
  • wp-filebase/trunk/classes/PLUpload.php

    r624879 r630203  
    55    var $id;
    66   
    7     static function GetAjaxAuthData($json=false)
    8     {
    9         $dat = array(
    10             "auth_cookie" => (is_ssl() ? $_COOKIE[SECURE_AUTH_COOKIE] : $_COOKIE[AUTH_COOKIE]),
    11             "logged_in_cookie" => $_COOKIE[LOGGED_IN_COOKIE],
    12             "_wpnonce" => wp_create_nonce(WPFB.'-async-upload')
    13         );
    14         return $json ? trim(json_encode($dat),'{}') : $dat;
    15     }
    16    
    177    function __construct()
    188    {
     
    2010    }
    2111   
    22     function Scripts()
     12    function Scripts($prefix)
    2313    {
    2414        $id = $this->id;
     
    2616        wp_print_scripts('plupload-handlers');
    2717        ?>
     18       
    2819<script type="text/javascript">
    2920//<![CDATA[
    30        
    31 function fileQueued(fileObj) {
    32     jQuery('#file-upload-progress<?php echo $id; ?>').show().html('<div class="progress"><div class="percent">0%</div><div class="bar" style="width: 30px"></div></div><div class="filename original"> ' + fileObj.name + '</div>');
    33 
    34     jQuery('.progress', '#file-upload-progress<?php echo $id; ?>').show();
    35     jQuery('.filename', '#file-upload-progress<?php echo $id; ?>').show();
    36 
    37     jQuery("#media-upload-error<?php echo $id; ?>").empty();
    38     jQuery('.upload-flash-bypass').hide();
    39    
    40     jQuery('#file-submit').prop('disabled', true);
    41     jQuery('#cancel-upload').show().prop('disabled', false);
    42 
    43      // delete already uploaded temp file   
    44     if(jQuery('#file_flash_upload').val() != '0') {
    45         jQuery.ajax({type: 'POST', async: true, url:"<?php echo esc_attr( WPFB_PLUGIN_URI.'wpfb-async-upload.php' ); ?>",
    46         data: {<?php echo self::GetAjaxAuthData(true) ?> , "delupload":jQuery('#file_flash_upload').val()},
    47         success: (function(data){})
    48         });
    49         jQuery('#file_flash_upload').val(0);
    50     }
    51 }
    5221
    5322function uploadProgress(up, file) {
    54     var item = jQuery('#file-upload-progress<?php echo $id; ?>');
     23    var item = jQuery('#file-upload-progress');
    5524    jQuery('.bar', item).width( (200 * file.loaded) / file.size );
    5625    jQuery('.percent', item).html( file.percent + '%' );
     
    5928        item.html('<strong class="crunching">' + '<?php _e('File %s uploaded.', WPFB) ?>'.replace(/%s/g, file.name) + '</strong>');
    6029    }
    61 }
    62 
    63 function wpFileError(fileObj, message) {
    64     jQuery('#media-upload-error<?php echo $id; ?>').show().html(message);
    65     jQuery('.upload-flash-bypass').show();
    66     jQuery("#file-upload-progress<?php echo $id; ?>").hide().empty();
    67     jQuery('#cancel-upload').hide().prop('disabled', true);
    68 }
    69 
    70 
    71 function uploadError(fileObj, errorCode, message, uploader) {
    72     wpFileError(fileObj, "Error "+errorCode+": "+message);
    73 }
    74 
    75 function uploadSuccess(fileObj, serverData) {
    76     // if async-upload returned an error message, place it in the media item div and return
    77     if ( serverData.match('media-upload-error<?php echo $id; ?>') ) {
    78         wpFileError(fileObj, serverData);
    79         return;
    80     }
    81     jQuery('#file_flash_upload').val(serverData);
    82     jQuery('#file-submit').prop('disabled', false);
    83 }
    84 
    85 function uploadComplete(fileObj) {
    86     jQuery('#cancel-upload').hide().prop('disabled', true);
    8730}
    8831   
     
    11760$plupload_init = array(
    11861    'runtimes' => 'html5,silverlight,flash,html4',
    119     'browse_button' => 'plupload-browse-button'.$id,
    120     'container' => 'plupload-upload-ui'.$id,
     62    'browse_button' => 'plupload-browse-button',
     63    'container' => 'plupload-upload-ui',
    12164    'drop_element' => 'drag-drop-area',
    12265    'file_data_name' => 'async-upload',
     
    12972    'multipart' => true,
    13073    'urlstream_upload' => true,
    131     'multipart_params' => self::GetAjaxAuthData()
     74    'multipart_params' => WPFB_AdvUploader::GetAjaxAuthData()
    13275);
    13376
     
    14386<input type="hidden" id="file_flash_upload" name="file_flash_upload" value="0" />
    14487
    145 <div id="plupload-upload-ui<?php echo $id; ?>" class="hide-if-no-js">
     88<div id="plupload-upload-ui" class="hide-if-no-js">
    14689<?php do_action('pre-plupload-upload-ui'); // hook change, old name: 'pre-flash-upload-ui' ?>
    14790<div id="drag-drop-area">
    14891    <div class="drag-drop-inside">
    149     <p class="drag-drop-info"><?php _e('Drop files here'); ?> - <?php _ex('or', 'Uploader: Drop files here - or - Select Files'); ?> - <span class="drag-drop-buttons"><input id="plupload-browse-button<?php echo $id; ?>" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" /></span></p>
     92    <p class="drag-drop-info"><?php _e('Drop files here'); ?> - <?php _ex('or', 'Uploader: Drop files here - or - Select Files'); ?> - <span class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e('Select Files'); ?>" class="button" /></span></p>
    15093    </div>
    15194</div>
     
    158101<?php }
    159102?>
    160     <div id="media-upload-error<?php echo $id; ?>"></div>
    161     <div id="file-upload-progress<?php echo $id; ?>" class="media-item" style="width: auto;"></div>
     103    <div id="media-upload-error"></div>
     104    <div id="file-upload-progress" class="media-item" style="width: auto;"></div>
    162105<?php
    163106//do_action('post-upload-ui');
  • wp-filebase/trunk/classes/SWFUpload.php

    r624879 r630203  
    55    var $id;
    66   
    7     static function GetAjaxAuthData($json=false)
    8     {
    9         $dat = array(
    10             "auth_cookie" => (is_ssl() ? $_COOKIE[SECURE_AUTH_COOKIE] : $_COOKIE[AUTH_COOKIE]),
    11             "logged_in_cookie" => $_COOKIE[LOGGED_IN_COOKIE],
    12             "_wpnonce" => wp_create_nonce(WPFB.'-async-upload')
    13         );
    14         return $json ? trim(json_encode($dat),'{}') : $dat;
    15     }
    16    
    177    function __construct()
    188    {
     
    2010    }
    2111   
    22     function Scripts()
     12    function Scripts($prefix)
    2313    {
    2414        $id = $this->id;
     
    2616        wp_print_scripts('swfupload-all');
    2717        wp_print_scripts('swfupload-handlers');
    28        
    29 
    3018        ?>
    3119       
    3220<script type="text/javascript">
    3321//<![CDATA[
    34 
    35 function fileQueued(fileObj) {
    36     jQuery('#file-upload-progress').show().html('<div class="progress"><div class="bar"></div></div><div class="filename original"><span class="percent"></span> ' + fileObj.name + '</div>');
    37     jQuery('.progress', '#file-upload-progress').show();
    38     jQuery('.filename', '#file-upload-progress').show();
    39 
    40     jQuery("#media-upload-error").empty();
    41     jQuery('.upload-flash-bypass').hide();
    42    
    43     jQuery('#file-submit').prop('disabled', true);
    44     jQuery('#cancel-upload').show().prop('disabled', false);
    45 
    46      // delete already uploaded temp file   
    47     if(jQuery('#file_flash_upload').val() != '0') {
    48         jQuery.ajax({type: 'POST', async: true, url:"<?php echo esc_attr( WPFB_PLUGIN_URI.'wpfb-async-upload.php' ); ?>",
    49         data: {<?php echo self::GetAjaxAuthData(true) ?> , delupload:jQuery('#file_flash_upload').val()},
    50         success: (function(data){})
    51         });
    52         jQuery('#file_flash_upload').val(0);
    53     }
    54 }
    5522
    5623function uploadProgress(fileObj, bytesDone, bytesTotal) {
     
    6330        jQuery('.filename', '#file-upload-progress').hide();
    6431    }
    65 }
    66 
    67 function wpFileError(fileObj, message) {
    68     jQuery('#media-upload-error').show().html(message);
    69     jQuery('.upload-flash-bypass').show();
    70     jQuery("#file-upload-progress").hide().empty();
    71     jQuery('#cancel-upload').hide().prop('disabled', true);
    72 }
    73 
    74 
    75 function uploadError(fileObj, errorCode, message) {
    76     wpFileError(fileObj, "Error "+errorCode+": "+message);
    77 }
    78 
    79 function uploadSuccess(fileObj, serverData) {
    80     // if async-upload returned an error message, place it in the media item div and return
    81     if ( serverData.match('media-upload-error') ) {
    82         wpFileError(fileObj, serverData);
    83         return;
    84     }
    85     jQuery('#file_flash_upload').val(serverData);
    86     jQuery('#file-submit').prop('disabled', false);
    87 }
    88 
    89 function uploadComplete(fileObj) {
    90     jQuery('#cancel-upload').hide().prop('disabled', true);
    9132}
    9233   
     
    12263            file_post_name: "async-upload",
    12364            file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
    124             post_params : { <?php echo self::GetAjaxAuthData(); ?> },
     65            post_params : { <?php echo WPFB_AdvUploader::GetAjaxAuthData(); ?> },
    12566            file_size_limit : "<?php
    12667            require_once(ABSPATH . 'wp-admin/includes/template.php');
  • wp-filebase/trunk/classes/Setup.php

    r624879 r630203  
    379379        $queries[] = "ALTER TABLE  `$tbl_files` CHANGE  `file_direct_linking`  `file_direct_linking` ENUM(  '0',  '1',  '2' ) NOT NULL DEFAULT '0'";
    380380
    381 
    382381    // since 0.2.9.25
    383382   
  • wp-filebase/trunk/classes/Sync.php

    r624879 r630203  
    11<?php class WPFB_Sync {
    22   
     3const HIGH_START_MEM = 100000000; // 100MB
     4
    35static function InitClass()
    46{
    57    wpfb_loadclass("Admin", "GetID3");
    68    require_once(ABSPATH . 'wp-admin/includes/file.php');
     9   
     10    @ini_set('max_execution_time', '0');
     11    @set_time_limit(0);
     12   
     13    // raise memory limit if needed
     14    if(WPFB_Core::ParseIniFileSize(ini_get('memory_limit')) < 128000000)
     15        @ini_set('memory_limit', '128M');
    716}
    817
     
    2029{
    2130    self::PrintDebugTrace();
    22     @ini_set('max_execution_time', '0');
    23     @set_time_limit(0);
    2431   
    2532    // some syncing/updating
     
    3037private static function SyncPase1($sync_data, $output)
    3138{
    32     self::PrintDebugTrace();
     39    self::PrintDebugTrace("sync_phase_1");
     40   
     41    if($output) {
     42        $ms = self::GetMemStats();
     43        self::DEcho('<p>'. sprintf(__('Starting sync. Memory usage: %s - Limit: %s',WPFB), WPFB_Output::FormatFilesize($ms['used']), WPFB_Output::FormatFilesize($ms['limit'])).' '.(($ms['used'] > self::HIGH_START_MEM)?__('<b>Note:</b> The memory usage seems to be quite high. Please disable other plugins to lower the memory consumption.'):'').'</p>');
     44    }
    3345   
    3446    if($output) self::DEcho('<p>'. __('Checking for file changes...',WPFB).' ');
     
    6476        if(strlen($fn) < 2 || $fbn{0} == '.' || strpos($fn, '/.tmp') !== false
    6577                || $fbn == '_wp-filebase.css' || strpos($fbn, '_caticon.') !== false
    66                 || in_array($fn, $sync_data->known_filenames)
     78                || in_array(substr($fn, strlen($upload_dir)), $sync_data->known_filenames)
    6779                || !is_file($fn) || !is_readable($fn)
    6880                || (!empty($fext_blacklist) && in_array(trim(strrchr($fbn, '.'),'.'), $fext_blacklist)) // check for blacklisted extension
     
    7991    // handle thumbnails
    8092    self::GetThumbnails($sync_data);
     93   
     94    self::PrintDebugTrace("post_get_thumbs");
    8195}
    8296
     
    104118        if($output) self::DEcho('done!</p>');
    105119    }
    106    
    107     self::AddNewFiles($sync_data, $progress_bar);   
     120
     121    self::PrintDebugTrace("pre_add_files");
     122   
     123    self::AddNewFiles($sync_data, $progress_bar);
    108124    self::PostSync($sync_data, $output);
    109125   
     
    113129private function PostSync($sync_data, $output)
    114130{
    115     self::PrintDebugTrace();
     131    self::PrintDebugTrace("post_sync");
    116132   
    117133    // chmod
    118134    if($output) self::DEcho('<p>Setting permissions...');
    119     $sync_data->log['warnings'] += self::Chmod($sync_data->known_filenames);
     135    $sync_data->log['warnings'] += self::Chmod(self::cleanPath(WPFB_Core::UploadDir()), $sync_data->known_filenames);
    120136    if($output) self::DEcho('done!</p>');
    121137   
     
    126142   
    127143    wpfb_call('Setup','ProtectUploadPath');
     144    self::PrintDebugTrace("update_tags");
    128145    WPFB_File::UpdateTags();
    129146   
     
    148165{
    149166    $sync_id3 = !WPFB_Core::GetOpt('disable_id3');
     167    $upload_dir = self::cleanPath(WPFB_Core::UploadDir()); 
    150168    foreach($sync_data->files as $id => $file)
    151169    {
    152170        $file_path = self::cleanPath($file->GetLocalPath(true));
    153         $sync_data->known_filenames[] = $file_path;
     171        $sync_data->known_filenames[] = substr($file_path, strlen($upload_dir));
    154172        if($file->GetThumbPath())
    155             $sync_data->known_filenames[] = self::cleanPath($file->GetThumbPath());
     173            $sync_data->known_filenames[] = substr(self::cleanPath($file->GetThumbPath()), strlen($upload_dir));
    156174       
    157175        if($file->file_category > 0 && is_null($file->GetParent()))
     
    164182        if(!@is_file($file_path) || !@is_readable($file_path))
    165183        {
     184            if(WPFB_Core::GetOpt('remove_missing_files')) {
     185                $file->Remove();
     186            } else {
     187                $file->file_offline = true;                 // set offline if not found
     188                if(!$file->locked) $file->DBSave();
     189            }
    166190            $sync_data->log['missing_files'][$id] = $file;
    167191            continue;
     
    203227
    204228    foreach($keys as $i)
    205     {
     229    {       
    206230        $fn = $sync_data->new_files[$i];
    207231        unset($sync_data->new_files[$i]);
     
    210234        $fbn = basename($fn);
    211235
    212         self::PrintDebugTrace("add_existing_file");
     236        self::PrintDebugTrace("add_existing_file:$fn");
    213237        $res = WPFB_Admin::AddExistingFile($fn, empty($sync_data->thumbnails[$fn]) ? null : $sync_data->thumbnails[$fn]);
    214238        self::PrintDebugTrace("added_existing_file");
     
    216240            $sync_data->log['added'][] = empty($res['file']) ? substr($fn, $upload_dir_len) : $res['file'];
    217241           
    218             $sync_data->known_filenames[] = $fn;
     242            $sync_data->known_filenames[] = substr($fn, $upload_dir_len);
    219243            if(!empty($res['file']) && $res['file']->GetThumbPath())
    220                 $sync_data->known_filenames[] = self::cleanPath($res['file']->GetThumbPath());
     244                $sync_data->known_filenames[] = substr(self::cleanPath($res['file']->GetThumbPath()), $upload_dir_len);
    221245        } else
    222246            $sync_data->log['error'][] = $res['error'] . " (file $fn)";
     
    232256                return false;
    233257        }
     258       
    234259    }
    235260   
     
    240265}
    241266
     267static function UpdateMemBar() {
     268}
     269
     270static function GetMemStats()
     271{
     272    static $limit = -2;
     273    if($limit == -2)
     274        $limit = WPFB_Core::ParseIniFileSize(ini_get('memory_limit'));
     275    return array('limit' => $limit, 'used' => max(memory_get_usage(true), memory_get_usage()));
     276}
     277
    242278static function GetThumbnails($sync_data)
    243279{
    244280    $num_files_to_add = $num_new_files = count($sync_data->new_files);
     281   
     282    $upload_dir = self::cleanPath(WPFB_Core::UploadDir());
     283    $upload_dir_len = strlen($upload_dir);
    245284   
    246285    // look for thumnails
     
    251290       
    252291        // file and thumbnail should be neighbours in the list, so only check the prev element for matching name
    253         if(strlen($sync_data->new_files[$i-1]) > ($len+2) && substr($sync_data->new_files[$i-1],0,$len) == substr($sync_data->new_files[$i],0,$len) && !in_array($sync_data->new_files[$i-1], $sync_data->known_filenames))
     292        if(strlen($sync_data->new_files[$i-1]) > ($len+2) && substr($sync_data->new_files[$i-1],0,$len) == substr($sync_data->new_files[$i],0,$len) && !in_array(substr($sync_data->new_files[$i-1], $upload_dir_len), $sync_data->known_filenames))
    254293        {
    255294            $suffix = substr($sync_data->new_files[$i-1], $len);
     
    345384}
    346385
    347 function Chmod($files)
     386function Chmod($base_dir, $files)
    348387{
    349388    $result = array();
     
    356395    for($i = 0; $i < count($files); $i++)
    357396    {
    358         if(file_exists($files[$i]))
    359         {
    360             @chmod ($files[$i], octdec(WPFB_PERM_FILE));
    361             if(!is_writable($files[$i]) && !is_writable(dirname($files[$i])))
    362                 $result[] = sprintf(__('File <b>%s</b> is not writable!', WPFB), substr($files[$i], $upload_dir_len));
     397        $f = "$base_dir/".$files[$i];
     398        if(file_exists($f))
     399        {
     400            @chmod ($f, octdec(WPFB_PERM_FILE));
     401            if(!is_writable($f) && !is_writable(dirname($f)))
     402                $result[] = sprintf(__('File <b>%s</b> is not writable!', WPFB), substr($f, $upload_dir_len));
    363403        }
    364404    }
     
    407447            echo '<p>' . __('Filebase successfully synced.', WPFB) . '</p>';
    408448           
    409             $clean_uri = remove_query_arg(array('message', 'action', 'file_id', 'cat_id', 'deltpl', 'hash_sync', 'doit', 'ids', 'files', 'cats', 'batch_sync' /* , 's'*/)); // keep search keyword 
     449            //$clean_uri = remove_query_arg(array('message', 'action', 'file_id', 'cat_id', 'deltpl', 'hash_sync', 'doit', 'ids', 'files', 'cats', 'batch_sync' /* , 's'*/)); // keep search keyword   
     450            $clean_uri = admin_url('admin.php?page=wpfilebase_manage&batch_sync='.(int)!empty($_GET['batch_sync']));
    410451           
    411452            // first files should be deleted, then cats!
    412453            if(!empty($result['missing_files'])) {
    413                 echo '<p>' . sprintf(__('%d Files could not be found.', WPFB), count($result['missing_files'])) . ' <a href="'.$clean_uri.'&amp;action=del&amp;files='.join(',',array_keys($result['missing_files'])).'" class="button">'.__('Remove entries from database').'</a></p>';
     454                echo '<p>' . sprintf(__('%d Files could not be found.', WPFB), count($result['missing_files'])) . ' '.
     455                (WPFB_Core::GetOpt('remove_missing_files') ? 'The corresponding entries have been removed from the database.' : (' <a href="'.$clean_uri.'&amp;action=del&amp;files='.join(',',array_keys($result['missing_files'])).'" class="button" target="_parent">'.__('Remove entries from database').'</a>')).'</p>';
    414456            } elseif(!empty($result['missing_folders'])) {
    415                 echo '<p>' . sprintf(__('%d Category Folders could not be found.', WPFB), count($result['missing_folders'])) . ' <a href="'.$clean_uri.'&amp;action=del&amp;cats='.join(',',array_keys($result['missing_folders'])).'" class="button">'.__('Remove entries from database').'</a></p>';
     457                echo '<p>' . sprintf(__('%d Category Folders could not be found.', WPFB), count($result['missing_folders'])) . ' <a href="'.$clean_uri.'&amp;action=del&amp;cats='.join(',',array_keys($result['missing_folders'])).'" class="button" target="_parent">'.__('Remove entries from database').'</a></p>';
    416458            }
    417459}
     
    420462    if(!empty($_GET['debug']))
    421463    {
    422         echo "<!-- [$tag] BACKTRACE:\n";
     464        $ms = self::GetMemStats();
     465        echo "<!-- [$tag] (MEM: ". WPFB_Output::FormatFilesize($ms['used'])." / $ms[limit]) BACKTRACE:\n";
    423466        echo esc_html(print_r(wp_debug_backtrace_summary(), true));
    424467        echo "\nEND -->";
     468       
     469        self::UpdateMemBar();
    425470    }
    426471}
  • wp-filebase/trunk/editor_plugin.php

    r615301 r630203  
    190190}
    191191
    192 <?php
    193 ?>
     192
    194193//]]>
    195194</script>
     
    206205        <li><a href="#list" onclick="return tabclick(this)"><?php _e('File list', WPFB) ?></a></li>
    207206        <li><a href="#browser" onclick="return tabclick(this)"><?php _e('File Tree View', WPFB) ?></a></li>
    208 <?php
    209 ?>
     207
    210208    </ul>
    211209<?php } ?>
     
    356354
    357355
    358 <?php
    359 ?>
     356
    360357
    361358<!--
  • wp-filebase/trunk/extras/progressbar.class.php

    r590827 r630203  
    2525       
    2626    private $id=0, $value=0, $steps=0, $width=0, $height=0, $color='', $bgcolor='', $inner_styleclass='', $outer_styleclass='', $show_digits=true;
    27    
    28     public function progressbar( $value = 0, $steps = 100, $width = 100, $height = 20, $color = '#0C0', $bgcolor = '#FFF', $inner_styleclass = '', $outer_styleclass = '')
     27
     28    public function progressbar( $value = 0, $steps = 100, $width = 100, $height = 20, $color = '#0C0', $bgcolor = '#FFF', $inner_styleclass = 'wpfb-progress-bar-in', $outer_styleclass = '')
    2929    {
    3030        static $progress_bars;     
     
    7171        $cl = "color:{$this->color};";
    7272
    73         self::_echo("<div id=\"{$jsp}b{$id}\" style=\"{$w}{$h}text-align:left;background-color:{$this->bgcolor};overflow:hidden;".($osc?"\" class=\"{$osc}\"":"border:1px solid #000;\"").">");
     73        self::_echo("<div id=\"{$jsp}b{$id}\" style=\"{$w}{$h}text-align:left;background-color:{$this->bgcolor};overflow:hidden;".($osc?"\" class=\"{$osc}\"":"border:1px solid #000; border-radius:4px; box-shadow: 1px 1px 1px #AAA;\"").">");
    7474        if($this->show_digits)
    7575            self::_echo("\n<div id=\"{$jsp}d{$id}\" style=\"{$w}{$h}text-align:center;line-height:{$this->height}px;position:absolute;z-index:3;{$cl}\"></div>");
    76         self::_echo("<div id=\"{$jsp}{$id}\" style=\"width:0px;{$h}background-{$cl}".($isc?" class=\"{$isc}\"":"\"")."></div>");
     76        self::_echo("<div id=\"{$jsp}{$id}\" style=\"width:0px;{$h}background-{$cl};text-shadow:0 1px 0px #333; box-shadow: 1px 0 1px black;\"".($isc?" class=\"{$isc}\"":"\"")."></div>");
    7777        self::_echo("\n</div>");
    7878        self::execute_js("{$jsp}i({$this->id},{$this->value},{$this->steps},{$this->width});");
  • wp-filebase/trunk/languages/wpfb-pt_BR.po

    r465363 r630203  
    1 # Translation of the WordPress plugin WP-Filebase 0.1.3.0 by Fabian Schlieper.
    2 # Copyright (C) 2010 Fabian Schlieper
    3 # This file is distributed under the same license as the WP-Filebase package.
    4 # Fabian Schlieper <fabian@fabi.me>, 2010.
    5 #
    61msgid ""
    72msgstr ""
    8 "Project-Id-Version: WP-Filebase 0.1.3.0\n"
     3"Project-Id-Version: WP-Filebase v0.2.9.24\n"
    94"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp-filebase\n"
    105"POT-Creation-Date: 2010-01-18 23:16+0000\n"
    11 "PO-Revision-Date: 2011-11-20 21:20+0100\n"
     6"PO-Revision-Date: 2012-11-14 19:24:05+0000\n"
    127"Last-Translator: Fabian Schlieper <fabian@fabi.me>\n"
    138"Language-Team: Fabian Schlieper <fabian@fabi.me>\n"
     
    1510"Content-Type: text/plain; charset=utf-8\n"
    1611"Content-Transfer-Encoding: 8bit\n"
     12"Plural-Forms: nplurals=2; plural=n != 1;\n"
    1713"X-Poedit-Language: Portuguese\n"
    1814"X-Poedit-Country: BRAZIL\n"
    19 
    20 #: editor_plugin.php:37
    21 #: editor_plugin.php:256
    22 msgid "Uncategorized Files"
    23 msgstr "Arquivos sem categoria"
    24 
    25 #: editor_plugin.php:42
    26 #, php-format
    27 msgid "You did not upload a file. <a href=\"%s\" target=\"_parent\">Click here to add one.</a>"
    28 msgstr "Você não realizou o upload do arquivo. <a href=\"%s\" target=\"_parent\">Clique aqui para adicionar um.</a>"
    29 
    30 #: editor_plugin.php:219
     15"X-Poedit-SourceCharset: utf-8\n"
     16"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
     17"X-Poedit-Basepath: \n"
     18"X-Poedit-Bookmarks: \n"
     19"X-Poedit-SearchPath-0: .\n"
     20"X-Textdomain-Support: yes"
     21
     22#: editor_plugin.php:171
     23#@ wpfb
    3124msgid "Enter link text:"
    3225msgstr "Entre com o texto do link:"
    3326
    34 #: editor_plugin.php:244
     27#: editor_plugin.php:204
     28#@ wpfb
    3529msgid "Single file"
    3630msgstr "Arquivo"
    3731
    38 #: editor_plugin.php:245
     32#: editor_plugin.php:205
     33#: lib/wpfb_form_file.php:180
     34#: lib/wpfb_form_file.php:199
     35#@ wpfb
     36#@ default
    3937msgid "File URL"
    4038msgstr "URL do arquivo"
    4139
    42 #: editor_plugin.php:246
     40#: classes/AdminGuiTpls.php:180
     41#: classes/AdminLite.php:20
     42#: classes/Core.php:51
     43#: classes/Widget.php:407
     44#: editor_plugin.php:206
     45#@ wpfb
     46#@ default
    4347msgid "File list"
    4448msgstr "Listagem de arquivos"
    4549
    46 #: editor_plugin.php:255
    47 msgid "All Categories"
    48 msgstr "Todas as categorias"
    49 
    50 #: editor_plugin.php:257
     50#: editor_plugin.php:203
     51#@ wpfb
    5152msgid "Attachments"
    5253msgstr "Anexos"
    5354
    54 #: editor_plugin.php:266
    55 #, php-format
     55#: wpfb-ajax.php:66
     56#, php-format
     57#@ wpfb
    5658msgid "You did not create a category. <a href=\"%s\" target=\"_parent\">Click here to create one.</a>"
    5759msgstr "Você não criou uma categoria. <a href=\"%s\" target=\"_parent\">Clique aqui para criar uma.</a>"
    5860
    59 #: editor_plugin.php:273
     61#: editor_plugin.php:281
     62#: editor_plugin.php:301
     63#@ wpfb
    6064msgid "Select Template"
    6165msgstr "Escolha o template"
    6266
    63 #: editor_plugin.php:274
     67#: editor_plugin.php:282
     68#@ wpfb
    6469msgid "Default Template"
    6570msgstr "Template padrão"
    6671
    67 #: editor_plugin.php:281
    68 #: lib/wp-filebase_admin_gui_manage.lib.php:472
    69 #: lib/wp-filebase_admin_gui_manage.lib.php:481
     72#: editor_plugin.php:288
     73#: editor_plugin.php:307
     74#@ wpfb
    7075msgid "Add Template"
    7176msgstr "Adicionar template"
    7277
    73 #: lib/wp-filebase_admin.lib.php:9
     78#: classes/Admin.php:19
     79#@ wpfb
    7480msgid "One entry per line. Seperate the title and a short tag (not longer than 8 characters) with '|'.<br />All lines beginning with '*' are selected by default."
    7581msgstr "Uma entrada por linha. Separe o título e a short-tag (até 8 caracteres) com '|'.<br />Todas as linhas prefixadas com '*' são selecionadas por padrão."
    7682
    77 #: lib/wp-filebase_admin.lib.php:10
     83#: classes/Admin.php:20
     84#@ wpfb
    7885msgid "One entry per line."
    7986msgstr "Uma entrada por linha."
    8087
    81 #: lib/wp-filebase_admin.lib.php:11
     88#: classes/Admin.php:21
     89#@ wpfb
    8290msgid "Limits the maximum tranfer rate for downloads. 0 = unlimited"
    8391msgstr "Limita a taxa de tranferência máxima para downloads. 0 = ilimitado"
    8492
    85 #: lib/wp-filebase_admin.lib.php:12
     93#: classes/Admin.php:22
     94#@ wpfb
    8695msgid "Limits the maximum data traffic. 0 = unlimited"
    8796msgstr "Limita o tráfego máximo de dados. 0 = ilimitado"
    8897
    89 #: lib/wp-filebase_admin.lib.php:15
     98#: classes/Admin.php:36
     99#@ wpfb
    90100msgid "Upload Path"
    91101msgstr "Caminho de upload"
    92102
    93 #: lib/wp-filebase_admin.lib.php:19
     103#: classes/Admin.php:49
     104#@ wpfb
    94105msgid "Show attached files"
    95106msgstr "Mostrar arquivos anexados"
    96107
    97 #: lib/wp-filebase_admin.lib.php:19
     108#: classes/Admin.php:49
     109#@ wpfb
    98110msgid "If enabled, all associated files are listed below an article"
    99111msgstr "Se habilitado, todos os arquivos associados serão listados abaixo do artigo"
    100112
    101 #: lib/wp-filebase_admin.lib.php:20
     113#: classes/Admin.php:50
     114#@ wpfb
    102115msgid "Default sorting"
    103116msgstr "Ordem padrão"
    104117
    105 #: lib/wp-filebase_admin.lib.php:20
     118#: classes/Admin.php:50
     119#@ wpfb
    106120msgid "The file property lists are sorted by"
    107121msgstr "As listagens de propriedades de arquivos são ordenadas por"
    108122
    109 #: lib/wp-filebase_admin.lib.php:21
    110 msgid "Sorting direction"
    111 msgstr "Direção da ordenação"
    112 
    113 #: lib/wp-filebase_admin.lib.php:21
     123#: classes/Admin.php:51
     124#@ wpfb
    114125msgid "The sorting direction of file lists"
    115126msgstr "A direção da ordenação das listagens de arquivos"
    116127
    117 #: lib/wp-filebase_admin.lib.php:23
     128#: classes/Admin.php:59
     129#@ wpfb
    118130msgid "Bit rate limit for guests"
    119131msgstr "Limite de bitrate para convidados"
    120132
    121 #: lib/wp-filebase_admin.lib.php:24
     133#: classes/Admin.php:60
     134#@ wpfb
    122135msgid "Bit rate limit for registered users"
    123136msgstr "Limite de bitrate para usuários registrados"
    124137
    125 #: lib/wp-filebase_admin.lib.php:25
     138#: classes/Admin.php:61
     139#@ wpfb
    126140msgid "Daily traffic limit"
    127141msgstr "Limite de tráfego diário"
    128142
    129 #: lib/wp-filebase_admin.lib.php:26
     143#: classes/Admin.php:62
     144#@ wpfb
    130145msgid "Monthly traffic limit"
    131146msgstr "Limite de tráfego mensal"
    132147
    133 #: lib/wp-filebase_admin.lib.php:27
     148#: classes/Admin.php:63
     149#@ wpfb
    134150msgid "Traffic limit exceeded! Please try again later."
    135151msgstr "Limite de tráfego excedido. Favor tentar novamente mais tarde."
    136152
    137 #: lib/wp-filebase_admin.lib.php:27
     153#: classes/Admin.php:63
     154#@ wpfb
    138155msgid "Traffic exceeded message"
    139156msgstr "Mensagem de limite de tráfego excedido"
    140157
    141 #: lib/wp-filebase_admin.lib.php:28
     158#: classes/Admin.php:64
     159#@ wpfb
    142160msgid "This file is currently offline."
    143161msgstr "Este arquivo está atualmente offline."
    144162
    145 #: lib/wp-filebase_admin.lib.php:28
     163#: classes/Admin.php:64
     164#@ wpfb
    146165msgid "File offline message"
    147166msgstr "Mensagem de arquivo offline"
    148167
    149 #: lib/wp-filebase_admin.lib.php:30
     168#: classes/Admin.php:74
     169#@ wpfb
    150170msgid "Disable download permalinks"
    151171msgstr "Desabilitar permalinks de download"
    152172
    153 #: lib/wp-filebase_admin.lib.php:30
     173#: classes/Admin.php:74
     174#@ wpfb
    154175msgid "Enable this if you have problems with permalinks."
    155176msgstr "Ative isto caso encontre problemas com permalinks."
    156177
    157 #: lib/wp-filebase_admin.lib.php:31
     178#: classes/Admin.php:75
     179#@ wpfb
    158180msgid "Download URL base"
    159181msgstr "URL base de download"
    160182
    161 #: lib/wp-filebase_admin.lib.php:31
    162 #, php-format
     183#: classes/Admin.php:75
     184#, php-format
     185#@ wpfb
    163186msgid "The url prefix for file download links. Example: <code>%s</code> (Only used when Permalinks are enabled.)"
    164187msgstr "O prefixo de url para links de download. Exemplo <code>%s</code> (Usado apenas quando permalinks estão habilitados.)"
    165188
    166 #: lib/wp-filebase_admin.lib.php:33
     189#: classes/Admin.php:77
     190#@ wpfb
    167191msgid "Post ID of the file browser"
    168192msgstr "ID do post do navegador de arquivos"
    169193
    170 #: lib/wp-filebase_admin.lib.php:33
     194#: classes/Admin.php:77
     195#@ wpfb
    171196msgid "Specify the ID of the post or page where the file browser should be placed. If you want to disable this feature leave the field blank."
    172197msgstr "Especifique o ID do post ou página onde o navegador de arquivos deve ser inserido. Se você deseja desabilitar esta função deixe este campo em branco."
    173198
    174 #: lib/wp-filebase_admin.lib.php:34
     199#: classes/Admin.php:88
     200#@ wpfb
    175201msgid "Category drop down list"
    176202msgstr "Lista drop-down de categorias"
    177203
    178 #: lib/wp-filebase_admin.lib.php:34
     204#: classes/Admin.php:88
     205#@ wpfb
    179206msgid "Use category drop down list in the file browser instead of listing like files."
    180207msgstr "Use a lista drop-down de categorias no navegador de arquivos ao invés de usar a listagem de arquivos."
    181208
    182 #: lib/wp-filebase_admin.lib.php:36
     209#: classes/Admin.php:90
     210#: classes/Admin.php:92
     211#@ wpfb
    183212msgid "Always force download"
    184213msgstr "Sempre forçar o download"
    185214
    186 #: lib/wp-filebase_admin.lib.php:36
     215#: classes/Admin.php:90
     216#@ wpfb
    187217msgid "If enabled files that can be viewed in the browser (like images, PDF documents or videos) can only be downloaded (no streaming)."
    188218msgstr "Se habilitado, arquivos que podem ser vistos no browser (como imagens, documentos PDF ou vídeos) poderão ser apenas baixados (sem streaming)."
    189219
    190 #: lib/wp-filebase_admin.lib.php:37
     220#: classes/Admin.php:93
     221#@ wpfb
    191222msgid "Ignore downloads by admins"
    192223msgstr "Ignorar download realizado por admins"
    193224
    194 #: lib/wp-filebase_admin.lib.php:38
     225#: classes/Admin.php:94
     226#@ wpfb
    195227msgid "Hide inaccessible files and categories"
    196228msgstr "Esconder arquivos e categorias inacessíveis"
    197229
    198 #: lib/wp-filebase_admin.lib.php:38
     230#: classes/Admin.php:94
     231#@ wpfb
    199232msgid "If enabled files tagged <i>For members only</i> will not be listed for guests or users whith insufficient rights."
    200233msgstr "Se habilitado, arquivos marcados como <i>Apenas para membros</i> não serão listados para visitantes ou usuários com privilégios insuficientes."
    201234
    202 #: lib/wp-filebase_admin.lib.php:39
     235#: classes/Admin.php:95
     236#@ wpfb
    203237msgid "You are not allowed to access this file!"
    204238msgstr "Você não tem permissão para acessar este arquivo!"
    205239
    206 #: lib/wp-filebase_admin.lib.php:39
     240#: classes/Admin.php:95
     241#@ wpfb
    207242msgid "Inaccessible file message"
    208243msgstr "Mensagem de arquivo inacessível"
    209244
    210 #: lib/wp-filebase_admin.lib.php:39
     245#: classes/Admin.php:95
     246#@ wpfb
    211247msgid "This message will be displayed if users try to download a file they cannot access"
    212248msgstr "Esta mensagem será mostrada caso o usuário tente realizar download de um arquivo cujo o mesmo não tem permissão"
    213249
    214 #: lib/wp-filebase_admin.lib.php:40
     250#: classes/Admin.php:96
     251#@ wpfb
    215252msgid "Redirect to login"
    216253msgstr "Redirecionar para login"
    217254
    218 #: lib/wp-filebase_admin.lib.php:40
     255#: classes/Admin.php:96
     256#@ wpfb
    219257msgid "Guests trying to download inaccessible files are redirected to the login page if this option is enabled."
    220258msgstr "Visitantes tentando realizar download de arquivos inacessíveis serão redirecionados para página de login caso esta opção esteja habilitada."
    221259
    222 #: lib/wp-filebase_admin.lib.php:40
     260#: classes/Admin.php:102
     261#@ wpfb
    223262msgid "Parse template tags in RSS feeds"
    224263msgstr "Parsear tags de template nos feeds RSS"
    225264
    226 #: lib/wp-filebase_admin.lib.php:40
     265#: classes/Admin.php:102
     266#@ wpfb
    227267msgid "If enabled WP-Filebase content tags are parsed in RSS feeds."
    228268msgstr "Se habilitado, as tags de conteúdo do WP-Filebase serão parseadas em feeds RSS."
    229269
    230 #: lib/wp-filebase_admin.lib.php:42
     270#: classes/Admin.php:104
     271#@ wpfb
    231272msgid "Allow script upload"
    232273msgstr "Habilitar upload de scripts"
    233274
    234 #: lib/wp-filebase_admin.lib.php:42
     275#: classes/Admin.php:104
     276#@ wpfb
    235277msgid "If you enable this, scripts like PHP or CGI can be uploaded. <b>WARNING:</b> Enabling script uploads is a <b>security risk</b>!"
    236278msgstr "Caso habilite esta opção, scripts como PHP ou CGI poderão ser uploadeados. <b>WARNING:</b> Habilitar uploads de script é um <b>risco de segurança</b>!"
    237279
    238 #: lib/wp-filebase_admin.lib.php:44
     280#: classes/Admin.php:112
     281#@ wpfb
    239282msgid "Accept empty referers"
    240283msgstr "Aceitar referências (Referers) vazios"
    241284
    242 #: lib/wp-filebase_admin.lib.php:44
     285#: classes/Admin.php:112
     286#@ wpfb
    243287msgid "If enabled, direct-link-protected files can be downloaded when the referer is empty (i.e. user entered file url in address bar or browser does not send referers)"
    244288msgstr "Se habilitado, arquivos protegidos contra linkagem direta poderão ser baixados quando o referer for vazio (ex: usuário digitou o caminho direto na barra de endereços ou o browser não envia informações de referer)"
    245289
    246 #: lib/wp-filebase_admin.lib.php:45
     290#: classes/Admin.php:113
     291#@ wpfb
    247292msgid "Allowed referers"
    248293msgstr "Referências (referer) permitidas"
    249294
    250 #: lib/wp-filebase_admin.lib.php:45
     295#: classes/Admin.php:113
     296#@ wpfb
    251297msgid "Sites with matching URLs can link to files directly."
    252298msgstr "Sites com as seguintes URLs podem linkar arquivos diretamente."
    253299
    254 #: lib/wp-filebase_admin.lib.php:47
     300#: classes/Admin.php:117
     301#@ wpfb
    255302msgid "Decimal file size prefixes"
    256303msgstr "Prefixo decimal do tamanho de arquivos"
    257304
    258 #: lib/wp-filebase_admin.lib.php:47
     305#: classes/Admin.php:117
     306#@ wpfb
    259307msgid "Enable this if you want decimal prefixes (1 MB = 1000 KB = 1 000 000 B) instead of binary (1 MiB = 1024 KiB = 1 048 576 B)"
    260308msgstr "Habilite isto caso deseje prefixos decimais (1 MB = 1000 KB = 1 000 000 B) ao invés da representação binária (1 MiB = 1024 KiB = 1 048 576 B)"
    261309
    262 #: lib/wp-filebase_admin.lib.php:50
    263 #: lib/wp-filebase_form_file.php:80
     310#: classes/Admin.php:144
     311#: lib/wpfb_form_file.php:269
     312#@ wpfb
    264313msgid "Platforms"
    265314msgstr "Plataformas"
    266315
    267 #: lib/wp-filebase_admin.lib.php:51
     316#: classes/Admin.php:146
     317#@ wpfb
    268318msgid "Licenses"
    269319msgstr "Licensas"
    270320
    271 #: lib/wp-filebase_admin.lib.php:52
    272 #: lib/wp-filebase_form_file.php:84
     321#: classes/Admin.php:153
     322#: lib/wpfb_form_file.php:273
     323#@ wpfb
    273324msgid "Requirements"
    274325msgstr "Requerimentos"
    275326
    276 #: lib/wp-filebase_admin.lib.php:52
     327#: classes/Admin.php:153
     328#@ wpfb
    277329msgid "You can optionally add |<i>URL</i> to each line to link to the required software/file."
    278330msgstr "Você pode opcionalmente adicionar |<i>URL</i> para cada linha para linkar com o software requerido"
    279331
    280 #: lib/wp-filebase_admin.lib.php:88
     332#: classes/Admin.php:195
     333#@ wpfb
    281334msgid "Default File Template"
    282335msgstr "Arquivo de template padrão"
    283336
    284 #: lib/wp-filebase_admin.lib.php:88
     337#: classes/Admin.php:195
     338#@ wpfb
    285339msgid "The template for attachments"
    286340msgstr "Template para anexos"
    287341
    288 #: lib/wp-filebase_admin.lib.php:103
     342#: classes/Admin.php:210
     343#: classes/AdminGuiTpls.php:312
     344#@ wpfb
    289345msgid "Category Template"
    290346msgstr "Template de categoria"
    291347
    292 #: lib/wp-filebase_admin.lib.php:103
     348#: classes/Admin.php:210
     349#@ wpfb
    293350msgid "The template for category lists (used in the file browser)"
    294351msgstr "O template para listagens de categoria (usado no navegador de arquivos)"
    295352
    296 #: lib/wp-filebase_admin.lib.php:113
     353#: classes/Admin.php:220
     354#@ wpfb
    297355msgid "Download JavaScript"
    298356msgstr "JavaScript de download"
    299357
    300 #: lib/wp-filebase_admin.lib.php:113
     358#: classes/Admin.php:220
     359#@ wpfb
    301360msgid "Here you can enter JavaScript Code which is executed when a user clicks on file download link. The following variables can be used: <i>file_id</i>: the ID of the file, <i>file_url</i>: the clicked download url"
    302361msgstr "Aqui você pode inserir código JavaScript que será executado quando um usuário clica no link de download do arquivo. As seguintes variáveis podem ser utilizadas: <i>file_id</i>: o ID do arquivo, <i>file_url</i>: a url de download"
    303362
    304 #: lib/wp-filebase_admin.lib.php:129
     363#: classes/Admin.php:234
     364#@ wpfb
    305365msgid "The category URL"
    306366msgstr "A URL da categoria"
    307367
    308 #: lib/wp-filebase_admin.lib.php:130
     368#: classes/Admin.php:235
     369#@ wpfb
    309370msgid "Category path (e.g cat1/cat2/)"
    310371msgstr "Caminho da categoria (ex: cat1/cat2)"
    311372
    312 #: lib/wp-filebase_admin.lib.php:131
     373#: classes/Admin.php:236
     374#@ wpfb
    313375msgid "Just the category folder name, not the path"
    314376msgstr "Apenas o nome do diretório da categoria, não o caminho"
    315377
    316 #: lib/wp-filebase_admin.lib.php:133
     378#: classes/Admin.php:241
     379#@ wpfb
    317380msgid "Name of the parent categories (empty if none)"
    318381msgstr "Nome das categorias pai (vazio para nenhum)"
    319382
    320 #: lib/wp-filebase_admin.lib.php:134
     383#: classes/Admin.php:242
     384#@ wpfb
    321385msgid "Number of files in the category"
    322386msgstr "Numero de arquivos na categoria"
    323387
    324 #: lib/wp-filebase_admin.lib.php:136
    325 msgid "The minimum user level to view this category (-1 = guest, 0 = Subscriber ...)"
    326 msgstr "O nível de usuário mínimo para visualizar esta categoria (-1 = Convidado, 0 = Assinante ...)"
    327 
    328 #: lib/wp-filebase_admin.lib.php:138
     388#: classes/Admin.php:248
     389#@ wpfb
    329390msgid "The category ID"
    330391msgstr "O ID da categoria"
    331392
    332 #: lib/wp-filebase_admin.lib.php:139
    333 #: lib/wp-filebase_admin.lib.php:174
     393#: classes/Admin.php:249
     394#: classes/Admin.php:305
     395#@ wpfb
    334396msgid "A unique ID number to identify elements within a template"
    335397msgstr "Um número único para identificar elementos em um template"
    336398
    337 #: lib/wp-filebase_admin.lib.php:142
    338 #: lib/wp-filebase_admin.lib.php:181
     399#: classes/Admin.php:253
     400#: classes/Admin.php:315
     401#@ wpfb
    339402msgid "Name of the file"
    340403msgstr "Nome do arquivo"
    341404
    342 #: lib/wp-filebase_admin.lib.php:143
    343 #: lib/wp-filebase_admin.lib.php:182
     405#: classes/Admin.php:261
     406#: classes/Admin.php:319
     407#@ wpfb
    344408msgid "Formatted file size"
    345409msgstr "Tamanho do arquivo formatado"
    346410
    347 #: lib/wp-filebase_admin.lib.php:144
    348 #: lib/wp-filebase_admin.lib.php:183
     411#: classes/Admin.php:262
     412#: classes/Admin.php:320
     413#@ wpfb
    349414msgid "Formatted file date"
    350415msgstr "Data do arquivo formatada"
    351416
    352 #: lib/wp-filebase_admin.lib.php:145
     417#: classes/Admin.php:274
     418#@ wpfb
    353419msgid "Name of the thumbnail file"
    354420msgstr "Nome do arquivo de thumbnail"
    355421
    356 #: lib/wp-filebase_admin.lib.php:148
    357 #: lib/wp-filebase_admin.lib.php:186
     422#: classes/Admin.php:263
     423#: classes/Admin.php:316
     424#@ wpfb
    358425msgid "File version"
    359426msgstr "Versão do arquivo"
    360427
    361 #: lib/wp-filebase_admin.lib.php:150
     428#: classes/Admin.php:267
     429#@ wpfb
    362430msgid "Supported languages"
    363431msgstr "Línguas suportadas"
    364432
    365 #: lib/wp-filebase_admin.lib.php:151
     433#: classes/Admin.php:268
     434#@ wpfb
    366435msgid "Supported platforms (operating systems)"
    367436msgstr "Plataformas suportadas (sistemas operacionais)"
    368437
    369 #: lib/wp-filebase_admin.lib.php:152
     438#: classes/Admin.php:269
     439#@ wpfb
    370440msgid "Requirements to use this file"
    371441msgstr "Requerimentos para este arquivo"
    372442
    373 #: lib/wp-filebase_admin.lib.php:153
    374 #: lib/wp-filebase_admin.lib.php:188
    375 #: lib/wp-filebase_form_file.php:66
     443#: classes/Admin.php:270
     444#: classes/Admin.php:331
     445#: lib/wpfb_form_file.php:249
     446#@ wpfb
    376447msgid "License"
    377448msgstr "Licensa"
    378449
    379 #: lib/wp-filebase_admin.lib.php:154
    380 #: lib/wp-filebase_admin.lib.php:189
    381 msgid "The minimum user level to download this file (-1 = guest, 0 = Subscriber ...)"
    382 msgstr "O nível de usuário mínimo para baixar este arquivo (-1 = Convidado, 0 = Assinante ...)"
    383 
    384 #: lib/wp-filebase_admin.lib.php:155
     450#: classes/Admin.php:283
     451#@ wpfb
    385452msgid "1 if file is offline, otherwise 0"
    386453msgstr "1 se o arquivo está offline, 0 caso contrário"
    387454
    388 #: lib/wp-filebase_admin.lib.php:156
     455#: classes/Admin.php:284
     456#@ wpfb
    389457msgid "1 if direct linking is allowed, otherwise 0"
    390458msgstr "1 se a linkagem direta é permitida, 0 caso contrário"
    391459
    392 #: lib/wp-filebase_admin.lib.php:157
     460#: classes/Admin.php:231
     461#: classes/Admin.php:272
     462#@ wpfb
    393463msgid "The category name"
    394464msgstr "Nome da categoria"
    395465
    396 #: lib/wp-filebase_admin.lib.php:159
    397 #: lib/wp-filebase_admin.lib.php:193
     466#: classes/Admin.php:287
     467#: classes/Admin.php:333
     468#@ wpfb
    398469msgid "ID of the post/page this file belongs to"
    399470msgstr "ID do post/página que este arquivo pertence"
    400471
    401 #: lib/wp-filebase_admin.lib.php:160
    402 #: lib/wp-filebase_admin.lib.php:194
    403 msgid "User ID of the owner"
    404 msgstr "ID do usuário que realizou o upload do arquivo"
    405 
    406 #: lib/wp-filebase_admin.lib.php:161
    407 #: lib/wp-filebase_admin.lib.php:195
     472#: classes/Admin.php:289
     473#: classes/Admin.php:318
     474#@ wpfb
    408475msgid "How many times this file has been downloaded."
    409476msgstr "Quantas vezes o arquivo foi baixado"
    410477
    411 #: lib/wp-filebase_admin.lib.php:164
     478#: classes/Admin.php:292
     479#@ wpfb
    412480msgid "IP Address of the last downloader"
    413481msgstr "Endereço IP do usuário do último download"
    414482
    415 #: lib/wp-filebase_admin.lib.php:165
    416 #: lib/wp-filebase_admin.lib.php:196
     483#: classes/Admin.php:293
     484#: classes/Admin.php:321
     485#@ wpfb
    417486msgid "Time of the last download"
    418487msgstr "Data e Hora do último download"
    419488
    420 #: lib/wp-filebase_admin.lib.php:167
     489#: classes/Admin.php:255
     490#@ wpfb
    421491msgid "Download URL"
    422492msgstr "URL de download"
    423493
    424 #: lib/wp-filebase_admin.lib.php:168
     494#: classes/Admin.php:299
     495#@ wpfb
    425496msgid "URL of the post/page this file belongs to"
    426497msgstr "URL do post/página que este arquivo pertence"
    427498
    428 #: lib/wp-filebase_admin.lib.php:169
     499#: classes/Admin.php:238
     500#: classes/Admin.php:258
     501#@ wpfb
    429502msgid "URL of the thumbnail or icon"
    430503msgstr "URL do thumbnail ou ícone"
    431504
    432 #: lib/wp-filebase_admin.lib.php:170
     505#: classes/Admin.php:301
     506#@ wpfb
    433507msgid "Category path and file name (e.g cat1/cat2/file.ext)"
    434508msgstr "Caminho da categoria e nome do arquivo (ex: cat1/cat2/arquivo.ext)"
    435509
    436 #: lib/wp-filebase_admin.lib.php:172
     510#: classes/Admin.php:303
     511#@ wpfb
    437512msgid "The file ID"
    438513msgstr "O ID do arquivo"
    439514
    440 #: lib/wp-filebase_admin.lib.php:185
     515#: classes/Admin.php:232
     516#: classes/Admin.php:266
     517#: classes/Admin.php:329
     518#: classes/Admin.php:347
     519#@ wpfb
    441520msgid "Short description"
    442521msgstr "Descrição curta"
    443522
    444 #: lib/wp-filebase_admin.lib.php:190
    445 msgid "Offline > Online"
    446 msgstr "Offline > Online"
    447 
    448 #: lib/wp-filebase_admin.lib.php:191
    449 msgid "Direct linking > redirect to post"
    450 msgstr "Linkagem direta > redirecionar para post"
    451 
    452 #: lib/wp-filebase_admin.lib.php:202
     523#: classes/Admin.php:364
     524#@ wpfb
    453525msgid "Add template variable:"
    454526msgstr "Adicionar variável de template:"
    455527
    456 #: lib/wp-filebase_admin.lib.php:236
     528#: classes/Admin.php:418
     529#@ wpfb
    457530msgid "You must enter a category name or a folder name."
    458531msgstr "Voce deve fornecer um nome de categoria ou de diretório."
    459532
    460 #: lib/wp-filebase_admin.lib.php:245
     533#: classes/Admin.php:421
     534#@ wpfb
    461535msgid "The category folder name contains invalid characters."
    462536msgstr "O nome do diretório da categoria contém caracteres inválidos."
    463537
    464 #: lib/wp-filebase_admin.lib.php:290
    465 #, php-format
    466 msgid "The directory %s already exists!"
    467 msgstr "O diretório %s já existe!"
    468 
    469 #: lib/wp-filebase_admin.lib.php:313
     538#: classes/Admin.php:473
     539#: classes/Admin.php:487
     540#@ wpfb
    470541msgid "Unable to move category icon!"
    471542msgstr "Não foi possível mover o ícone de categoria!"
    472543
    473 #: lib/wp-filebase_admin.lib.php:352
    474 #, php-format
     544#: classes/Admin.php:559
     545#, php-format
     546#@ wpfb
    475547msgid "The file extension of the file <b>%s</b> is forbidden!"
    476548msgstr "A extensão de arquivo <b>%s</b> não é permitida!"
    477549
    478 #: lib/wp-filebase_admin.lib.php:388
    479 #, php-format
     550#: classes/Admin.php:593
     551#, php-format
     552#@ wpfb
    480553msgid "File %s already exists. You have to delete it first!"
    481554msgstr "Arquivo %s já existe. Você deve deletá-lo primeiro!"
    482555
    483 #: lib/wp-filebase_admin.lib.php:392
    484 #, php-format
     556#: classes/Admin.php:595
     557#, php-format
     558#@ wpfb
    485559msgid "Unable to move file %s! Is the upload directory writeable?"
    486560msgstr "Não foi possível mover o arquivo %s! O diretório de upload possui permissão de escrita?"
    487561
    488 #: lib/wp-filebase_admin.lib.php:394
     562#: classes/Admin.php:553
     563#: classes/Admin.php:604
     564#: wpfb-async-upload.php:59
     565#@ wpfb
    489566msgid "No file was uploaded."
    490567msgstr "Nenhum arquivo foi enviado."
    491568
    492 #: lib/wp-filebase_admin.lib.php:448
     569#: classes/Admin.php:551
     570#@ wpfb
    493571msgid "Could not get user id!"
    494572msgstr "Não foi possível pegar o ID do usuário!"
    495573
    496 #: lib/wp-filebase_admin.lib.php:549
    497 #, php-format
     574#: classes/Sync.php:360
     575#, php-format
     576#@ wpfb
    498577msgid "File <b>%s</b> is not writable!"
    499578msgstr "Arquivo <b>%s</b> não possui permissão de escrita!"
    500579
    501 #: lib/wp-filebase_admin_gui_manage.lib.php:62
    502 #, php-format
     580#: classes/AdminGuiCats.php:90
     581#, php-format
     582#@ wpfb
    503583msgid "Manage Categories (<a href=\"%s\">add new</a>)"
    504584msgstr "Gerenciar Categorias (<a href=\"%s\">adicionar nova</a>)"
    505585
    506 #: lib/wp-filebase_admin_gui_manage.lib.php:121
     586#: classes/AdminGuiCats.php:149
     587#: classes/AdminGuiTpls.php:178
     588#: classes/Widget.php:25
     589#: classes/Widget.php:415
     590#: editor_plugin.php:249
     591#@ wpfb
    507592msgid "Files"
    508593msgstr "Arquivos"
    509594
    510 #: lib/wp-filebase_admin_gui_manage.lib.php:146
     595#: classes/AdminGuiCats.php:173
     596#@ wpfb
    511597msgid "<strong>Note:</strong><br />Deleting a category does not delete the files in that category. Instead, files that were assigned to the deleted category are set to the parent category."
    512598msgstr "<strong>Nota:</strong><br />Remover uma categoria não apaga os arquivos sob a mesma. Ao invés, arquivos que estavam associados a categoria removida serão herdados pela categoria pai."
    513599
    514 #: lib/wp-filebase_admin_gui_manage.lib.php:185
     600#: classes/AdminGuiFiles.php:90
     601#@ wpfb
    515602msgid "File updated."
    516603msgstr "Arquivo atualizado."
    517604
    518 #: lib/wp-filebase_admin_gui_manage.lib.php:185
     605#: classes/Admin.php:1110
     606#: classes/AdminGuiFiles.php:90
     607#@ wpfb
    519608msgid "File added."
    520609msgstr "Arquivo adicionado."
    521610
    522 #: lib/wp-filebase_admin_gui_manage.lib.php:201
    523 #, php-format
     611#: classes/AdminGuiFiles.php:106
     612#, php-format
     613#@ wpfb
    524614msgid "Manage Files (<a href=\"%s\">add new</a>)"
    525615msgstr "Gerenciar Arquivos (<a href=\"%s\">adicionar novo</a>)"
    526616
    527 #: lib/wp-filebase_admin_gui_manage.lib.php:209
    528 #: lib/wp-filebase_admin_gui_manage.lib.php:211
     617#: classes/AdminGuiFiles.php:119
     618#: classes/AdminGuiFiles.php:121
     619#: classes/Widget.php:269
     620#@ wpfb
    529621msgid "Search Files"
    530622msgstr "Procurar arquivos"
    531623
    532 #: lib/wp-filebase_admin_gui_manage.lib.php:269
     624#: classes/AdminGuiFiles.php:173
     625#: classes/FileListTable.php:31
     626#@ wpfb
    533627msgid "Filename"
    534628msgstr "Nome do arquivo"
    535629
    536 #: lib/wp-filebase_admin_gui_manage.lib.php:270
     630#: classes/AdminGuiFiles.php:174
     631#: classes/FileListTable.php:32
     632#@ default
    537633msgid "Size"
    538634msgstr "Tamanho"
    539635
    540 #: lib/wp-filebase_admin_gui_manage.lib.php:273
     636#: classes/AdminGuiFiles.php:180
     637#: classes/FileListTable.php:38
     638#@ wpfb
    541639msgid "Hits"
    542640msgstr "Downloads"
    543641
    544 #: lib/wp-filebase_admin_gui_manage.lib.php:274
     642#: classes/AdminGuiFiles.php:181
     643#: classes/FileListTable.php:39
     644#@ wpfb
    545645msgid "Last download"
    546646msgstr "Último download"
    547647
    548 #: lib/wp-filebase_admin_gui_manage.lib.php:362
     648#: classes/Sync.php:393
     649#@ wpfb
    549650msgid "Nothing changed!"
    550651msgstr "Nenhuma alteração!"
    551652
    552 #: lib/wp-filebase_admin_gui_manage.lib.php:365
    553 #, php-format
     653#: classes/Sync.php:396
     654#, php-format
     655#@ wpfb
    554656msgid "Changed %d items."
    555657msgstr "Alterado %d items."
    556658
    557 #: lib/wp-filebase_admin_gui_manage.lib.php:369
    558 #, php-format
     659#: classes/Sync.php:400
     660#, php-format
     661#@ wpfb
    559662msgid "Added %d files."
    560663msgstr "Adicionado %d arquivos."
    561664
    562 #: lib/wp-filebase_admin_gui_manage.lib.php:374
     665#: classes/Sync.php:405
     666#@ wpfb
    563667msgid "Filebase successfully synced."
    564668msgstr "Filebase sincronizado com sucesso."
    565669
    566 #: lib/wp-filebase_admin_gui_manage.lib.php:377
     670#: classes/AdminGuiManage.php:273
     671#@ wpfb
    567672msgid "Complete file sync"
    568673msgstr "Sincronização completa"
    569674
    570 #: lib/wp-filebase_admin_gui_manage.lib.php:377
     675#: classes/AdminGuiManage.php:273
     676#@ wpfb
    571677msgid "Checks files for changes, so more reliable but might take much longer. Do this if you uploaded/changed files with FTP."
    572678msgstr "Checa por alteração em arquivos. Mais confiável mas pode levar algum tempo. Faça isto caso tenha inserido/modificado arquivos por FTP."
    573679
    574 #: lib/wp-filebase_admin_gui_manage.lib.php:390
    575 #, php-format
     680#: classes/AdminGuiCss.php:38
     681#, php-format
     682#@ wpfb
    576683msgid "%s is not writable!"
    577684msgstr "%s não tem permissão de escrita!"
    578685
    579 #: lib/wp-filebase_admin_gui_manage.lib.php:418
     686#: classes/AdminGuiCss.php:66
     687#@ wpfb
    580688msgid "Update File"
    581689msgstr "Atualizar Arquivo"
    582690
    583 #: lib/wp-filebase_admin_gui_manage.lib.php:419
     691#: classes/AdminGuiCss.php:67
     692#@ wpfb
    584693msgid "Restore Default"
    585694msgstr "Restaurar padrão"
    586695
    587 #: lib/wp-filebase_admin_gui_manage.lib.php:452
    588 msgid "Edit Templates"
    589 msgstr "Editar templates"
    590 
    591 #: lib/wp-filebase_admin_gui_manage.lib.php:466
    592 msgid "Submit Template Changes"
    593 msgstr "Submeter alterações de template"
    594 
    595 #: lib/wp-filebase_admin_gui_manage.lib.php:475
     696#: classes/AdminGuiTpls.php:299
     697#@ wpfb
    596698msgid "Template Tag (a single word to describe the template):"
    597699msgstr "Tag de template (uma única palavra para descrever o template):"
    598700
    599 #: lib/wp-filebase_admin_gui_manage.lib.php:477
     701#: classes/AdminGuiTpls.php:332
     702#@ wpfb
    600703msgid "Template Code:"
    601704msgstr "Código do template:"
    602705
    603 #: lib/wp-filebase_admin_gui_manage.lib.php:497
    604 #, php-format
     706#: classes/AdminGuiManage.php:67
     707#, php-format
     708#@ wpfb
    605709msgid "The upload directory <code>%s</code> does not exists. It could not be created automatically because the directory <code>%s</code> is not writable. Please create <code>%s</code> and make it writable for the webserver by executing the following FTP command: <code>%s</code>"
    606710msgstr "O diretório de upload <code>%s</code> não existe.  Este não pode ser criado automaticamente pois o diretório <code>%s</code> não possui permissão de escrita. Favor crie o diretório <code>%s</code> e lhe forneça permissão de escrita para o webserver executando o seguinte comando FTP: <code>%s</code>"
    607711
    608 #: lib/wp-filebase_admin_gui_manage.lib.php:499
    609 #, php-format
     712#: classes/AdminGuiManage.php:71
     713#, php-format
     714#@ wpfb
    610715msgid "The upload directory <code>%s</code> is not writable. Please make it writable for PHP by executing the follwing FTP command: <code>%s</code>"
    611716msgstr "O diretório de upload <code>%s</code> não possui permissão de escrita. Favor fornecer permissão de escrita para o PHP executando o seguinte comando FTP: <code>%s</code>"
    612717
    613 #: lib/wp-filebase_admin_gui_manage.lib.php:506
    614 msgid "Manage Files"
    615 msgstr "Gerenciar Arquivos"
    616 
    617 #: lib/wp-filebase_admin_gui_manage.lib.php:506
    618 msgid "View uploaded files and edit them"
    619 msgstr "Ver arquivos carregados e editá-los"
    620 
    621 #: lib/wp-filebase_admin_gui_manage.lib.php:507
    622 msgid "Manage Categories"
    623 msgstr "Gerenciar Categorias"
    624 
    625 #: lib/wp-filebase_admin_gui_manage.lib.php:507
    626 msgid "Manage existing categories and add new ones."
    627 msgstr "Gerenciar categorias existentes e criar novas."
    628 
    629 #: lib/wp-filebase_admin_gui_manage.lib.php:508
     718#: classes/AdminGuiManage.php:177
     719#: classes/Core.php:562
     720#@ wpfb
    630721msgid "Sync Filebase"
    631722msgstr "Sincronizar o Filebase"
    632723
    633 #: lib/wp-filebase_admin_gui_manage.lib.php:508
     724#: classes/AdminGuiManage.php:177
     725#@ wpfb
    634726msgid "Synchronises the database with the file system. Use this to add FTP-uploaded files."
    635727msgstr "Sincroniza o banco de dados de arquivos com o sistema de arquivos. Use isto para adicionar arquivos carregados por FTP."
    636728
    637 #: lib/wp-filebase_admin_gui_manage.lib.php:509
    638 msgid "Edit Stylesheet"
    639 msgstr "Editar folha de estilo"
    640 
    641 #: lib/wp-filebase_admin_gui_manage.lib.php:509
    642 msgid "Edit the CSS for the file template"
    643 msgstr "Edite o CSS para o arquivo de template"
    644 
    645 #: lib/wp-filebase_admin_gui_manage.lib.php:510
    646 msgid "Manage Templates"
    647 msgstr "Gerenciar Templates"
    648 
    649 #: lib/wp-filebase_admin_gui_manage.lib.php:510
    650 msgid "Edit custom file list templates"
    651 msgstr "Editar template de lista de arquivos personalizada"
    652 
    653 #: lib/wp-filebase_admin_gui_manage.lib.php:511
    654 msgid "Donate &amp; Feature Request"
    655 msgstr "Doação e requisição de feature"
    656 
    657 #: lib/wp-filebase_admin_gui_manage.lib.php:511
    658 msgid "If you like this plugin and want to support my work, please donate. You can also post your ideas making the plugin better."
    659 msgstr "Se você gostou deste plugin e deseja apoiar meu trabalho, por favor faça uma doação. Você também pode enviar suas idéias para tornar este plugin melhor."
    660 
    661 #: lib/wp-filebase_admin_gui_manage.lib.php:520
     729#: classes/AdminGuiManage.php:118
     730#@ wpfb
    662731msgid "Traffic"
    663732msgstr "Tráfego"
    664733
    665 #: lib/wp-filebase_admin_gui_manage.lib.php:528
     734#: classes/AdminGuiManage.php:126
     735#@ wpfb
    666736msgid "Today"
    667737msgstr "Hoje"
    668738
    669 #: lib/wp-filebase_admin_gui_manage.lib.php:537
     739#: classes/AdminGuiManage.php:135
     740#@ wpfb
    670741msgid "This Month"
    671742msgstr "Este mês"
    672743
    673 #: lib/wp-filebase_admin_gui_options.lib.php:25
     744#: classes/AdminGuiSettings.php:31
     745#@ wpfb
    674746msgid "Settings reseted."
    675747msgstr "Configurações restauradas"
    676748
    677 #: lib/wp-filebase_admin_gui_options.lib.php:49
    678 #, php-format
     749#: classes/AdminGuiSettings.php:77
     750#, php-format
     751#@ wpfb
    679752msgid "/%s/ added to rejected URIs list of WP Super Cache."
    680753msgstr "/%s/ foi adicionado à lista de URIs rejeitadas do WP Super Cache."
    681754
    682 #: lib/wp-filebase_admin_gui_options.lib.php:52
     755#: classes/AdminGuiSettings.php:148
     756#@ wpfb
    683757msgid "WARNING: Script upload enabled!"
    684758msgstr "ATENÇÃO: Upload de scripts habilitado!"
    685759
    686 #: lib/wp-filebase_admin_gui_options.lib.php:64
     760#: classes/AdminGuiSettings.php:89
     761#@ wpfb
    687762msgid "File template successfully parsed."
    688763msgstr "Arquivo de template parseado com sucesso."
    689764
    690 #: lib/wp-filebase_admin_gui_options.lib.php:66
    691 #: lib/wp-filebase_admin_gui_options.lib.php:80
    692 #, php-format
     765#: classes/AdminGuiSettings.php:91
     766#: classes/AdminGuiSettings.php:105
     767#, php-format
     768#@ wpfb
    693769msgid "Could not parse template: error (%s) in line %s."
    694770msgstr "Impossível parsear arquivo de template: erro (%s) na linha %s."
    695771
    696 #: lib/wp-filebase_admin_gui_options.lib.php:78
     772#: classes/AdminGuiSettings.php:103
     773#@ wpfb
    697774msgid "Category template successfully parsed."
    698775msgstr "Template de categoria parseado com sucessso."
    699776
    700 #: lib/wp-filebase_admin_gui_options.lib.php:109
     777#: classes/AdminGuiSettings.php:141
     778#@ wpfb
    701779msgid "Settings updated."
    702780msgstr "Configurações atualizadas."
    703781
    704 #: lib/wp-filebase_download.lib.php:298
     782#: classes/Download.php:411
     783#@ wpfb
    705784msgid "Could not read file!"
    706785msgstr "Impossível ler o arquivo!"
    707786
    708 #: lib/wp-filebase_form_cat.php:34
     787#: lib/wpfb_form_cat.php:35
     788#@ wpfb
    709789msgid "Category Folder"
    710790msgstr "Diretório da categoria"
    711791
    712 #: lib/wp-filebase_form_cat.php:50
     792#: lib/wpfb_form_cat.php:51
     793#@ wpfb
    713794msgid "Category Icon"
    714795msgstr "Ícone da categoria"
    715796
    716 #: lib/wp-filebase_form_cat.php:59
    717 #: lib/wp-filebase_form_file.php:112
    718 msgid "For members only"
    719 msgstr "Apenas para membros"
    720 
    721 #: lib/wp-filebase_form_cat.php:62
    722 #: lib/wp-filebase_form_file.php:115
    723 #, php-format
    724 msgid "Minimum user level: (see %s)"
    725 msgstr "Nível de usuário mínimo: (ver %s)"
    726 
    727 #: lib/wp-filebase_form_cat.php:67
     797#: lib/wpfb_form_cat.php:77
     798#@ wpfb
    728799msgid "Apply permission to all child files"
    729800msgstr "Aplicar permissão para todos os arquivos filhos"
    730801
    731 #: lib/wp-filebase_form_file.php:9
     802#: lib/wpfb_form_file.php:20
     803#@ wpfb
    732804msgid "Edit File"
    733805msgstr "Editar arquivo"
    734806
    735 #: lib/wp-filebase_form_file.php:9
     807#: classes/Widget.php:163
     808#: classes/Widget.php:190
     809#@ wpfb
    736810msgid "Upload File"
    737811msgstr "Carregar arquivo"
    738812
    739 #: lib/wp-filebase_form_file.php:15
    740 msgid "Simple Form"
    741 msgstr "Formulário simples"
    742 
    743 #: lib/wp-filebase_form_file.php:22
     813#: classes/Output.php:429
     814#: lib/wpfb_form_file.php:186
     815#@ wpfb
    744816msgid "Choose File"
    745817msgstr "Escolha o arquivo"
    746818
    747 #: lib/wp-filebase_form_file.php:24
    748 #, php-format
    749 msgid "Maximum file size: %s"
    750 msgstr "Tamanho máximo do arquivo: %s"
    751 
    752 #: lib/wp-filebase_form_file.php:32
     819#: lib/wpfb_form_file.php:213
     820#@ wpfb
    753821msgid "You can optionally upload a thumbnail here. If the file is a valid image, a thumbnail is generated automatically."
    754822msgstr "Você pode opcionalmente carregar um thumbnail aqui. Se o arquivo é uma imagem válida, um thumbnail é gerado automaticamente."
    755823
    756 #: lib/wp-filebase_form_file.php:38
     824#: lib/wpfb_form_file.php:220
     825#@ wpfb
    757826msgid "The following fields are optional."
    758827msgstr "Os seguintes campos são opcionais."
    759828
    760 #: lib/wp-filebase_form_file.php:75
     829#: lib/wpfb_form_file.php:264
     830#@ wpfb
    761831msgid "Download Counter"
    762832msgstr "Contador de downloads"
    763833
    764 #: lib/wp-filebase_form_file.php:94
    765 #: lib/wp-filebase_form_file.php:96
     834#: lib/wpfb_form_file.php:283
     835#: lib/wpfb_form_file.php:285
     836#@ wpfb
     837#@ default
    766838msgid "Direct linking"
    767839msgstr "Linkagem direta"
    768840
    769 #: lib/wp-filebase_form_file.php:97
     841#: lib/wpfb_form_file.php:286
     842#@ wpfb
    770843msgid "Allow direct linking"
    771844msgstr "Habilitar linkagem direta"
    772845
    773 #: lib/wp-filebase_form_file.php:98
     846#: lib/wpfb_form_file.php:287
     847#@ wpfb
    774848msgid "Redirect to post"
    775849msgstr "Redirecionar para post"
    776850
    777 #: lib/wp-filebase_form_file.php:109
     851#: lib/wpfb_form_file.php:319
     852#@ wpfb
    778853msgid "Offline"
    779854msgstr "Offline"
    780855
    781 #: lib/wp-filebase_widget.lib.php:87
     856#: classes/Widget.php:115
     857#: classes/Widget.php:396
     858#: classes/Widget.php:500
     859#@ wpfb
    782860msgid "Limit:"
    783861msgstr "Limite:"
    784862
    785 #: lib/wp-filebase_widget.lib.php:92
     863#: classes/Widget.php:120
     864#: classes/Widget.php:504
     865#@ wpfb
    786866msgid "Template:"
    787867msgstr "Template:"
    788868
    789 #. Description of an extension
    790 msgid "A powerful download manager supporting file categories, thumbnails, traffic/bit rate limits and more."
    791 msgstr "Um poderoso gerenciador de downloads que suporta categorias de arquivos, thumbnails, limites de tráfego/bitrate e muito mais."
    792 
    793 #. Template
     869#: lib/wpfb_form_file.php:226
     870#@ default
    794871msgid "Version"
    795872msgstr "Versão"
    796873
     874#: classes/Admin.php:143
     875#: lib/wpfb_form_file.php:279
     876#@ default
    797877msgid "Languages"
    798878msgstr "Línguas"
    799879
     880#: classes/Admin.php:264
     881#: classes/Admin.php:330
     882#: lib/wpfb_form_file.php:230
     883#@ default
     884#@ wpfb
    800885msgid "Author"
    801886msgstr "Autor"
    802887
     888#: classes/Admin.php:246
     889#: classes/Admin.php:276
     890#: classes/AdminGuiFiles.php:176
     891#: classes/FileListTable.php:34
     892#: classes/Output.php:433
     893#: lib/wpfb_form_file.php:246
     894#@ default
    803895msgid "Category"
    804896msgstr "Categoria"
    805897
     898#: classes/Widget.php:95
     899#: classes/Widget.php:193
     900#: classes/Widget.php:474
     901#@ wpfb
     902#@ default
    806903msgid "Category:"
    807904msgstr "Categoria:"
    808905
     906#: classes/AdminGuiFiles.php:179
     907#: classes/FileListTable.php:37
     908#: lib/wpfb_form_file.php:233
     909#@ default
    809910msgid "Date"
    810911msgstr "Data"
    811912
    812 msgid "Details"
    813 msgstr "Detalhes"
    814 
    815 #. Option Categories
     913#: classes/AdminGuiSettings.php:206
     914#@ wpfb
    816915msgid "Common"
    817916msgstr "Comum"
    818917
     918#: classes/AdminGuiSettings.php:207
     919#@ wpfb
    819920msgid "Display"
    820921msgstr "Exibição"
    821922
     923#: classes/AdminGuiSettings.php:211
     924#@ wpfb
    822925msgid "Download"
    823926msgstr "Download"
    824927
     928#: classes/AdminGuiSettings.php:213
     929#: lib/wpfb_form_file.php:335
     930#@ wpfb
    825931msgid "Form Presets"
    826932msgstr "Valores padrões de formulário"
    827933
     934#: classes/AdminGuiSettings.php:214
     935#@ wpfb
    828936msgid "Limits"
    829937msgstr "Limites"
    830938
     939#: classes/AdminGuiSettings.php:215
     940#@ wpfb
    831941msgid "Security"
    832942msgstr "Segurança"
    833943
     944#: classes/AdminGuiSettings.php:216
     945#@ wpfb
    834946msgid "Templates and Scripts"
    835947msgstr "Templates e Scripts"
    836948
     949#: classes/Widget.php:358
     950#@ wpfb
    837951msgid "Before you can use this widget, please set a Post ID for the file browser in WP-Filebase settings."
    838952msgstr "Antes que você possa utilizar este widget, por favor forneça um ID de post para o navegador de arquivos nas configurações do WP-Filebase"
    839953
     954#: classes/AdminGuiSupport.php:24
     955#@ wpfb
    840956msgid "If you like WP-Filebase I would appreciate a small donation to support my work. You can additionally add an idea to make WP-Filebase even better. Just click the button below. Thank you!"
    841957msgstr "Se você gostou do WP-Filebase eu apreciaria uma pequena doação para apoiar meu trabalho. Você pode adicionalmente incluir uma idéia para tornar o WP-Filebase ainda melhor. Apenas clique no botão abaixo. Obrigado!"
    842958
     959#: classes/Admin.php:23
     960#@ wpfb
     961msgid "downloads per day"
     962msgstr "downloads por dia"
     963
     964#: classes/Admin.php:24
     965#, php-format
     966#@ wpfb
     967msgid "Daily limit for %s"
     968msgstr "Limite diário de %s"
     969
     970#: classes/Admin.php:31
     971#, php-format
     972#@ wpfb
     973msgid "Last cron sync on %1$s at %2$s."
     974msgstr "Sincronia cron última em %1$s as %2$s."
     975
     976#: classes/Admin.php:36
     977#@ wpfb
     978msgid "Path where all files are stored. Relative to WordPress' root directory."
     979msgstr "Caminho onde todos os arquivos são armazenados. Relativo ao diretório WordPress raiz."
     980
     981#: classes/Admin.php:37
     982#@ default
     983msgid "Thumbnail size"
     984msgstr "tamanho da miniatura"
     985
     986#: classes/Admin.php:37
     987#@ wpfb
     988msgid "The maximum side of the image is scaled to this value."
     989msgstr "O lado máximo da imagem é dimensionada para este valor."
     990
     991#: classes/Admin.php:38
     992#@ wpfb
     993msgid "Thumbnail Path"
     994msgstr "Caminho Miniatura"
     995
     996#: classes/Admin.php:38
     997#@ wpfb
     998msgid "Thumbnails can be stored at a different path than the actual files. Leave empty to use the default upload path."
     999msgstr "As miniaturas podem ser armazenados em um caminho diferente do que os arquivos reais. Deixe em branco para usar o padrão carregar caminho."
     1000
     1001#: classes/Admin.php:40
     1002#@ wpfb
     1003msgid "Auto-detect thumbnails"
     1004msgstr "Detecção Automática miniaturas"
     1005
     1006#: classes/Admin.php:40
     1007#@ wpfb
     1008msgid "Images are considered as thumbnails for files with the same name when syncing. (e.g `file.jpg` &lt;=&gt; `file.zip`)"
     1009msgstr "As imagens são consideradas como miniaturas de arquivos com o mesmo nome durante a sincronização. (p.ex `arquivo.jpg` &lt;=&gt; `arquivo.zip`)"
     1010
     1011#: classes/Admin.php:42
     1012#@ wpfb
     1013msgid "Extension Blacklist"
     1014msgstr "Lista negra de extensão"
     1015
     1016#: classes/Admin.php:42
     1017#@ wpfb
     1018msgid "Files with an extension in this list are skipped while synchronisation. (seperate with comma)"
     1019msgstr "Arquivos com a extensão na lista são ignorados enquanto a sincronização. (separar com vírgula)"
     1020
     1021#: classes/Admin.php:44
     1022#@ wpfb
     1023msgid "Attachment Position"
     1024msgstr "Area anexo"
     1025
     1026#: classes/Admin.php:44
     1027#@ wpfb
     1028msgid "Before the Content"
     1029msgstr "Antes do conteúdo"
     1030
     1031#: classes/Admin.php:44
     1032#@ wpfb
     1033msgid "After the Content"
     1034msgstr "Após o conteúdo"
     1035
     1036#: classes/Admin.php:46
     1037#@ wpfb
     1038msgid "Attachments in post lists"
     1039msgstr "Anexos em listas de correio"
     1040
     1041#: classes/Admin.php:46
     1042#@ wpfb
     1043msgid "Attach files to posts in archives, index and search result."
     1044msgstr "Anexar arquivos em arquivos de índice, e resultado da pesquisa."
     1045
     1046#: classes/Admin.php:51
     1047#: classes/Admin.php:80
     1048#: classes/Admin.php:83
     1049#: editor_plugin.php:310
     1050#@ default
     1051msgid "Sort Order:"
     1052msgstr "Ordem de classificação:"
     1053
     1054#: classes/Admin.php:51
     1055#: classes/Admin.php:80
     1056#: classes/Admin.php:83
     1057#: classes/Widget.php:112
     1058#: classes/Widget.php:393
     1059#: classes/Widget.php:497
     1060#: editor_plugin.php:319
     1061#: editor_plugin.php:340
     1062#@ default
     1063msgid "Ascending"
     1064msgstr "ascendente"
     1065
     1066#: classes/Admin.php:51
     1067#: classes/Admin.php:80
     1068#: classes/Admin.php:83
     1069#: classes/Widget.php:111
     1070#: classes/Widget.php:392
     1071#: classes/Widget.php:496
     1072#: editor_plugin.php:321
     1073#: editor_plugin.php:342
     1074#@ default
     1075msgid "Descending"
     1076msgstr "descendente"
     1077
     1078#: classes/Admin.php:52
     1079#@ wpfb
     1080msgid "Number of files per page"
     1081msgstr "Número de arquivos por página"
     1082
     1083#: classes/Admin.php:52
     1084#@ wpfb
     1085msgid "Length of the file list per page. Set to 0 to disable the limit."
     1086msgstr "Comprimento da lista de arquivos por página. Ajuste para 0 para desativar o limite."
     1087
     1088#: classes/Admin.php:54
     1089#@ wpfb
     1090msgid "File Date Format"
     1091msgstr "Formato de data do arquivo"
     1092
     1093#: classes/Admin.php:54
     1094#@ wpfb
     1095msgid "Date/Time formatting for files."
     1096msgstr "Data/Hora de formatação para arquivos."
     1097
     1098#: classes/Admin.php:54
     1099#@ default
     1100msgid "<a href=\"http://codex.wordpress.org/Formatting_Date_and_Time\">Documentation on date and time formatting</a>."
     1101msgstr "<a href=\"http://codex.wordpress.org/Formatting_Date_and_Time\">Documentação sobre formatação de data e hora</a>."
     1102
     1103#: classes/Admin.php:66
     1104#@ wpfb
     1105msgid "Daily user download limits"
     1106msgstr "Limites de download diários de usuários"
     1107
     1108#: classes/Admin.php:66
     1109#@ wpfb
     1110msgid "If enabled, unregistered users cannot download any files. You can set different limits for each user role below."
     1111msgstr "Se ativado, os usuários não registrados não podem baixar os arquivos. Você pode definir limites diferentes para cada função de usuário abaixo."
     1112
     1113#: classes/Admin.php:67
     1114#@ default
     1115msgctxt "User role"
     1116msgid "Subscriber"
     1117msgstr "assinante"
     1118
     1119#: classes/Admin.php:68
     1120#@ default
     1121msgctxt "User role"
     1122msgid "Contributor"
     1123msgstr "contribuinte"
     1124
     1125#: classes/Admin.php:69
     1126#@ default
     1127msgctxt "User role"
     1128msgid "Author"
     1129msgstr "autor"
     1130
     1131#: classes/Admin.php:70
     1132#@ default
     1133msgctxt "User role"
     1134msgid "Editor"
     1135msgstr "editor"
     1136
     1137#: classes/Admin.php:71
     1138#, php-format
     1139#@ wpfb
     1140msgid "You can only download %d files per day."
     1141msgstr "Você só pode baixar arquivos %d por dia."
     1142
     1143#: classes/Admin.php:71
     1144#@ wpfb
     1145msgid "Daily limit exceeded message"
     1146msgstr "Limite diário ultrapassa mensagem"
     1147
     1148#: classes/Admin.php:77
     1149#: classes/Admin.php:364
     1150#: lib/wpfb_form_file.php:259
     1151#@ default
     1152msgid "Select"
     1153msgstr "selecionar"
     1154
     1155#: classes/Admin.php:79
     1156#@ wpfb
     1157msgid "File browser category sorting"
     1158msgstr "Categoria de arquivo do navegador de classificação"
     1159
     1160#: classes/Admin.php:79
     1161#@ wpfb
     1162msgid "The category property categories in the file browser are sorted by"
     1163msgstr "As categorias da categoria de propriedade no navegador de arquivos são classificados por"
     1164
     1165#: classes/Admin.php:82
     1166#@ wpfb
     1167msgid "File browser file sorting"
     1168msgstr "Arquivo de classificação navegador de arquivos"
     1169
     1170#: classes/Admin.php:82
     1171#@ wpfb
     1172msgid "The file property files in the file browser are sorted by"
     1173msgstr "Os ficheiros de arquivo de propriedade no navegador de arquivos são classificados por"
     1174
     1175#: classes/Admin.php:85
     1176#@ wpfb
     1177msgid "Files before Categories"
     1178msgstr "Arquivos antes de Categorias"
     1179
     1180#: classes/Admin.php:85
     1181#@ wpfb
     1182msgid "Files will appear above categories in the file browser."
     1183msgstr "Arquivos aparecerá acima de categorias no navegador de arquivos."
     1184
     1185#: classes/Admin.php:91
     1186#@ wpfb
     1187msgid "Send HTTP-Range header"
     1188msgstr "Enviar HTTP-Range cabeçalho."
     1189
     1190#: classes/Admin.php:91
     1191#@ wpfb
     1192msgid "Allows users to pause downloads and continue later. In addition download managers can use multiple connections at the same time."
     1193msgstr "Permite que os usuários de downloads faça uma pausa e continue mais tarde. Além gerenciadores de download pode utilizar várias ligações ao mesmo tempo."
     1194
     1195#: classes/Admin.php:92
     1196#@ wpfb
     1197msgid "Hide download links"
     1198msgstr "Ocultar links de download"
     1199
     1200#: classes/Admin.php:92
     1201#, php-format
     1202#@ wpfb
     1203msgid "File download links wont be displayed in the browser's status bar. You should enable '%s' to make it even harder to find out the URL."
     1204msgstr "Links para este arquivo de download não vai ser exibido na barra de status do navegador. Você deve habilitar o '%s' para torná-lo ainda mais para descobrir a URL."
     1205
     1206#: classes/Admin.php:95
     1207#@ wpfb
     1208msgid "You can enter a URL to redirect users."
     1209msgstr "Você pode digitar uma URL para redirecionar os usuários."
     1210
     1211#: classes/Admin.php:97
     1212#@ wpfb
     1213msgid "Access to category denied!"
     1214msgstr "O acesso para a categoria foi negado!"
     1215
     1216#: classes/Admin.php:97
     1217#@ wpfb
     1218msgid "Inaccessible category message"
     1219msgstr "Mensagem da categoria inacessível"
     1220
     1221#: classes/Admin.php:97
     1222#@ wpfb
     1223msgid "This message will be displayed if users try to access a category without permission."
     1224msgstr "Esta mensagem será exibida se os usuários tentam acessar uma categoria sem permissão."
     1225
     1226#: classes/Admin.php:98
     1227#@ wpfb
     1228msgid "Redirect to referring page after login"
     1229msgstr "Redirecionar para página de referência após o login"
     1230
     1231#: classes/Admin.php:98
     1232#@ wpfb
     1233msgid "Users are redirected to the page where they clicked on the download link after logging in."
     1234msgstr "Os usuários são redirecionados para a página onde eles clicaram no link para download após o log in"
     1235
     1236#: classes/Admin.php:100
     1237#@ wpfb
     1238msgid "Disable HTTP Caching"
     1239msgstr "Desativar cache HTTP"
     1240
     1241#: classes/Admin.php:100
     1242#@ wpfb
     1243msgid "Enable this if you have problems with downloads while using Wordpress with a cache plugin."
     1244msgstr "Ativá-la se você tem problemas com downloads enquanto usa Wordpress com um plugin de cache."
     1245
     1246#: classes/Admin.php:105
     1247#@ wpfb
     1248msgid "Protect upload path"
     1249msgstr "Proteger upload de caminho"
     1250
     1251#: classes/Admin.php:105
     1252#@ wpfb
     1253msgid "This prevents direct access to files in the upload directory."
     1254msgstr "Isso impede o acesso direto a arquivos no diretório de upload."
     1255
     1256#: classes/Admin.php:107
     1257#@ wpfb
     1258msgid "Private Files"
     1259msgstr "Arquivos Privados"
     1260
     1261#: classes/Admin.php:107
     1262#@ wpfb
     1263msgid "Access to files is only permitted to owner and administrators."
     1264msgstr "O acesso aos arquivos só é permitido ao proprietário e administradores."
     1265
     1266#: classes/Admin.php:109
     1267#@ wpfb
     1268msgid "Enable front end uploads"
     1269msgstr "Ativar o carregamento de front-end"
     1270
     1271#: classes/Admin.php:109
     1272#@ wpfb
     1273msgid "Global option to allow file uploads from widgets and embedded file forms"
     1274msgstr "Opção global para permitir o upload de arquivos de widgets e formas de arquivo embutidos"
     1275
     1276#: classes/Admin.php:115
     1277#@ wpfb
     1278msgid "Destroy session when downloading"
     1279msgstr "Destruir sessão ao fazer o download"
     1280
     1281#: classes/Admin.php:115
     1282#@ wpfb
     1283msgid "Should be enabled to allow users to download multiple files at the same time. This does not interfere WordPress user sessions, but can cause trouble with other plugins using the global $_SESSION."
     1284msgstr "Deve ser ativado para permitir que os usuários façam download de vários arquivos ao mesmo tempo. Isso não interfere sessões de usuários do WordPress, mas pode causar problemas com outros plugins usando o global $_SESSION."
     1285
     1286#: classes/Admin.php:119
     1287#@ wpfb
     1288msgid "Add WP-Filebase to admin menu bar"
     1289msgstr "Adicionar WP Filebase a barra de menu de administração"
     1290
     1291#: classes/Admin.php:119
     1292#@ wpfb
     1293msgid "Display some quick actions for file management in the admin menu bar."
     1294msgstr "Exibir algumas ações rápidas para gerenciamento de arquivos na barra de menu de administração."
     1295
     1296#: classes/Admin.php:122
     1297#@ wpfb
     1298msgid "Automatic Sync"
     1299msgstr "Sincronização automática"
     1300
     1301#: classes/Admin.php:122
     1302#@ wpfb
     1303msgid "Schedules a cronjob to hourly synchronize the filesystem and the database."
     1304msgstr "Cronogramas de um cronjob para sincronizar o horário do sistema de arquivos e banco de dados."
     1305
     1306#: classes/Admin.php:125
     1307#@ wpfb
     1308msgid "Search Integration"
     1309msgstr "Integração pesquisa"
     1310
     1311#: classes/Admin.php:125
     1312#@ wpfb
     1313msgid "Searches in attached files and lists the associated posts and pages when searching the site."
     1314msgstr "Pesquisas em arquivos anexados e listas dos posts e páginas associadas ao pesquisar no site."
     1315
     1316#: classes/Admin.php:127
     1317#@ wpfb
     1318msgid "Disable ID3 tag detection"
     1319msgstr "Desativar detecção de ID3 tag "
     1320
     1321#: classes/Admin.php:127
     1322#@ wpfb
     1323msgid "This disables all meta file info reading. Use this option if you have issues adding large files."
     1324msgstr "Isso desativa todos os meta leitura de informações do arquivo. Use esta opção se você tem problemas de adição de arquivos grandes."
     1325
     1326#: classes/Admin.php:128
     1327#@ wpfb
     1328msgid "Search ID3 Tags"
     1329msgstr "Pesquisar ID3 Tag"
     1330
     1331#: classes/Admin.php:128
     1332#@ wpfb
     1333msgid "Search in file meta data, like ID3 for MP3 files, EXIF for JPEG... (this option does not increase significantly server load since all data is cached in a MySQL table)"
     1334msgstr "Pesquisa em metadados do arquivo, como ID3 para arquivos MP3, EXIF para JPEG ... (esta opção não aumenta a carga significativamente do servidor uma vez que todos os dados são armazenados em cache em uma tabela MySQL)"
     1335
     1336#: classes/Admin.php:129
     1337#@ wpfb
     1338msgid "Use path instead of ID in Shortcode"
     1339msgstr "Usar caminho em vez de ID em Shortcode"
     1340
     1341#: classes/Admin.php:129
     1342#@ wpfb
     1343msgid "Files and Categories are identified by paths and not by their IDs in the generated Shortcodes"
     1344msgstr "Arquivos e Categorias são identificados por caminhos e não por suas identificações nas Shortcodes gerados"
     1345
     1346#: classes/Admin.php:130
     1347#@ wpfb
     1348msgid "Disable Name Formatting"
     1349msgstr "Desativar Formatação de Nome"
     1350
     1351#: classes/Admin.php:130
     1352#@ wpfb
     1353msgid "This will disable automatic formatting/uppercasing file names when they are used as title (e.g. when syncing)"
     1354msgstr "Isto irá desativar a formatação automática/mudar pra maiúsculas nomes de arquivos quando eles são usados ​​como título (por exemplo, quando sincronizar)"
     1355
     1356#: classes/Admin.php:134
     1357#@ wpfb
     1358msgid "Remove WP-Filebase Footer credits"
     1359msgstr "Remover créditos WP Filebase-Rodapé"
     1360
     1361#: classes/Admin.php:134
     1362#, php-format
     1363#@ wpfb
     1364msgid "This disables the footer credits only displayed on <a href=\"%s\">File Browser Page</a>. Why should you keep the credits? Every backlink helps WP-Filebase to get more popular, popularity motivates the developer to continue work on the plugin."
     1365msgstr "Isso desativa os créditos rodapé apenas mostradas em <a href=\"%s\">Página File Browser</a>. Por que você deve manter os créditos? Cada backlink ajuda WP Filebase para obter mais popular, a popularidade motiva o desenvolvedor para continuar o trabalho sobre o plugin."
     1366
     1367#: classes/Admin.php:135
     1368#@ wpfb
     1369msgid "Footer credits Style"
     1370msgstr "Estilo de créditos Rodapé"
     1371
     1372#: classes/Admin.php:135
     1373#@ wpfb
     1374msgid "Set custom CSS style for WP-Filebase footer credits"
     1375msgstr "Conjunto personalizado de estilo CSS para créditos WP Filebase-footer"
     1376
     1377#: classes/Admin.php:136
     1378#@ wpfb
     1379msgid "Late script loading"
     1380msgstr "Carregamento roteiro final"
     1381
     1382#: classes/Admin.php:136
     1383#@ wpfb
     1384msgid "Scripts will be included in content, not in header. Enable if your AJAX tree view does not work properly."
     1385msgstr "Scripts será incluído no conteúdo, e não no cabeçalho. Ativar se a sua exibição em árvore AJAX não funciona corretamente."
     1386
     1387#: classes/Admin.php:138
     1388#@ wpfb
     1389msgid "Default Author"
     1390msgstr "Autor padrão"
     1391
     1392#: classes/Admin.php:138
     1393#@ wpfb
     1394msgid "This author will be used as form default and when adding files with FTP"
     1395msgstr "Este autor será usado como forma padrão ao adicionar arquivos com FTP"
     1396
     1397#: classes/Admin.php:139
     1398#@ wpfb
     1399msgid "Default User Roles"
     1400msgstr "Funções de usuário padrão"
     1401
     1402#: classes/Admin.php:139
     1403#@ wpfb
     1404msgid "These roles are selected by default and will be used for files added with FTP"
     1405msgstr "Esses papéis são selecionados por padrão e será usado para arquivos adicionados com FTP"
     1406
     1407#: classes/Admin.php:141
     1408#@ wpfb
     1409msgid "Default Category"
     1410msgstr "Categoria padrão"
     1411
     1412#: classes/Admin.php:141
     1413#@ wpfb
     1414msgid "Preset Category in the file form"
     1415msgstr "Categoria predefinido na forma de arquivo"
     1416
     1417#: classes/Admin.php:155
     1418#@ default
     1419msgid "Custom Fields"
     1420msgstr "Os campos personalizados"
     1421
     1422#: classes/Admin.php:156
     1423#@ wpfb
     1424msgid "With custom fields you can add even more file properties."
     1425msgstr "Com campos personalizados que você pode adicionar propriedades do arquivo ainda mais."
     1426
     1427#: classes/Admin.php:239
     1428#: classes/Admin.php:276
     1429#, php-format
     1430#@ default
     1431msgid "HTML image tag for a small icon (height %d)"
     1432msgstr "HTML marca de imagem de um pequeno ícone (altura %d)"
     1433
     1434#: classes/Admin.php:243
     1435#@ wpfb
     1436msgid "Number of files in the category and all child categories"
     1437msgstr "Número de arquivos na categoria e todas as categorias de crianças"
     1438
     1439#: classes/Admin.php:246
     1440#: classes/Admin.php:281
     1441#, php-format
     1442#@ wpfb
     1443msgid "Variable to check if the %s is accessible (boolean 0/1)"
     1444msgstr "Variável para verificar se o s% é acessível (booleano 0/1)"
     1445
     1446#: classes/Admin.php:252
     1447#: classes/Admin.php:314
     1448#: lib/wpfb_form_file.php:224
     1449#@ wpfb
     1450#@ default
     1451msgid "Title"
     1452msgstr "Título"
     1453
     1454#: classes/Admin.php:256
     1455#@ wpfb
     1456msgid "Download URL encoded for use in query strings"
     1457msgstr "Baixar URL codificada para uso em cadeias de consulta"
     1458
     1459#: classes/Admin.php:265
     1460#: lib/wpfb_form_file.php:299
     1461#@ default
     1462msgid "Tags"
     1463msgstr "etiquetas"
     1464
     1465#: classes/Admin.php:275
     1466#@ wpfb
     1467msgid "URL of the category icon (if any)"
     1468msgstr "URL do ícone da categoria (se houver)"
     1469
     1470#: classes/Admin.php:281
     1471#@ wpfb
     1472msgid "File"
     1473msgstr "Arquivo"
     1474
     1475#: classes/Admin.php:288
     1476#: classes/Admin.php:334
     1477#@ wpfb
     1478msgid "User Name of the owner"
     1479msgstr "Nome de usuário do proprietário"
     1480
     1481#: classes/Admin.php:295
     1482#, php-format
     1483#@ wpfb
     1484msgid "Lowercase file extension (e.g. '%s')"
     1485msgstr "Extensão de arquivo em minúsculas (por exemplo, '%s')"
     1486
     1487#: classes/Admin.php:296
     1488#, php-format
     1489#@ wpfb
     1490msgid "File content type (e.g. '%s')"
     1491msgstr "Tipo de conteúdo do arquivo (por exemplo, '%s')"
     1492
     1493#: classes/Admin.php:306
     1494#@ wpfb
     1495msgid "ID of the current post or page"
     1496msgstr "ID do post atual ou página"
     1497
     1498#: classes/Admin.php:307
     1499#, php-format
     1500#@ wpfb
     1501msgid "Plugin root URL (%s)"
     1502msgstr "URL raiz do Plugin (%s)"
     1503
     1504#: classes/Admin.php:323
     1505#@ default
     1506msgid "Relative path of the file"
     1507msgstr "Caminho relativo do arquivo"
     1508
     1509#: classes/Admin.php:324
     1510#@ default
     1511msgid "File ID"
     1512msgstr "ID do arquivo"
     1513
     1514#: classes/Admin.php:326
     1515#: classes/Admin.php:345
     1516#@ wpfb
     1517msgid "Category Name"
     1518msgstr "Nome da Categoria"
     1519
     1520#: classes/Admin.php:327
     1521#: classes/Admin.php:350
     1522#@ wpfb
     1523msgid "Category ID"
     1524msgstr "Categoria ID"
     1525
     1526#: classes/Admin.php:346
     1527#@ wpfb
     1528msgid "Name of the Category folder"
     1529msgstr "Nome da pasta Categoria"
     1530
     1531#: classes/Admin.php:349
     1532#@ wpfb
     1533msgid "Relative path of the category folder"
     1534msgstr "Caminho relativo da pasta de categoria"
     1535
     1536#: classes/Admin.php:351
     1537#@ wpfb
     1538msgid "Parent Category ID"
     1539msgstr "Categoria ID pai"
     1540
     1541#: classes/Admin.php:353
     1542#@ wpfb
     1543msgid "Number of files directly in the category"
     1544msgstr "Número de arquivos diretamente na categoria"
     1545
     1546#: classes/Admin.php:354
     1547#@ wpfb
     1548msgid "Number of all files in the category and all sub-categories"
     1549msgstr "Número de todos os arquivos da categoria e todas as sub-categorias"
     1550
     1551#: classes/Admin.php:356
     1552#@ wpfb
     1553msgid "Custom Category Order"
     1554msgstr "Ordem categoria personalizada"
     1555
     1556#: classes/Admin.php:368
     1557#@ wpfb
     1558msgid "For some files there are more tags available. You find a list of all tags below the form when editing a file."
     1559msgstr "Para alguns arquivos há mais tags disponíveis. Você encontrará uma lista de todas as tags abaixo do formulário ao editar um arquivo."
     1560
     1561#: classes/Admin.php:539
     1562#: classes/Admin.php:787
     1563#, php-format
     1564#@ wpfb
     1565msgid "Could not get file information from %s!"
     1566msgstr "Não foi possível obter informações de arquivos de %s!"
     1567
     1568#: classes/Admin.php:563
     1569#@ wpfb
     1570msgid "Only HTTP links are supported."
     1571msgstr "Apenas links HTTP são suportados."
     1572
     1573#: classes/Admin.php:783
     1574#@ default
     1575msgid "Invalid URL Provided."
     1576msgstr "URL fornecido é inválido."
     1577
     1578#: classes/Admin.php:788
     1579#@ default
     1580msgid "Could not create Temporary file."
     1581msgstr "Não foi possível criar arquivo temporário."
     1582
     1583#: classes/Admin.php:1090
     1584#: classes/Admin.php:1096
     1585#: classes/Admin.php:1124
     1586#: classes/AdminGuiCats.php:34
     1587#: classes/AdminGuiCss.php:31
     1588#: classes/AdminGuiFiles.php:22
     1589#: classes/AdminGuiFiles.php:42
     1590#: classes/AdminGuiFiles.php:64
     1591#: classes/AdminGuiFiles.php:69
     1592#: classes/AdminGuiFiles.php:74
     1593#: classes/AdminGuiFiles.php:95
     1594#: classes/AdminGuiSettings.php:11
     1595#: classes/AdminGuiSettings.php:15
     1596#: classes/File.php:466
     1597#: editor_plugin.php:31
     1598#: editor_plugin.php:54
     1599#: editor_plugin.php:229
     1600#: wpfb-ajax.php:212
     1601#: wpfb-postbrowser.php:4
     1602#@ default
     1603msgid "Cheatin&#8217; uh?"
     1604msgstr "Trapaceando&#8217; uh?"
     1605
     1606#: classes/Admin.php:1104
     1607#: classes/Admin.php:1129
     1608#@ default
     1609msgid "Error "
     1610msgstr "Erro"
     1611
     1612#: classes/Admin.php:1107
     1613#@ wpfb
     1614msgid "The File has been uploaded successfully."
     1615msgstr "O arquivo foi enviado com sucesso."
     1616
     1617#: classes/Admin.php:1132
     1618#@ wpfb
     1619msgid "New Category created."
     1620msgstr "Nova categoria criada."
     1621
     1622#: classes/Admin.php:1135
     1623#: classes/AdminGuiCats.php:75
     1624#@ wpfb
     1625#@ default
     1626msgid "Category added."
     1627msgstr "Categoria adicionada."
     1628
     1629#: classes/Admin.php:1192
     1630#, php-format
     1631#@ wpfb
     1632msgid "Could not move thumnail %s to %s."
     1633msgstr "Não foi possível mover thumnail %s para %s."
     1634
     1635#: classes/Admin.php:1196
     1636#, php-format
     1637#@ wpfb
     1638msgid "%d Thumbnails moved."
     1639msgstr "%d Miniaturas movidas."
     1640
     1641#: classes/Admin.php:1212
     1642#: classes/Output.php:411
     1643#@ wpfb
     1644msgid "Everyone"
     1645msgstr "Todo o mundo"
     1646
     1647#: classes/AdminGuiCats.php:75
     1648#@ default
     1649msgid "Category updated."
     1650msgstr "Categoria atualizado."
     1651
     1652#: classes/AdminGuiCats.php:92
     1653#: classes/AdminGuiFiles.php:108
     1654#, php-format
     1655#@ default
     1656msgid "Search results for &#8220;%s&#8221;"
     1657msgstr "Resultados da busca por &#8220;%s&#8221;"
     1658
     1659#: classes/AdminGuiCats.php:100
     1660#: classes/AdminGuiCats.php:102
     1661#@ default
     1662msgid "Search Categories"
     1663msgstr "Categorias de busca"
     1664
     1665#: classes/AdminGuiCats.php:138
     1666#: classes/AdminGuiFiles.php:160
     1667#: classes/AdminGuiTpls.php:252
     1668#: classes/Core.php:501
     1669#: classes/FileListTable.php:60
     1670#: editor_plugin.php:257
     1671#: lib/wpfb_form_cat.php:55
     1672#: lib/wpfb_form_file.php:217
     1673#@ default
     1674msgid "Delete"
     1675msgstr "Excluir"
     1676
     1677#: classes/AdminGuiCats.php:147
     1678#: classes/AdminGuiFiles.php:172
     1679#: classes/AdminGuiTpls.php:224
     1680#: classes/AdminGuiTpls.php:232
     1681#: classes/FileListTable.php:30
     1682#@ default
     1683msgid "Name"
     1684msgstr "Nome"
     1685
     1686#: classes/AdminGuiCats.php:148
     1687#: classes/AdminGuiFiles.php:175
     1688#: lib/wpfb_form_cat.php:47
     1689#: lib/wpfb_form_file.php:295
     1690#@ default
     1691msgid "Description"
     1692msgstr "Descrição"
     1693
     1694#: classes/AdminGuiCats.php:150
     1695#: classes/Widget.php:234
     1696#: lib/wpfb_form_cat.php:40
     1697#@ default
     1698msgid "Parent Category"
     1699msgstr "Categoria pai"
     1700
     1701#: classes/AdminGuiCats.php:151
     1702#@ default
     1703msgid "Path"
     1704msgstr "Caminho"
     1705
     1706#: classes/AdminGuiCats.php:152
     1707#: classes/AdminGuiFiles.php:177
     1708#: classes/FileListTable.php:35
     1709#: lib/wpfb_form_cat.php:60
     1710#: lib/wpfb_form_file.php:304
     1711#@ wpfb
     1712msgid "Access Permission"
     1713msgstr "Permissão de Acesso"
     1714
     1715#: classes/AdminGuiCats.php:153
     1716#: lib/wpfb_form_cat.php:86
     1717#@ wpfb
     1718msgid "Custom Sort Order"
     1719msgstr "Ordem personalizada"
     1720
     1721#: classes/AdminGuiCss.php:23
     1722#, php-format
     1723#@ wpfb
     1724msgid "Custom CSS does only work if upload path is relative to WordPress path. It is currently set to <code>%s</code>, so <b>custom CSS will not work!</b>"
     1725msgstr "Personalizado CSS só funciona se o caminho de upload é relativo ao caminho WordPress. Ele está definido para <code> %s </ code>, assim <b> personalizado CSS não vai funcionar! </b>"
     1726
     1727#: classes/AdminGuiFiles.php:58
     1728#@ wpfb
     1729msgid "You do not have the permission to edit this file!"
     1730msgstr "Você não tem permissão para editar este arquivo!"
     1731
     1732#: classes/AdminGuiFiles.php:88
     1733#: classes/AdminGuiManage.php:54
     1734#@ default
     1735msgid "Go back"
     1736msgstr "Voltar"
     1737
     1738#: classes/AdminGuiFiles.php:171
     1739#: classes/FileListTable.php:29
     1740#@ default
     1741msgid "ID"
     1742msgstr "ID"
     1743
     1744#: classes/AdminGuiFiles.php:178
     1745#: classes/FileListTable.php:36
     1746#@ wpfb
     1747msgid "Owner"
     1748msgstr "Proprietário"
     1749
     1750#: classes/AdminGuiFiles.php:182
     1751#@ default
     1752msgid "Rating"
     1753msgstr "Classificação"
     1754
     1755#: classes/AdminGuiFiles.php:279
     1756#, php-format
     1757#@ wpfb
     1758msgid "The following tags can be used in templates. For example, if you want to display the Artist of a MP3 File, put %s inside the template code."
     1759msgstr "As seguintes tags podem ser usados ​​em modelos. Por exemplo, se você deseja exibir o artista de um arquivo MP3, colocar %s dentro do código do modelo."
     1760
     1761#: classes/AdminGuiFiles.php:285
     1762#@ wpfb
     1763msgid "Keywords used for search:"
     1764msgstr "Palavras-chave utilizadas para a busca:"
     1765
     1766#: classes/AdminGuiManage.php:78
     1767#@ wpfb
     1768msgid "WP-Filebase content tags must be converted"
     1769msgstr "Etiquetas WP Filebase de conteúdo deve ser convertido"
     1770
     1771#: classes/AdminGuiManage.php:84
     1772#, php-format
     1773#@ wpfb
     1774msgid "File Browser post or page not set! Some features like search will not work. <a href=\"%s\">Click here to set the File Browser Post ID.</a>"
     1775msgstr "Mensagem ou página não definido no navegador de arquivos! Alguns recursos como busca não irá funcionar.<a href=\"%s\"> Clique aqui para definir o arquivo Post ID Browser. </a>"
     1776
     1777#: classes/AdminGuiManage.php:84
     1778#: classes/AdminGuiSettings.php:208
     1779#: classes/AdminHowToStart.php:32
     1780#@ wpfb
     1781msgid "File Browser"
     1782msgstr "Navegador de Arquivos"
     1783
     1784#: classes/AdminGuiManage.php:101
     1785#@ wpfb
     1786msgid "Like this plugin?"
     1787msgstr "Gostou deste plugin?"
     1788
     1789#: classes/AdminGuiManage.php:144
     1790#@ wpfb
     1791msgid "Total File Size"
     1792msgstr "Tamanho total do arquivo"
     1793
     1794#: classes/AdminGuiManage.php:154
     1795#@ wpfb
     1796msgid "Statistics"
     1797msgstr "Estatística"
     1798
     1799#: classes/AdminGuiManage.php:157
     1800#@ wpfb
     1801msgid "Number of Files"
     1802msgstr "Número de Arquivos"
     1803
     1804#: classes/AdminGuiManage.php:161
     1805#@ wpfb
     1806msgid "Number of Categories"
     1807msgstr "Número de Categorias"
     1808
     1809#: classes/AdminGuiManage.php:165
     1810#@ wpfb
     1811msgid "Total Downloads"
     1812msgstr "Total de downloads"
     1813
     1814#: classes/AdminGuiManage.php:174
     1815#@ default
     1816msgid "Tools"
     1817msgstr "Ferramentas"
     1818
     1819#: classes/AdminGuiManage.php:178
     1820#@ wpfb
     1821msgid "Convert old Tags"
     1822msgstr "Converter tags antigas"
     1823
     1824#: classes/AdminGuiManage.php:178
     1825#, php-format
     1826#@ wpfb
     1827msgid "Convert tags from versions earlier than %s."
     1828msgstr "Converter tags de versões anteriores a %s."
     1829
     1830#: classes/AdminGuiManage.php:179
     1831#@ wpfb
     1832msgid "Add multiple URLs"
     1833msgstr "Adicionar várias URLs"
     1834
     1835#: classes/AdminGuiManage.php:179
     1836#@ wpfb
     1837msgid "Add multiple remote files at once."
     1838msgstr "Adicionar vários arquivos remotos de uma só vez."
     1839
     1840#: classes/AdminGuiManage.php:191
     1841#@ default
     1842msgid "About"
     1843msgstr "Sobre"
     1844
     1845#: classes/AdminGuiManage.php:200
     1846#@ default
     1847msgid "Tag Conversion"
     1848msgstr "Conversão tag"
     1849
     1850#: classes/AdminGuiManage.php:203
     1851#@ default
     1852msgid "<strong>Important:</strong> before updating, please <a href=\"http://codex.wordpress.org/WordPress_Backups\">backup your database and files</a>. For help with updates, visit the <a href=\"http://codex.wordpress.org/Updating_WordPress\">Updating WordPress</a> Codex page."
     1853msgstr "<strong>Importante:</strong> antes de atualizar, por favor <a href=\"http://codex.wordpress.org/WordPress_Backups\">faça backup de seu banco de dados e arquivos</a>. Para obter ajuda com as atualizações, visite o<a href=\"http://codex.wordpress.org/Updating_WordPress\">Atualizando WordPress</a> Codex página."
     1854
     1855#: classes/AdminGuiManage.php:205
     1856#@ default
     1857msgid "Continue"
     1858msgstr "Continuar"
     1859
     1860#: classes/AdminGuiManage.php:210
     1861#, php-format
     1862#@ default
     1863msgid "%d Tags in %d Posts has been converted."
     1864msgstr "%d Tags em %d Mensagens foram convertido."
     1865
     1866#: classes/AdminGuiManage.php:224
     1867#@ default
     1868msgid "Errors"
     1869msgstr "Erros"
     1870
     1871#: classes/AdminGuiManage.php:248
     1872#, php-format
     1873#@ default
     1874msgid "%d Files removed"
     1875msgstr "Arquivos %d removido."
     1876
     1877#: classes/AdminGuiManage.php:261
     1878#, php-format
     1879#@ default
     1880msgid "%d Categories removed"
     1881msgstr "Categorias %d removido"
     1882
     1883#: classes/AdminGuiManage.php:265
     1884#@ default
     1885msgid "Synchronisation"
     1886msgstr "Sincronização"
     1887
     1888#: classes/AdminGuiSettings.php:192
     1889#: classes/AdminLite.php:52
     1890#@ default
     1891msgid "Settings"
     1892msgstr "Configurações"
     1893
     1894#: classes/AdminGuiSettings.php:197
     1895#: classes/AdminGuiSettings.php:311
     1896#@ default
     1897msgid "Save Changes"
     1898msgstr "Salvar alterações"
     1899
     1900#: classes/AdminGuiSettings.php:217
     1901#@ default
     1902msgid "Misc"
     1903msgstr "Variados"
     1904
     1905#: classes/AdminGuiSettings.php:312
     1906#@ wpfb
     1907msgid "Restore Default Settings"
     1908msgstr "Restaurar as configurações padrão"
     1909
     1910#: classes/AdminGuiSettings.php:312
     1911#@ wpfb
     1912msgid "All settings (including default file and category template) will be set to default values. Continue?"
     1913msgstr "Todas as configurações (incluindo arquivo padrão e modelo da categoria) serão definidas para valores padrão. Continuar?"
     1914
     1915#: classes/AdminGuiTpls.php:52
     1916#@ wpfb
     1917msgid "Type missing!"
     1918msgstr "Digito faltando!"
     1919
     1920#: classes/AdminGuiTpls.php:53
     1921#@ wpfb
     1922msgid "Please enter a template tag."
     1923msgstr "Por favor insira um tag."
     1924
     1925#: classes/AdminGuiTpls.php:179
     1926#: classes/AdminLite.php:38
     1927#@ default
     1928msgid "Categories"
     1929msgstr "Categorias"
     1930
     1931#: classes/AdminGuiTpls.php:184
     1932#@ wpfb
     1933msgid "Templates used for single embedded files or file lists."
     1934msgstr "Modelos usados ​​para um único arquivos incorporados ou listas de arquivos."
     1935
     1936#: classes/AdminGuiTpls.php:189
     1937#@ wpfb
     1938msgid "These templates can be used for categories."
     1939msgstr "Estes modelos podem ser utilizados para as categorias."
     1940
     1941#: classes/AdminGuiTpls.php:194
     1942#@ wpfb
     1943msgid "A list-template consists of header, footer and file template. It can optionally have a category template to list sub-categories."
     1944msgstr "A lista de modelos consiste em modelo de cabeçalho, rodapé e arquivo. Ele pode, opcionalmente, ter um modelo de categoria para listar sub-categorias."
     1945
     1946#: classes/AdminGuiTpls.php:202
     1947#@ wpfb
     1948msgid "This will reset all File, Category and List Templates! Are your sure?"
     1949msgstr "Isso irá redefinir todos os modelos da categoria Arquivo e Lista! Tem certeza?"
     1950
     1951#: classes/AdminGuiTpls.php:203
     1952#@ wpfb
     1953msgid "Reset all Templates to default"
     1954msgstr "Redefinir todos os modelos para o padrão"
     1955
     1956#: classes/AdminGuiTpls.php:225
     1957#: classes/AdminGuiTpls.php:233
     1958#: classes/AdminGuiTpls.php:344
     1959#@ default
     1960msgid "Preview"
     1961msgstr "Visualização"
     1962
     1963#: classes/AdminGuiTpls.php:250
     1964#: classes/FileListTable.php:63
     1965#, php-format
     1966#@ default
     1967msgid "Edit &#8220;%s&#8221;"
     1968msgstr "Editar &#8220;%s&#8221;"
     1969
     1970#: classes/AdminGuiTpls.php:251
     1971#@ default
     1972msgid "Edit this item"
     1973msgstr "Editar este item"
     1974
     1975#: classes/AdminGuiTpls.php:251
     1976#: classes/Core.php:499
     1977#: classes/FileListTable.php:59
     1978#: editor_plugin.php:259
     1979#@ default
     1980msgid "Edit"
     1981msgstr "Editar"
     1982
     1983#: classes/AdminGuiTpls.php:252
     1984#@ default
     1985msgid "Delete this item permanently"
     1986msgstr "Excluir este item permanentemente"
     1987
     1988#: classes/AdminGuiTpls.php:292
     1989#@ wpfb
     1990msgid "Add TemplateEdit Template"
     1991msgstr "Adicionar Molde Editar"
     1992
     1993#: classes/AdminGuiTpls.php:306
     1994#@ wpfb
     1995msgid "Header"
     1996msgstr "Cabeçalho"
     1997
     1998#: classes/AdminGuiTpls.php:318
     1999#@ wpfb
     2000msgid "File Template"
     2001msgstr "Modelo de arquivo"
     2002
     2003#: classes/AdminGuiTpls.php:324
     2004#@ wpfb
     2005msgid "Footer"
     2006msgstr "Rodapé"
     2007
     2008#: classes/AdminGuiTpls.php:338
     2009#@ wpfb
     2010msgid "Add TemplateSubmit Template Changes"
     2011msgstr "Adicionar Modelo Enviar alterações do modelo"
     2012
     2013#: classes/AdminGuiTpls.php:354
     2014#: editor_plugin.php:314
     2015#@ default
     2016msgid "Default"
     2017msgstr "Padrão"
     2018
     2019#: classes/AdminHowToStart.php:21
     2020#, php-format
     2021#@ wpfb
     2022msgid "How to get started with %s?"
     2023msgstr "Como começar com %s?"
     2024
     2025#: classes/AdminHowToStart.php:24
     2026#@ wpfb
     2027msgid "Create a Category"
     2028msgstr "Criar uma categoria"
     2029
     2030#: classes/AdminHowToStart.php:26
     2031#@ wpfb
     2032msgid "Add a file. There are different ways:"
     2033msgstr "Adicionar um arquivo. Há maneiras diferentes:"
     2034
     2035#: classes/AdminHowToStart.php:28
     2036#, php-format
     2037#@ wpfb
     2038msgid "<a href=\"%s\">Use the normal File Upload Form.</a> You you can either upload a file from you local harddisk or you can provide a URL to a file that will be sideloaded to your blog."
     2039msgstr "<a href=\"%s\">Utilize o formulário de upload de arquivo normal.</a>Você pode fazer o upload de um arquivo de você disco rígido local ou você pode fornecer uma URL para um arquivo que será sideloaded no seu blog."
     2040
     2041#: classes/AdminHowToStart.php:29
     2042#, php-format
     2043#@ wpfb
     2044msgid "Use FTP: Use your favorite FTP Client to upload any directories/files to <code>%s</code>. Afterwards <a href=\"%s\">sync the filebase</a> to add the newly uploaded files to the database."
     2045msgstr "Usar FTP: Use o seu cliente FTP favorito para carregar todos os diretórios / arquivos para <code>%s</code>  Afterwards <a href=\"%s\"> sincronizar o filebase </a> para adicionar os arquivos recém-enviados para o banco de dados."
     2046
     2047#: classes/AdminHowToStart.php:32
     2048#, php-format
     2049#@ wpfb
     2050msgid "Goto <a href=\"%s\">WP-Filebase Settings -> Filebrowser</a> and set the Page ID to get a nice AJAX Tree View of all your files."
     2051msgstr "Ir a <a href=\"%s\"> Definições WP Filebase ->Filebrowser </a> e definir o ID da página para obter uma exibição de árvore agradável AJAX de todos os seus arquivos."
     2052
     2053#: classes/AdminHowToStart.php:33
     2054#, php-format
     2055#@ wpfb
     2056msgid "WP-Filebase adds a new button to the visual editor. When creating or editing posts/pages, use the Editor Plugin %s to insert single files, file lists and other stuff into your content."
     2057msgstr "WP-Filebase adiciona um novo botão para o editor visual. Ao criar ou editar mensagens / páginas, utilize o Editor Plugin %s para inserir arquivos individuais, listas de arquivos e outras coisas em seu conteúdo."
     2058
     2059#: classes/AdminHowToStart.php:34
     2060#, php-format
     2061#@ wpfb
     2062msgid "Take a look at the <a href=\"%s\">Widgets</a>. WP-Filebase adds three widgets for file listing, category listing and user uploads."
     2063msgstr "Dê uma olhada na <a href=\"%s\">Widgets</a>. WP-Filebase acrescenta três widgets para upload de arquivos anúncio Listing categoria, e do usuário."
     2064
     2065#: classes/AdminHowToStart.php:35
     2066#, php-format
     2067#@ wpfb
     2068msgid "<a href=\"%s\">Manage the Templates</a> (for advanced users): You can modify any file- or category template to fit your Wordpress theme."
     2069msgstr "<a href=\"%s\">Gerenciar os Modelos</a> para usuários avançados): Você pode modificar qualquer modelo de arquivo ou categoria para caber seu tema Wordpress."
     2070
     2071#: classes/AdminHowToStart.php:38
     2072#@ wpfb
     2073msgid "Never show this again."
     2074msgstr "Nunca mostrar isso de novo."
     2075
     2076#: classes/AdminLite.php:20
     2077#@ wpfb
     2078msgid "DEPRECATED"
     2079msgstr "OBSOLETO"
     2080
     2081#: classes/AdminLite.php:60
     2082#@ wpfb
     2083msgid "tit"
     2084msgstr "teta"
     2085
     2086#: classes/Core.php:51
     2087#@ wpfb
     2088msgid "Deprecated, use other widget instead!"
     2089msgstr "Obsoleta, use outro widget!"
     2090
     2091#: classes/Core.php:307
     2092#, php-format
     2093#@ wpfb
     2094msgid "<a href=\"%s\" title=\"Wordpress Download Manager Plugin\" style=\"color:inherit;font-size:inherit;\">Downloads served by WP-Filebase</a>"
     2095msgstr "<a href=\"%s\" title=\"Gerencador de Plugin de Download Wordpress\" style=\"color:inherit;font-size:inherit;\">Download servido por WP-Filebase</a>"
     2096
     2097#: classes/Core.php:544
     2098#: classes/Core.php:553
     2099#: lib/wpfb_form_file.php:20
     2100#@ wpfb
     2101msgid "Add File"
     2102msgstr "Adicionar Arquivo"
     2103
     2104#: classes/Core.php:558
     2105#@ wpfb
     2106msgid "Manage attachments"
     2107msgstr "Gerenciar anexos"
     2108
     2109#: classes/Item.php:477
     2110#, php-format
     2111#@ default
     2112msgid "Unable to create directory %s. Is it's parent directory writable?"
     2113msgstr "Não foi possível criar diretório %s. O diretório pai é gravável?"
     2114
     2115#: classes/Output.php:279
     2116#@ default
     2117msgid "None"
     2118msgstr "Nenhum"
     2119
     2120#: classes/Output.php:431
     2121#: lib/wpfb_form_file.php:188
     2122#, php-format
     2123#@ default
     2124msgid "Maximum upload file size: %d%s"
     2125msgstr "Tamanho máximo de arquivo de upload: %d%s"
     2126
     2127#: classes/Output.php:439
     2128#@ default
     2129msgctxt "file"
     2130msgid "Add New"
     2131msgstr "Adicionar Novo"
     2132
     2133#: classes/PLUpload.php:50
     2134#: classes/SWFUpload.php:51
     2135#, php-format
     2136#@ wpfb
     2137msgid "File %s uploaded."
     2138msgstr "Ficheiro %s enviado."
     2139
     2140#: classes/PLUpload.php:116
     2141#@ default
     2142msgid "Allowed Files"
     2143msgstr "Arquivos permitidos"
     2144
     2145#: classes/PLUpload.php:137
     2146#@ default
     2147msgid "Drop files here"
     2148msgstr "Solte os arquivos aqui"
     2149
     2150#: classes/PLUpload.php:137
     2151#@ default
     2152msgctxt "Uploader: Drop files here - or - Select Files"
     2153msgid "or"
     2154msgstr "ou"
     2155
     2156#: classes/PLUpload.php:137
     2157#: classes/SWFUpload.php:102
     2158#@ default
     2159msgid "Select Files"
     2160msgstr "Selecionar arquivos"
     2161
     2162#: classes/PLUpload.php:145
     2163#@ default
     2164msgid "Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB."
     2165msgstr "Seu navegador tem algumas limitações de upload de arquivos grandes com o uploader multi-arquivo. Por favor use o uploader navegador para arquivos maiores de 100MB."
     2166
     2167#: classes/ProgressReporter.php:75
     2168#, php-format
     2169#@ wpfb
     2170msgid "%d files <i>%s</i>"
     2171msgstr "%d arquivos <i>%s</i>"
     2172
     2173#: classes/SWFUpload.php:148
     2174#@ default
     2175msgid "Cancel Upload"
     2176msgstr "Cancelar Envio"
     2177
     2178#: classes/Sync.php:34
     2179#@ wpfb
     2180msgid "Checking for file changes..."
     2181msgstr "Verificando alterações de arquivo ..."
     2182
     2183#: classes/Sync.php:47
     2184#@ wpfb
     2185msgid "Searching for new files..."
     2186msgstr "Procurando por novos arquivos ..."
     2187
     2188#: classes/Sync.php:96
     2189#, php-format
     2190#@ wpfb
     2191msgid "%d Files found, %d new."
     2192msgstr "%d  Arquivos encontrados, %d novo."
     2193
     2194#: classes/Sync.php:132
     2195#, php-format
     2196#@ wpfb
     2197msgid "Sync Time: %01.2f s, Memory Peak: %s"
     2198msgstr "Sincronizar Hora: %01.2f s, Pico da memória: %s"
     2199
     2200#: classes/Sync.php:158
     2201#, php-format
     2202#@ wpfb
     2203msgid "Category (ID %d) of file %s does not exist!"
     2204msgstr "Categoria (ID %d) do arquivo %s não existe!"
     2205
     2206#: classes/Sync.php:411
     2207#, php-format
     2208#@ wpfb
     2209msgid "%d Files could not be found."
     2210msgstr "%d Arquivo não pôde ser encontrado."
     2211
     2212#: classes/Sync.php:411
     2213#: classes/Sync.php:413
     2214#@ default
     2215msgid "Remove entries from database"
     2216msgstr "Remova as entradas do banco de dados"
     2217
     2218#: classes/Sync.php:413
     2219#, php-format
     2220#@ wpfb
     2221msgid "%d Category Folders could not be found."
     2222msgstr "%d Pastas de categorias não pôde ser encontrado."
     2223
     2224#: classes/Widget.php:90
     2225#: classes/Widget.php:192
     2226#: classes/Widget.php:253
     2227#: classes/Widget.php:297
     2228#: classes/Widget.php:373
     2229#: classes/Widget.php:470
     2230#@ default
     2231msgid "Title:"
     2232msgstr "Título:"
     2233
     2234#: classes/Widget.php:96
     2235#: classes/Widget.php:476
     2236#: editor_plugin.php:351
     2237#@ default
     2238msgid "All"
     2239msgstr "Todos"
     2240
     2241#: classes/Widget.php:100
     2242#: classes/Widget.php:382
     2243#: classes/Widget.php:486
     2244#: editor_plugin.php:312
     2245#@ default
     2246msgid "Sort by:"
     2247msgstr "Classificar por:"
     2248
     2249#: classes/Widget.php:150
     2250#@ default
     2251msgid "File Upload"
     2252msgstr "Upload de Arquivo"
     2253
     2254#: classes/Widget.php:150
     2255#@ wpfb
     2256msgid "Allows users to upload files from the front end."
     2257msgstr "Permite aos usuários fazer upload de arquivos a partir do final da frente."
     2258
     2259#: classes/Widget.php:186
     2260#@ wpfb
     2261msgid "Frontend upload is disabled in security settings!"
     2262msgstr "Frontend upload é desativado nas configurações de segurança!"
     2263
     2264#: classes/Widget.php:195
     2265#: editor_plugin.php:365
     2266#@ wpfb
     2267msgid "Selectable by Uploader"
     2268msgstr "Selecionável pelo Uploader"
     2269
     2270#: classes/Widget.php:196
     2271#: editor_plugin.php:366
     2272#@ wpfb
     2273msgid "Upload to Root"
     2274msgstr "Enviar para Root"
     2275
     2276#: classes/Widget.php:199
     2277#: editor_plugin.php:370
     2278#@ wpfb
     2279msgid "Overwrite existing files"
     2280msgstr "Substituir os arquivos existentes"
     2281
     2282#: classes/Widget.php:200
     2283#@ wpfb
     2284msgid "Attach file to current post/page"
     2285msgstr "Anexar arquivo para cargo atual / página"
     2286
     2287#: classes/Widget.php:208
     2288#: lib/wpfb_form_cat.php:11
     2289#@ wpfb
     2290msgid "Add Category"
     2291msgstr "Adicionar categoria"
     2292
     2293#: classes/Widget.php:208
     2294#@ wpfb
     2295msgid "Allows users to create file categories from the front end."
     2296msgstr "Permite aos usuários criar categorias de arquivos a partir do final da frente."
     2297
     2298#: classes/Widget.php:220
     2299#: classes/Widget.php:251
     2300#@ wpfb
     2301msgid "Add File Category"
     2302msgstr "Adicionar categoria de Arquivo"
     2303
     2304#: classes/Widget.php:230
     2305#: lib/wpfb_form_cat.php:31
     2306#@ default
     2307msgid "New category name"
     2308msgstr "Nome da nova categoria"
     2309
     2310#: classes/Widget.php:237
     2311#@ default
     2312msgid "Add New Category"
     2313msgstr "Adicionar nova categoria"
     2314
     2315#: classes/Widget.php:261
     2316#: classes/Widget.php:280
     2317#: classes/Widget.php:295
     2318#@ default
     2319msgid "Search"
     2320msgstr "Pesquisar"
     2321
     2322#: classes/Widget.php:261
     2323#@ wpfb
     2324msgid "Widget for searching files."
     2325msgstr "Widget para arquivos de pesquisa."
     2326
     2327#: classes/Widget.php:305
     2328#@ wpfb
     2329msgid "Category list"
     2330msgstr "lista de categorias"
     2331
     2332#: classes/Widget.php:305
     2333#@ wpfb
     2334msgid "Simple listing of file categories"
     2335msgstr "Simples lista de categorias de arquivo"
     2336
     2337#: classes/Widget.php:319
     2338#: classes/Widget.php:365
     2339#@ wpfb
     2340#@ default
     2341msgid "File Categories"
     2342msgstr "Categorias de arquivo"
     2343
     2344#: classes/Widget.php:360
     2345#@ default
     2346msgid "Goto File Browser Settings"
     2347msgstr "Vá em File Browser Settings"
     2348
     2349#: classes/Widget.php:378
     2350#: classes/Widget.php:481
     2351#@ default
     2352msgid "Show hierarchy"
     2353msgstr "Mostrar hierarquia"
     2354
     2355#: classes/Widget.php:407
     2356#@ wpfb
     2357msgid "Listing of files with custom sorting"
     2358msgstr "Listagem de arquivos com classificação personalizada"
     2359
     2360#: editor_plugin.php:207
     2361#@ wpfb
     2362msgid "File Tree View"
     2363msgstr "Exibir árvore de arquivos"
     2364
     2365#: editor_plugin.php:218
     2366#, php-format
     2367#@ default
     2368msgid "Note: Listing of attached files is disabled. You have to <a href=\"%s\">insert the attachments tag</a> to show the files in the content."
     2369msgstr "Nota: Listagem dos arquivos anexados está desativado. Você tem que <a href=\"%s\">inserir o tag anexos</a> para mostrar os arquivos no conteúdo."
     2370
     2371#: editor_plugin.php:252
     2372#@ default
     2373msgid "No items found."
     2374msgstr "Nenhum item foi encontrado."
     2375
     2376#: editor_plugin.php:258
     2377#@ default
     2378msgid "Remove"
     2379msgstr "Remover"
     2380
     2381#: editor_plugin.php:268
     2382#@ wpfb
     2383msgid "Change Order"
     2384msgstr "Alterar Ordem"
     2385
     2386#: editor_plugin.php:275
     2387#@ wpfb
     2388msgid "Attach existing file"
     2389msgstr "Anexar arquivo existente"
     2390
     2391#: editor_plugin.php:291
     2392#@ wpfb
     2393msgid "Select File"
     2394msgstr "Selecione Arquivo"
     2395
     2396#: editor_plugin.php:295
     2397#@ default
     2398msgid "Select Category"
     2399msgstr "Selecione a categoria"
     2400
     2401#: editor_plugin.php:296
     2402#@ wpfb
     2403msgid "Select the categories containing the files you would like to list."
     2404msgstr "Selecione as categorias que contêm os arquivos que você gostaria de listar."
     2405
     2406#: editor_plugin.php:297
     2407#@ wpfb
     2408msgid "Include all Categories"
     2409msgstr "Incluir todas as categorias"
     2410
     2411#: editor_plugin.php:324
     2412#@ wpfb
     2413msgid "Files per page:"
     2414msgstr "Arquivos por página:"
     2415
     2416#: editor_plugin.php:326
     2417#, php-format
     2418#@ wpfb
     2419msgid "Set to 0 to use the default limit (%d), -1 will disable pagination."
     2420msgstr "Ajuste para 0 para usar o limite padrão (%d), -1 irá desativar a paginação."
     2421
     2422#: editor_plugin.php:330
     2423#@ wpfb
     2424msgid "List selected Categories"
     2425msgstr "Lista de categorias selecionadas"
     2426
     2427#: editor_plugin.php:333
     2428#@ wpfb
     2429msgid "Category order"
     2430msgstr "ordem de categoria"
     2431
     2432#: editor_plugin.php:335
     2433#@ wpfb
     2434msgid "None (order of IDs in shortcode)"
     2435msgstr "Nenhum (ordem de IDs no shortcode)"
     2436
     2437#: editor_plugin.php:345
     2438#: editor_plugin.php:354
     2439#: editor_plugin.php:372
     2440#@ default
     2441msgid "Insert"
     2442msgstr "Inserir"
     2443
     2444#: editor_plugin.php:350
     2445#@ wpfb
     2446msgid "Select the root category of the tree view file browser:"
     2447msgstr "Selecione a categoria raiz do navegador de arquivos de exibição de árvore:"
     2448
     2449#: editor_plugin.php:363
     2450#@ wpfb
     2451msgid "Category where uploaded files will be moved in:"
     2452msgstr "Categoria onde os arquivos enviados serão movidos em:"
     2453
     2454#: lib/wpfb_form_cat.php:11
     2455#@ default
     2456msgid "Edit Category"
     2457msgstr "Editar Categoria"
     2458
     2459#: lib/wpfb_form_cat.php:37
     2460#@ default
     2461msgid "The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens."
     2462msgstr "O &#8220;slug&#8221; é a versão URL-friendly do nome. É geralmente todas as letras minúsculas e contém apenas letras, números e hífens."
     2463
     2464#: lib/wpfb_form_cat.php:43
     2465#@ default
     2466msgid "Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional."
     2467msgstr "Categorias, ao contrário de Tags, podem ter uma hierarquia. Você pode ter uma categoria Jazz, e nas que possuem categorias para Bebop e Big Band. Totalmente opcional."
     2468
     2469#: lib/wpfb_form_cat.php:64
     2470#: lib/wpfb_form_file.php:308
     2471#@ wpfb
     2472msgid "Inherit Permissions"
     2473msgstr "Herdar Permissões"
     2474
     2475#: lib/wpfb_form_cat.php:66
     2476#: lib/wpfb_form_file.php:310
     2477#@ wpfb
     2478msgid "Explicitly set permissions"
     2479msgstr "Permissões explicitamente definidas"
     2480
     2481#: lib/wpfb_form_cat.php:69
     2482#@ wpfb
     2483msgid "Limit category access by selecting one or more user roles."
     2484msgstr "Limitar o acesso da categoria, selecionando uma ou mais funções do usuário."
     2485
     2486#: lib/wpfb_form_cat.php:78
     2487#@ wpfb
     2488msgid "This will recursivle update permissions of all existing child categories and files. Note that permissions of new files in this category are inherited automatically, without having checked this checkbox."
     2489msgstr "Isso vai recursivle permissões de atualização de todas as categorias existentes criança e arquivos. Observe que as permissões de arquivos novos nesta categoria são herdadas automaticamente, sem ter verificado esta caixa."
     2490
     2491#: lib/wpfb_form_cat.php:82
     2492#@ wpfb
     2493msgid "Exclude from file browser"
     2494msgstr "Excluir do navegador de arquivos"
     2495
     2496#: lib/wpfb_form_cat.php:90
     2497#@ default
     2498msgid "UpdateAdd New Category"
     2499msgstr "Atualize Adicionar Nova Categoria"
     2500
     2501#: lib/wpfb_form_file.php:53
     2502#: lib/wpfb_form_file.php:57
     2503#@ wpfb
     2504msgid "Simple FormExtended Form"
     2505msgstr "Forma simples FormExtended"
     2506
     2507#: lib/wpfb_form_file.php:179
     2508#@ default
     2509msgid "Upload"
     2510msgstr "Fazer upload"
     2511
     2512#: lib/wpfb_form_file.php:188
     2513#, php-format
     2514#@ wpfb
     2515msgid "Ask your webhoster to increase this limit, it is set in %s."
     2516msgstr "Pergunte ao seu webhoster para aumentar esse limite, ela é definida em %s."
     2517
     2518#: lib/wpfb_form_file.php:189
     2519#@ default
     2520msgid "You are using the Browser uploader."
     2521msgstr "Você está usando o uploader Browser."
     2522
     2523#: lib/wpfb_form_file.php:190
     2524#, php-format
     2525#@ default
     2526msgid "Try the <a href=\"%s\">Flash uploader</a> instead."
     2527msgstr "Tente o <a href=\"%s\">Flash uploader</a> em vez disso."
     2528
     2529#: lib/wpfb_form_file.php:194
     2530#@ default
     2531msgid "Rename"
     2532msgstr "Renomear"
     2533
     2534#: lib/wpfb_form_file.php:202
     2535#@ wpfb
     2536msgid "Redirect download to URL"
     2537msgstr "Redirecionar o download para URL"
     2538
     2539#: lib/wpfb_form_file.php:203
     2540#@ wpfb
     2541msgid "Copy file into Filebase (sideload)"
     2542msgstr "Copie o arquivo em Filebase (sideload)"
     2543
     2544#: lib/wpfb_form_file.php:204
     2545#@ wpfb
     2546msgid "Scan remote file (disable for large files)"
     2547msgstr "Digitalização de arquivos remotos (desativar para arquivos grandes)"
     2548
     2549#: lib/wpfb_form_file.php:211
     2550#@ default
     2551msgid "Thumbnail"
     2552msgstr "Miniatura"
     2553
     2554#: lib/wpfb_form_file.php:258
     2555#@ default
     2556msgid "Post"
     2557msgstr "Postar"
     2558
     2559#: lib/wpfb_form_file.php:286
     2560#@ default
     2561msgid "Yes"
     2562msgstr "Sim"
     2563
     2564#: lib/wpfb_form_file.php:287
     2565#@ default
     2566msgid "No"
     2567msgstr "Não"
     2568
     2569#: lib/wpfb_form_file.php:313
     2570#@ default
     2571msgid "Limit file access by selecting one or more user roles."
     2572msgstr "Limitar o acesso ao arquivo, selecionando uma ou mais funções do usuário."
     2573
     2574#: lib/wpfb_form_file.php:335
     2575#@ wpfb
     2576msgid "Manage Custom Fields"
     2577msgstr "Gerenciar campos personalizados"
     2578
     2579#: lib/wpfb_form_file.php:338
     2580#@ default
     2581msgid "Update"
     2582msgstr "Atualizar"
     2583
     2584#: lib/wpfb_form_file.php:347
     2585#@ wpfb
     2586msgid "File Info Tags (ID3 Tags)"
     2587msgstr "Arquivo de Informações tags ( ID3 Tag)"
     2588
     2589#: wpfb-async-upload.php:36
     2590#@ default
     2591msgid "You do not have permission to upload files."
     2592msgstr "Você não tem permissão para fazer upload de arquivos."
     2593
     2594#: wpfb-async-upload.php:66
     2595#@ default
     2596msgid "Dismiss"
     2597msgstr "Descartar"
     2598
     2599#: wpfb-async-upload.php:67
     2600#, php-format
     2601#@ default
     2602msgid "&#8220;%s&#8221; has failed to upload due to an error"
     2603msgstr "&#8220;%s&#8221; falhou ao carregar devido a um erro"
     2604
     2605#: wpfb-postbrowser.php:9
     2606#: wpfb-postbrowser.php:66
     2607#@ default
     2608msgid "Posts"
     2609msgstr "Mensagens"
     2610
  • wp-filebase/trunk/lib/wpfb_form_cat.php

    r624879 r630203  
    7373        </tr>
    7474       
    75 <?php
    76 ?>     
     75       
    7776        <?php if($update) { ?>
    7877        <tr>
  • wp-filebase/trunk/lib/wpfb_form_file.php

    r624879 r630203  
    5252if(!$in_widget) {
    5353    if($in_editor) {
    54         ?><div style="float: right;"><a style="font-style:normal;" href="<?php echo add_query_arg('exform', ($exform ? '0' : '1')); ?>"><?php _e($exform ? 'Simple Form' : 'Extended Form', WPFB) ?></a></div><?php     
    55         ?><h3 class="media-title"><?php echo $title ?></h3><?php
     54        ?><div style="float: right;"><a style="font-style:normal;" href="<?php echo add_query_arg('exform', ($exform ? '0' : '1')); ?>"><?php _e($exform ? 'Simple Form' : 'Extended Form', WPFB) ?></a></div><h3 class="media-title"><?php echo $title ?></h3><?php
    5655    } else {
    5756        echo "<h2>".$title;
     
    288287                <label title="<?php _e('Yes') ?>"><input type="radio" name="file_direct_linking" value="1" <?php checked('1', $file->file_direct_linking); ?>/> <?php _e('Allow direct linking', WPFB) ?></label><br />
    289288                <label title="<?php _e('No') ?>"><input type="radio" name="file_direct_linking" value="0" <?php checked('0', $file->file_direct_linking); ?>/> <?php _e('Redirect to post', WPFB) ?></label>
    290 <?php
    291 ?>
     289
    292290            </fieldset>
    293291        </td>
     
    322320       
    323321    </tr>
    324     <?php } ?>
    325    
    326     <?php
     322    <?php }
    327323    $custom_fields = WPFB_Core::GetCustomFields();
    328324    foreach($custom_fields as $ct => $cn) {
  • wp-filebase/trunk/readme.txt

    r624879 r630203  
    55Requires at least: 3.1
    66Tested up to: 3.4.2
    7 Stable tag: 0.2.9.25
     7Stable tag: 0.2.9.26
    88
    99Adds a powerful download manager including file categories, downloads counter, widgets, sorted file lists and more to your WordPress blog.
     
    112112
    113113== Changelog ==
     114
     115= 0.2.9.26 =
     116* Fixed flash uploader
     117* Fixed admin bar context menu
     118* Re-organized some settings tabs
     119* Missing files will automatically set offline during sync
     120* Updated Brazillian Portuguese translation by Felipe Cavalcanti
     121* Fixed Item::GetParents() stuck in endless loop
    114122
    115123= 0.2.9.25 =
  • wp-filebase/trunk/wp-filebase-admin.css

    r615301 r630203  
    328328    margin-left: 5px;
    329329}
     330
     331.wpfb-progress-bar-in {
     332    background: #d2ff52; /* Old browsers */
     333    background: -moz-linear-gradient(top,  #d2ff52 0%, #91e842 100%); /* FF3.6+ */
     334    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d2ff52), color-stop(100%,#91e842)); /* Chrome,Safari4+ */
     335    background: -webkit-linear-gradient(top,  #d2ff52 0%,#91e842 100%); /* Chrome10+,Safari5.1+ */
     336    background: -o-linear-gradient(top,  #d2ff52 0%,#91e842 100%); /* Opera 11.10+ */
     337    background: -ms-linear-gradient(top,  #d2ff52 0%,#91e842 100%); /* IE10+ */
     338    background: linear-gradient(to bottom,  #d2ff52 0%,#91e842 100%); /* W3C */
     339    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2ff52', endColorstr='#91e842',GradientType=0 ); /* IE6-9 */
     340}
     341
     342
     343.wpfb-progress-bar-mem {
     344background: #fceabb; /* Old browsers */
     345background: -moz-linear-gradient(top,  #fceabb 0%, #fccd4d 50%, #f8b500 51%, #fbdf93 100%); /* FF3.6+ */
     346background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fceabb), color-stop(50%,#fccd4d), color-stop(51%,#f8b500), color-stop(100%,#fbdf93)); /* Chrome,Safari4+ */
     347background: -webkit-linear-gradient(top,  #fceabb 0%,#fccd4d 50%,#f8b500 51%,#fbdf93 100%); /* Chrome10+,Safari5.1+ */
     348background: -o-linear-gradient(top,  #fceabb 0%,#fccd4d 50%,#f8b500 51%,#fbdf93 100%); /* Opera 11.10+ */
     349background: -ms-linear-gradient(top,  #fceabb 0%,#fccd4d 50%,#f8b500 51%,#fbdf93 100%); /* IE10+ */
     350background: linear-gradient(to bottom,  #fceabb 0%,#fccd4d 50%,#f8b500 51%,#fbdf93 100%); /* W3C */
     351filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#fbdf93',GradientType=0 ); /* IE6-9 */
     352   
     353}
  • wp-filebase/trunk/wp-filebase.php

    r624879 r630203  
    55Description: Adds a powerful downloads manager supporting file categories, download counter, widgets, sorted file lists and more to your WordPress blog.
    66Author: Fabian Schlieper
    7 Version: 0.2.9.25
     7Version: 0.2.9.26
    88Author URI: http://fabi.me/
    99*/
     
    1212{
    1313    define('WPFB', 'wpfb');
    14     define('WPFB_VERSION', '0.2.9.25');
     14    define('WPFB_VERSION', '0.2.9.26');
    1515    define('WPFB_PLUGIN_ROOT', str_replace('\\','/',dirname(__FILE__)).'/');
    1616    if(!defined('ABSPATH')) {
  • wp-filebase/trunk/wpfb-ajax.php

    r624879 r630203  
    8282                                    ('<a href="javascript:'.sprintf($onselect,$c->cat_id,str_replace('\'','\\\'', htmlspecialchars(stripslashes($c->cat_name)))).'">'.esc_html($c->GetTitle(24)).'</a>')
    8383                                   :($filesel ? (esc_html($c->cat_name)." ($c->cat_num_files / $c->cat_num_files_total)") : $c->GenTpl2('filebrowser', false)),
    84                     'hasChildren'=>($catsel?(count($c->GetChildCats())>0):($c->cat_num_files_total > 0)),
     84                    'hasChildren'=>$cat->HasChildren($catsel),
    8585                    'classes'=>($filesel||$catsel)?'folder':null);
    8686        }
  • wp-filebase/trunk/wpfb-async-upload.php

    r487234 r630203  
    77define('TMP_FILE_MAX_AGE', 3600*3);
    88
     9$frontend_upload = !empty($_REQUEST['frontend_upload']);
     10
    911ob_start();
    10 define('WP_ADMIN', true);
     12define('WP_ADMIN', !$frontend_upload);
    1113
    1214if ( defined('ABSPATH') )
     
    2426unset($current_user);
    2527
    26 require_once(ABSPATH.'wp-admin/admin.php');
     28if(!$frontend_upload)
     29    require_once(ABSPATH.'wp-admin/admin.php');
    2730ob_end_clean();
    2831
     
    3336@header('Content-Type: text/plain; charset=' . get_option('blog_charset'));
    3437
    35 if ( !current_user_can('upload_files') )
    36     wp_die(__('You do not have permission to upload files.'));
     38
     39if($frontend_upload) {
     40    if(!WPFB_Core::GetOpt('frontend_upload') && !current_user_can('upload_files'))
     41        wp_die(__('You do not have permission to upload files.'));
     42} else {
     43    wpfb_loadclass('Admin');
    3744   
    38 check_admin_referer(WPFB.'-async-upload'); 
     45    if ( !WPFB_Admin::CurUserCanUpload()  )
     46        wp_die(__('You do not have permission to upload files.'));
     47       
     48    check_admin_referer(WPFB.'-async-upload');
     49}
    3950
    4051wpfb_loadclass('Admin');
     
    7182
    7283@header('Content-Type: application/json; charset=' . get_option('blog_charset'));
    73 echo json_encode($_FILES['async-upload']);
     84
     85$json = json_encode($_FILES['async-upload']);
     86@header('Content-Length: '.strlen($json));
     87echo $json;
    7488
    7589?>
Note: See TracChangeset for help on using the changeset viewer.