482956f2 |
1 | <?php |
2 | |
3 | /** |
4 | * rpc_response_error.tpl |
5 | * |
6 | * Template for constructing an error response to a remote |
7 | * procedure call. |
8 | * |
9 | * The following variables are available in this template: |
10 | * + $error_code - The numeric error code associated with the |
11 | * current error condition |
12 | * + $error_text - Any error message associated with the current |
13 | * error condition (optional; may not be present) |
14 | * |
15 | * @copyright © 1999-2007 The SquirrelMail Project Team |
16 | * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
17 | * @version $Id$ |
18 | * @package squirrelmail |
19 | * @subpackage templates |
20 | */ |
21 | |
22 | |
23 | // retrieve the template vars |
24 | // |
25 | extract($t); |
26 | |
27 | |
28 | /*echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';*/ |
29 | echo '<?xml version="1.0" ?>'; |
30 | ?> |
31 | <response> |
32 | <status>ERROR</status> |
33 | <result_code><?php echo $error_code; ?></result_code> |
34 | <result_text><?php echo $error_text; ?></result_text> |
35 | </response> |