]> jfr.im git - irc/kvirc/kvirc-www.git/blob - index.php
Release 5.2.4
[irc/kvirc/kvirc-www.git] / index.php
1 <?php
2 // Security check
3 unset($checkNetHack);
4 unset($_GET['checkNetHack']);
5 $checkNetHack=0;
6
7 require('conf/packages.php');
8 require('conf/functions.php');
9
10 // Set environment
11 $docRoot = $_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['SCRIPT_NAME']);
12
13 // Get the page using GET value
14 $id = trim(strip_tags(htmlentities($_GET['id'],ENT_QUOTES)));
15 if(strpos($id, '..') === TRUE)
16 header('Location: .');
17
18 // Set browser lang
19 $lang = setlang();
20
21 require('conf/config.php');
22
23 // Search activated
24 search();
25 ?>
26 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
27 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
28 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
29 <head>
30 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
31 <meta http-equiv="cache-control" content="no-cache" />
32 <meta name="robots" content="index,follow" />
33 <meta name="copyright" content="etherea` ./LSD @ virg0.org | CreativeCode | KVIrc.net" />
34 <meta name="copyright" content="HelLViS69 hellvis69 @ gmail.com | GPL | KVIrc.net" />
35 <meta name="author" content="etherea` - graphics - ./LSD @ virg0.org" />
36 <meta name="author" content="HelLViS69 - code - hellvis69 @ gmail.com" />
37 <meta name="distribution" content="global" />
38 <meta name="description" content="KVIrc.net - The K-Visual IRC client" />
39 <meta name="keywords" content="KVIrc, KDE, IRC, Chat, pragma" />
40 <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout4_setup.css" />
41 <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout4_text.css" />
42 <link rel="icon" type="image/x-icon" href="favicon.ico" />
43 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
44 <link rel="alternate" type="application/rss+xml" href="rss.php" title="KVIrc News" />
45 <script type="text/javascript" src="conf/functions.js"></script>
46 <title>KVIrc.net - The Visual IRC Client</title>
47 </head>
48 <body>
49 <div class="page-container">
50 <div class="header">
51 <div class="header-top"></div>
52 <div class="header-middle">
53 </div>
54 <div class="header-bottom">
55 <div class="nav2">
56 <ul>
57 <li><a href=".">Home</a></li>
58 </ul>
59 <ul>
60 <li><a href="#"><?php echo $template['index']['theproject']?></a>
61 <ul>
62 <li><a href="?id=status&amp;lang=<?php echo $lang?>"><?php echo $template['index']['status']?></a></li>
63 <li><a href="?id=features&amp;lang=<?php echo $lang?>"><?php echo $template['index']['features']?></a></li>
64 <li><a href="?id=license&amp;lang=<?php echo $lang?>"><?php echo $template['index']['license']?></a></li>
65 <li><a href="?id=screen&amp;lang=<?php echo $lang?>"><?php echo $template['index']['screens']?></a></li>
66 </ul>
67 </li>
68 </ul>
69 <ul>
70 <li><a href="#"><?php echo $template['index']['running']?></a>
71 <ul>
72 <li><a href="?id=download&amp;lang=<?php echo $lang?>"><?php echo $template['index']['download']?></a></li>
73 <li><a href="?id=releases&amp;lang=<?php echo $lang?>"><?php echo $template['index']['releases']?></a></li>
74 <li><a href="https://github.com/kvirc/KVIrc/wiki/Downloading-KVIrcs-nightly-source-or-binaries#source-downloads-master"><?php echo $template['index']['snapshots']?></a></li>
75 <li><a href="https://github.com/kvirc/KVIrc"><?php echo $template['index']['git']?></a></li>
76 <li><a href="https://github.com/kvirc/KVIrc/wiki/installation"><?php echo $template['index']['install']?></a></li>
77 </ul>
78 </li>
79 </ul>
80 <ul>
81 <li><a href="#"><?php echo $template['index']['docs']?></a>
82 <ul>
83 <li><a href="?id=faq&amp;lang=<?php echo $lang?>"><?php echo $template['index']['faq']?></a></li>
84 <li><a href="javascript:opendoc('https://github.com/kvirc/KVIrc/wiki/FAQ');"><?php echo $template['index']['faq2']?></a></li>
85 <li><a href="javascript:opendoc('api');"><?php echo $template['index']['api']?></a></li>
86 <li><a href="javascript:opendoc('doc');"><?php echo $template['index']['doc']?></a></li>
87 <li><a href="?id=tutorials&amp;lang=<?php echo $lang?>"><?php echo $template['index']['tutorials']?></a></li>
88 <li><a href="javascript:opendoc('https://github.com/kvirc/KVIrc/wiki/Keyboard-shortcuts');"><?php echo $template['index']['shortcuts']?></a></li>
89 </ul>
90 </li>
91 </ul>
92 <ul>
93 <li><a href="#"><?php echo $template['index']['graphsuite']?></a>
94 <ul>
95 <li><a href="?id=themes&amp;lang=<?php echo $lang?>"><?php echo $template['index']['themes']?></a></li>
96 <li><a href="?id=splash&amp;lang=<?php echo $lang?>"><?php echo $template['index']['splash']?></a></li>
97 <li><a href="?id=banners&amp;lang=<?php echo $lang?>"><?php echo $template['index']['banners']?></a></li>
98 <li><a href="?id=arts&amp;lang=<?php echo $lang?>"><?php echo $template['index']['arts']?></a></li>
99 </ul>
100 </li>
101 </ul>
102 <ul>
103 <li><a href="#"><?php echo $template['index']['misc']?></a>
104 <ul>
105 <li><a href="?id=honor&amp;lang=<?php echo $lang?>"><?php echo $template['index']['honor']?></a></li>
106 <li><a href="https://github.com/kvirc/KVIrc/wiki/Updating-KVIrc's-translations"><?php echo $template['index']['translations']?></a></li>
107 <li><a href="?id=scripts&amp;lang=<?php echo $lang?>"><?php echo $template['index']['scripts']?></a></li>
108 <li><a href="?id=addons&amp;lang=<?php echo $lang?>"><?php echo $template['index']['addons']?></a></li>
109 <li><a href="?id=tools&amp;lang=<?php echo $lang?>"><?php echo $template['index']['tools']?></a></li>
110 </ul>
111 </li>
112 </ul>
113 <ul>
114 <li><a href="#"><?php echo $template['index']['contact']?></a>
115 <ul>
116 <li><a href="?id=help&amp;lang=<?php echo $lang?>"><?php echo $template['index']['help']?></a></li>
117 <li><a href="?id=contribute&amp;lang=<?php echo $lang?>"><?php echo $template['index']['contribute']?></a></li>
118 <li><a href="?id=donate&amp;lang=<?php echo $lang?>"><?php echo $template['index']['donation']?></a></li>
119 <li><a href="javascript:opendoc('https://github.com/kvirc/KVIrc/issues');" title="KVIrc bugtrack"><?php echo $template['index']['bugtrack']?></a></li>
120 </ul>
121 </li>
122 </ul>
123 </div>
124 </div>
125 <div class="header-breadcrumbs">
126 <ul>
127 <li><a href="https://github.com/kvirc/KVIrc/releases" title="Get the latest build"><?php echo $template['index']['quickdnl']?></a></li>
128 </ul>
129 <div class="searchform">
130 <form action="<?php echo "?id=$id&amp;lang=$lang"?>" method="post" class="form">
131 <fieldset>
132 <input type="text" name="keywords" value="<?php echo $template['index']['search']?>..." class="field" onclick="this.value=''" />
133 <input type="hidden" name="type" value="site" />
134 <input type="submit" name="button" value="<?php echo $template['index']['go']?>!" class="button" />
135 </fieldset>
136 </form>
137 </div>
138 </div>
139 </div>
140
141 <div class="main">
142 <div class="main-navigation">
143 <div class="round-border-topright"></div>
144 <h1 class="first"><img src="img/internet-news-reader.png" alt="<?php echo $template['index']['latestnews']?>" width="16" height="16" class="noborder" /><?php echo $template['index']['latestnews']?></h1>
145
146 <!-- inserire codeswitch news-->
147 <dl class="nav3-grid">
148 <?php
149 $latestnews = array();
150 news_scan_dir($docRoot . '/news/latest', $latestnews);
151 for($i = 0; $i < 10; $i++):
152 if(basename($latestnews[$i]) == ''):
153 break;
154 endif;
155 $x['dummy'] = '';
156 news_read_entry($latestnews[$i], $x);
157 $news = $x['day'] . ' ' . $x['monthname'] . ' ' . $x['year'] . '<br />' . $x['short'];
158 ?>
159 <dt><a href="?id=news&amp;story=<?php echo basename($latestnews[$i])?>&amp;dir=latest&amp;lang=<?php echo $lang?>"><?php echo $news?></a></dt>
160 <?php endfor; ?>
161 <dt><a href="?id=news&amp;dir=latest&amp;lang=<?php echo $lang?>"><?php echo $template['index']['allnews']?></a></dt>
162 </dl>
163
164 <h1><img src="img/internet-web-browser.png" alt="<?php echo $template['index']['mirrors']?>" class="noborder" /><?php echo $template['index']['mirrors']?></h1>
165 <h3><?php echo $template['index']['wwwmirrors']?></h3>
166 <p>
167 <?php foreach($www_mirror as $key => $value): ?>
168 <a href="<?php echo $value['url']?>" class="info"><?php echo $value['name']?><span><br /><?php echo $value['desc']?><br /><?php echo $template['custom']['city']?>: <?php echo $value['city']?><br /><?php echo $template['custom']['maintainer']?>: <?php echo $value['maintainer']?></span></a><br />
169 <?php endforeach; ?>
170 </p>
171 <h3><?php echo $template['index']['ftpmirrors']?></h3>
172 <p>
173 <?php foreach($ftp_mirror as $key => $value): ?>
174 <a href="<?php echo $value['url']?>" class="info"><?php echo $value['name']?><span><br /><?php echo $value['desc']?><br /><?php echo $template['custom']['city']?>: <?php echo $value['city']?><br /><?php echo $template['custom']['maintainer']?>: <?php echo $value['maintainer']?></span></a><br />
175 <?php endforeach; ?>
176 </p>
177 </div>
178
179 <div class="main-content">
180 <?php
181 // checking for page existance
182 if(!file_exists("./content/$id.php")):
183 include("content/welcome.php");
184 else:
185 include("./content/$id.php");
186 endif;
187 ?>
188 <hr class="clear-contentunit" />
189 </div>
190
191 <div class="main-subcontent">
192 <!-- <div class="subcontent-unit-border">
193 <div class="round-border-topleft"></div><div class="round-border-topright"></div>
194 <h1><img src="img/applications-graphics.png" alt="<?php echo $template['index']['latestscreen']?>" /><?php echo $template['index']['latestscreen']?></h1>
195 <p class="center">
196 <img src="img/themes/thumb_anger.png" alt="Anger Theme - KVIrc &quot;Anomalies&quot;" /><br />
197
198 <a href="javascript:opendoc('http://kvirc.virg0.org/themes.htm');" title="Anger Theme @ kvirc.virg0.org">Anger theme</a> - <a href="mailto:cle [at] virg0 [dot] org" title="mail etherea`">etherea`</a><br />
199 KVIrc Anomalies
200 </p>
201 </div> //-->
202 <div class="subcontent-unit-border">
203 <div class="round-border-topleft"></div>
204 <div class="round-border-topright"></div>
205 <h1><img src="img/help-browser.png" alt="finding help" /><?php echo $template['index']['help']?></h1>
206 <p class="center">
207 <?php echo $template['index']['helptext1a']?> <a href="https://github.com/kvirc/KVIrc/issues" title="<?php echo $template['index']['helptext1b']?>"><?php echo $template['index']['helptext1b']?></a><br /><br /><?php echo $template['index']['helptext1c']?><br />
208
209 <a href="irc://irc.libera.chat/KVIrc">#kvirc@libera.chat</a>
210 </p>
211 </div>
212 <div class="subcontent-unit-border-orange">
213 <div class="round-border-topleft"></div>
214 <div class="round-border-topright"></div>
215 <h1 class="orange"><img src="img/media-record.png" alt="<?php echo $template['index']['bugreport']?>" /><?php echo $template['index']['bugreport']?></h1>
216 <p class="center">
217 <?php echo $template['index']['bugstext']?> <a href="javascript:opendoc('https://github.com/kvirc/KVIrc/issues');" title="<?php echo $template['index']['bugtrack']?>"><?php echo $template['index']['bugtrack']?></a>
218 </p>
219 </div>
220 <div class="subcontent-unit-border">
221 <div class="round-border-topleft"></div>
222 <div class="round-border-topright"></div>
223 <h1><img src="img/document-open.png" alt="<?php echo $template['index']['moredocs']?>" /><?php echo $template['index']['moredocs']?></h1>
224 <p class="center">
225 <a href="javascript:opendoc('/doc');" title="<?php echo $template['index']['officialdocs']?>"><?php echo $template['index']['officialdocs']?></a><br /><?php echo $template['index']['docsauto']?>
226 </p>
227 </div>
228 </div>
229 </div>
230
231 <div class="footer">
232 <p>KVIrc.net | (c) 2007-<?php echo date("Y")?> ./LSD - CreativeCode | <?php echo $template['index']['footer']?></p>
233 <p class="credits"><a href="javascript:opendoc('http://validator.w3.org/check/referer');" title="Validate XHTML code">XHTML 1.1</a> | <a href="javascript:opendoc('http://jigsaw.w3.org/css-validator/check/referer');" title="Validate CSS code">CSS 2.1</a> | credits</p>
234 </div>
235 </div>
236 </body>
237 </html>