source: tags/release-1_3RC2/include/init.inc.php @ 23792

Last change on this file since 23792 was 57, checked in by z0rglub, 21 years ago

improve the header of each file

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 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 57 2003-08-24 07:40:56Z 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 ***************************************************************************/
19define( PREFIX_INCLUDE, '' );
20
21include_once( './include/config.inc.php' );
22include_once( './include/user.inc.php' );
23
24// calculation of the number of picture to display per page
25$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
26// retrieving the restrictions for this user
27$user['restrictions'] = get_restrictions( $user['id'], $user['status'], true );
28       
29$isadmin = false;
30include_once( './language/'.$user['language'].'.php' );
31// displaying the username in the language of the connected user, instead of
32// "guest" as you can find in the database
33if ( $user['is_the_guest'] ) $user['username'] = $lang['guest'];
34include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
35?>
Note: See TracBrowser for help on using the repository browser.