$popup1="КОД-попапа1";
//$popup2="ВТОРОГО";
if (isset($_COOKIE['popup_showed'])){
$tpl->set('{popup1}', "");
// $tpl->set('{popup2}', "");
} else {
set_cookie ("popup_showed", $member_id['name'], time()+3600*24);
$tpl->set('{popup1}', $popup1);
//$tpl->set('{popup2}', $popup2);
}