Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.191.116.61
<?php
define("APP_NAME_G","development");
define("APP_LANDPAGE_G","app.php");
define("APP_PATH_G", dirname($_SERVER["SCRIPT_FILENAME"]));
define("APP_SRC_G", APP_PATH_G . "/src");
define("APP_LIB_G", APP_PATH_G . "/libs");
define("APP_DB_G", APP_LIB_G . "/adodb5");
define("INR_NAME_PICFORMAT", "xx,xx,xx,xxx.xx");
//define("APP_HOST", "http://10.10.200.172/activity/");
//define("APP_HOST", "http://localhost/activity/");
include("/var/www/config.php");
class CConfig
{
public $mstr_host;
public $mstr_user;
public $mstr_password;
public $mstr_db;
public $mbool_debug;
function __construct($abool_debug = false)
{
$dbnames = [
'rcub' => 'logisys3_rcu',
'bcu' => 'logisys3_bcu',
'kus' => 'logisys3_kus',
'dud' => 'logisys3_dud',
'bnu' => 'logisys3_bnu',
'stph' => 'logisys3_stph',
'gug' => 'logisys3_gug',
'acu' => 'logisys3_aims',
'gfgcg' => 'logisys3_gfgcg',
'jssm' => 'logisys3_jssm',
'jssu' => 'logisys3_jssu',
'nitte' => 'logisys3_nitte',
'nehu' => 'logisys3_nehu',
'sikkim' => 'logisys3_sikkim',
'ssc' => 'logisys3_ssc',
'ssa' => 'logisys3_ssa',
'ycm' => 'logisys3_ycm',
'mum' => 'logisys3_mum',
'gcw' => 'logisys3_gcw',
'mcu' => 'logisys3_mcu',
'reva' => 'logisys3_reva',
'gsh' => 'logisys3_gsh',
'gach' => 'logisys3_gach',
'kswu' => 'logisys3_kswu',
'sdu' => 'logisys3_sdu',
'vskub' => 'logisys3_vku',
'gcg' => 'logisys3_gcg',
'gcm' => 'logisys3_gcm',
'kusdde' => 'logisys3_kusd',
'gsc' => 'logisys3_gsc',
'gcc' => 'logisys3_gcc',
'sjbit' => 'logisys3_sjbit',
'jssstu' => 'logisys3_jssstu'
];
// var_dump(explode('/',$_SERVER['REQUEST_URI']));
$path = explode('/',$_SERVER['REQUEST_URI']);
// var_dump($dbnames);
// var_dump($path);
// var_dump($dbnames[$path[1]]);
// var_dump($_REQUEST);
$db = $_REQUEST['db'];
// var_dump($dbnames[$db]);
// $this->mstr_host = "localhost";
// $this->mstr_user = 'root';
// $this->mstr_password = 'arunkumar22';
// $this->mstr_host = "192.168.0.4";
// $this->mstr_user = 'root';
// $this->mstr_password = 'logisys@124';
$this->mstr_host = SERVERNAME;
$this->mstr_user = USERNAME;
$this->mstr_password = PASSWORD;
$this->mstr_db = $dbnames[$db];
$this->mbool_debug = $abool_debug;
ini_set("magic_quotes_gpc", 0);
// $this->mstr_host = "localhost";
// $this->mstr_user = 'root';
// $this->mstr_password = 'arunkumar22';
// $this->mstr_db = $dbnames[$db];
// $this->mbool_debug = $abool_debug;
// ini_set("magic_quotes_gpc", 0);
}
}
?>
|