/**
* SquirrelMail Demo Plugin
*
- * @copyright © 2006-2007 The SquirrelMail Project Team
+ * @copyright 2006-2022 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
*/
function demo_page_header_template_do()
{
- global $oTemplate;
+ global $oTemplate, $nbsp;
sq_change_text_domain('demo');
- $nbsp = $oTemplate->fetch('non_breaking_space.tpl');
$output = makeInternalLink('plugins/demo/demo.php', _("Demo"), '')
. $nbsp . $nbsp;
sq_change_text_domain('squirrelmail');
+/**
+ * Validate that this plugin is configured correctly
+ *
+ * @return boolean Whether or not there was a
+ * configuration error for this plugin.
+ *
+ */
+function demo_check_configuration_do()
+{
+
+ // test for something that this plugin requires, print error if
+ // misconfigured or requirements are missing
+ //
+ if (FALSE) // put something meaningful here
+ {
+ do_err('Demo plugin is missing something important', FALSE);
+ return TRUE; // return FALSE if you only want to display a non-critical error
+ }
+
+ return FALSE;
+
+}
+
+
+