source: branches/1.7/about.php @ 4892

Last change on this file since 4892 was 2015, checked in by rub, 18 years ago

Replace some $lang by l10n

Merge BSF 2013:2014 into branch-1_7

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
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: about.php 2015 2007-05-15 20:26:56Z rub $
8// | last update   : $Date: 2007-05-15 20:26:56 +0000 (Tue, 15 May 2007) $
9// | last modifier : $Author: rub $
10// | revision      : $Revision: 2015 $
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    'about_content' => get_language_filepath('about.html')
61    )
62  );
63if ( isset($lang['Theme: '.$user['theme']]) )
64{
65  $template->assign_block_vars(
66  'theme',
67  array(
68    'ABOUT' => l10n('Theme: '.$user['theme']),
69    )
70  );
71}
72$template->assign_vars(
73  array(
74    'U_HOME' => make_index_url(),
75    )
76  );
77
78$template->assign_var_from_handle('ABOUT_MESSAGE', 'about_content');
79 
80$template->parse('about');
81include(PHPWG_ROOT_PATH.'include/page_tail.php');
82?>
Note: See TracBrowser for help on using the repository browser.