replacing dirname(__FILE__), replacing WfdownloadsRequest with XoopsRequest