- Timestamp:
- 06/04/08 01:37:02
(6 months ago)
- Author:
- rats
- Message:
* Updated net2ftp to version 0.97
* Updated SquirrelMail to version 1.4.15
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r910 |
r1198 |
|
| 3 | 3 | // ------------------------------------------------------------------------------- |
|---|
| 4 | 4 | // | net2ftp: a web based FTP client | |
|---|
| 5 | | // | Copyright (c) 2003-2007 by David Gartner | |
|---|
| | 5 | // | Copyright (c) 2003-2008 by David Gartner | |
|---|
| 6 | 6 | // | | |
|---|
| 7 | 7 | // | This program is free software; you can redistribute it and/or | |
|---|
| … | … | |
| 121 | 121 | // ************************************************************************************** |
|---|
| 122 | 122 | |
|---|
| | 123 | |
|---|
| | 124 | |
|---|
| | 125 | |
|---|
| | 126 | |
|---|
| | 127 | // ************************************************************************************** |
|---|
| | 128 | // ************************************************************************************** |
|---|
| | 129 | // ** ** |
|---|
| | 130 | // ** ** |
|---|
| | 131 | |
|---|
| | 132 | function net2ftpErrorHandler($errno, $errmsg, $file, $line, $vars) { |
|---|
| | 133 | |
|---|
| | 134 | // -------------- |
|---|
| | 135 | // This function processes PHP notices, warnings and errors |
|---|
| | 136 | // -------------- |
|---|
| | 137 | |
|---|
| | 138 | // ------------------------------------------------------------------------- |
|---|
| | 139 | // Global variables |
|---|
| | 140 | // ------------------------------------------------------------------------- |
|---|
| | 141 | global $net2ftp_output; |
|---|
| | 142 | |
|---|
| | 143 | // ------------------------------------------------------------------------- |
|---|
| | 144 | // Put error details in variable |
|---|
| | 145 | // ------------------------------------------------------------------------- |
|---|
| | 146 | if ($errno == E_USER_ERROR || $errno == E_ERROR || $errno == E_PARSE) { |
|---|
| | 147 | $net2ftp_output["php_error"][] = "Error [$errno] $errstr in file $file on line $line"; |
|---|
| | 148 | echo "Error [$errno] $errstr in file $file on line $line"; |
|---|
| | 149 | exit(); |
|---|
| | 150 | } |
|---|
| | 151 | elseif ($errorno == E_USER_WARNING || $errno == E_WARNING) { |
|---|
| | 152 | $net2ftp_output["php_warning"][] = "Warning [$errno] $errstr in file $file on line $line"; |
|---|
| | 153 | } |
|---|
| | 154 | elseif ($errorno == E_USER_NOTICE) { |
|---|
| | 155 | $net2ftp_output["php_notice"][] = "Notice [$errno] $errstr in file $file on line $line"; |
|---|
| | 156 | } |
|---|
| | 157 | else { |
|---|
| | 158 | $net2ftp_output["php_error"][] = "Unknown error type [$errno] $errstr in file $file on line $line"; |
|---|
| | 159 | } |
|---|
| | 160 | |
|---|
| | 161 | } // end setErrorVars |
|---|
| | 162 | |
|---|
| | 163 | // ** ** |
|---|
| | 164 | // ** ** |
|---|
| | 165 | // ************************************************************************************** |
|---|
| | 166 | // ************************************************************************************** |
|---|
| | 167 | |
|---|
| 123 | 168 | ?> |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>