-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.php
executable file
·38 lines (30 loc) · 1002 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
$dbhost='localhost'; //Обикновенно е localhost
$dbusername='ingress';
$dbuserpass='inventory';
$db='inventory';
//////////////
// ime na grupata na moderatorite na saia
/////////////
mysql_connect($dbhost, $dbusername, $dbuserpass) or die("MySQL Грешка! Моля уведомете администратора!");
mysql_select_db($db) or die("MySQL Грешка! Моля уведомете администратора!") ;
mysql_set_charset('utf8');
function secure($text) {
if ( (int)$text )
return $text;
else
{
$text = strip_tags($text);
$text = addslashes($text);
$text = htmlspecialchars($text, ENT_NOQUOTES);
return $text;
}
}
$_POST = array_map("secure", $_POST);
$_GET = array_map("secure",$_GET);
$_COOKIE = array_map("secure",$_COOKIE);
date_default_timezone_set('Europe/Athens');
ini_set('display_errors', 'on');
error_reporting(E_ALL);
define('DEV_MODE', true);
?>