コード例 #1
0
ファイル: conexion.php プロジェクト: xmachadox3/fjrsomecode
checkIfCanInclude("./classes/DBUtil.php");
checkIfCanInclude("./classes/GanadoresBasket.php");
checkIfCanInclude("./classes/GanadoresBeisbol.php");
checkIfCanInclude("./classes/GanadoresFutbol.php");
checkIfCanInclude("./classes/GanadoresFutbolAmericano.php");
checkIfCanInclude("./classes/VentasDAO.php");
checkIfCanInclude("../classes/BitacoraDAO.php");
checkIfCanInclude("../classes/Constants.php");
checkIfCanInclude("../classes/DateUtil.php");
checkIfCanInclude("../classes/DBConnection.php");
checkIfCanInclude("../classes/DBUtil.php");
checkIfCanInclude("../classes/GanadoresBasket.php");
checkIfCanInclude("../classes/GanadoresBeisbol.php");
checkIfCanInclude("../classes/GanadoresFutbol.php");
checkIfCanInclude("../classes/GanadoresFutbolAmericano.php");
checkIfCanInclude("../classes/VentasDAO.php");
$conexion = null;
function prepareConnection()
{
    global $conexion;
    $servidor = Constants::$DB_SERVIDOR;
    $usuario = Constants::$DB_USUARIO;
    $clave = Constants::$DB_USER_PWD;
    $base = Constants::$DB_SCHEMA;
    $conexion = mysql_connect($servidor, $usuario, $clave) or die(mysql_error());
    mysql_select_db($base) or die(mysql_error() . "Problema");
}
prepareConnection();
mysql_query("SET NAMES 'utf-8'");
if (!function_exists('control_logueo')) {
    function control_logueo($login)
コード例 #2
0
ファイル: conexion.php プロジェクト: xmachadox3/fjrsomecode
{
    if (is_file($filename)) {
        include_once $filename;
    }
    return false;
}
checkIfCanInclude("./classes/Constants.php");
checkIfCanInclude("./classes/DBConnection.php");
checkIfCanInclude("./classes/DBUtil.php");
checkIfCanInclude("./classes/VentasDAO.php");
checkIfCanInclude("./classes/BitacoraDAO.php");
checkIfCanInclude("../classes/Constants.php");
checkIfCanInclude("../classes/DBConnection.php");
checkIfCanInclude("../classes/DBUtil.php");
checkIfCanInclude("../classes/VentasDAO.php");
checkIfCanInclude("../classes/BitacoraDAO.php");
$conexion = null;
function prepareConnection()
{
    global $conexion;
    $servidor = Constants::$DB_SERVIDOR;
    $usuario = Constants::$DB_USUARIO;
    $clave = Constants::$DB_USER_PWD;
    $base = Constants::$DB_SCHEMA;
    $conexion = mysql_connect($servidor, $usuario, $clave, true) or die(mysql_error());
    mysql_select_db($base) or die(mysql_error() . "Problema");
}
prepareConnection();
mysql_query("SET NAMES 'utf-8'");
if (!function_exists('control_logueo')) {
    function control_logueo($login)