--- /dev/null
+<?php
+
+/**
+ * Provides some basic configuration options to the template engine
+ *
+ * @copyright © 1999-2008 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ * @subpackage templates
+ */
+
+
+/**
+ * Indicates what template engine this template set uses.
+ */
+$template_engine = SQ_PHP_TEMPLATE;
+
+
+/**
+ * Indicates what the content type is for this template set.
+ */
+//FIXME - what is the proper content-type? (TODO: possibly make default RPC templates SOAP-compliant)
+//$content_type = 'application/soap+xml';
+$content_type = 'text/xml';
+
+
+/**
+ * If non-empty, indicates which template set this set is derived from.
+ *
+ * If a template file does not exist in this template set, then the
+ * parent set is searched for the file. If not found there and that
+ * set has a parent itself (the grandparent of this set), the file is
+ * searched for there.... This continues until there are no more parent
+ * template sets, and if the file is still not found, the fall-back
+ * template set (see $templateset_fallback in config/config.php) is the
+ * last placed searched for the file.
+ *
+ */
+$parent_template_set = '';
+
+
+/**
+ * These settings allow this template set to change SquirrelMail's
+ * list of active plugins by adding or removing any of those listed
+ * herein. If the $remove_plugins list contains "*", then ALL plugins
+ * will be disabled, and only those in $add_plugins will be enabled.
+ *
+ */
+$add_plugins = array();
+$remove_plugins = array();
+
+
--- /dev/null
+<?php
+
+/**
+ * rpc_response_error.tpl
+ *
+ * Template for constructing an error response to a remote
+ * procedure call.
+ *
+ * The following variables are available in this template:
+ * + $error_code - The numeric error code associated with the
+ * current error condition
+ * + $error_text - Any error message associated with the current
+ * error condition (optional; may not be present)
+ *
+ * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id: rpc_response_error.tpl 12111 2007-01-11 08:05:51Z pdontthink $
+ * @package squirrelmail
+ * @subpackage templates
+ */
+
+
+// retrieve the template vars
+//
+extract($t);
+
+
+/*echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';*/
+echo '<?xml version="1.0" ?>';
+?>
+<response>
+ <status>ERROR</status>
+ <result_code><?php echo $error_code; ?></result_code>
+ <result_text><?php echo $error_text; ?></result_text>
+</response>
--- /dev/null
+<?php
+
+/**
+ * rpc_response_success.tpl
+ *
+ * Template for constructing a standard response to a remote
+ * procedure call.
+ *
+ * The following variables are available in this template:
+ * + $result_code - The result code (optional; if not given
+ * must default to 0 (zero))
+ * + $result_text - Any result message (optional; may not be
+ * present)
+ *
+ * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id: rpc_response_success.tpl 12111 2007-01-11 08:05:51Z pdontthink $
+ * @package squirrelmail
+ * @subpackage templates
+ */
+
+
+// retrieve the template vars
+//
+extract($t);
+
+
+/*echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';*/
+echo '<?xml version="1.0" ?>';
+?>
+<response>
+ <status>OK</status>
+ <result_code><?php echo $result_code; ?></result_code>
+ <result_text><?php echo $result_text; ?></result_text>
+</response>