Changeset 348


Ignore:
Timestamp:
Feb 6, 2004, 12:16:40 AM (20 years ago)
Author:
z0rglub
Message:
  • adding file header
  • initializing uniq $output var
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/include/page_header.php

    r290 r348  
    11<?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 ***************************************************************************
    211
     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 ***************************************************************************/
    319//
    420// Start output of page
     
    723$handle = $vtp->Open( './template/'.$user['template'].'/header.vtp' );
    824$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');
    1027
    11   // refresh
    12   if ( isset( $refresh ) && $refresh >0 && isset($url_link))
    13   {
    14     $vtp->addSession( $handle, 'refresh' );
    15     $vtp->setVar( $handle, 'refresh.time', $refresh );
    16     $url = $url_link.'&amp;slideshow='.$refresh;
    17     $vtp->setVar( $handle, 'refresh.url', add_session_id( $url ) );
    18     $vtp->closeSession( $handle, 'refresh' );
    19   }
    20  
     28// refresh
     29if ( 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.'&amp;slideshow='.$refresh;
     34  $vtp->setVar( $handle, 'refresh.url', add_session_id( $url ) );
     35  $vtp->closeSession( $handle, 'refresh' );
     36}
     37
    2138$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' );
    2341
    2442//
     
    2644//
    2745
    28 $code = $vtp->Display( $handle, 0 );
    29 echo $code;
     46$output = $vtp->Display( $handle, 0 );
    3047?>
Note: See TracChangeset for help on using the changeset viewer.