35 lines
930 B
PHP
35 lines
930 B
PHP
<?php
|
|
|
|
function getConfig($typeParam)
|
|
{
|
|
// $config = array();
|
|
// $aTypeParam=explode('.',$typeParam);
|
|
$type = $typeParam;
|
|
// $dbName='hrportal';
|
|
// if(count($aTypeParam)>1)
|
|
// {
|
|
// $dbName=$aTypeParam[1];
|
|
// }
|
|
switch ($type) {
|
|
case 'main-testing-local-network':
|
|
$config['dbms'] = "mysql";
|
|
$config['host'] = "10.1.200.218:3899";
|
|
$config['db'] = "hcportal";
|
|
$config['socket'] = "/var/lib/mysql/mysql.sock";
|
|
$config['password'] = "Hcp0rt4l123";
|
|
$config['user'] = "hcportal";
|
|
break;
|
|
|
|
// local
|
|
// $config['dbms'] = "";
|
|
// $config['host'] = "";
|
|
// $config['db'] = "";
|
|
// $config['socket'] = "";
|
|
// $config['password'] = "";
|
|
// $config['user'] = "";
|
|
// break;
|
|
}
|
|
|
|
return $config;
|
|
}
|