$rt['uptime'] = get_date($rt['uptime']); $rt['sub_pintro'] = substrs($rt['pintro'], 25); $cnpho[] = $rt; } // require_once(R_P.'require/header.php'); require_once PrintEot('thread_galbum'); footer(); } elseif ($a == 'view') { require_once R_P . 'require/bbscode.php'; S::gp(array('pid', 'page'), null, 2); $tmpUrlAdd = '&a=view&pid=' . $pid; $nearphoto = array(); $register = array('db_shield' => $db_shield, "groupid" => $groupid, "pwModeImg" => $pwModeImg); L::loadClass('showpicture', 'colony', false); $sp = new PW_ShowPicture($register); list($photo, $nearphoto, $prePid, $nextPid) = $sp->getGroupsPictures($pid, $aid); empty($photo) && Showmsg('data_error'); if ($photo['private'] && !$ifadmin && (!$colony['ifcyer'] || $colony['ifadmin'] == '-1')) { Showmsg('colony_cnmenber'); } $db->update("UPDATE pw_cnphoto SET hits=hits+1 WHERE pid=" . S::sqlEscape($pid)); $aid = $photo['aid']; $photo['uptime'] = get_date($photo['uptime']); $photo['path'] = getphotourl($photo['basepath']); if ($photo['groupid'] == 6 && $db_shield && $groupid != 3) { $photo['path'] = $pwModeImg . '/banuser.gif'; $photo['pintro'] = appShield('ban_photo_pintro'); } $num = $db->get_value("SELECT COUNT(*) AS sum FROM pw_cnphoto WHERE aid=" . S::sqlEscape($photo['aid']) . ' AND pid>=' . S::sqlEscape($pid)); $page = empty($page) ? 1 : $page; list($commentdb, $subcommentdb, $pages) = getCommentDbByTypeid('groupphoto', $pid, $page, "thread.php?cyid={$cyid}&showtype=galbum&a=view&pid={$pid}&");