<?php 
session_start();
if(isset($_SESSION['newsphp']))
{
$kuladi = $_SESSION['newsphp']; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="robots" content="noindex,nofollow,nosnippet,noodp,noarchive,noimageindex">
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/reset.css" /> 
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/main.css" /> 
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/2col.css" title="2col" /> 
	<link rel="alternate stylesheet" media="screen,projection" type="text/css" href="css/1col.css" title="1col" /> 
	<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="css/main-ie6.css" /><![endif]--> 
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/style.css" />
	<link rel="stylesheet" media="screen,projection" type="text/css" href="css/mystyle.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/switcher.js"></script>
		<title>Radyo Sitesi Yönetim Paneli</title>	</head><body><div id="main">	<div id="tray" class="box">		<p class="f-left box">			<span class="f-left" id="switcher">				<a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="design/switcher-1col.gif" alt="1 Column" /></a>				<a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="design/switcher-2col.gif" alt="2 Columns" /></a>			</span>			<strong>Radyo Sitesi Yönetim Paneli</strong>		</p>		<p class="f-right"><strong><a href="admin.php"><?php echo $kuladi; ?></a></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="logout.php" id="logout">Çıkış</a></strong></p>	</div>	<hr class="noscreen" />	<div id="menu" class="box">		<ul class="box f-right">			<li><a href="../index.php" target="_blank"><span><strong>Siteyi Görüntüle &raquo;</strong></span></a></li>		</ul>		<ul class="box">			<li><a href="home.php"><span>Anasayfa</span></a></li>							<li><a href="sayfalar.php"><span>Sayfalar</span></a></li>						<li><a href="yazilar.php"><span>Haberler</span></a></li>					<li><a href="fotogaleri.php"><span>Galeriler</span></a></li>				<li><a href="videolar.php"><span>Klipler</span></a></li>									<li><a href="yazarlar.php"><span>Yayıncılar</span></a></li>					<li><a href="yorumlar.php"><span>Yorumlar</span></a></li>									<li><a href="contact.php"><span>İletişim</span></a></li>			<li><a href="admin.php"><span>Yönetici Bilgileri</span></a></li>			<li><a href="ayarlar.php"><span>Ayarlar</span></a></li>		</ul>	</div>	<hr class="noscreen" />	<div id="cols" class="box">		<div id="aside" class="box">			<div class="padding box">				<p id="logo"><a href="home.php"><img src="design/logo.png" title="Radyo Sitesi Yönetim Paneli" alt="" /></a></p><br><br>			</div>						<div class="padding box">				<p id="btn-create" class="box"><a href="sayfaekle.php"><span>Sayfa Ekle</span></a></p>		<p id="btn-create" class="box"><a href="galeriekle.php"><span>Galeri Oluştur</span></a></p>		<p id="btn-create" class="box"><a href="resimekle.php"><span>Resim Ekle</span></a></p>		<p id="btn-create" class="box"><a href="videoekle.php"><span>Video Ekle</span></a></p>		<p id="btn-create" class="box"><a href="yazarekle.php"><span>Yayıncı Ekle</span></a></p>					</div>						<div class="padding box" class="info msg">			<br><br>									</div>		</div>		<hr class="noscreen" />

		<div id="content" class="box">
			<h1>Ayarlar</h1>
			<br>
<?php include("../config.php");  include("plugin/ayarsave.php"); 

mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET COLLATION_CONNECTION = 'utf8_bin'");
$sorgu = mysql_query("select * from settings");
while($gelen = mysql_fetch_array($sorgu)){ $seo = $gelen['seourl']; ?>
						<form method="post">			
			<div class="col50">
			
		<p class="t-justify">     
		
						<label><b>Site Title</b></label><br>
						<input type="text" size="40" name="title" value="<?php echo $gelen['title']; ?>" class="input-text" /><br><br>		
						<label><b>Site URL</b> http koymayı unutmayın (örn: http://www.bozukradyo.com)</label><br>
						<input type="text" size="40" name="reklam2" value="<?php echo $gelen['reklam2']; ?>" class="input-text" /><br><br>								
						<label><b>Radyo Adı</b></label><br>
						<input type="text" size="40" name="radyoadi" value="<?php echo $gelen['radyoadi']; ?>" class="input-text" /><br><br>	
						<label style="display:none;"><b>Seo URL</b></label><br>
						<?php if($seo==".php"){ ?>
						<input  style="display:none;" type="radio" name="seourl" value=".php" ><br>
						<input  style="display:none;" type="radio" name="seourl" value=".html" checked>
						<?php }elseif($seo==".html"){ ?>
						<input  style="display:none;" type="radio" name="seourl" value=".php"><br>
						<input  style="display:none;" type="radio" name="seourl" value=".html" checked>						
						<?php } ?>
						<label><b>Hakkımızda Kısa</b> (240 karakter)</label><br>
						<textarea cols="75" rows="7" name="hakkimizda" class="input-text"><?php echo $gelen['hakkimizda']; ?></textarea><br><br>
						<label><b>Anahtar kelimeler</b> (keywords)</label><br>
						<textarea cols="75" rows="7" name="keywords" class="input-text"><?php echo $gelen['keywords']; ?></textarea><br><br>

						<label><b>Siteni tanımlama</b> (cümle,kelime v.b. - description)</label><br>
						<textarea cols="75" rows="7" name="description" class="input-text"><?php echo $gelen['description']; ?></textarea><br><br>		
<div style="display:none;">
						<label><b>Blok1</b> (anasayfa manşet altı)</label><br>
						<select name="kat1" style="width:300px;" class="input-text">
						<option><?php echo $gelen['kat1']; ?></option>
				<?php $sorgu1 = mysql_query("select * from newskat order by id desc"); while($gelen1 = mysql_fetch_array($sorgu1)){ ?>		
						<option value="<?php echo $gelen1['sefurl']; ?>"><?php echo $gelen1['baslik']; ?></option>
						<?php } ?>
						</select><br><br>	

						<label><b>Blok2</b> (anasayfa manşet altı)</label><br>
						<select name="kat2" style="width:300px;" class="input-text">
						<option><?php echo $gelen['kat2']; ?></option>
				<?php $sorgu2 = mysql_query("select * from newskat order by id desc"); while($gelen2 = mysql_fetch_array($sorgu2)){ ?>		
						<option value="<?php echo $gelen2['sefurl']; ?>"><?php echo $gelen2['baslik']; ?></option>
						<?php } ?>
						</select><br><br>	

						<label><b>Blok3</b> (anasayfa manşet altı)</label><br>
						<select name="kat3" style="width:300px;" class="input-text">
						<option><?php echo $gelen['kat3']; ?></option>
				<?php $sorgu3 = mysql_query("select * from newskat order by id desc"); while($gelen3 = mysql_fetch_array($sorgu3)){ ?>		
						<option value="<?php echo $gelen3['sefurl']; ?>"><?php echo $gelen3['baslik']; ?></option>
						<?php } ?>
						</select><br><br>	</div>

						<label><b>İletişim Bilgileri</b> (iletişim sayfası sağ sütun)</label><br>
						<textarea cols="75" rows="7" name="iletisim" class="input-text"><?php echo $gelen['iletisim']; ?></textarea><br><br>								
		
				</p>
				
			</div> 

			<div class="col50 f-right">
			
				<p class="t-justify">	
					<label><b>Winamp</b></label><br>						<input type="text" size="40" name="winamp" value="<?php echo $gelen['winamp']; ?>" class="input-text" /><br><br>		<label><b>MediaPlayer</b></label><br>						<input type="text" size="40" name="mediaplayer" value="<?php echo $gelen['mediaplayer']; ?>" class="input-text" /><br><br>		<label><b>Android</b></label><br>						<input type="text" size="40" name="android" value="<?php echo $gelen['android']; ?>" class="input-text" /><br><br>							<label><b>iOS</b></label><br>						<input type="text" size="40" name="ios" value="<?php echo $gelen['ios']; ?>" class="input-text" /><br><br>	
						<label><b>Facebook</b></label><br>
						<input type="text" size="40" name="facebook" value="<?php echo $gelen['facebook']; ?>" class="input-text" /><br><br>	

						<label><b>Twitter</b></label><br>
						<input type="text" size="40" name="twitter" value="<?php echo $gelen['twitter']; ?>" class="input-text" /><br><br>	
						
						<label><b>İnstagram</b></label><br>
						<input type="text" size="40" name="instagram" value="<?php echo $gelen['instagram']; ?>" class="input-text" /><br><br>	

						<label><b>468 x 60</b> (logo yanı)</label><br>
						<textarea cols="75" rows="7" name="reklam1" class="input-text"><?php echo $gelen['reklam1']; ?></textarea><br><br>	

						

						<label><b>728 x 90</b> (footer üstü)</label><br>
						<textarea cols="75" rows="7" name="reklam3" class="input-text"><?php echo $gelen['reklam3']; ?></textarea><br><br>	

						<label><b>Google Maps</b> (iletişim sayfası sağ sütun)</label><br>
						<textarea cols="75" rows="7" name="iletisim1" class="input-text"><?php echo $gelen['iletisim1']; ?></textarea><br><br>							

				</p>
				
			</div> 
			<div class="fix"></div>						

			<p style="padding-left:380px;"><input type="submit" class="input-submit" name="gonder" style="width:500px;" value="Kaydet" /></p>
						</form>
			<?php } ?>
			
			<br>
		</div>

	</div>

	<hr class="noscreen" />

	<div id="footer" class="box">

		<p class="f-left">&copy; 2016 Radyo Sitesi</p>

	

	</div> 

</div>

</body>
</html>
<?php } else { echo '<script language="javascript">location.href="../404.php";</script>'; } ?>