source: tags/release-1_3_3/include/init.inc.php @ 6593

Last change on this file since 6593 was 290, checked in by gweltas, 20 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
Line 
1<?php
2/***************************************************************************
3 *                               init.inc.php                              *
4 *                            -------------------                          *
5 *   application   : PhpWebGallery 1.3 <http://phpwebgallery.net>          *
6 *   author        : Pierrick LE GALL <pierrick@z0rglub.com>               *
7 *                                                                         *
8 *   $Id: init.inc.php 290 2004-01-18 02:13:02Z gweltas $
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// 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
24define( 'PREFIX_INCLUDE', '' );
25
26include_once( './include/config.inc.php' );
27include_once( './include/user.inc.php' );
28
29// calculation of the number of picture to display per page
30$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
31
32$isadmin = false;
33include_once( './language/'.$user['language'].'.php' );
34// displaying the username in the language of the connected user, instead of
35// "guest" as you can find in the database
36if ( $user['is_the_guest'] ) $user['username'] = $lang['guest'];
37include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
38?>
Note: See TracBrowser for help on using the repository browser.