示例#1
0
         getImages($superCage->get->getRAW('alb'));
     } else {
         if ($superCage->get->getRAW('getroot') == 1) {
             getroot();
         } else {
             if ($superCage->get->getRAW('getcat') == 1) {
                 getAlbums($superCage->get->getRAW('cat'));
             } else {
                 if ($superCage->get->getRAW('albumlisting') == 1) {
                     treeBuilder();
                 } else {
                     if ($superCage->get->getRAW('getimg') == 1) {
                         getimg($superCage->get->getRAW('img'));
                     } else {
                         if ($superCage->get->getRAW('photoinfo') == 1) {
                             getPhotoInfo($superCage->get->getRAW('photo'));
                         } else {
                             if ($superCage->get->getRAW('albumList') == 1) {
                                 albumList();
                             } else {
                                 if ($superCage->get->getRAW('move') == 1) {
                                     processMove();
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 } else {
示例#2
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once SLINEINC . "/view.class.php";
require_once dirname(__FILE__) . "/photo.func.php";
$typeid = 6;
//相册栏目
$pv = new View($typeid);
Helper_Archive::loadModule('common');
if (!isset($id)) {
    exit('Wrong Id');
}
$aid = RemoveXSS($id);
//防止跨站攻击
updateVisit($aid, $typeid);
$row = getPhotoInfo($aid);
if (empty($row['id'])) {
    head404();
}
$photoid = $row['id'];
$destlist = getPhotoChildDest($dest_id);
if (is_array($row)) {
    $row['num'] = getPhotoNum($aid);
    $row['subname'] = $row['title'];
    $row['litpic'] = !empty($row['litpic']) ? $row['litpic'] : getDefaultImage();
    //获取目的地
    $destlist = $destlist = getPhotoChildDest($row['kindlist'], true);
    //SEO优化信息
    $row['seodescription'] = !empty($row['description']) ? "<meta name=\"description\" content=\"" . $row['description'] . "\"/>" : "";
    $row['seokeyword'] = !empty($row['keyword']) ? "<meta name=\"keywords\" content=\"" . $row['keyword'] . "\"/>" : "";
    $row['seotitle'] = !empty($row['seotitle']) ? $row['seotitle'] : $row['title'];