þÿ<?php session_start(); if(!file_exists('class/config.php')) {header('Location:install.php');exit;} ini_set('display_errors',1); error_reporting(E_ALL ^ E_NOTICE); include('class/db.php'); include('class/function.php'); include('class/view.php'); $s = $db->db_array($db->query("SELECT * FROM ".DB_PREFIX."settings LIMIT 1")); if(!empty($_GET['lang']) && file_exists('lang/'.$_GET['lang'].'.php')) $_SESSION['lang']=$_GET['lang']; else if(empty($_SESSION['lang'])) $_SESSION['lang']=$s['lang']; include('lang/'.$_SESSION['lang'].'.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><? echo $f->site_title($_GET['a']);?> <? echo $s['seo_title'];?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="<?php echo str_replace(' ',',',str_replace('- ','',$f->site_title($_GET['a']))).$s['seo_keyword'];?>" /> <meta name="description" content="<?php echo $f->site_descript($_GET['a'],$f->site_title($_GET['a']).$s['seo_descript']);?>" /> <meta name="robots" content="all" /> <base href='<? echo $s['url'];?>' /> <link rel="alternate" type="application/rss+xml" title="kwejk" href="rss.php" /> <link href="css/kwejk.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.lazyload.js"></script> <script type="text/javascript" src="js/script.js"></script> <? echo stripslashes($s['meta']);?> </head> <body> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> <div id='top'> <h1 class='logo'><a href='index.php' title='kwejk'>Kwejk.<span>i50</span>.pl</a></h1> <div class='like_button'> <iframe src="http://www.facebook.com/plugins/like.php?href=<? echo $s['site_url'];?>&amp;send=true&amp;layout=button_count&amp;width=100&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> </div> <div class='rss'> <a href='templates/rss.php' title='RSS'><img src='gfx/rss.png' alt='rss' style='border:0px;vertical-align:right' /></a> </div> </div> <div id='menu'> <ul> <? if($_SESSION['zalogowany']!='ok'){?> <li><a class='register' href='register.html' title='<? echo $lang[3];?>'><? echo $lang[3];?></a></li> <li><a class='a_login' href='login.html' title='<? echo $lang[0];?>'><? echo $lang[0];?></a></li><? } else {?> <li><a href='profile/add' title='<? echo $_SESSION['user_name'];?>'><? echo $_SESSION['user_name'];?></a></li> <li><a href='wall/show/' title='<? echo $lang[10];?>'><? echo $lang[10];?></a></li> <li><a href='logout' title='<? echo $lang[11];?>'><? echo $lang[11];?></a></li> <? if($_SESSION['admin']=='yes'){?><li><a href='admin' title='admin' style='color:red'>Panel</a></li><?}}?> </ul> <ul class='right'> <li><a href='top' title='<? echo strip_tags($lang[16]);?>'><? echo $lang[16];?></a></li> <li><a href='random.html' title='<? echo $lang[14];?>'><? echo $lang[14];?></a></li> <li><a href='add.html' title='<? echo $lang[15];?>'><? echo $lang[15];?></a></li> <li><a href='poczekalnia/1' title='<? echo $lang[19];?>'><? echo $lang[19];?></a></li> </ul> </div> <div class='wrap'>&nbsp;</div> <div id='content'> <div class='ads'> <? echo $f->ads(1);?> </div> <div id='obrazki'> <?php $limit = $s['limit']; $page = (int)$_GET['page']; $pages = $f->xy($page,$limit); switch($_GET['a']){ case "add": require('templates/add.php'); break; case "contact": require('templates/contact.php'); break; case "regulamin": require('templates/regulamin.php'); break; case "logout": if($_SESSION['zalogowany']=='ok'){ $_SESSION['zalogowany']=''; $_SESSION['user_name']=''; $_SESSION['user_id']=''; $_SESSION['admin']=''; echo $lang[29]." <script>window.location.href='index.php';</script>"; } break; case "random": $r = $db->db_array($db->query("SELECT `id`,`title` FROM `".DB_PREFIX."image` WHERE `activ`='1' ORDER BY RAND() LIMIT 1"));if(!empty($r['id']) && !empty($r['title'])) echo "<script>window.location.href='".$r['id']."/".$f->furl($r['title'])."'</script>"; break; case "edit_profile": require('templates/edit_profile.php'); break; case "profile": require('templates/profile.php'); break; case "kwejk": require('templates/view.php'); break; case "login": require('templates/login.php'); break; case "register": require('templates/register.php'); break; case "poczekalnia": require('templates/wait_room.php'); break; case "favorite": require('templates/favorite.php'); break; case "admin": require('templates/admin.php'); break; case "option": $f->admin_option($_GET['action'],$_GET['item']); break; default: require('templates/default.php'); break; } ?> </div> <div class='ads2'> <!--- REKLAMA START //--> <? echo $f->ads(3);?> <!--- REKLAMA END //--> </div> <div id='stopka'> <a href='contact.html' title='Kontakt'>[ Kontakt ]</a> [ Regulamin ] [ Informacje ]<br /> Code by <a href='http://mastx-net.eu' title='Tworzenie stron www'>mastx-net.eu</a> </div> <? include('templates/shares.php');?> </div> </body> </html>