Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: May 29, 2018 5:16 PM
Views: 20
Tags: no tags
  1.  $popup=$s_db->select_row(array('f'=>'name,text','t'=>P.'list_e','s'=>true,'a'=>true,'w'=>'id=:id','wa'=>array(":id"=>$site_data['popup_id'])));
  2.     if ($popup) {
  3.         if (!$_COOKIE['popupstatusz']) {
  4.             $smarty->assign("popup",$popup);
  5.             $body.=$smarty->fetch(UTVHTML.'modal.tpl');
  6.             $lejarat=time()+(int)$site_data['popup_time']*60;
  7.             setcookie('popupstatusz','felugrott', $lejarat ,"/"); // 86400 = 1 nap
  8.         }
  9.     }