2003-05-09 12:42:42 +00:00
|
|
|
<?php
|
|
|
|
/***************************************************************************
|
|
|
|
* init.inc.php *
|
|
|
|
* ------------------- *
|
2003-08-24 07:40:56 +00:00
|
|
|
* application : PhpWebGallery 1.3 <http://phpwebgallery.net> *
|
|
|
|
* author : Pierrick LE GALL <pierrick@z0rglub.com> *
|
|
|
|
* *
|
|
|
|
* $Id$
|
2003-05-09 12:42:42 +00:00
|
|
|
* *
|
|
|
|
***************************************************************************
|
|
|
|
|
|
|
|
***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
2004-01-18 02:13:02 +00:00
|
|
|
// determine the initial instant to indicate the generation time of this page
|
|
|
|
$t1 = explode( ' ', microtime() );
|
|
|
|
$t2 = explode( '.', $t1[0] );
|
|
|
|
$t2 = $t1[1].'.'.$t2[1];
|
|
|
|
|
2004-01-03 19:28:28 +00:00
|
|
|
define( 'PREFIX_INCLUDE', '' );
|
2003-07-01 09:27:20 +00:00
|
|
|
|
2003-05-09 12:42:42 +00:00
|
|
|
include_once( './include/config.inc.php' );
|
|
|
|
include_once( './include/user.inc.php' );
|
2003-07-21 19:47:14 +00:00
|
|
|
|
2003-05-09 12:42:42 +00:00
|
|
|
// calculation of the number of picture to display per page
|
|
|
|
$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
|
2004-01-03 19:28:28 +00:00
|
|
|
|
2003-05-09 12:42:42 +00:00
|
|
|
$isadmin = false;
|
|
|
|
include_once( './language/'.$user['language'].'.php' );
|
2003-05-13 10:02:06 +00:00
|
|
|
// displaying the username in the language of the connected user, instead of
|
|
|
|
// "guest" as you can find in the database
|
2003-07-27 08:23:32 +00:00
|
|
|
if ( $user['is_the_guest'] ) $user['username'] = $lang['guest'];
|
2003-05-09 12:42:42 +00:00
|
|
|
include_once( './template/'.$user['template'].'/htmlfunctions.inc.php' );
|
|
|
|
?>
|