-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
173 lines (170 loc) · 8.39 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ERROR);
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();
session_start();
if (substr($_SERVER['SERVER_NAME'], 0, 4) === 'www.')
{
$pageURL = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://";
if ($_SERVER["SERVER_PORT"] != "80")
{
$pageURL .= substr($_SERVER['SERVER_NAME'], 4).":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
}
else
{
$pageURL .= substr($_SERVER['SERVER_NAME'], 4).$_SERVER["REQUEST_URI"];
}
header("HTTP/1.1 301 Moved Permanently");
header('Location: '.$pageURL);
header("Connection: close");
}
//Pieslēgums DB
include "includes/init_sql_latest.php";
include "includes/words.php";
include "includes/functions.php";
$description = "TwitĒdiens ievāc datus no Twitter, kur pieminēta ēšana, dzeršana, ēdienreizes, ēdieni vai dzērieni. Apskatāma detalizēta statistika par šiem datiem.";
$author = "Matīss";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="lv" lang="lv">
<head>
<title>TwitĒdiens - no Twitter par ēšanu</title>
<meta name="viewport" content="width=320, initial-scale=1.0" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes"> -->
<!-- <meta name="viewport" content="width=1100"> -->
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" />
<meta name="DC.title" lang="Latvian" content="TwitĒdiens - no Twitter par ēšanu" />
<meta name="DC.subject" lang="Latvian" content="TwitĒdiens; TwitEdiens; Twitter; Ēdiens; Food; tvīti; statistika; ēšana; dzeršana; ko ēst; ko dzert; tēja; šokolāde; mandarīni; konfektes; pica; saldējums; zupa; kafija; gaļa; kūka; pankūka; čipsi; siers; salāti; kartupeļi; ēdienu karte; ēdāju tops; ēšanas kalendārs; populārākie ēdieni; @M4t1ss; Matīss;; Matīss" />
<meta name="DC.description" lang="Latvian" content="<?php echo $description;?>" />
<meta name="DC.publisher" content="Keda" />
<meta name="DC.contributor" content="<?php echo $author;?>" />
<meta name="DC.creator" content="<?php echo $author;?>" />
<meta name="DC.type" scheme="DCTERMS.DCMIType" content="Text" />
<meta name="DC.format" content="text/html" />
<meta name="DC.format" content="7635 bytes" />
<meta name="DC.identifier" scheme="DCTERMS.URI" content="<?php echo "http://$_SERVER[HTTP_HOST]"; ?>" />
<meta name="DC.language" scheme="DCTERMS.URI" content="Latvian" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index,follow" />
<meta name="description" content="<?php echo $description;?>"/>
<meta name="keywords" content="TwitĒdiens, TwitEdiens, Twitter, Ēdiens, Food, tvīti, statistika, ēšana, dzeršana, ko ēst, ko dzert,
tēja, šokolāde, mandarīni, konfektes, pica, saldējums, zupa, kafija, gaļa, kūka, pankūka, čipsi, siers, salāti, kartupeļi, ēdienu karte,
ēdāju tops, ēšanas kalendārs, populārākie ēdieni, @twitediens"/>
<meta name="author" content="<?php echo $author;?>"/>
<meta property="og:url" content="<?php echo "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="lv_LV" />
<meta property="og:title" content="TwitĒdiens - no Twitter par ēšanu" />
<meta property="og:description" content="<?php echo $description;?>" />
<meta property="og:image" content="<?php echo "http://$_SERVER[HTTP_HOST]"; ?>/img/logo2.png" />
<script type="text/javascript" src="/includes/sorttable.min.js"></script>
<script type="text/javascript" src="/includes/paging.js"></script>
<script type="text/javascript" src="/includes/jq/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="/includes/jq/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="/includes/jq/js/jquery.ui.datepicker-lv.js"></script>
<link href="/includes/apple-touch-icon.png" rel="apple-touch-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="/includes/jq/css/custom-theme/jquery-ui-1.8.16.custom.min.css" />
<link rel="stylesheet" type="text/css" href="/includes/style.css" />
<link rel="stylesheet" type="text/css" href="/includes/print.css" media="print"/>
<script type="text/javascript">
$(document).ready(function () {
$("#contents").fadeIn(1000);
});
function showHide(shID) {
if (document.getElementById(shID)) {
if (document.getElementById(shID+'-show').style.display != 'none') {
document.getElementById(shID+'-show').style.display = 'none';
document.getElementById(shID).style.display = 'block';
}
else {
document.getElementById(shID+'-show').style.display = 'inline';
document.getElementById(shID).style.display = 'none';
}
}
}
</script>
<!-- JSON-LD markup generated by Google Structured Data Markup Helper. -->
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "SoftwareApplication",
"name" : "TwitĒdiens",
"image" : "https://twitediens.lv/img/te.png",
"url" : "https://twitediens.lv/",
"author" : {
"@type" : "Person",
"name" : "Matīss"
},
"softwareVersion" : "1.0"
}
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MT1T7251SJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MT1T7251SJ');
</script>
</head>
<body onload="initialize()">
<?php include_once("includes/analyticstracking.php") ?>
<a href="http://instagram.com/twitediens/"><img alt="Twitēdiena Instragram konts" id="ico1" src="/img/ins.png"/></a>
<a href="http://twitter.com/twitediens/"><img alt="Twitēdiena Twitter konts" id="ico2" src="/img/twi.png"/></a>
<a href="https://translate.tilde.com/webtranslate?url=<?php echo "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; ?>"><img alt="Translate into English" id="ico3" src="/img/uk.png"/></a>
<div class="ribbon"><span><a href="/atskats">Gada atskats</a></span></div>
<h1 style="padding-top:3px;"><img alt="TwitĒdiens Logo" src="/img/te.png" />TwitĒdiens</h1>
<div id="top" style="padding:8px;">
<div id="nav"><a href=""><span style="opacity: 0;">.</span></a>
<a class="htooltip" href="/"><span>Sākums</span><img alt="Sākums" title="Sākums" src="/img/sakums.png"/></a>
<a class="htooltip" href="/draugi"><span>Draugi</span><img alt="Draugi" title="Draugi" src="/img/draugi.png"/></a>
<a class="htooltip" href="/vardi"><span>Ēdieni</span><img alt="Ēdieni" title="Ēdieni" src="/img/edieni.png"/></a>
<a class="htooltip" href="/kalendars"><span>Kalendārs</span><img alt="Kalendārs" title="Kalendārs" src="/img/kalend.png"/></a>
<a class="htooltip" href="/karte"><span>Karte</span><img alt="Karte" title="Karte" src="/img/karte.png"/></a>
<a class="htooltip" href="/tops"><span>Tops</span><img alt="Tops" title="Tops" src="/img/tops.png"/></a>
<a class="htooltip" href="/koest"><span>Ko ēst?</span><img alt="Ko ēst?" title="Ko ēst?" src="/img/koest.png"/></a>
<a class="htooltip" href="/statistika"><span>Statistika</span><img alt="Statistika" title="Statistika" src="/img/stat.png"/></a>
</div>
</div>
<div id="contents" style="display: none;margin-top:5px;margin-bottom:5px;padding:6px;">
<?php
if ( !isset($_GET['id']) || $_GET['id'] == "" ) {
include "stream.php";
} else {
$id = $_GET['id'];
include($id.".php");
}
?>
<br class="clear" />
<br/>
</div>
<div id="bottom" style="padding:8px;">
<div style="text-align:center;">
<div style="padding:5px;font-weight:bold;">
<a href="index.php?id=pics">Attēli</a> |
<a href="index.php?id=sarunas">Savstarpējie pļāpas</a> |
<a href="index.php?id=app/app">Mobilā lietotne</a> |
<a href="blog">Blogs</a> |
<a href="par">Par TwitĒdienu</a>
</div>
© 2011-<?php echo date('Y');?> Twitēdiens.<br/>
</div>
<div style="text-align:center;">
<a href="http://lielakeda.lv">LielaKeda.lv</a>;
<a href="https://twitter.com/LielaKeda">@LielaKeda</a>;
<div class="vcard" style="display:inline;">
<span class="fn" style="display:inline;">
<a href="http://mattfoto.info/me">Matīss</a>
</span>
<div class="adr">
<span class="locality">Tukums</span>, <span class="region">LV</span>
<span class="postal-code">3101</span>
</div>
</div>
</div>
</div>
</body>
</html>