-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
60 lines (45 loc) · 1.55 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/*-------------------------------------------------------+
| Login PHP MYSQL
| https://github.com/elyonox/login-php-mysql
+--------------------------------------------------------+
| Author: Ionut Manole (Yonox)
| Email: [email protected]
| Author URL: https://github.com/elyonox
+--------------------------------------------------------+*/
// ** Database authentication settings - You can get this info from your web host ** //
/** Database hostname */
define( 'DB_HOST', 'localhost' );
/** Database username */
define( 'DB_USER', 'dbuser' );
/** Database password */
define( 'DB_PASS', 'dbpassword' );
/** The name of the database */
define( 'DB_NAME', 'dbname' );
/** Absolute path to the site root directory. */
if ( ! defined( 'LPMPATH' ) ) {
define( 'LPMPATH', __DIR__ . DIRECTORY_SEPARATOR );
}
/** Set the path of the template directory. */
if ( ! defined( 'LPMTMPL' ) ) {
define ( 'LPMTMPL', LPMPATH .'template'. DIRECTORY_SEPARATOR );
}
/** Set the path of the include directory. */
if ( ! defined( 'LPMINC' ) ) {
define ( 'LPMINC', LPMPATH .'includes'. DIRECTORY_SEPARATOR );
}
/** Load Database Class Library */
require( LPMINC .'lpmdb.class.php' );
/** Site Settings */
function lpmConfig( $opt = '' )
{
$ycpSettings = array(
'site_uri' => $_SERVER['REQUEST_SCHEME'] .'://'. $_SERVER['HTTP_HOST'].'/login-php-mysql',
'version' => 'v1.0.0'
);
return isset($ycpSettings[$opt]) ? $ycpSettings[$opt] : null;
}
/** Set assets uri. */
if ( ! defined( 'LPMASSETS' ) ) {
define ( 'LPMASSETS', lpmConfig('site_uri') .'/template/assets/' );
}