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 | ***************************************************************************/ |
---|
19 | define( PREFIX_INCLUDE, '' ); |
---|
20 | |
---|
21 | include_once( './include/config.inc.php' ); |
---|
22 | include_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; |
---|
30 | include_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 |
---|
33 | if ( $user['is_the_guest'] ) $user['username'] = $lang['guest']; |
---|
34 | include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' ); |
---|
35 | ?> |
---|