Changeset 450
- 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
| r449 |
r450 |
|
| 10 | 10 | | * gui: disable stats-alias in client menu | |
|---|
| 11 | 11 | \_________________________________________________________________/ |
|---|
| | 12 | |
|---|
| | 13 | 2007-04-02 Benedikt Heintel |
|---|
| | 14 | - GUI: |
|---|
| | 15 | * fixed: bug on language upload |
|---|
| | 16 | * fixed bug #132: No special chars on filemanager (Jan Porath) |
|---|
| 12 | 17 | |
|---|
| 13 | 18 | 2007-04-01 Benedikt Heintel |
|---|
| r449 |
r450 |
|
| 106 | 106 | global $sql; |
|---|
| 107 | 107 | |
|---|
| 108 | | if (isset($_POST['uaction']) && $_POST['uaction'] === 'upload_language') { |
|---|
| | 108 | if (isset($_POST['uaction']) AND $_POST['uaction'] === 'upload_language') { |
|---|
| 109 | 109 | |
|---|
| 110 | 110 | // add lang pack now ! |
|---|
| … | … | |
| 116 | 116 | } |
|---|
| 117 | 117 | |
|---|
| 118 | | if (if (!($file_type === "text/plain") && !($file_type === "application/octet-stream")){ |
|---|
| | 118 | if (!($file_type === "text/plain") AND !($file_type === "application/octet-stream")){ |
|---|
| 119 | 119 | set_page_message(tr('You can upload only text files!')); |
|---|
| 120 | 120 | return; |
|---|
| r371 |
r450 |
|
| 2 | 2 | |
|---|
| 3 | 3 | /* Hi, |
|---|
| 4 | | |
|---|
| | 4 | |
|---|
| 5 | 5 | Thanks for downloading net2ftp! |
|---|
| 6 | | |
|---|
| | 6 | |
|---|
| 7 | 7 | This page shows how to integrate net2ftp in a generic PHP page. |
|---|
| 8 | 8 | It is quite easy: |
|---|
| 9 | 9 | 1. Define the constants NET2FTP_APPLICATION_ROOTDIR and NET2FTP_APPLICATION_ROOTDIR_URL |
|---|
| 10 | 10 | 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 |
|---|
| 12 | 12 | code, print the HTML body, etc... |
|---|
| 13 | 13 | 4. Check if an error occured to print out an error message. |
|---|
| 14 | | |
|---|
| | 14 | |
|---|
| 15 | 15 | Look in /integration for more elaborate examples. |
|---|
| 16 | | |
|---|
| | 16 | |
|---|
| 17 | 17 | Enjoy, |
|---|
| 18 | | |
|---|
| 19 | | David |
|---|
| | 18 | |
|---|
| | 19 | David |
|---|
| 20 | 20 | */ |
|---|
| 21 | 21 | |
|---|
| … | … | |
| 33 | 33 | |
|---|
| 34 | 34 | // ------------------------------------------------------------------------ |
|---|
| 35 | | // 3. Execute net2ftp($action). Note that net2ftp("sendHttpHeaders") MUST |
|---|
| | 35 | // 3. Execute net2ftp($action). Note that net2ftp("sendHttpHeaders") MUST |
|---|
| 36 | 36 | // be called once before the other net2ftp() calls! |
|---|
| 37 | 37 | // ------------------------------------------------------------------------ |
|---|
| 38 | 38 | net2ftp("sendHttpHeaders"); |
|---|
| 39 | 39 | |
|---|
| 40 | | // <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|---|
| | 40 | header("Content-type: text/html;charset=".__("iso-8859-1")); |
|---|
| 41 | 41 | ?> |
|---|
| 42 | 42 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| … | … | |
| 60 | 60 | <?php |
|---|
| 61 | 61 | // ------------------------------------------------------------------------ |
|---|
| 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 |
|---|
| 63 | 63 | // a template, or by accessing the $net2ftp_result variable directly. |
|---|
| 64 | 64 | // ------------------------------------------------------------------------ |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>