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 290 2004-01-18 02:13:02Z gweltas $ |
---|
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 | // determine the initial instant to indicate the generation time of this page |
---|
20 | $t1 = explode( ' ', microtime() ); |
---|
21 | $t2 = explode( '.', $t1[0] ); |
---|
22 | $t2 = $t1[1].'.'.$t2[1]; |
---|
23 | |
---|
24 | define( 'PREFIX_INCLUDE', '' ); |
---|
25 | |
---|
26 | include_once( './include/config.inc.php' ); |
---|
27 | include_once( './include/user.inc.php' ); |
---|
28 | |
---|
29 | // calculation of the number of picture to display per page |
---|
30 | $user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page']; |
---|
31 | |
---|
32 | $isadmin = false; |
---|
33 | include_once( './language/'.$user['language'].'.php' ); |
---|
34 | // displaying the username in the language of the connected user, instead of |
---|
35 | // "guest" as you can find in the database |
---|
36 | if ( $user['is_the_guest'] ) $user['username'] = $lang['guest']; |
---|
37 | include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' ); |
---|
38 | ?> |
---|