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( PREFIXE_INCLUDE, '' ); |
---|
18 | |
---|
19 | include_once( './include/config.inc.php' ); |
---|
20 | include_once( './include/user.inc.php' ); |
---|
21 | |
---|
22 | include( './theme/'.$user['theme'].'/conf.php' ); |
---|
23 | $user['lien_expanded'] = './theme/'.$user['theme'].'/expanded.gif'; |
---|
24 | $user['lien_collapsed'] = './theme/'.$user['theme'].'/collapsed.gif'; |
---|
25 | // calculation of the number of picture to display per page |
---|
26 | $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; |
---|
27 | // retrieving the restrictions for this user |
---|
28 | $user['restrictions'] = get_restrictions( $user['id'], $user['status'], true ); |
---|
29 | |
---|
30 | $isadmin = false; |
---|
31 | include_once( './language/'.$user['language'].'.php' ); |
---|
32 | if ( $user['is_the_guest'] ) |
---|
33 | { |
---|
34 | $user['pseudo'] = $lang['guest']; |
---|
35 | } |
---|
36 | include_once( './template/'.$user['template'].'/style.inc.php' ); |
---|
37 | include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' ); |
---|
38 | ?> |
---|