Your IP : 216.73.216.91


Current Path : /var/www/html/tax/api/base/
Upload File :
Current File : /var/www/html/tax/api/base/config.php

<?php
class config{
	public static function getDbCredentials(){
		$credentialsLocal = array(
			"serverAddress" => 'localhost',
			"username" 		=> 'root',
			"password" 		=> '',
			"dbname" 		=> 'billing'
		);
		
		$credentialsProduction = array(
			"serverAddress" => 'localhost',
			"username"      => 'dev',
			"password"      => 'javgarvqwaxqircd',
			"dbname"        => 'billing'
		);
		$credentials = $credentialsProduction;
		return $credentials;
	}

	public static function getConfig($param){
		$config = [
			"loginRedirect" => "login",
			"homeRedirect" => "index",
			"licenseRedirect" => "license",
			"indexRedirect" => "/",
		];
		return $config[$param];
	}

	public static function getTable($param){
		$table = [
			"book" => "book",
			"booktype" => "booktype",
			"user" => "user",
			"business" => "business",
			"bank" => "bank",
			"paymentmethod" => "paymentmethod",
			"payment" => "payment",
			"businesstype" => "businesstype",
			"bill" => "bill",
		];
		return $table[$param];
	}
	
	public static function getValidApiKeys(){
		$keys = array(
			'3fb542058bffb60d31cf14db5dcd144c',
			'c0660685ba6826b826528c7ebc898abd',
			'a466d335298c5ba6f77246a6b94d4766'
		);
		return $keys;
	}
	
	public static function getConsumerNamesAgainstApiKeys(){
		$consumers = array(
			'3fb542058bffb60d31cf14db5dcd144c' => 'Brightstar',
			'c0660685ba6826b826528c7ebc898abd' => 'DGS',
			'a466d335298c5ba6f77246a6b94d4766' => 'Extra'
		);
		return $consumers;
	}
}
?>