} if (!defined("TINA4_INCLUDES")) { define("TINA4_INCLUDES", "project"); } if (!defined("TINA4_SESSION")) { define("TINA4_SESSION", "TINA4"); } if (!defined("TINA4_RUTH_DEBUG")) { define("TINA4_RUTH_DEBUG", false); } Ruth::autoLoad($_TINA4_LOAD_PATHS . TINA4_INCLUDES, true, true); /** * Initialize the TIN4 session */ if (!empty(TINA4_SESSION)) { Ruth::initRuth(TINA4_SESSION); if (!empty(TINA4_RUTH_DEBUG)) { if (TINA4_RUTH_DEBUG) { Ruth::DEBUG(); } } } else { tina4Message("TINA4_SESSION variable is not set", "Config Error"); } //Check if we have a connections folder for database connections and init Debby if (file_exists(realpath(__DIR__ . "/connections"))) { Ruth::autoLoad(realpath(__DIR__ . "/connections"), false); if (strpos(Ruth::getREQUEST_URI(), "/debby") !== false) { Ruth::addRoute(RUTH_GET, "/debby/create", function () { echo (new Debby())->createConnection(); });