MINI MINI MANI MO

Path : /home/kgembroi/public_html/secureadmin/admin/library/
File Upload :
Current File : /home/kgembroi/public_html/secureadmin/admin/library/config.php

<?php
error_reporting(E_ALL);
    ini_set('display_errors', 0);

 //database connection configonline
switch ($_SERVER['HTTP_HOST']) {
    case 'localhost':
        $dbHost = 'localhost';
        $dbUser = 'root';
        $dbPass = '';
        $dbName = 'kgembroidery_kgn';
        break;
    default:
        $dbHost = 'localhost';
        $dbUser = 'kgembroi_kgembro';
        $dbPass = 'WDIWcJgqk2DH';
        $dbName = 'kgembroi_kgembro';
        break;
}

// setting up the web root and server root for
// this shopping cart application
$thisFile = str_replace('\\', '/', __FILE__);
//if(!isset($_SERVER['DOCUMENT_ROOT']))
//	{ if(isset($_SERVER['SCRIPT_FILENAME']))
	//	{$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen(//$_SERVER['PHP_SELF'])));
	//	};
//	};
	//if(!isset($_SERVER['DOCUMENT_ROOT']))
	//{ if(isset($_SERVER['PATH_TRANSLATED']))
//		{$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))
//			);
	//};
//};
$docRoot =$_SERVER['DOCUMENT_ROOT'];

$webRoot  = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);
$srvRoot  = str_replace('library/config.php', '', $thisFile);

define('WEB_ROOT',$webRoot);
define('SRV_ROOT',$srvRoot);

// these are the directories where we will store all
// category and product images
define('CATEGORY_IMAGE_DIR', 'images/category/');
define('PRODUCT_IMAGE_DIR',  'images/product/');

// some size limitation for the category
// and product images

// all category image width must not 
// exceed 75 pixels
define('MAX_CATEGORY_IMAGE_WIDTH', 12000);

// do we need to limit the product image width?
// setting this value to 'true' is recommended
define('LIMIT_PRODUCT_WIDTH',     true);

// maximum width for all product image
define('MAX_PRODUCT_IMAGE_WIDTH', 1000);

// the width for product thumbnail
define('THUMBNAIL_WIDTH',         1000);

if (!get_magic_quotes_gpc()) {
	if (isset($_POST)) {
		foreach ($_POST as $key => $value) {
			$_POST[$key] =  trim(addslashes($value));
		}
	}
	
	if (isset($_GET)) {
		foreach ($_GET as $key => $value) {
			$_GET[$key] = trim(addslashes($value));
		}
	}	
}

// since all page will require a database access
// and the common library is also used by all
// it's logical to load these library here
require_once 'database.php';
//require_once 'common.php';

// get the shop configuration ( name, addres, etc ), all page need it
//$shopConfig = getShopConfig();
$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'];
?>

OHA YOOOO