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 | ***************************************************************************/ |
---|
17 | define( PREFIX_INCLUDE, '' ); |
---|
18 | |
---|
19 | include_once( './include/config.inc.php' ); |
---|
20 | include_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; |
---|
28 | include_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 |
---|
31 | if ( $user['is_the_guest'] ) |
---|
32 | { |
---|
33 | $user['username'] = $lang['guest']; |
---|
34 | } |
---|
35 | include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' ); |
---|
36 | ?> |
---|