source: trunk/include/init.inc.php @ 26

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

* empty log message *

  • 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                              *
6 *   author               : Pierrick LE GALL <pierrick@z0rglub.com>        *
7 *                                                                         *
8 ***************************************************************************
9
10 ***************************************************************************
11 *                                                                         *
12 *   This program is free software; you can redistribute it and/or modify  *
13 *   it under the terms of the GNU General Public License as published by  *
14 *   the Free Software Foundation;                                         *
15 *                                                                         *
16 ***************************************************************************/
17define( PREFIX_INCLUDE, '' );
18
19include_once( './include/config.inc.php' );
20include_once( './include/user.inc.php' );
21
22// calculation of the number of picture to display per page
23$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
24// retrieving the restrictions for this user
25$user['restrictions'] = get_restrictions( $user['id'], $user['status'], true );
26       
27$isadmin = false;
28include_once( './language/'.$user['language'].'.php' );
29// displaying the username in the language of the connected user, instead of
30// "guest" as you can find in the database
31if ( $user['is_the_guest'] )
32{
33  $user['username'] = $lang['guest'];
34}
35include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
36?>
Note: See TracBrowser for help on using the repository browser.