Location: PHPKode > projects > OpenSupports > support/config.php
<?php
require "info.php";
$conexion= @mysql_connect($servidor,$serveruser,$serverpass);
$conectbd = @mysql_select_db($bd) or die("Problemas en la selección de la base de datos");
$date = date("d/m/y H:i a");
$url = "http://".$_SERVER['HTTP_HOST'] . $direccionsoporte;
$ftp_carpeta_local = $_SERVER['DOCUMENT_ROOT'] . $direccionsoporte;
$ftp_carpeta_remota = $_SERVER['DOCUMENT_ROOT'] . $direccionsoporte . "files/";
function errormaestro($error)
{
if($error == server)
{
$em = true;
$hea = 'Location: error.php?err=server';
}
elseif($error == bd)
{
$em = true;
$hea = 'Location: error.php?err=bd';
}
elseif($error == ftp)
{
$datadeerror = "Error con conexion FTP";
$em = true;
$hea = 'Location: error.php?err=ftp';
}
if(mysql_query("select value from sitio WHERE id='1'") == 1)
{
$sendTo = $mailprincipal;
$subject = "OpenSupport " . $titulo ." - Fatal Error!";
$headers = "From: ";
$headers .= "<" . $mailprincipal . ">\r\n";
$headers .= "Reply-To: " . $mailprincipal; 
$message =   "SYSTEM ERROR - \n\n OpenSupports found a problem on the system configuration: "  . $datadeerror . "\nTo solve this error, re-install the system or config 'info.php' correctly, verify that there isn't any error. If you can't solve the problem, contact with OpenSupports.com";
mail($sendTo, $subject, $message, $headers);
mysql_query("update sitio set value='2' where id='1'");
header($hea);
}
//temina
}
if(!$conexion)
{
$errormestro = server;
errormaestro($errormestro);
}
if(!$conectbd)
{
$errormestro = bd;
errormaestro($errormestro);
}
if($admin = true)
{
$conexion_id = @ftp_connect($servidor_ftp);
if(!$conexion_id)
{
$errormestro = ftp;
errormaestro($errormestro);
}
}
mysql_query("update sitio set value='1' where id='1'");
?>
Return current item: OpenSupports