-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.php
More file actions
executable file
·40 lines (28 loc) · 926 Bytes
/
config.php
File metadata and controls
executable file
·40 lines (28 loc) · 926 Bytes
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
39
40
<?php
//session_start();
ini_set('display_errors',1);
error_reporting(E_ALL);
$db = "typical_proger";
$host = "localhost";
$user = "root";
$pass = "";
$charset = 'utf-8';
$title = 'Типичный программист';
$thumb_size = '450';
$min_size = 100;
$valid_extensions = array('gif', 'jpg', 'png', 'GIF', 'JPG', 'PNG');
//////////////////////////////////////////////////////////////////////////////
if(!defined('DB')) define('DB', $db);
if(!defined('HOST')) define('HOST', $host);
if(!defined('USER_DB')) define('USER_DB', $user);
if(!defined('PASS_DB')) define('PASS_DB', $pass);
//DB//
/*$connect = mysql_connect(HOST, USER_DB, PASS_DB) or die("fuck ==> ".mysql_error());
if($connect) {
mysql_select_db(DB, $connect) or die("fuck ==> ".mysql_error());
}*/
//DB\\
/*mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET 'utf8'");*/
header('Content-Type: text/html; charset='.$charset.'');
?>