X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.php;h=59b1c98a019ab3ea9fc56f3b0408861d5fe63336;hb=b568a0fee40cca8d56b7a6b7d95a919451becc77;hp=994bfb5788ea12e3d30d9a474df4a7075148c991;hpb=15f391c463f08014a2af7b80920c4832877ad09f;p=wfpl-cms.git diff --git a/config.php b/config.php index 994bfb5..59b1c98 100644 --- a/config.php +++ b/config.php @@ -6,9 +6,19 @@ define('WFPL_DB', 'fixme'); define('WFPL_DB_USER', 'fixme'); define('WFPL_DB_PASS', 'fixme'); -# CMS login passwords are stored in the database. See admin_admins.php +# CMS login passwords are stored in the database. See admin_users.php date_default_timezone_set('America/New_York'); +# If you change these, update style.styl too +define('WFPL_IMAGE_WIDTH_FULL', 900); +define('WFPL_IMAGE_WIDTH_SMALL', 336); # this is "sidebar_width" in style.styl +define('WFPL_IMAGE_WIDTH_THUMB', 70); +$GLOBALS['wfpl_image_widths'] = array( + WFPL_IMAGE_WIDTH_FULL, + WFPL_IMAGE_WIDTH_SMALL, + WFPL_IMAGE_WIDTH_THUMB +); + # Enable features, auto-includes require_once(DOCROOT . 'inc/wfpl/format.php'); require_once(DOCROOT . 'inc/wfpl/db.php'); @@ -19,3 +29,9 @@ require_once(DOCROOT . 'inc/misc.php'); # Connect to the database db_connect(WFPL_DB, WFPL_DB_USER, WFPL_DB_PASS); + +# upgrade db (only) on special trigger (assures only one upgrade at a time) +if (isset($_SERVER['HTTP_X_UPGRADE_DB_NOW'])) { + require_once(DOCROOT . 'inc/db_upgrade.php'); + db_upgrade(); +}