source: branches/z0rglub/include/init.inc.php @ 1753

Last change on this file since 1753 was 2, checked in by z0rglub, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 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( PREFIXE_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' );
32if ( $user['is_the_guest'] )
33{
34  $user['pseudo'] = $lang['guest'];
35}
36include_once( './template/'.$user['template'].'/style.inc.php' );
37include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
38?>
Note: See TracBrowser for help on using the repository browser.