X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.php;h=59b1c98a019ab3ea9fc56f3b0408861d5fe63336;hb=2734a84bbf4c7d572168c3882f7fe135a2968732;hp=e60cbd70d02a12f0284ef974b9d7b4acbd202b12;hpb=e7424acd48ed670f1b8bd8d7c1ff69b37ce6334b;p=wfpl-cms.git diff --git a/config.php b/config.php index e60cbd7..59b1c98 100644 --- a/config.php +++ b/config.php @@ -29,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(); +}