0xV3NOMx
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 : 3.138.134.77


Current Path : /proc/thread-self/root/proc/thread-self/root/var/www/results/nehu/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/var/www/results/nehu/cconfig_old.php

<?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/");

  class CConfig
  {
    public $mstr_host;
    public $mstr_user;
    public $mstr_password;
    public $mstr_db;
    public $mbool_debug;
  function __construct($abool_debug = false)
    {
		$this->mstr_host = "72.167.46.92";  #hostname can include port as well
		$this->mstr_user = "nehuuser";
		$this->mstr_password = "nehu159";
		$this->mstr_db = "resultsg_nehu";	
		$this->mbool_debug = $abool_debug;      
		ini_set("magic_quotes_gpc", 0); 
	}
	static function GetSystemDate($aobj_context)
	{
		$get_date="select date_add(date_add(now(),INTERVAL 13 hour),interval 30 minute) as now_date";
			$obj=$aobj_context->mobj_db->GetRow($get_date);
			return $obj[now_date];		
	}
	static function CreateNewDbContext()
	{	 
		require_once("src/customappcontext.php");
		$live_aobj_context=new LiveContext();
		$live_aobj_context->Initialize();
		$live_aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
		return $live_aobj_context;
	}


  }
?>