Changeset 450

Show
Ignore:
Timestamp:
04/02/07 20:30:15 (2 years ago)
Author:
rats
Message:

* fixed: bug on language upload

  • fixed bug #132: No special chars on filemanager (Jan Porath)
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGELOG

    r449 r450  
    1010|               * gui: disable stats-alias in client menu         | 
    1111\_________________________________________________________________/ 
     12 
     132007-04-02 Benedikt Heintel 
     14        - GUI: 
     15                * fixed: bug on language upload 
     16                * fixed bug #132: No special chars on filemanager (Jan Porath) 
    1217 
    13182007-04-01 Benedikt Heintel 
  • trunk/gui/admin/multilanguage.php

    r449 r450  
    106106        global $sql; 
    107107 
    108         if (isset($_POST['uaction']) && $_POST['uaction'] === 'upload_language') { 
     108        if (isset($_POST['uaction']) AND $_POST['uaction'] === 'upload_language') { 
    109109 
    110110                // add lang pack now ! 
     
    116116                } 
    117117 
    118                 if (if (!($file_type === "text/plain") && !($file_type === "application/octet-stream")){ 
     118                if (!($file_type === "text/plain") AND !($file_type === "application/octet-stream")){ 
    119119                        set_page_message(tr('You can upload only text files!')); 
    120120                        return; 
  • trunk/gui/tools/filemanager/index.php

    r371 r450  
    22 
    33/*  Hi, 
    4      
     4 
    55    Thanks for downloading net2ftp! 
    6      
     6 
    77    This page shows how to integrate net2ftp in a generic PHP page. 
    88    It is quite easy: 
    99    1. Define the constants NET2FTP_APPLICATION_ROOTDIR and NET2FTP_APPLICATION_ROOTDIR_URL 
    1010    2. Include the file main.inc.php 
    11     3. Execute 5 net2ftp() calls to send the HTTP headers, print the Javascript  
     11    3. Execute 5 net2ftp() calls to send the HTTP headers, print the Javascript 
    1212       code, print the HTML body, etc... 
    1313    4. Check if an error occured to print out an error message. 
    14      
     14 
    1515    Look in /integration for more elaborate examples. 
    16      
     16 
    1717    Enjoy, 
    18      
    19     David  
     18 
     19    David 
    2020*/ 
    2121 
     
    3333 
    3434// ------------------------------------------------------------------------ 
    35 // 3. Execute net2ftp($action). Note that net2ftp("sendHttpHeaders") MUST  
     35// 3. Execute net2ftp($action). Note that net2ftp("sendHttpHeaders") MUST 
    3636//    be called once before the other net2ftp() calls! 
    3737// ------------------------------------------------------------------------ 
    3838net2ftp("sendHttpHeaders"); 
    3939 
    40 // <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
     40header("Content-type: text/html;charset=".__("iso-8859-1")); 
    4141?> 
    4242<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    6060<?php 
    6161// ------------------------------------------------------------------------ 
    62 // 4. Check the result and print out an error message. This can be done using  
     62// 4. Check the result and print out an error message. This can be done using 
    6363//    a template, or by accessing the $net2ftp_result variable directly. 
    6464// ------------------------------------------------------------------------