take($_GET['id']))) { $info = getimagesize("multimedia/medium/".$rCObj->get_file()); $Smarty->assign('rCObj_width',$info[0] + 10); $Smarty->assign('rCObj_height',$info[1] + 10); if($info[0] < 534) { $Smarty->assign('rCObj_move', ((534 - $info[0]) / 2) - 5); } else { $Smarty->assign('rCObj_move', -5); } $Smarty->assign('rCObj_wodny',($info[1] / 2) - 15); if($aCRange=$CRange->select('where '.$CRange->tablePrefix.'m_id='.$rCObj->get_id().' order by '.$CRange->tablePrefix.'data_from asc limit 0,1')) $Smarty->assign('data',date_map($aCRange[0]->get_data_from())); if($rCLicence=$CLicence->take($rCObj->get_l_id())) { $rCObj->set_l_id($rCLicence->get_name()); $rCObj->add_l_text(htmlspecialchars($rCLicence->get_description())); } else $rCObj->add_l_text(''); $Smarty->assign('rCObj',$rCObj); $Smarty->assign('type',$type); sHeader($Ustawienia->nazwa()." - multimedium ".$rCObj->get_name(),$CMultimedia->tags_string($rCObj->get_id()),$rCObj->get_meta_description(),null,null,null,null,'header2.thtml'); $Smarty->display('multimedia.thtml'); sFooter(); pageClose(); } else { redirect('/index.php'); } ?>