source: trunk/about.php @ 2126

Last change on this file since 2126 was 2126, checked in by rvelices, 17 years ago
  • 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
File size: 3.2 KB
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 |
[2014]5// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
[354]6// +-----------------------------------------------------------------------+
[2014]7// | file          : $Id: about.php 2126 2007-10-08 23:46:09Z rvelices $
[354]8// | last update   : $Date: 2007-10-08 23:46:09 +0000 (Mon, 08 Oct 2007) $
9// | last modifier : $Author: rvelices $
10// | revision      : $Revision: 2126 $
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{
64  $template->assign_block_vars(
65  'theme',
66  array(
[1834]67    'ABOUT' => l10n('Theme: '.$user['theme']),
[1779]68    )
69  );
70}
[850]71$template->assign_vars(
72  array(
[1082]73    'U_HOME' => make_index_url(),
[850]74    )
75  );
[18]76
[2126]77$template->assign_var('ABOUT_MESSAGE', load_language('about.html','','',true) );
78
[688]79$template->parse('about');
[369]80include(PHPWG_ROOT_PATH.'include/page_tail.php');
[362]81?>
Note: See TracBrowser for help on using the repository browser.