<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ Üst Çağırılıyor ~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
include("header.php");
?>
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ Haber Sorgusu ~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
$id = intval($_GET['id']);
$db->write_query("UPDATE news set hits = hits + 1 where id = $id");
$query = $db->read_query("
SELECT news.title, news.spot, news.image, news.cid,
news.detail, news.date, news.hits, cats.category
FROM news, cats
WHERE news.cid = cats.cid AND news.active = 'Y' AND news.id = $id
") or die($db->sql_error());
$newsDetail = $db->sql_fetcharray($query);
?>
<table class="body" width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="leftright">
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120" valign="top" style="background:#EFEFEF;">
<?php
include("left.php");
?>
</td>
<td width="490" valign="top" class="centerColumn">
<!-- Orta Kısım -->
<div id="font_tools">
<div class="tools">
<div class="fonts">
Karakter boyutu :
<img style="cursor: pointer;" src="images/font_01.gif" align="absmiddle" onClick="return changeSize('text_detail', '12', 'content')" alt="12 Punto"/>
<img style="cursor: pointer;" src="images/font_02.gif" align="absmiddle" onClick="return changeSize('text_detail', '14', 'content')" alt="14 Punto"/>
<img style="cursor: pointer;" src="images/font_03.gif" align="absmiddle" onClick="return changeSize('text_detail', '16', 'content')" alt="16 Punto"/>
<img style="cursor: pointer;" src="images/font_04.gif" align="absmiddle" onClick="return changeSize('text_detail', '18', 'content')" alt="18 Punto"/>
</div>
<div class="goback"><img src="images/back_red.gif" align="absmiddle" /> <a href="./index.php">Ana sayfaya Dön</a> // <a href="news.php?cid=<?=$newsDetail[cid]?>"><b><?=stripslashes($newsDetail[category])?></b></a></div>
</div></div>
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td>
<div id="article_detail">
<div class="newsImage">
<div><img src="images/news/<?=$newsDetail[image]?>" width="260" height="180" /></div>
</div>
<div class="title"><?=stripslashes($newsDetail[title])?></div>
<div class="br1pxdot"><img src="images/spacer.gif" /></div>
<div class="date"><?php echo time_to_now($newsDetail[date]);?></div>
<div class="br1pxdot"><img src="images/spacer.gif" /></div>
<div class="detail content_12" id="text_detail">
<b><?=stripslashes($newsDetail[spot])?></b><br /><br />
<div class="clear"></div><hr><?=stripslashes($newsDetail[detail])?>
</div>
<div class="read_count">Bu yazı toplam <?=$newsDetail[hits]?> defa okundu.</div>
</div>
<script type="text/javascript">changeTarget(document.getElementById("text_detail"))</script>
</td>
</tr>
<tr>
<td>
<!-- Ara Çizgiler -->
<div class="center_line"><img src="images/spacer.gif" height="5" /></div>
<!-- Yazı Araçları -->
<div id="textTools">
<div class="item"><img src="images/comment_add.gif" align="absmiddle" /> <a href="javascrit:;" onClick="return openPopUp_520x390('comment_add.php?id=<?=$id?>&type=news','');">Yorum Ekle</a> </div>
<div class="item"><img src="images/print.gif" align="absmiddle" /> <a target="_blank" href="news_print.php?id=<?=$id?>">Yazdır </a></div>
<div class="item"><img src="images/up.gif" align="absmiddle" /> <a href="#top">Yukarı Çık</a> </div>
</div>
<!-- Ara Çizgiler -->
<div class="center_line"><img src="images/spacer.gif" height="5" /></div>
</td>
</tr>
<?php
$query = $db->write_query("
SELECT name, title, comment, date
FROM comments
WHERE id = $id
AND type = 'news'
AND active = 'Y'
ORDER BY date DESC
") or die($db->sql_error());
$total_comments = $db->sql_numrows($query);
if(!$total_comments){
echo "<tr><td>Bu Yazıya Henüz Yorum Eklenmemiş.</td></tr>";
}
$query = $db->read_query("
SELECT name, title, comment, date
FROM comments
WHERE id = $id
AND type = 'news'
AND active = 'Y'
ORDER BY date DESC
LIMIT 3
") or die($db->sql_error());
while($row = $db->sql_fetcharray($query)){
?>
<tr>
<td id="comments">
<div class="comment">
<div class="name"><?php echo stripslashes($row[name]);?></div>
<div class="title"><?php echo stripslashes($row[title]);?></div>
<div class="comment"><?php echo stripslashes($row[comment]);?></div>
<div class="date"><?php echo time_to_now($row[date]);?></div>
</div></td>
</tr>
<?php
}
if($total_comments>3){
?>
<tr id="comments">
<td class="allComments"><a href="javascript:;" onclick="return openPopUp_520x390('comments.php?id=<?=$id?>&type=news','');">Tüm Yorumları Göster(<?=$total_comments?>)</a></td>
</tr>
<?php
}
?>
</table>
<!-- //Orta Kısım -->
</td>
<td width="150" valign="top" style="background:#EFEFEF;">
<?php
include("right.php");
?>
</td>
</tr>
</table></td>
</tr>
</table>
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ Alt Çağırılıyor ~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
include("footer.php");
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ MySQL Kapatılıyor ~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
$db->sql_close();
?>
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ İncler Yapılıyor ~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
ob_start();
include("config.php");
include("includes/includes.php");
$reklam = new nrReklam;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="css/style.css" type="text/css" rel="stylesheet" />
<LINK title=RSS href="./rss/index.php" type=application/rss+xml rel=alternate>
<script src="css/function.js" type="text/javascript"></script>
<title><?=$settings['site_title']?> | <?=$settings['site_slogan']?> </title>
</head>
<body>
<table class="body" width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="leftright" height="70" valign="top">
<div id="header_author">
<!-- Yazarlar -->
<?php
$query = $db->write_query("
SELECT author_id, name, image
FROM authors
ORDER BY author_order ASC
LIMIT 5
");
while($row = $db->sql_fetcharray($query)){
$qquery = $db->read_query("
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ İncler Yapılıyor ~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
ob_start();
include("config.php");
include("includes/includes.php");
$reklam = new nrReklam;
$title = $settings['site_title']." | ".$settings['site_slogan'];
if(isset($_GET['haber']) && $_GET['haber'] != "") {
$title = $_GET['haber'] . " | ". $settings['site_title']." | ".$settings['site_slogan'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="css/style.css" type="text/css" rel="stylesheet" />
<LINK title=RSS href="./rss/index.php" type=application/rss+xml rel=alternate>
<script src="css/function.js" type="text/javascript"></script>
<title><?=$title;?></title>
</head>
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ Üst Çağırılıyor ~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
include("header.php");
?>
$newsDetail = $db->sql_fetcharray($query);
// Üst Çağrılıyor
include("header.php?haber=".$newsDetail['title']);
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ İncler Yapılıyor ~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
ob_start();
include("config.php");
include("includes/includes.php");
$reklam = new nrReklam;
$title = $settings['site_title']." | ".$settings['site_slogan'];
if(isset($_GET['haber']) && $_GET['haber'] != "") {
$title = $_GET['haber'] . " | ". $settings['site_title']." | ".$settings['site_slogan'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"
dir="ltr" lang="tr">
<head>
****
<link href="css/style.css" type="text/css" rel="stylesheet" />
<LINK title=RSS href="./rss/index.php" type=application/rss+xml rel=alternate>
<script src="css/function.js" type="text/javascript"></script>
<title><?=$title;?></title>
</head>
<body>
<table class="body" width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="leftright" height="70" valign="top">
<div id="header_author">
<!-- Yazarlar -->
<?php
$query = $db->write_query("
SELECT author_id, name, image
FROM authors
ORDER BY author_order ASC
LIMIT 5
");
while($row = $db->sql_fetcharray($query)){
$qquery = $db->read_query("
SELECT article_id, title
FROM articles
WHERE author_id = $row[author_id]
AND active = 'Y'
ORDER BY date DESC
LIMIT 1
");
$rrow = $db->sql_fetcharray($qquery);
if($rrow[title]){
$article = "<a href=\"author_article_detail.php?article_id=".$rrow[article_id]."\">".stripslashes($rrow[title])."</a>";
}else{
$article = "Henüz Yazı Eklenmemiş";
}
?>
<div class="author_box">
<div class="image"><img src="http://www.hackhell.com/images/authors/th_<?=$row[image]?>" width="38" height="46" /></div>
<div class="text"><b class="authorName"><?php echo stripslashes($row[name]);?></b><br /><?=$article?></div>
</div>
<?php
}
?>
</div>
</td>
</tr>
<tr>
<td class="leftright">
<div id="header">
<div class="logo"><a href="index.php"><img src="http://www.hackhell.com/images/spacer.gif" height="85" width="240" /></a></div>
<div class="banner"><?php echo $reklam->reklamGoster('ust');?></div>
</div></td>
</tr>
<tr>
<td height="20" class="leftright" valign="top">
<div class="header_menu">
<div class="date"><?php echo time_to_now(time());?></div>
<div class="item"><a href="add_lastmin.php">Sitene Sondakika Ekle</a> </div>
<div class="item"><a href="page_detail.php?page_id=2">Künye</a></div>
<div class="item"><a href="page_detail.php?page_id=3">Reklam</a></div>
<div class="item"><a href="contact.php">İletişim</a></div>
<div class="item"><b><a href="rss/index.php" target="_blank">RSS</a></b></div>
</div>
</td>
</tr>
</table>
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ Haber Sorgusu ~~~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
$id = intval($_GET['id']);
$db->write_query("UPDATE news set hits = hits + 1 where id = $id");
$query = $db->read_query("
SELECT news.title, news.spot, news.image, news.cid,
news.detail, news.date, news.hits, cats.category
FROM news, cats
WHERE news.cid = cats.cid AND news.active = 'Y' AND news.id = $id
") or die($db->sql_error());
$newsDetail = $db->sql_fetcharray($query);
// Üst Çağrılıyor
include("header.php?haber=".$newsDetail['title']);
?>
<table class="body" width="770" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="leftright">
<table width="770" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120" valign="top" style="background:#EFEFEF;">
<?php
include("left.php");
?>
</td>
<td width="490" valign="top" class="centerColumn">
<!-- Orta Kısım -->
<div id="font_tools">
<div class="tools">
<div class="fonts">
Karakter boyutu :
<img style="cursor: pointer;" src="http://www.hackhell.com/images/font_01.gif" align="absmiddle" onClick="return changeSize('text_detail', '12',
'content')" alt="12 Punto"/>
<img style="cursor: pointer;" src="http://www.hackhell.com/images/font_02.gif" align="absmiddle" onClick="return changeSize('text_detail', '14',
'content')" alt="14 Punto"/>
<img style="cursor: pointer;" src="http://www.hackhell.com/images/font_03.gif" align="absmiddle" onClick="return changeSize('text_detail', '16',
'content')" alt="16 Punto"/>
<img style="cursor: pointer;" src="http://www.hackhell.com/images/font_04.gif" align="absmiddle" onClick="return changeSize('text_detail', '18',
'content')" alt="18 Punto"/>
</div>
<div class="goback"><img src="http://www.hackhell.com/images/back_red.gif" align="absmiddle" /> <a href="./index.php">Ana sayfaya Dön</a> // <a
href="news.php?cid=<?=$newsDetail[cid]?>"><b><?=stripslashes($newsDetail[category])?></b></a></div>
</div></div>
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td>
<div id="article_detail">
<div class="newsImage">
<div><img src="http://www.hackhell.com/images/news/<?=$newsDetail[image]?>" width="260" height="180" /></div>
</div>
<div class="title"><?=stripslashes($newsDetail[title])?></div>
<div class="br1pxdot"><img src="http://www.hackhell.com/images/spacer.gif" /></div>
<div class="date"><?php echo time_to_now($newsDetail[date]);?></div>
<div class="br1pxdot"><img src="http://www.hackhell.com/images/spacer.gif" /></div>
<div class="detail content_12" id="text_detail">
<b><?=stripslashes($newsDetail[spot])?></b><br /><br />
<div class="clear"></div><?=stripslashes($newsDetail[detail])?>
</div>
<div class="read_count">Bu yazı toplam <?=$newsDetail[hits]?> defa okundu.</div>
</div>
<script type="text/javascript">changeTarget(document.getElementById("text_detail"))</script>
</td>
</tr>
<tr>
<td>
<!-- Ara Çizgiler -->
<div class="center_line"><img src="http://www.hackhell.com/images/spacer.gif" height="5" /></div>
<hr><script language='JavaScript' type='text/javascript' src='http://www.adhood.com/adserver/adx.js'></script>
<center><script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.adhood.com/adserver/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:87492");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.adhood.com/adserver/adclick.php?n=a5e0090e' target='_blank'><img src='http://www.adhood.com/adserver/adview.php?
what=zone:87492&n=a5e0090e' border='0' alt=''></a></noscript>
</center><br/>
<!-- Yazı Araçları -->
<div id="textTools">
<div class="item"><img src="http://www.hackhell.com/images/comment_add.gif" align="absmiddle" /> <a href="javascrit:;"
onClick="return openPopUp_520x390('comment_add.php?id=<?=$id?>&type=news','');">Yorum Ekle</a> </div>
<div class="item"><img src="http://www.hackhell.com/images/print.gif" align="absmiddle" /> <a target="_blank"
href="news_print.php?id=<?=$id?>">Yazdır </a></div>
<div class="item"><img src="http://www.hackhell.com/images/up.gif" align="absmiddle" /> <a href="#top">Yukarı Çık</a> </div>
</div>
<!-- Ara Çizgiler -->
<div class="center_line"><img src="http://www.hackhell.com/images/spacer.gif" height="5" /></div>
</td>
</tr>
<?php
$query = $db->write_query("
SELECT name, title, comment, date
FROM comments
WHERE id = $id
AND type = 'news'
AND active = 'Y'
ORDER BY date DESC
") or die($db->sql_error());
$total_comments = $db->sql_numrows($query);
if(!$total_comments){
echo "<tr><td>Bu Yazıya Henüz Yorum Eklenmemiş.</td></tr>";
}
$query = $db->read_query("
SELECT name, title, comment, date
FROM comments
WHERE id = $id
AND type = 'news'
AND active = 'Y'
ORDER BY date DESC
LIMIT 3
") or die($db->sql_error());
while($row = $db->sql_fetcharray($query)){
?>
<tr>
<td id="comments">
<div class="comment">
<div class="name"><?php echo stripslashes($row[name]);?></div>
<div class="title"><?php echo stripslashes($row[title]);?></div>
<div class="comment"><?php echo stripslashes($row[comment]);?></div>
<div class="date"><?php echo time_to_now($row[date]);?></div>
</div></td>
</tr>
<?php
}
if($total_comments>3){
?>
<tr id="comments">
<td class="allComments"><a href="javascript:;" onclick="return openPopUp_520x390('comments.php?id=<?=$id?
>&type=news','');">Tüm Yorumları Göster(<?=$total_comments?>)</a></td>
</tr>
<?php
}
?>
</table><hr/>
<!-- //Orta Kısım -->
</td>
<td width="150" valign="top" style="background:#EFEFEF;">
<?php
include("right.php");
?>
</td>
</tr>
</table></td>
</tr>
</table>
<?php
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ Alt Çağırılıyor ~~~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
include("footer.php");
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//~~~~~~~~~~~~~ MySQL Kapatılıyor ~~~~~~~~//
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
$db->sql_close();
?>