-
Notifications
You must be signed in to change notification settings - Fork 4
/
rss2.php
99 lines (82 loc) · 2.11 KB
/
rss2.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
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<?php
$active=array('cc'=>0,'en'=>1,'fr'=>2,'de'=>3,'ru'=>4,'nl'=>5,'cz'=>6,'hr'=>7);
$linkfield=8;
$memberfield=9;
if (!isset($active[$_REQUEST['lang']])) {
$lang = 1;//"en";
} else {
$lang = $active[$_REQUEST['lang']];
}
$row = 1;
if (($handle = fopen("pp-links-prov.csv", "r")) === FALSE) {
echo "File error";
die();
}
$keys = fgetcsv($handle);
while (($data = fgetcsv($handle)) !== FALSE) {
$countries[$data[0]]=array($data[$lang],$data[$linkfield],$data[$memberfield]);
}
fclose($handle);
array_multisort($countries);
foreach ($countries as $k=>$n){
if (isset($_REQUEST['onlymembers']) && ($n[2]!=='yes')){
continue;
}
if ($k==='PP'){
$n[0]='PPI';
if (!isset($_REQUEST['showppi'])){
continue;
}
}
//if ($_REQUEST['code']==='wiki'){
//} else {
if ($n[1]!=='') {
echo "<a href='".$n[1]."'>";
}
if(!isset($_REQUEST['nopic'])) {
echo "<img src='http://pp.3025-game.de/flags/".strtolower($k).".gif' border='0' /> ";
}
if (($n[2]==='yes') && (isset($_REQUEST['showmembers']))){
echo "<b>".$n[0]."</b></a><br />";
} else {
echo $n[0]."</a><br />";
}
//}
}
/*array_multisort($name, $country,$link,$member);
foreach ($name as $k=>$n){
echo "<br /><a href='".$link[$k]."'>";
if($_REQUEST['nopic'] != 1) {
echo "<img src='http://pp.3025-game.de/flags/".strtolower($country[$k]).".gif' border='0' /> ";
}
if ($member[$k]==='yes'){
echo $name[$k]."</a>";
} else {
echo "<b>".$name[$k]."</b></a>";
}
}
/*
include("names.php");
include("list.php");
/*if($active[$_REQUEST['lang']] != 1) {
$_REQUEST['lang'] = "en";
}
#header("Content-type: text/html");
asort($$_REQUEST['lang']);
foreach($$_REQUEST['lang'] as $key=>$elem) {
if($key != $_REQUEST['origin'] && $PP[$key]) {
echo "<br /><a href='".$PP[$key]."'>";
if($_REQUEST['nopic'] != 1) {
echo "<img src='http://pp.3025-game.de/flags/".strtolower($key).".gif' border='0' /> ";
}
echo $elem."</a>";
}
}*/
?>
</body>
</html>