*/ log_debug("start", "Loading configuration from database for hosted DB"); $sql_config_obj = new sql_query(); $sql_config_obj->string = "SELECT name, value FROM config ORDER BY name"; $sql_config_obj->execute(); $sql_config_obj->fetch_array(); foreach ($sql_config_obj->data as $data_config) { $GLOBALS["config"][$data_config["name"]] = $data_config["value"]; } unset($sql_config_obj); // execute the page functions page_execute(); } } else { /* Running in single-instance mode - no need to connect to the database. Just execute the functions in the script once. */ page_execute(); } /* Display Stats if debugging */ if ($_SESSION["user"]["debug"] == "on") { log_debug_render(); } /* Complete */ log_write("debug", "end", "Successful Application Execution & Shutdown");
*/ log_debug("start", "Loading configuration from database for hosted DB"); $sql_config_obj = new sql_query(); $sql_config_obj->string = "SELECT name, value FROM config ORDER BY name"; $sql_config_obj->execute(); $sql_config_obj->fetch_array(); foreach ($sql_config_obj->data as $data_config) { $GLOBALS["config"][$data_config["name"]] = $data_config["value"]; } unset($sql_config_obj); // execute the page functions page_execute($argv); } } else { /* Running in single-instance mode - no need to connect to the database. Just execute the functions in the script once. */ page_execute($argv); } /* Display Stats if debugging */ if ($_SESSION["user"]["debug"] == "on") { log_debug_render(); } /* Complete */ log_write("debug", "end", "Successful Application Execution & Shutdown");