public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new CIntranetPopupShow(); } return self::$instance; }
function onIntranetPopupShow() { $isPopupShowed = CIntranetPopupShow::getInstance()->isPopupShowed(); if ($isPopupShowed == "Y") { return false; } }