We report the study of optical textures and internal ordering of homeotropically aligned octylcyanobiphenyl (8CB) liquid crystal, which is characterized by both nematic and smectic phases, confined to porous polyethylene terephthalate films. Taking into account previously reported results, experimental and theoretical data allowed identifying the internal ordering of 8CB within the pores. Despite of completely different spatial ordering, experimental observations revealed similar optical patterns for both liquid-crystalline phases. The presented results can be used in photonic LC applications.