X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.php;fp=config.php;h=da021ef135bcbdbd864d8c7bcce54373591e6a26;hb=6dcd0cadcca91c18d12d9674e6ec3ce60cb44d31;hp=59b1c98a019ab3ea9fc56f3b0408861d5fe63336;hpb=2078c2762990009d890fb6c36f0b0d947f559687;p=wfpl-cms.git diff --git a/config.php b/config.php index 59b1c98..da021ef 100644 --- a/config.php +++ b/config.php @@ -35,3 +35,18 @@ if (isset($_SERVER['HTTP_X_UPGRADE_DB_NOW'])) { require_once(DOCROOT . 'inc/db_upgrade.php'); db_upgrade(); } + +$GLOBALS['email_templates'] = [ + 'backend_bug' => [ + 'title' => "Notification for site programmer(s)", + 'description' => "This email template is used if/when the back-end code of this site encounters an unusual/suspicious situation that it's not sure how to cope with.", + 'variables' => [ + ['message', "details about the unusual/suspicious situation"] + ], + 'subject' => "backend alert", + 'content' => "Hi developer,\n\nPlease investigate the following debugging message from the site:\n\n~message~" + 'from_addr' => 'noreply@example.com', + 'to_addr' => 'fixme@example.com' # not all templates need this field + ] + # ... +];