1 | <?php |
---|
2 | /*************************************************************************** |
---|
3 | * page_header.php * |
---|
4 | * ------------------- * |
---|
5 | * application : PhpWebGallery 1.3 <http://phpwebgallery.net> * |
---|
6 | * author : Pierrick LE GALL <pierrick@z0rglub.com> * |
---|
7 | * * |
---|
8 | * $Id: page_header.php 348 2004-02-05 23:16:40Z z0rglub $ |
---|
9 | * * |
---|
10 | *************************************************************************** |
---|
11 | |
---|
12 | *************************************************************************** |
---|
13 | * * |
---|
14 | * This program is free software; you can redistribute it and/or modify * |
---|
15 | * it under the terms of the GNU General Public License as published by * |
---|
16 | * the Free Software Foundation; * |
---|
17 | * * |
---|
18 | ***************************************************************************/ |
---|
19 | // |
---|
20 | // Start output of page |
---|
21 | // |
---|
22 | $vtp = new VTemplate; |
---|
23 | $handle = $vtp->Open( './template/'.$user['template'].'/header.vtp' ); |
---|
24 | $vtp->setGlobalVar( $handle, 'charset', $lang['charset'] ); |
---|
25 | $vtp->setGlobalVar( $handle, 'style', |
---|
26 | './template/'.$user['template'].'/default.css'); |
---|
27 | |
---|
28 | // refresh |
---|
29 | if ( isset( $refresh ) and $refresh > 0 and isset( $url_link ) ) |
---|
30 | { |
---|
31 | $vtp->addSession( $handle, 'refresh' ); |
---|
32 | $vtp->setVar( $handle, 'refresh.time', $refresh ); |
---|
33 | $url = $url_link.'&slideshow='.$refresh; |
---|
34 | $vtp->setVar( $handle, 'refresh.url', add_session_id( $url ) ); |
---|
35 | $vtp->closeSession( $handle, 'refresh' ); |
---|
36 | } |
---|
37 | |
---|
38 | $vtp->setGlobalVar( $handle, 'title', $title ); |
---|
39 | $vtp->setVarF( $handle, 'header', |
---|
40 | './template/'.$user['template'].'/header.htm' ); |
---|
41 | |
---|
42 | // |
---|
43 | // Generate the page |
---|
44 | // |
---|
45 | |
---|
46 | $output = $vtp->Display( $handle, 0 ); |
---|
47 | ?> |
---|