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

Last change on this file since 21 was 21, 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: 2.0 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       
22include( './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;
31include_once( './language/'.$user['language'].'.php' );
32// displaying the username in the language of the connected user, instead of
33// "guest" as you can find in the database
34if ( $user['is_the_guest'] )
35{
36  $user['username'] = $lang['guest'];
37}
38include_once( './template/'.$user['template'].'/style.inc.php' );
39include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
40?>
Note: See TracBrowser for help on using the repository browser.