Which gland secretes hormones that affect other endocrine glands: pineal, pituitary, thyroid, adrenal, or pancreas?