<?php
header('Content-Type: '.($is_pc=='1'?'text/vnd.wap.wml':'text/html').'; charset=utf-8');
header('Content-Language: ro-RO');
header('Cache-Control: no-store,no-cache,must-revalidate,max-age=0,post-check=0,pre-check=0');
header('Expires: -1');
if($is_pc<3)
echo'<?xml version="1.0" encoding="utf-8" ?>';
if($is_pc=='1')
echo'<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"><wml xml:lang="ro-RO">';
elseif($is_pc=='2')
echo'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ro-RO">';
else
echo'<!DOCTYPE html><html lang="ro-RO"'.($de==0?' itemscope itemtype="http://schema.org/Blog" prefix="og: http://ogp.me/ns#"':'').'>';
$titlu.=($page>1?' - pagina '.$page:'').$titlul;
echo'<head>';
echo($is_pc>2?'<meta charset="utf-8" />':'<meta http-equiv="content-type" content="'.($is_pc=='1'?'text/vnd.wap.wml':'text/html').'; charset=utf-8" />');
echo($is_pc>1?($domenii_statice[0]!='/'||$domenii_statice[1]!='/img/'||$domenii_statice[2]!='/img/'?'<link rel="dns-prefetch" href="'.$domenii_statice[0].'" /><link rel="dns-prefetch" href="'.$domenii_statice[1].'" /><link rel="dns-prefetch" href="'.$domenii_statice[2].'" />':'').'<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" /><meta name="mobile-web-app-capable" content="yes" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="HandheldFriendly" content="true" />':'');
if($de==0)
echo(isset($head[1])?'<meta '.($is_pc>2?'itemprop':'name').'="description" property="og:description" content="'.$titlu.', '.$head[1].'" />':'').'<meta '.($is_pc>2?'itemprop':'name').'="keywords" content="'.str_replace(['- ','| ',',',' '],['','','',','],$titlu.(isset($head[1])?' '.$head[1]:'')).'" /><meta name="robots" content="'.(isset($head[2])?'no':'').'index,follow,noarchive,noodp,noydir" /><meta name="googlebot" content="nosnippet" /><meta property="og:url" content="'.$adresasite[0].htmlspecialchars($_SERVER['REQUEST_URI']).'" /><meta property="og:locale" content="ro_RO" /><meta property="og:title" content="'.$titlu.'" /><meta property="og:image" content="/'.$conn->query('SELECT`link`FROM`imagini_iconite`WHERE`pid`="3"ORDER BY RAND()LIMIT 1')->fetch_row()[0].'" />';
if($is_pc=='1')
echo'</head><card id="main" title="'.$titlu.'">'.$head[4];
else
{
echo'<link rel="shortcut icon" type="image/x-icon" href="'.$domenii_statice[1].'favicon.ico" /><title>'.$titlu.'</title>'.$head[4].'<style type="text/css">body,h1,h2,h3,h4,h5,h6,textarea{font-size:'.$css[1].'}body,input,select,textarea,.orange,.verde{font-family:"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif}body{color:'.$css[2].';background:'.$css[3].'}a,a:active,a:visited{color:'.$css[4].'}a,a:active,a:visited,.eeepag{text-decoration:none}a:hover,input,select,textarea{background-color:'.$css[5].'}a>img{border:0}input,select,textarea,.eroare,.ok{color:#ffffff}input,select,textarea,.p,.p span,.p spann,.p spannn,.td spannn,.normal span,.normal span2,.normal2,.s3,.reclamealbastra span,.eeepag,.notificare_bula,.orbit{font-weight:bold}.h,.s,.inapoi,.textstang,.eroare,.ok,.reclamealbastra,.orange,.verde{text-align:left}.drept,.f,.p sterge,.p spannn,.n sterge,.normal span,.td spannn{float:right}.h,.i2,.eeepag{background:'.$css[5].'}.h,.eeepag{margin:1px}.h,.normal2{padding-top:5px}.h{padding-left:5px;height:18px}.p{color:#4b3522}.p span,.s3 span,.reclamealbastra span{color:#FF0000}.s,.s3,.sc,.i2,.inapoi,.textstang,.text{border-bottom:'.$css[5].' solid 1px}.s,.sc,.inapoi,.eroare,.ok{margin:0 10px;padding:5px 0 3px}.s,.sc{border-top:red none 0}.sc,.i2,.verset,.spanzu{text-align:center}.i2{color:'.$css[7].';margin:2px 0 0 0;padding:2px 0 2px 0}.margine,.inapoi{background:transparent}.margine,.verset,.inapoi,.textstang,.text{border-top:'.$css[5].' solid 1px;border-left:'.$css[5].' solid 1px;border-right:'.$css[5].' solid 1px}.textstang,.text{margin:0 1px;padding:2px 0 1px}.eroare,.ok,.reclamealbastra,.orange,.verde{border-bottom:solid 1px;border-top:solid 1px;border-right:solid 1px;border-left:solid 1px}.eroare{background:#FF6699}.ok{background:#99CC33}.k,.k2,.m,.n,.o{padding-left:3px}.k,.k2{margin:2px}.reclamealbastra,.orange,.verde{margin:1px 1px 1px 1px;padding:2px 2px 2px 2px}.verset,.textstang,.text,.reclamealbastra{background:'.$css[6].'}.percentbar,.percentbar div{height:10px}.percentbar{background:#b02712;border:1px solid #666666;width:85px}.percentbar div{background:#68b100}#notificare{position:relative}.notificare_bula{position:absolute;top:-6px;right:-6px;padding:3px 4px 3px 4px;background-color:red;color:white;font-size:0.57em;border-radius:10px;box-shadow:1px 1px 1px gray}.p spann,.banat a{color:brown}.normal span{vertical-align:bottom}.normal span2{float:left;padding-top:10px}.banat a{text-decoration:line-through}.admin a{text-decoration:underline;color:red}.a5 a{color:#336699}.a10 a{color:#996699}.a25 a{color:#CC99FF}.a50 a{color:#993399}.a75 a{color:#CC0033}.a100 a{color:#FF0099}.eee{margin:5px;padding:5px}.eeepag{display:inline;border-radius:4px;padding:4px 5px;width:100px}.eeepag a:hover{background:'.$css[7].'}.orbu{border:1px solid #021a40}.orbit{height:20px}header,footer,section,aside,nav,article{display:block}.d16,#notificare{width:16px;height:16px}.d32{width:32px;height:32px}.d64{width:64px;height:64px}.d128{width:128px;height:128px}'.$head[0].'</style>'.($head[3]??'');
###Zăpadă:
/*
echo($is_pc>2?'<script type="text/javascript">var snowmax=25;var snowcolor=new Array("#aaaacc","#ddddff","#ccccdd","#f3f3f3","#f0ffff");var snowtype=new Array("Times","Arial","Times","Verdana");var snowletter="*";var sinkspeed=0.6;var snowmaxsize=30;var snowminsize=8;var snowingzone=1;var snow=new Array();var marginbottom;var marginright;var timer;var i_snow=0;var x_mv=new Array();var crds=new Array();var lftrght=new Array();var browserinfos=navigator.userAgent;var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/);var ns6=document.getElementById&&!document.all;var opera=browserinfos.match(/Opera/);var browserok=ie5||ns6||opera;function randommaker(range){rand=Math.floor(range*Math.random())
return rand}function initsnow(){if(ie5||opera){marginbottom=document.body.scrollHeight;marginright=document.body.clientWidth-15}else if(ns6){marginbottom=document.body.scrollHeight;marginright=window.innerWidth-15}var snowsizerange=snowmaxsize-snowminsize;for(i=0;i<=snowmax;i++){crds[i]=0;lftrght[i]=Math.random()*15;x_mv[i]=0.03+Math.random()/10;snow[i]=document.getElementById("s"+i)
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
snow[i].size=randommaker(snowsizerange)+snowminsize;snow[i].style.fontSize=snow[i].size+\'px\';snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
snow[i].style.zIndex=1000;snow[i].sink=sinkspeed*snow[i].size/5;if(snowingzone==1){snow[i].posx=randommaker(marginright-snow[i].size)}if(snowingzone==2){snow[i].posx=randommaker(marginright/2-snow[i].size)}if(snowingzone==3){snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}if(snowingzone==4){snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
snow[i].style.left=snow[i].posx+\'px\';snow[i].style.top=snow[i].posy+\'px\';}movesnow()}function movesnow(){for(i=0;i<=snowmax;i++){crds[i]+=x_mv[i];snow[i].posy+=snow[i].sink;snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i])+\'px\';snow[i].style.top=snow[i].posy+\'px\';if(snow[i].posy>=marginbottom-2*snow[i].size||parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){if(snowingzone==1){snow[i].posx=randommaker(marginright-snow[i].size)}if(snowingzone==2){snow[i].posx=randommaker(marginright/2-snow[i].size)}if(snowingzone==3){snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}if(snowingzone==4){snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}snow[i].posy=0}}var timer=setTimeout("movesnow()",50)}for(i=0;i<=snowmax;i++){document.write("<span id=\'s"+i+"\' style=\'position:absolute;top:-"+snowmaxsize+"\'>"+snowletter+"</span>")}if(browserok){window.onload=initsnow}</script>':'');
*/
echo($is_pc>2?'<!--[if IE]><script type="text/javascript">(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return\'c("\'+a+\'")\'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</style>";c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);</script><![endif]-->':'');
echo'</head><body>';
unset($css);
}
echo(isset($head[5])?$head[5].($is_pc=='1'?'<p align="left"><small>':'<div class="margine">'):($is_pc=='1'?'<p align="center"><small>':'<div class="margine">'));
unset($head);