<?php Yii::app()->getController(); Helper::YiiImport("GetController"); $photo = GetController::getPhoto($p); $id = $photo['id']; $link = $photo['link']; $ip = $photo['ip']; $timeCreate = $photo['timeCreate']; $thumb = str_replace("photo/", "", $link); $user = GetController::getUser($photo['fbid']); $name = $user['name']; $mid = str_replace("photo/", "", $photo['link']); $mid = Yii::app()->baseUrl . "thumb/thumb320_" . $thumb; Yii::app()->facebook->ogTags['og:image'] = "http://www.pla2gram.com/thumb/thumb_" . $thumb; if (isset($_GET['theater'])) { $theater = 1; } else { $theater = 0; } ?> <script type="text/javascript"> $(document).ready(function() { $("#photo_img").click(function(){ $("html, body").animate({ scrollTop: 0 }, "slow"); $("html, body").css("overflow","hidden"); $("#lightBoxPhoto").show(); }); $("#lightBoxPhoto").click(function(){ $("html, body").css("overflow","auto");