source: branches/release-1_3/include/init.inc.php @ 3247

Last change on this file since 3247 was 290, checked in by gweltas, 21 years ago

Conformity with the XHTML 1.0 transitional standard
Creation of the following files :

  • template/default/header.php and template/default/footer.php to ensure a common standard
  • default.css to be CSS valid

Obsolescence of the following files :

  • template/default/theme/conf.php
  • template/default/style.inc.php

Custom galleries should reflect those changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
RevLine 
[2]1<?php
2/***************************************************************************
3 *                               init.inc.php                              *
4 *                            -------------------                          *
[57]5 *   application   : PhpWebGallery 1.3 <http://phpwebgallery.net>          *
6 *   author        : Pierrick LE GALL <pierrick@z0rglub.com>               *
[2]7 *                                                                         *
[57]8 *   $Id: init.inc.php 290 2004-01-18 02:13:02Z gweltas $
9 *                                                                         *
[2]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 ***************************************************************************/
[290]19// determine the initial instant to indicate the generation time of this page
20$t1 = explode( ' ', microtime() );
21$t2 = explode( '.', $t1[0] );
22$t2 = $t1[1].'.'.$t2[1];
23
[240]24define( 'PREFIX_INCLUDE', '' );
[21]25
[2]26include_once( './include/config.inc.php' );
27include_once( './include/user.inc.php' );
[26]28
[2]29// calculation of the number of picture to display per page
30$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
[240]31
[2]32$isadmin = false;
33include_once( './language/'.$user['language'].'.php' );
[9]34// displaying the username in the language of the connected user, instead of
35// "guest" as you can find in the database
[44]36if ( $user['is_the_guest'] ) $user['username'] = $lang['guest'];
[2]37include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
38?>
Note: See TracBrowser for help on using the repository browser.