X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=config.php;h=3e0f8fd919db79cfd67249765f11c1917fe2f5e3;hp=da021ef135bcbdbd864d8c7bcce54373591e6a26;hb=3ed0f0b53ff1b3ea3e30292bf39eb6e30935e9eb;hpb=6dcd0cadcca91c18d12d9674e6ec3ce60cb44d31 diff --git a/config.php b/config.php index da021ef..3e0f8fd 100644 --- a/config.php +++ b/config.php @@ -20,12 +20,12 @@ $GLOBALS['wfpl_image_widths'] = array( ); # Enable features, auto-includes -require_once(DOCROOT . 'inc/wfpl/format.php'); -require_once(DOCROOT . 'inc/wfpl/db.php'); -require_once(DOCROOT . 'inc/wfpl/session_messages.php'); -require_once(DOCROOT . 'inc/session_auth.php'); -require_once(DOCROOT . 'inc/cms.php'); -require_once(DOCROOT . 'inc/misc.php'); +require_once(__DIR__.'/'.'inc/wfpl/format.php'); +require_once(__DIR__.'/'.'inc/wfpl/db.php'); +require_once(__DIR__.'/'.'inc/wfpl/session_messages.php'); +require_once(__DIR__.'/'.'inc/session_auth.php'); +require_once(__DIR__.'/'.'inc/cms.php'); +require_once(__DIR__.'/'.'inc/misc.php'); # Connect to the database db_connect(WFPL_DB, WFPL_DB_USER, WFPL_DB_PASS); @@ -36,15 +36,23 @@ if (isset($_SERVER['HTTP_X_UPGRADE_DB_NOW'])) { db_upgrade(); } +# paypal_ipn.php calls these when it receives a valid payment +$GLOBALS['payment_handlers'] = [ + # the key (below) must be the first word in the paypal variable "custom" + # the file will be run with wfpl's file_run() + # example: + #'membership' => DOCROOT . 'inc/payment_membership.php' +]; + $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"] + ['details', "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~" + 'content' => "Hi developer,\n\nPlease investigate the following debugging message from the site:\n\n~details~", 'from_addr' => 'noreply@example.com', 'to_addr' => 'fixme@example.com' # not all templates need this field ]