clanbase-members
Code (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
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
<?
# Gamaakt door: Boaz den Besten
# Gemaakt op: 15/02/2005
# Website: www.n3rd.nl
# Last update: 26/04/2005
# Enter your clanID:
$cid = 837243; # 393769
# Het adres van de CB main page:
$cb = "http://www.clanbase.com/claninfo.php";
# CB gegevens ophalen:
$info = file($cb . "?cid=" . $cid);
# De landen:
$landen = array(
'<img alt="NL" src="image/nl.gif">' => "Netherlands",
'<img alt="BE" src="image/be.gif">' => "Belgium",
'<img alt="FR" src="image/fr.gif">' => "France",
'<img alt="UK" src="image/uk.gif">' => "United Kingdom"
);
foreach($info as $key => $value)
{
if(strpos($info[$key], "<li>Members</li>"))
{
$regel = $key;
}
}
$tr = explode("<tr>", $info[$regel]);
for($i=0; $i<count($tr); $i++)
{
$tr[$i] = str_replace('personinfo.php', '[MEMBER]', $tr[$i]);
$tr[$i] = str_replace('</a>', '[END]', $tr[$i]);
$tr[$i] = str_replace('nsub', '[STATUS]', $tr[$i]);
if(strpos($tr[$i], '[STATUS]'))
{
echo "\n<p><b>" . strip_tags($tr[$i]) . "</b></p>\n\n";
}
if(strpos($tr[$i], '[MEMBER]'))
{
foreach($landen as $key => $value)
{
if(strpos($tr[$i], $value))
{
$flag = $key;
}
}
$tr[$i] = strip_tags($tr[$i]);
$disp = explode('[END]',$tr[$i]);
echo $flag . " " . $disp[0] . "<br>\n";
}
}
?>
# Gamaakt door: Boaz den Besten
# Gemaakt op: 15/02/2005
# Website: www.n3rd.nl
# Last update: 26/04/2005
# Enter your clanID:
$cid = 837243; # 393769
# Het adres van de CB main page:
$cb = "http://www.clanbase.com/claninfo.php";
# CB gegevens ophalen:
$info = file($cb . "?cid=" . $cid);
# De landen:
$landen = array(
'<img alt="NL" src="image/nl.gif">' => "Netherlands",
'<img alt="BE" src="image/be.gif">' => "Belgium",
'<img alt="FR" src="image/fr.gif">' => "France",
'<img alt="UK" src="image/uk.gif">' => "United Kingdom"
);
foreach($info as $key => $value)
{
if(strpos($info[$key], "<li>Members</li>"))
{
$regel = $key;
}
}
$tr = explode("<tr>", $info[$regel]);
for($i=0; $i<count($tr); $i++)
{
$tr[$i] = str_replace('personinfo.php', '[MEMBER]', $tr[$i]);
$tr[$i] = str_replace('</a>', '[END]', $tr[$i]);
$tr[$i] = str_replace('nsub', '[STATUS]', $tr[$i]);
if(strpos($tr[$i], '[STATUS]'))
{
echo "\n<p><b>" . strip_tags($tr[$i]) . "</b></p>\n\n";
}
if(strpos($tr[$i], '[MEMBER]'))
{
foreach($landen as $key => $value)
{
if(strpos($tr[$i], $value))
{
$flag = $key;
}
}
$tr[$i] = strip_tags($tr[$i]);
$disp = explode('[END]',$tr[$i]);
echo $flag . " " . $disp[0] . "<br>\n";
}
}
?>