<?php
// $Id: photo.php,v 1.1.1.1 2008/06/21 12:22:14 ohwada Exp $

//=========================================================
// webphoto module
// 2008-04-02 K.OHWADA
//=========================================================

if( ! defined( 'WEBPHOTO_TRUST_PATH' ) ) die( 'not permit' ) ;

//---------------------------------------------------------
// webphoto files
//---------------------------------------------------------
webphoto_include_once( 'main/header.php' );
webphoto_include_once( 'class/xoops/groupperm.php' );
webphoto_include_once( 'class/d3/comment_view.php' );
webphoto_include_once( 'class/lib/gtickets.php' );
webphoto_include_once( 'class/main/photo.php' );

//=========================================================
// main
//=========================================================
$manage =& webphoto_main_photo::getInstance( WEBPHOTO_DIRNAME , WEBPHOTO_TRUST_DIRNAME );

// exit if execute edittag
$manage->check_edittag();

$xoopsOption['template_main'] = WEBPHOTO_DIRNAME.'_main_photo.html' ;
include XOOPS_ROOT_PATH . '/header.php' ;

$xoopsTpl->assign( $manage->get_photo_show_globals() ) ;
$xoopsTpl->assign( $manage->get_lang_array() ) ;
$xoopsTpl->assign( $manage->main() ) ;

// subsutitute XOOPS_ROOT_PATH.'/include/comment_view.php';
$manage->comment_view();

$xoopsTpl->assign( $manage->get_footer_param() ) ;
include XOOPS_ROOT_PATH .'/footer.php' ;
exit();

?>