MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/ntc_cafsinfotech_in/cron/ntcObject.php
<?php
/**********************************************************
	   Filename: cmfObject.php
	Description: factory class to manufacture the required objects
		 Author: uday
	 Created on: SEP, 06 2019
	Approved on: 
	------------------------------------------------------------
	Modification Details
	Changed by:
	------------------------------------------------------------
**********************************************************/
//error_reporting(0);
if(!isset($_SERVER['HTTP_ACCEPT_ENCODING'])){
	ob_start();            
}else
if(strpos(' ' . $_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip') == false){
	if(strpos(' ' . $_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') == false){
		ob_start();
	}else
	if(!ob_start("ob_gzhandler")){
		ob_start();
	}   
}else
if(!ob_start("ob_gzhandler")) {
	ob_start();
}
require_once 'dbconnect.php';
class ntcObject{
	public static function newObject($className)
	{
		if(include_once $className.'.php') {
			return new $className;
		}else{
			throw new Exception("Unable to create a $className Object");
		}
	}
}