dbName != $_SESSION["dbName"]) { $DB->dbReSelect($_SESSION["dbName"]); $strSQL = "SELECT * FROM settings"; $DB->dbQuery($strSQL, __FILE__, __LINE__); while($row = $DB->dbGetRow()) { $pref[$row["name"]] = $row["type"] == "Text" ? $row["text_value"] : $row["value"]; } $DB -> dbFree(); } $app = new $area($DB, $pref, __FILE__, __LINE__); $app -> run(__FILE__, __LINE__); //var_dump($_SESSION); my_exit(); ?>