1<?php
2// +-----------------------------------------------------------------------+
3// | This file is part of Piwigo.                                          |
4// |                                                                       |
5// | For copyright and license information, please view the COPYING.txt    |
6// | file that was distributed with this source code.                      |
7// +-----------------------------------------------------------------------+
8
9//----------------------------------------------------------- include
10define('PHPWG_ROOT_PATH','./');
11include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
12
13// +-----------------------------------------------------------------------+
14// | Check Access and exit when user status is not ok                      |
15// +-----------------------------------------------------------------------+
16check_status(ACCESS_GUEST);
17
18//----------------------------------------------------- template initialization
19//
20// Start output of page
21//
22$title= l10n('About Piwigo');
23$page['body_id'] = 'theAboutPage';
24
25trigger_notify('loc_begin_about');
26
27$template->set_filename('about', 'about.tpl');
28
29$template->assign('ABOUT_MESSAGE', load_language('about.html','', array('return'=>true)) );
30
31$theme_about = load_language('about.html', PHPWG_THEMES_PATH.$user['theme'].'/', array('return' => true));
32if ( $theme_about !== false )
33{
34  $template->assign('THEME_ABOUT', $theme_about);
35}
36
37// include menubar
38$themeconf = $template->get_template_vars('themeconf');
39if (!isset($themeconf['hide_menu_on']) OR !in_array('theAboutPage', $themeconf['hide_menu_on']))
40{
41  include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
42}
43
44include(PHPWG_ROOT_PATH.'include/page_header.php');
45flush_page_messages();
46$template->pparse('about');
47include(PHPWG_ROOT_PATH.'include/page_tail.php');
48?>
49