source: trunk/about.php @ 2126

Revision 2126, 3.2 KB checked in by rvelices, 12 years ago (diff)
  • some code refactoring before upgrade to utf (only cosmetic at this point...)
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2// +-----------------------------------------------------------------------+
3// | PhpWebGallery - a PHP based picture gallery                           |
4// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
6// +-----------------------------------------------------------------------+
7// | file          : $Id$
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// +-----------------------------------------------------------------------+
26
27//----------------------------------------------------------- include
28define('PHPWG_ROOT_PATH','./');
29include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
30
31// +-----------------------------------------------------------------------+
32// | Check Access and exit when user status is not ok                      |
33// +-----------------------------------------------------------------------+
34check_status(ACCESS_GUEST);
35
36//----------------------------------------------------- template initialization
37//
38// Start output of page
39//
40$title= l10n('about_page_title');
41$page['body_id'] = 'theAboutPage';
42include(PHPWG_ROOT_PATH.'include/page_header.php');
43
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
57$template->set_filenames(
58  array(
59    'about'=>'about.tpl',
60    )
61  );
62if ( isset($lang['Theme: '.$user['theme']]) )
63{
64  $template->assign_block_vars(
65  'theme',
66  array(
67    'ABOUT' => l10n('Theme: '.$user['theme']),
68    )
69  );
70}
71$template->assign_vars(
72  array(
73    'U_HOME' => make_index_url(),
74    )
75  );
76
77$template->assign_var('ABOUT_MESSAGE', load_language('about.html','','',true) );
78
79$template->parse('about');
80include(PHPWG_ROOT_PATH.'include/page_tail.php');
81?>
Note: See TracBrowser for help on using the repository browser.