$loginApi = new KUser_loginApi(); $loginuid = $loginApi->iGetLoginUid(); $uid = Ko_Web_Request::IGet('uid'); $photoid = Ko_Web_Request::IGet('photoid'); $storageApi = new KStorage_Api(); $photoApi = new KPhoto_Api(); $photoinfo = $photoApi->getPhotoInfo($uid, $photoid); if (empty($photoinfo)) { Ko_Web_Response::VSetRedirect('/'); Ko_Web_Response::VSend(); exit; } $photoinfo['image_src'] = $storageApi->sGetUrl($photoinfo['image'], ''); $photoinfo['image_small'] = $storageApi->sGetUrl($photoinfo['image'], 'imageView2/1/w/60'); $photoinfo['image_exif'] = $storageApi->aGetImageExif($photoinfo['image']); $agentinfo = KUser_agentApi::get(); if ($agentinfo['screen']['height'] < 1000) { $photoinfo['image'] = $storageApi->sGetUrl($photoinfo['image'], 'imageView2/2/w/600/h/600'); $photoinfo['imagesize'] = 600; } else { $photoinfo['image'] = $storageApi->sGetUrl($photoinfo['image'], 'imageView2/2/w/800/h/800'); $photoinfo['imagesize'] = 800; } $albuminfo = $photoApi->getAlbumInfo($uid, $photoinfo['albumid']); if ($albuminfo['isrecycle'] && $uid != $loginuid) { Ko_Web_Response::VSetRedirect('/'); Ko_Web_Response::VSend(); exit; } $userinfo = Ko_Tool_Adapter::VConv($uid, array('user_baseinfo', array('logo80'))); $prevlist = $nextlist = array();
public function put($id, $update, $before = null, $after = null, $put_style) { KUser_agentApi::set($update); }