noalyss Version-9
admin-noalyss.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS isfree software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS isdistributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright (2014) Author Dany De Bontridder <dany@alchimerys.be>
20
21
22/**
23 * @file
24 * @brief This file is used for the first installation or redirect to
25 * include/admin.inc.php
26 */
27if (file_exists("../include/config.inc.php") ) {
28 /* if the file exists it means that NOALYSS is already
29 * installed
30 */
31 define ('ALLOWED',1);
32 define ('ALLOWED_ADMIN',1);
33 require_once '../include/constant.php';
34 require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
35
37 if ( DEBUGNOALYSS > 1 ) {
38 /**
39 * Debug Design
40 */
44 } //<--- if DEBUG
45
46 MaintenanceMode("block.html");
47 require_once NOALYSS_INCLUDE.'/admin_repo.inc.php';
48} else {
49 // Redirect to install file , if this file exists then
50 // we can't connect to anything
51 echo '<HTML><head><META HTTP-EQUIV="REFRESH" content="0;url=install.php"></head><body> Connecting... </body></html>';
52
53}
54?>
MaintenanceMode($p_file)
When you want to prevent users to connect, create a file in noalyss/ (NOALYSS_BASE) with the message ...
Definition: ac_common.php:1663
static echo_file($msg, $print=true)
display the file
Definition: dbg.php:88
static display_global()
for development , show GLOBAL and SESSION
Definition: dbg.php:148
static display_request()
for development , show request (POST, GET)
Definition: dbg.php:119
static display_size()
display a bar depending of the size of the screen , it helps for CSS to see the media-size
Definition: dbg.php:104