1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Configuration file for CMS |
||
5 | */ |
||
6 | |||
7 | //allow including of mysql.cfg only once (for security reasons) |
||
8 | if (defined('MYSQL_CONFIG_INCLUDED')) { |
||
9 | echo "Error! Cannot include mysql.cfg again (because for security reasons)."; |
||
10 | exit; |
||
11 | } |
||
12 | |||
13 | define('MYSQL_CONFIG_INCLUDED', true); |
||
14 | |||
15 | $mysql_settings = array( |
||
16 | /** |
||
17 | * MySQL Host |
||
18 | * |
||
19 | * For example "localhost" or the ip of your mysql server |
||
20 | */ |
||
21 | 'host' => "localhost", |
||
22 | |||
23 | /** |
||
24 | * MySQL Port |
||
25 | * |
||
26 | * by default 3306 |
||
27 | */ |
||
28 | 'port' => 3306, |
||
29 | |||
30 | /** |
||
31 | * MySQL database user |
||
32 | * |
||
33 | * If you have an choice: Dont use "root" ! |
||
34 | */ |
||
35 | 'username' => "root", |
||
36 | |||
37 | /** |
||
38 | * MySQL database password |
||
39 | */ |
||
40 | 'password' => "<Insert your password here>", |
||
41 | |||
42 | /** |
||
43 | * MySQL database name |
||
44 | */ |
||
45 | 'database' => "pscf", |
||
46 | |||
47 | /** |
||
48 | * MySQL table praefix (praefix before table name, for example "prefix_<Table Name>") |
||
49 | * |
||
50 | * Also "" is allowed |
||
51 | */ |
||
52 | 'praefix' => "pscf_", |
||
53 | |||
54 | /** |
||
55 | * optional PhpMyAdmin configuration to show PhpMyAdmin menu or other thinks in administration panel |
||
56 | */ |
||
57 | 'phpmyadmin' => array( |
||
58 | 'enabled' => false, |
||
59 | 'link' => "<Insert your PhpMyAdmin Link here (optional)>", |
||
60 | |||
61 | /** |
||
62 | * should phpMyAdmin shown in administration panel? |
||
63 | * |
||
64 | * true / false |
||
65 | */ |
||
66 | 'admin_access' => true |
||
67 | ), |
||
68 | |||
69 | 'options' => array( |
||
70 | /** |
||
71 | * use connection pooling, dont create an new connection on every request, use connection caching |
||
72 | * |
||
73 | * @link http://php.net/manual/de/pdo.connections.php |
||
74 | */ |
||
75 | PDO::ATTR_PERSISTENT => true |
||
76 | ) |
||
77 | ); |
||
78 | |||
79 | ?> |
||
0 ignored issues
–
show
|
|||
80 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.