Move Admin_repo to include , add setup.php for redirecting

Move user_menu to include/lib
This commit is contained in:
Dany De Bontridder 2015-10-18 19:13:20 +02:00
parent 659cbc6b0f
commit 5c0d01a82f
12 changed files with 52 additions and 15 deletions

35
html/setup.php Normal file
View file

@ -0,0 +1,35 @@
<?php
/*
* This file is part of PhpCompta.
*
* PhpCompta 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.
*
* PhpCompta 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 PhpCompta; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Copyright (2014) Author Dany De Bontridder <dany@alchimerys.be>
/**
* @file
* @brief This file is used for the first installation or redirect to
* include/admin.inc.php
*/
if (file_exists("../include/config.inc.php") ) {
/* if the file exists it means that NOALYSS is already
* installed
*/
define ('ALLOWED',1);
require_once '../include/constant.php';
require_once NOALYSS_INCLUDE.'/admin.inc.php';
}
?>