* Portions created by the Initial Developer are Copyright (C) 2008-2024 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Mark J Crane * Tim Fry */ if ($domains_processed == 1) { if (class_exists('framework')) { //use global config and database objects if available maintenance::app_defaults(framework::database()); } else { global $database; if ($database === null) { $database = database::new(); } //set the app information for database accounting $database->app_name = maintenance::APP_NAME; $database->app_uuid = maintenance::APP_UUID; //maintenance class handles setting app defaults maintenance::app_defaults($database); } }