File "config.php"
Full Path: /home/limout/public_html/CablesPireV2-20240827214508/config.php
File size: 1.48 KB
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8
<?php
//ini_set('display_errors', 1);
//error_reporting(E_ALL);
@session_start();
if( $_SERVER['HTTP_HOST'] == 'localhost' )
{
$sRuta = $_SERVER[ 'DOCUMENT_ROOT' ] . '/CablesPireV2/';
$sUrl = 'http://localhost/CablesPireV2/';
define('IP', 'localhost');
define('USER', 'root');
define('PASS', 'fnsrooms');
define('DB_NAME', 'cablepire');
}
else
{
$sRuta = $_SERVER[ 'DOCUMENT_ROOT' ] . '/CablesPireV2/';
$sUrl = 'https://www.limout.es/CablesPireV2/';
define('IP', 'localhost');
define('USER', 'limout_cablepireuser');
define('PASS', 'Cablepire_2021*');
define('DB_NAME', 'limout_cablepire');
}
if(substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'))
ob_start("ob_gzhandler");
else
ob_start();
header('Content-Type: text/html; charset=UTF-8');
ini_set('date.timezone', 'Europe/Berlin');
require( $sRuta . 'includes/clasebbdd.php');
require( $sRuta . 'Smarty/libs/Smarty.class.php');
include_once( $sRuta . 'includes/clases/clase_general.php' );
$smarty = new Smarty();
$smarty->template_dir = $sRuta . 'Smarty/demo/templates/';
$smarty->compile_dir = $sRuta . 'Smarty/demo/templates_c/';
$smarty->config_dir = $sRuta . 'Smarty/demo/configs/';
$smarty->cache_dir = $sRuta . 'Smarty/demo/cache/';
?>