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