<?php
ob_start();
session_start();
define("OTURUM_ID", session_id());
require_once("../connecting/connect.php");
require_once("../connecting/level.php");
require_once("../connecting/ayarlar.php");
error_reporting(E_ALL ^ E_NOTICE);
?>
<html>
<head>
<?php
$siteadi = SITE_ADRESI;
$g_mail = SITE_EPOSTA;
$g_isim = SITE_ADI;
function haberlist() {
$siteadi = SITE_ADRESI;
$g_mail = SITE_EPOSTA;
$g_isim = SITE_ADI;
$req = mysql_query("SELECT * FROM haberler WHERE onay='EVET' ORDER BY haberno DESC LIMIT 10");
while ($hew = mysql_fetch_array($req)) {
$hbaslik = $hew["hbaslik"];
$hozet = $hew["hozet"];
$resim = $hew["resim"];
$hozet = $hew["hozet"];
$hno = $hew["haberno"];
echo "<div>
<a href=".$siteadi."/haber/".$hno."/".dost_link($hbaslik).">
<img src=".$siteadi."/resim.php?resim=".$rd."/".$resim."&en=120&boy=90 width=120 height=90 align=left /></a>
<div class=lex><a href=".$siteadi."/haber/".$hno."/".dost_link($hbaslik).">".$hbaslik."</a></div>
<div><a href=".$siteadi."/haber/".$hno."/".dost_link($hbaslik).">".$hozet."</a></div>
</div>";
}
}
$mailim = "<title>".$siteadi."</title>
<link href=".$siteadi."/css/kod.css rel=stylesheet />
</head>
<body><div class=mort>
<div class=mxm>".haberlist()."</div>
</div>";
$email = "mail@hotmail.com";
$header = "From: $g_isim <".$g_mail.">\n";
$header .= "Reply-To: $g_isim <".$g_mail.">\n";
$header .= "Return-Path: $g_isim <".$g_mail.">\n";
$header .= "Delivered-to: $g_isim <".$g_mail.">\n";
$header .= "Date: ".date(r)."\n";
$header .= "Content-Type: text/html; charset=iso-8859-9\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Importance: Normal\n";
$header .= "X-Sender: $g_isim <".$g_mail.">\n";
$header .= "X-Priority: 3\n";
$header .= "X-MSMail-Priority: Normal\n";
$header .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\n";
$header .= "Disposition-Notification-To: $g_isim <".$g_mail.">\n";
$header .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869\n";
if (mail($email, $hbaslik, $mailim,$header)) {
echo 'Haber Başarıyla Gönderildi.';
}
?>
</body>
</html>