source: trunk/about.php @ 27

Last change on this file since 27 was 27, checked in by z0rglub, 21 years ago

added $usertemplate as user_template for displaying PHP logo in the
template

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1<?php
2/***************************************************************************
3 *                                about.php                                *
4 *                            ------------------                           *
5 *   application          : PhpWebGallery 1.3                              *
6 *   author               : Pierrick LE GALL <pierrick@z0rglub.com>        *
7 *                                                                         *
8 ***************************************************************************/
9
10/***************************************************************************
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 ***************************************************************************/
17
18//----------------------------------------------------------- personnal include
19include_once( './include/init.inc.php' );
20//----------------------------------------------------- template initialization
21$vtp = new VTemplate;
22$handle = $vtp->Open( './template/'.$user['template'].'/about.vtp' );
23initialize_template();
24
25$tpl = array('about_page_title','about_title','about_message','about_return');
26templatize_array( $tpl, 'lang', $handle );
27$vtp->setVar( $handle, 'user_template', $user['template'] );
28
29$url = './category.php?'.$_SERVER['QUERY_STRING'];
30$vtp->setVar( $handle, 'back_url', add_session_id( $url ) );
31//----------------------------------------------------------- html code display
32$code = $vtp->Display( $handle, 0 );
33echo $code;
34?>
Note: See TracBrowser for help on using the repository browser.