source: trunk/about.php @ 2223

Revision 2223, 3.1 KB checked in by rvelices, 12 years ago (diff)
  • migrate many templates to smarty
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
RevLine 
[18]1<?php
[354]2// +-----------------------------------------------------------------------+
[593]3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
[2223]5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
[354]6// +-----------------------------------------------------------------------+
[2014]7// | file          : $Id$
[354]8// | last update   : $Date$
9// | last modifier : $Author$
10// | revision      : $Revision$
11// +-----------------------------------------------------------------------+
12// | This program is free software; you can redistribute it and/or modify  |
13// | it under the terms of the GNU General Public License as published by  |
14// | the Free Software Foundation                                          |
15// |                                                                       |
16// | This program is distributed in the hope that it will be useful, but   |
17// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
18// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
19// | General Public License for more details.                              |
20// |                                                                       |
21// | You should have received a copy of the GNU General Public License     |
22// | along with this program; if not, write to the Free Software           |
23// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
24// | USA.                                                                  |
25// +-----------------------------------------------------------------------+
[18]26
[345]27//----------------------------------------------------------- include
[364]28define('PHPWG_ROOT_PATH','./');
29include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
[1072]30
31// +-----------------------------------------------------------------------+
32// | Check Access and exit when user status is not ok                      |
33// +-----------------------------------------------------------------------+
34check_status(ACCESS_GUEST);
35
[18]36//----------------------------------------------------- template initialization
[345]37//
38// Start output of page
39//
[2014]40$title= l10n('about_page_title');
[850]41$page['body_id'] = 'theAboutPage';
[369]42include(PHPWG_ROOT_PATH.'include/page_header.php');
[345]43
[1834]44/**
45 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
46 * for example for clear theme:
47  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
48  ' A standard template/theme of PhpWebgallery.';
49 *
50 * Don't forget php tags !!!
51 *
52 * Another way is to code it thru the theme itself in ./themeconf.inc.php
53 */
54@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
55  '/theme/'.$user['theme'].'/themeconf.inc.php');
56
[897]57$template->set_filenames(
58  array(
59    'about'=>'about.tpl',
60    )
61  );
[1834]62if ( isset($lang['Theme: '.$user['theme']]) )
[1779]63{
[2223]64  $template->assign(
65    'THEME_ABOUT',l10n('Theme: '.$user['theme'])
66    );
[1779]67}
[18]68
[2223]69$template->assign('ABOUT_MESSAGE', load_language('about.html','','',true) );
[2126]70
[2223]71$template->pparse('about');
[369]72include(PHPWG_ROOT_PATH.'include/page_tail.php');
[362]73?>
Note: See TracBrowser for help on using the repository browser.