<?php
session_start();
include("config.php");
include("plugin/functions.php");
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'");
$query = mysql_query("select * from settings");
while($print = mysql_fetch_array($query)){ ?>
<!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>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow,nosnippet,noodp,noarchive,noimageindex">		
	<meta name="author" content="Php Scriptlerim, www.phpscriptlerim.com" />	

	<title><?php echo $print['title']; ?></title>	
	
	<link rel="stylesheet" media="screen" href="css/superfish.css" type="text/css" />
	<link rel="stylesheet" media="screen" href="css/stylesheet.css" type="text/css" />
	<link rel="stylesheet" media="screen" href="css/color.css" type="text/css" />		
	<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic" type="text/css" />

	<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
	<script src="js/hoverIntent.js" type="text/javascript"></script>
	<script src="js/superfish.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery-ui.min.js"></script>
	<script type="text/javascript" src="js/custom.js"></script>
	<script type="text/javascript" src="js/jquery.animate-shadow.js"></script>
</head>
<body>
<?php include("plugin/writelogin.php"); ?> 
<a id="notification" class="btn-slide" href="#">&darr;</a>

<div id="container_wrapper">
  <div id="header">
    <div id="header-top">
	<div class="tarihsaat"><?php echo fuctarih(); ?></div>
      <h2 id="logo"><a href="index<?php echo $print['seourl']; ?>"><img src="images/logo.png" alt="logo"></a></h2>
      <div class="nav-container">
        <ul id="menu">
		<li><a href="index<?php echo $print['seourl']; ?>">Anasayfa</a></li>
<?php $eee = mysql_query("select * from pages order by sira asc"); while($fff = mysql_fetch_array($eee)){ if($print['seourl']==".php"){ ?>
		<li><a href="pages.php?url=<?php echo $fff['sefurl']; ?>"><?php echo $fff['baslik']; ?></a></li>
	<?php }elseif($print['seourl']==".html"){ ?>
		<li><a href="sayfa-<?php echo $fff['sefurl']; ?>.html"><?php echo $fff['baslik']; ?></a></li>	
	<?php } } ?>		
		<li><a href="iletisim<?php echo $print['seourl']; ?>">İletişim</a></li>	
            </ul>
          </li>
        </ul>
      </div>
	<p align="right"><br><br><br><?php echo $print['reklam1']; ?></p>
    </div>
	
    <div id="header-bottom">
      <div class="category-container">
        <ul class="sf-menu">
<?php $aaa = mysql_query("select * from newskat where kategori='' order by sira asc"); while($bbb = mysql_fetch_array($aaa)){ $sef = $bbb['sefurl']; ?>		
<?php if($print['seourl']==".php"){ ?> <li><a href="newskat.php?url=<?php echo $bbb['sefurl']; ?>"><?php echo $bbb['baslik']; ?></a> <?php }elseif($print['seourl']==".html"){ ?> <li><a href="kategori-<?php echo $bbb['sefurl']; ?>.html"><?php echo $bbb['baslik']; ?></a><?php } ?>
<?php $ccc = mysql_query("select * from newskat where kategori='$sef' order by sira asc"); if(mysql_num_rows($ccc)=="0"){ }else{ echo '<ul>'; while($ddd = mysql_fetch_array($ccc)){ ?>				             
<?php if($print['seourl']==".php"){ ?> <li><a href="newskat.php?url=<?php echo $ddd['sefurl']; ?>"><?php echo $ddd['baslik']; ?></a></li> <?php }elseif($print['seourl']==".html"){ ?> <li><a href="kategori-<?php echo $ddd['sefurl']; ?>.html"><?php echo $ddd['baslik']; ?></a></li><?php } ?>
	<?php } echo '</ul>'; } echo '</li>'; } ?>  		
        </ul>
      </div>
      <div class="subscriber_widget">  
	<a href="<?php echo $print['facebook']; ?>" target="_blank"><img src="images/facebook.png" alt="facebook" title="Facebook"></a>  
	<a href="<?php echo $print['twitter']; ?>" target="_blank"><img src="images/twitter.png" alt="twitter" title="Twitter"></a>  
	<a href="rss<?php echo $print['seourl']; ?>"><img src="images/rss.png" alt="rss" title="RSS"></a>  	
	  </div>
    </div>
  </div>
  
  <div id="outer-wrapper">
    <div id="content-wrapper">
      <div id="inner-content">
        <div id="entry">
          <div id="post-top">
            <h3 id="post-title">RSS</h3>
          </div>
          <div class="entry-content">
	<p>RSS, yeni eklenen içeriğin kolaylıkla takip edilmesini sağlayan özel bir dosya formatıdır. 
	<br><br>
	<b>Ne yarar sağlar?</b><br>
	RSS beslemelerini kullanarak sitesimiz de bulunan ve izin verilen tüm içeriğe en hızlı şekilde ulaşmanızı sağlar.
	
	<table style="background-color:#FBFBFB; border:1px solid #E5E5E5;">
<?php $king = mysql_query("select * from newskat order by id desc"); while($hors = mysql_fetch_array($king)){ if($print['seourl']==".php"){ ?>		
		<tr>	
			<td style="padding:5px; width:400px;"><b><?php echo $hors['baslik']; ?></b></td><td style="width:400px;"><a href="plugin/rsskat.php?url=<?php echo $hors['sefurl']; ?>">http://<?php echo $_SERVER["HTTP_HOST"]; ?>/plugin/rsskat.php?url=<?php echo $hors['sefurl']; ?></a></td>
	<?php }elseif($print['seourl']==".html"){ ?>
			<td style="padding:5px; width:400px;"><b><?php echo $hors['baslik']; ?></b></td><td style="width:400px;"><a href="rsskat-<?php echo $hors['sefurl']; ?>.xml">http://<?php echo $_SERVER["HTTP_HOST"]; ?>/rsskat-<?php echo $hors['sefurl']; ?>.xml</a></td>	
		</tr>
	<?php } } ?>		
			
	</table>
	
          </div>
        </div>
      </div>
	  
      <div id="sidebar">
	<?php include("plugin/sidebar.php"); ?>
      </div>
      <div class="clear"></div>
    </div>
  </div>
  
  <div id="footer"> <span id="Scroll"><a href="#">&uarr;</a></span>
    <div id="footer_inner">
<?php echo $print['reklam3']; ?>
      <div class="clear"></div>
      <div class="footer_bottom">
        <ul class="footer_menu">
          <li><a href="index<?php echo $print['seourl']; ?>">Anasayfa</a> /</li>		
<?php $whistle = mysql_query("select * from pages order by sira asc"); while($baby = mysql_fetch_array($whistle)){ if($print['seourl']==".php"){ ?>		
          <li><a href="pages.php?url=<?php echo $baby['sefurl']; ?>"><?php echo $baby['baslik']; ?></a> /</li>
	<?php }elseif($print['seourl']==".html"){ ?>	  
          <li><a href="sayfa-<?php echo $baby['sefurl']; ?>.html"><?php echo $baby['baslik']; ?></a> /</li>
	<?php } } ?>	
          <li><a href="iletisim<?php echo $print['seourl']; ?>">İletişim</a></li>
        </ul>
        <p>&copy; Copyright <?php echo date('Y'); ?>, <?php echo $print['title']; ?>. Tüm hakları saklıdır. Powered by <a target="_blank" href="http://www.phpscriptlerim.com">Php Scriptlerim</a></p>
      </div>
    </div>
  </div>
</div>
</body>
</html>
<?php } ?>