Changeset 348
- Timestamp:
- Feb 6, 2004, 12:16:40 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/include/page_header.php
r290 r348 1 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$ 9 * * 10 *************************************************************************** 2 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 ***************************************************************************/ 3 19 // 4 20 // Start output of page … … 7 23 $handle = $vtp->Open( './template/'.$user['template'].'/header.vtp' ); 8 24 $vtp->setGlobalVar( $handle, 'charset', $lang['charset'] ); 9 $vtp->setGlobalVar( $handle, 'style', './template/'.$user['template'].'/'.$user['template'].'.css'); 25 $vtp->setGlobalVar( $handle, 'style', 26 './template/'.$user['template'].'/default.css'); 10 27 11 12 if ( isset( $refresh ) && $refresh >0 && isset($url_link))13 14 15 16 17 18 19 20 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 21 38 $vtp->setGlobalVar( $handle, 'title', $title ); 22 $vtp->setVarF( $handle, 'header', './template/'.$user['template'].'/header.htm' ); 39 $vtp->setVarF( $handle, 'header', 40 './template/'.$user['template'].'/header.htm' ); 23 41 24 42 // … … 26 44 // 27 45 28 $code = $vtp->Display( $handle, 0 ); 29 echo $code; 46 $output = $vtp->Display( $handle, 0 ); 30 47 ?>
Note: See TracChangeset
for help on using the changeset viewer.