![]() |
|
|
empty($_GET[id])?$id=1:$id=$_GET[id]; $ar = array(
1=> "onas",
11=> "11",
12=> "12",
13=> "13",
132=> "132",
133=> "133",
134=> "134",
135=> "135",
136=> "136",
14=> "14",
2=> "2",
21=> "21",
2150=> "21ba",
2151=> "21tt",
2152=> "21tn",
2153=> "21nr",
2154=> "21za",
2155=> "21bb",
2156=> "21po",
2157=> "21ke",
211=> "211",
212=> "212",
213=> "213",
22=> "22",
23=> "23",
3=> "3",
31=> "31",
311=> "311",
312=> "312",
313=> "313",
314=> "314",
315=> "315",
316=> "316",
317=> "317",
318=> "318",
319=> "319",
32=> "32",
33=> "33",
34=> "34",
35=> "35",
36=> "36",
4=> "kontakty",
41=> "41",
42=> "42",
43=> "43",
);
@mysql_connect('localhost', 'mysql_onkologia', 'fst6WHs3');
@mysql_select_db('onkologia');
mysql_query('set character set cp1250');
mysql_query('set names cp1250');
if(!isset($_GET['module']) || $_GET['module'] != 'news')
{
$fp = @fopen("./".$ar[$id].".html", "r"); @fpassthru($fp);
}
else
{
if(!isset($_GET['show']))
{
$result = mysql_query('select * from novinky where id = \''.mysql_escape_string($_GET['id']).'\'');
if($news = mysql_fetch_assoc($result))
{
echo $news['text'];
}
}
else if($_GET['show']== 'archive')
{
$result = @mysql_query('select * from novinky order by id desc');
while($news = @mysql_fetch_assoc($result))
{
echo ' '.$news['intro'].' |
> Archív |
|
O nás | Onkológia na Slovensku | Informačné zdroje | Kontakty |
|