<?
// Standardværdier for variabler og felter, som læses, før de altid er sat.
// Uden dem skriver PHP "Undefined variable/index" i fejlloggen ved hvert sidekald.
$detail = "";
$clang = "";
$response_wrong_pass = false;
$restOfString = "";
$wf_session_include = false;
$response = "";
$responsestd = "";
$metalang = "";
$colorpicker = "";
$emailfound = false;
$um = array("box" => "", "inc" => "");
$lang = array("sendpassword" => "", "logind" => "", "glemtpassword" => "", "logind_ny" => "");
$meta_title = "";
$meta_description = "";
$meta_keywords = "";
$playersnames = "";
$numsql = "";
$likesql = "";
$wheresql = "";
$fullalpha = false;
foreach (array("todo", "letters", "partialword", "startword", "endword", "maxnumletters", "minnumletters", "add_word", "remove_word", "wf_email", "wf_id", "wf_password", "wf_login", "qstring_url", "cid", "go", "name", "email") as $request_key) {
    if (!isset($_REQUEST[$request_key])) {
        $_REQUEST[$request_key] = "";
    }
}
$domain_array = explode(".",$_SERVER['HTTP_HOST']);
$domain_array = array_reverse($domain_array);
if ($domain_array[0] == "dk"){
    //header('Location: http://www.catmag.net/da/');
}

include('catmin/incme/0setup.php');
include('catmin/incme/0auth.php');
include('catmin/incme/0tool.php');
include('catmin/incme/9translate.php');
include('inc/detail_mainmap.php');
if (!$metalang){
     $metalang = $clang;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" lang="<?=$metalang;?>" xml:lang="<?=$metalang;?>">
<head>
<meta http-equiv="content-Language" content="<?=$metalang;?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?print $meta_title;?></title>
<meta name="Description" content="<?=$meta_description;?>" />
<meta name="Keywords" content="<?=$meta_keywords;?>" />
<meta name="Author" content="CatmagCMS" />
<meta name="copyright" content="CatmagCMS" />
<meta content="ALL" name="ROBOTS" />
<meta name="robots" content="index,follow" />

<link href="https://catmag.net/css/catmag.css" rel="stylesheet" type="text/css" />
<?
if ($detail == "catme" or $detail==930){
?><link href="https://catmag.net/css/catme.css" rel="stylesheet" type="text/css" /><?    
}
?>
<script src="https://catmag.net/js/jquery-1.6.2.min.js" type="text/javascript"></script>
<!-- <script src="https://catmag.net/js/jquery.innerfade.js" type="text/javascript"></script>-->
<script src="https://apis.google.com/js/plusone.js" type="text/javascript"></script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2004798-6']);
  _gaq.push(['_setDomainName', 'none']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<script type="text/javascript">
var newwindow = '';
function fbconnect_open(url) {   
    
        if (!newwindow.closed && newwindow.location) {
                newwindow.location.href = url;
        }
        else {
                newwindow=window.open(url,'menu_win','width=650,height=420');
                if (!newwindow.opener) newwindow.opener = self;
        }
        if (window.focus){
            newwindow.focus()
        }
        return false;
}
</script>
</head>
<body style="margin-top:0px; margin-bottom:0px; background-color:#fbfbfb;">
<?
//include("inc/system_fb_connect.php");
?>
<div id="sitecontainer">
<?include("inc/page_header.php");?>
<?include("inc/page_logomenu.php");?>

<?
//include("inc/page_splash.php");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td width="20">&nbsp;</td> 
        <td>
<?
if ($detail == "catme" && $loggetindkorrekt == true){
    include("inc/page_catme.php");
}else{
?>
<?
if ($um['inc']=="inc/page_splash.php"){
    ?><table width="100%" border="0" cellspacing="0" cellpadding="0"><?
}else{
    ?><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-top:1px solid #dddddd;"><?
}
?>
    <tr>   
        <td valign="top">
        <? include($um['inc']);?>
        </td>
        <td>
        &nbsp;
        </td>
        <?if ($um['box']){?>
        <td valign="top" width="321" style="border-left:1px solid #dddddd;">
            <?include($um['box']);?>
        </td>   
        <?}?>     
    </tr>        
</table>    

<?
}
?>
        </td>
        <td width="16">&nbsp;</td> 
    </tr>
</table>

<?
if ($detail != "catme"){
//// TB DENNIS include("inc/page_teasers.php");
}
?>
<?
//// TB DENNIS include("inc/page_footer.php");?>
<?
if ($response || $responsestd){
include('catmin/incme/0response.php');
}

print $colorpicker;
?>    
</div>
</body>
</html>