-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dev.php
More file actions
27 lines (26 loc) · 902 Bytes
/
main.dev.php
File metadata and controls
27 lines (26 loc) · 902 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
<?php
class DevProfiles extends Settings
{
public static function getProfile()
{
$path = "";
if(isset($_SERVER["PATH"]))
$path = $_SERVER["PATH"];
if(strpos($path, "Alvaro") !== false)
{
parent::$host = "localhost";
parent::$dbuser = "lerp2dev_admin";
parent::$dbpass = "";
parent::$dbname = "lerp2dev_db";
parent::$dbport = 3306;
} //Vayan poniendo aquí el nombre de sus usuarios con un else if, revisen: C:/Users/<nombre de usuario>
else
{
parent::$host = "localhost";
parent::$dbuser = "lerp2dev_admin";
parent::$dbpass = "";
parent::$dbname = "lerp2dev_db";
parent::$dbport = 3306;
}
}
}