dokończenie modułu download
[watermeloncms.git] / index.php
blob4932f2927197c298c0c43f78b272bc1684e668c1
1 <?php
2 /********************************************************************
4 Watermelon CMS
6 Copyright 2008 Radosław Pietruszewski
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ********************************************************************/
23 $_w_startTime = microtime();
24 session_start();
25 ob_start();
27 header("Content-Type: text/html; charset=UTF-8");
30 ## ustawienia raportowania błędów itp.
33 //error_reporting(0);
34 error_reporting(E_ALL ^ E_NOTICE);
35 //error_reporting(E_ALL);
36 //error_reporting(E_ALL | E_STRICT);
38 //define('NOMENU', '');
39 define('DEBUG', '');
42 ## magic quotes
45 if(get_magic_quotes_gpc())
47 function stripslashes_deep($value)
49 $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
50 return $value;
52 $_POST = array_map('stripslashes_deep', $_POST);
53 $_GET = array_map('stripslashes_deep', $_GET);
54 $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
55 $_REQUEST = array_map('stripslashes_deep', $_REQUEST);
59 ## wczytujemy plik z konfiguracją
62 if(file_exists('config.php'))
64 include 'config.php';
66 if(!defined('WTRMLN_BASEURL'))
68 header('Location: wtrmln/install/index.php');
69 exit;
72 else
74 header('Location: wtrmln/install/index.php');
75 exit;
79 ## odpalamy główny plik CMS-a
82 include WTRMLN_CMSPATH . 'system.php';