Changeset 2090

Show
Ignore:
Timestamp:
01/22/08 04:39:01 (11 months ago)
Author:
anarcat
Message:

don't translate mimetypes in m_bro::mime(). revert hooking tarball extraction from the last commit

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/admin/bro_main.php

    r2089 r2090  
    104104    break; 
    105105  case 3:  // Upload de fichier... 
    106     $target = $bro->UploadFile($R); 
    107     if (!$target) { 
     106    if (!$bro->UploadFile($R)) { 
    108107      print $err->errstr(); 
    109     } elseif ($_POST['extract']) { 
    110       if (!$bro->ExtractFile($target)) { 
    111         print $err->errstr(); 
    112       } 
    113108    } 
    114109    break; 
     
    221216echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s",$c[$i]["date"]))."<br /></td>"; 
    222217if ($p["showtype"]) { 
    223 echo "<td>".$bro->mime($c[$i]["name"])."</td>"; 
     218echo "<td>"._($bro->mime($c[$i]["name"]))."</td>"; 
    224219} 
    225220$vu=$bro->viewurl($R,$c[$i]["name"]); 
  • alternc/trunk/bureau/class/m_bro.php

    r2088 r2090  
    228228    global $bro_type; 
    229229    if (!strpos($file,".") && substr($file,0,1)!=".") { 
    230       return _("File")
     230      return "File"
    231231    } 
    232232    $t=explode(".",$file); 
     
    237237    // Now seek the extension 
    238238    if (!$bro_type[$ext]) { 
    239         return _("File")
    240     } else { 
    241         return _($bro_type[$ext])
     239        return "File"
     240    } else { 
     241        return $bro_type[$ext]
    242242    } 
    243243  }