File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/library/config.php
<?php
ob_start();
ini_set('display_errors', 'Off');
error_reporting(0);
if (!isset($_SESSION)) {
@session_start();
}
$dbHost = 'localhost';
$dbUser = 'sbsc_new1510';
$dbPass = 'Bhagat12345#';
$dbName = 'sbsc_ravi';
$thisFile = str_replace('\\', '/', __FILE__);
$docRoot = $_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);
$srvRoot = str_replace('library/config.php', '', $thisFile);
define('WEB_ROOT', "http://sbsc.in".$webRoot);
define('SRV_ROOT', $srvRoot);
// these are the directories where we will store all
// banner and product images
define('THUMB_IMAGE_DIR', 'images/imagegallery/thumb/');
define('BIG_IMAGE_DIR', 'images/imagegallery/big/');
define('PDF_DIR', 'pdf/');
// some size limitation for the category
// and product images
// all category image width must not
// exceed 75 pixels
define('LIMIT_BANNER_WIDTH', true);
define('MAX_BANNER_IMAGE_WIDTH', 150);
// 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', 650);
// the width for product thumbnail
define('THUMBNAIL_WIDTH', 75);
if (!get_magic_quotes_gpc()) {
if (isset($_POST)) {
foreach ($_POST as $key => $value) {
$_POST[$key] = trim($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();
?>