-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
42 lines (33 loc) · 1.42 KB
/
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
39
40
41
42
<?php
class MySqlConfig {
public $Database,$Project,$Table,$Log,$System;
public function __construct() {
# -------- Database config
$this->Database['host'] = '127.0.0.1';
$this->Database['username'] = 'root';
$this->Database['password'] = '';
$this->Database['port'] = '';
$this->Database['name'] = 'AzadSql';
# -------- Project config
$this->Project['directory'] = __DIR__."\MyProject";
$this->Project['name'] = "MyProject";
if (!file_exists($this->Project['directory'])) { mkdir($this->Project['directory']); }
# -------- Table config
$this->Table['prefix'] = "mp";
# -------- Log
$this->Log['file_name'] = "Database.log";
$this->Log['save'] = ['query','affected_rows','get_ram','jobs'];
// save_ram , database
$this->Log['retain_previous_data'] = false;
# -------- System
$this->System['RAM'] = true;
# On average 25% speed increase if activated!
$this->System['Database'] = 'Mysql';
$this->System['Debug'] = true;
# Before the final release, set this value to true.
# Although it will keep the processor busy, it provides guidance for debugging!
$this->System['Cache'] = $this->Project['directory']."/cache.txt";
// Save data in file and read by RAM (beta)
# Now, if you make changes manually, It is disturbed.
}
}