<?php class Config { public static $host = '127.0.0.1'; public static $user = '******'; public static $pass = ''; public static $base = 'siit'; public static $home = ''; public static $home_lib = ''; public static $home_bin = ''; public static $url = ''; public static $ds = ''; public static $debug = false; //depurar base public static $driver = 'mysql'; } $pageURL = 'http'; if (isset($_SERVER["HTTPS"]) && strtolower($_SERVER["HTTPS"]) == "on") { $pageURL .= "s"; } $pageURL .= "://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; Config::$ds = DIRECTORY_SEPARATOR; Config::$home = dirname(__FILE__); Config::$home_lib = Config::$home . Config::$ds . 'lib' . Config::$ds; Config::$home_bin = Config::$home . Config::$ds . 'bin' . Config::$ds; Config::$url = $pageURL;