<?
@include("config.php");
$echo .= $_SESSION[pokaz];
$_SESSION[pokaz] = "";
if($mozna_pokazac == 1) {
if(@(!include($file)) && $array_pages[$id][0] != "empty") {
$echo .= red("Error 404 - podana strona nie istnieje");
}
}
$head1 = "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
<meta name='keywords' content='$config_[keywords]'>
<meta name='description' content='$config_[description]'>
<meta name='author' content='$config_[author]'>
<meta name='language' content='pl'>
<link rel='shortcut icon' href='favicon.ico'>
<meta name='reply-to' content='$config_[email]'>
<title>$config_[page_name]</title>
<link title="style" type="text/css" rel="stylesheet" href="img/style.css">
<script type="text/javascript">
function wind(adres,szerokosc,wysokosc)
{
var od_lewej = (screen.width/2)-(szerokosc/2);
var od_gory = (screen.height/2)-(wysokosc/2);
(window.open(adres,'','toolbar=no,scrollbars=yes,resizable=yes,menubar=no,location=no,status=no,directo
ries=no,width='+ szerokosc +',height='+ wysokosc +',left='+ od_lewej +',top='+ od_gory)).focus();
}
kierowany = 1;
function dopisz(zaw){
var ns6=document.getElementById&&!document.all;
var ie4=document.all;
var ns4=document.layers;
if(ie4){
document.all['odpowiedzi'].innerHTML = zaw;
}
if(ns4){
cadesc = document.layers.odpowiedzi;
cadesc.document.open();
cadesc.document.write(zaw);
cadesc.document.close();
}
if(ns6){
document.getElementById('odpowiedzi').innerHTML = zaw;
}
}
</script>
";
$head = $head1.$head;
$body1 .= "
</head>
<body";
if($_SESSION[visit] != 1) {
$query = "SELECT * FROM `reklamy` WHERE `type`=3 AND `status`=1";
$result = mysql_query($query);
if(@mysql_num_rows($result) > 0) {
$body1 .= " onLoad=""";
while($row = mysql_fetch_assoc($result)) {
$body1 .= "wind('popup.php',750,550);n";
}
}
}
$_SESSION[visit] = 1;
if($waruser) {
$query = "SELECT * FROM `mails` WHERE `status`=1 AND `to`='$user_[id]' AND `read`='0'";
$result = @mysql_query($query);
$num = @mysql_num_rows($result);
if($num > 0) {
$body1 .= " onClick="if(kierowany == 1) {
kierowany = 2;n";
$i = 0;
$body1 .= "wind('new.php?id=$row[id]',450,300);n";
$i++;
}
$body1 .= "
}"";
}
}
$body1 .= ">
<div style='display: block; text-align: center;' id='div_load'>
<br><br><br><br>
<table align='center' border=0>
<tr><td style='width: 600px; background-color: #CC8181; text-align: center; padding: 25px; font-weight: bold;'>
Przegądarka ma wyłączoną obsługę JavaScriptu.<br><br>
Włącz ją, a następnie odśwież stronę lub kliknij <a href=''>tu</a>.
</table>
</div>
<div style='display: none;' id='div_main'>
<script type='text/javascript'>
<!--
document.getElementById('div_load').style.display = 'none';
document.getElementById('div_main').style.display = 'block';
//-->
</script>
<table align='center' border=0 cellspacing=0 cellpadding=0><tr><td>
<table width="800" align="center" border="0" cellspacing="0" cellpadding="0">
";
if($rekl = reklama(2)) $body1 .= "<tr><td align='center'>$rekl</td></tr>";
$body1 .= "<tr><td style="background: url('img/logo.gif') no-repeat">
<table border=0 cellspacing=0 cellpadding=0 width='100%'>
<tr><td><img src='img/pixel.gif' height=125 width=1></td>
<td valign=top align=right><table align=right border=0 cellspacing=0 cellpadding=0>
<tr><td colspan=2><img src='img/pixel.gif' height=11 width=1></td>
<tr><td style='background: #FFB0B0; border: 2px solid #DF1B1B; padding-top: 2px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; text-align: center;'>";
$query = "SELECT * FROM `users` WHERE `status`=1 OR `status`=3";
$result = @mysql_query($query);
$num1 = @mysql_num_rows($result);
$query = "SELECT
* FROM `users` WHERE
((`
time`
+'".SESSION_TIME."')>'".time()."' AND `session`
<>'123') AND
(`status`
=1 OR `status`
=3)"; $result = @mysql_query($query);
$num2 = @mysql_num_rows($result);
$body1 .= "<b>On-line: <a href='index.php?id=6' style='color: #338833'>$num2</a> / <span style='color: #CC0000'>$num1</span></b>";
if($waruser) $body1 .= "<br><a href='index.php?id=110'><b>Szukaj osoby</b></a>";
$body1 .= "<td width=11></td></tr></table>
</table></td></tr>
<tr><td class="menu">";
@include("menu.php");
$id = get_id();
$body1 .= "</td></tr>
<tr><td><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td class="bel_menu1"><img src="img/bel_menu1.gif" height="10"></td><td class="bel_menu2" align="right"><img src="img/bel_menu3.gif" height="10"></td></tr></table></td></tr>
<tr><td class="onliner"><table width='100%' border=0 cellspacing=0>
<tr><td width=1 style='padding-left: 3px; padding-right: 2px;'>";
if($waruser) $body1 .= "<a href='index.php?id=105'><img src='img/onliner.gif' alt='Onliner'></a>";
else $body1 .= "<img src='img/onliner.gif' alt='Onliner'>";
$body1 .= "</td>
<td>
<object style='background-color: #FFB4B4' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="470" height="19" id="onliner" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="onliner.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFB4B4" />
<embed src="onliner.swf" quality="high" bgcolor="#FFB4B4" width="470" height="19" name="onliner" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td><td align=right style='padding-right: 10px; padding-top: 0px;'>";
if($waruser == 1) {
$body1 .= "Witaj <a href='index.php?id=119'><b>$user_[nick]</b></a>";
if($user_[status] == 3) $body1 .= " (<u>a</u>)";
$body1 .= " - <a href='index.php?id=101'>Wyloguj</a>";
}
else $body1 .= "<a href='index.php?id=0'>Zaloguj się</a>";
$id = get_id();
$body1 .= "
</table></td></tr>
<tr><td class="bel_main"> </td></tr>
<tr><td><table width="100%" border="0" cellspacing="0">
<tr height="300">
<td class="main" valign="top" align="center">
<span style='font-size: 18px; font-weight: bold; color: #773333; font-family: arial;'>".$array_pages[$id][1]."</span><br><br>";
$body2 .= " <br><br><br>".reklama(0)."</td>
";
$body3 .= "
</tr>
</table></td></tr>
<tr><td><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td class="bel_foot1"><img src="img/bel_foot1.gif" height="10"></td><td class="bel_foot2" align="right"><img src="img/bel_foot3.gif" height="10"></td></tr></table></td></tr>
<tr><td class="footer">
© Copyrights Reserved by $vinnes<sup>®</sup><br>
Godzina serwerowa: ".date("d.m.Y - H:i:s")."<br> <a href='index.php?id=8'>Regulamin</a> | <a href='index.php?id=9'>Reklama</a> | <a href='index.php?id=10'>O Vinnes.PL/Kontakt</a> | <a href='index.php?id=11'>Mapa strony</a>
</td></tr>
<tr><td class="bel_footer" style='font-size: 6px;'> </td></tr>
</table></td>
";
if($rekl = reklama(1)) $body3 .= "<td width=130 valign='top' style='vertical-align: top'><br><br><br><br>$rekl";
$body3 .= "</table>
</div>
</body>
</html>";
if((!$waruser || $waradmin) && get_id() != 2) $_SESSION[echo1] .= login("index.php","",0);
$echo2 .= $_SESSION[echo1];
$echo2 = "";
$show = $head.$body1.$echo.$body2.$echo2.$body3;
?>