quote($_GET['path'])); if (!$partner_info) { header('Location: /'); exit; } $alb = $db->fetchRow($db->select()->from('gallery_albums')->where("id=$_GET[album] and otype='pr' and oid=$partner_info[partner_id]")); if (!$alb) { header("Location: /partners/$partner_info[text_id]"); exit; } $q = $db->select()->from(array('pg'=>'partner_gallery')) ->joinLeft(array('i'=>'images'),'i.image_id=pg.pic_id',array('image_path','small_image')) ->where("album=$alb[id]"); $ax = $db->fetchAll($q); $bx = ''; foreach ($ax as $v) { $bx .= "
".(($v['title'])?"