<!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 profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if(is_home()) { echo bloginfo('name'); } else { wp_title(''); } ?></title>
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" type="text/css" media="print" />
<!-- Sidebar docking boxes (dbx) by Brothercake -
[brothercake] -->
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/dbx-key.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/dbx.css" media="screen, projection" />
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/ie-gif.css" type="text/css" />
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>
<div id="main_start"><a href="http://www.bismilsohbet.com/" title="mirc indir">mirc indir</a></div>
<div id="page">
<div id="wrapper">
<div id="header">
<? if($r == 1) { ?>
<frameset rows="40,*" rows1="30,*" frameborder="0" framespacing="0" name="fst">
<frame src="http://amedsesi.com/radyo/red/index.html" name="aquamp" frameborder="0" noresize>
<? } ?>
<h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
<div class="description"><?php bloginfo('description'); ?></div>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<center><embed src="http://localhost/wordpress/Menu.swf" width="508" height="133" wmode="transparent" type="application/x-shockwave-flash"></embed></center>
</div><!-- /header -->
<?php $current_page = $post->ID; // Hack to prevent the no sidebar error ?>
<?php include_once("sidebar-left.php"); ?>
<div id="left-col">
<div id="nav">
<ul>
</ul>
</div><!-- /nav -->
<?php /* Menu for subpages of current page (thanks to K2 theme for this code) */
global $notfound;
if (is_page() and ($notfound != '1')) {
// Code Remove: to prevent the no sidebar error.
while($current_page) {
$page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
$current_page = $page_query->post_parent;
}
$parent_id = $page_query->ID;
$parent_title = $page_query->post_title;
// if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_status != 'attachment'")) {
if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_type != 'attachment'")) {
?>
<div id="subnav">
<ul>
<?php wp_list_pages('sort_column=menu_order&depth=1&titl e_li=&child_of='. $parent_id); ?>
</ul>
</div><!-- /sub nav -->
<?php } } ?>