<?php
/***************************************************************************
 *   Copyright (C) 2008 by oscim   Project lossim                          *
 *   a@oscim.fr                                                            *
 *       [created : 15.03.2008, 13:25:50] @oscim                           *
 *   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; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
$titre_page = "Connexion à l'espace d'administration";
error_reporting(E_ALL);
require("include/block/header.php");
require("include/inc/nett_acen.inc");
require("include/lib/lib.general.php");

## parametre linguistique generaux
require ("include/language/french.php");
## chargement des parametre linguistique de la page appelé.
require ("include/language/french/index.php");
?>
<script src="../ext/prototype/prototype.js" type="text/javascript"></script>
<h1><a href="http://www.lossim.org" ><img src="template/login/img/logo_lossimmissol_h90.png" alt="lossim" /></a></h1>
<div id='box_login'>
	<div id='box_h'></div>
	<div id='box_content'>
		<?php if (empty($_GET['a']))   include("content/login.php");
		      else {
		      	if ( (!empty($_POST['login_user_pass']))AND (!empty($_POST['new_pass'])) ) print  NewFct('new_pass',$_POST);
			else if(!NewFct('verif_connexion',$_POST)){
				echo 'Retry';
				include("content/login.php");
				}
		      }
// 		      else
// 		      elseif (empty($_POST['connexion']))  if(!NewFct('verif_connexion',$_POST)) include("content/index.php");
		?>
	</div>
	<div id='box_b'></div>
</div>
	<script src="include/js/application.js" type="text/javascript"></script>

<?php require_once("include/block/footer.php"); ?>