$IP = "http://www.chaospristontale.com/ClanContent/";
$fOpen = fopen("C:\ServidorPT\Data\BlessCastle.dat", "r");
$fRead =fread($fOpen,4096);
@fclose($fOpen);
$bc1 = bin2hex(substr($fRead,0x4,1));
$bc2 = bin2hex(substr($fRead,0x5,1));
$bc3 = bin2hex(substr($fRead,0x6,1));
$bc4 = bin2hex(substr($fRead,0x7,1));
$bc = hexdec("$bc4"."$bc3"."$bc2"."$bc1");
$caminho ="C:/inetpub/wwwroot/ClanContent";
if(file_exists("$caminho/$bc.bmp")) {
$connection = odbc_connect( 'DRIVER={SQL Server};SERVER=PTL\SQLEXPRESS;DATABASE=ClanDb', 'pt', '#$pdl32xq' );
$query = "SELECT * FROM [ClanDb].[dbo].[CL] WHERE [MIconCnt]='$bc'";
$q = odbc_exec($connection, $query);
$clan = odbc_fetch_array($q);
?>
Lider:
} else {
echo "Sem Lider Atual";
}
?>