Voor de liefhebber:
code:
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
| <?
// tussenstand wk2002 ripper
$wk_score_file_source = "http://www.viplanet.nl/livematches2.html";
$file = fopen($wk_score_file_source, "r");
$wk_score_file = fread($file, 50000);
if($wk_score_file){
$pos = 0;
while(is_long($pos = strpos(strtolower($wk_score_file), '<table border="0" cellspacing="0" cellpadding="0" width="100%">', $pos))){
$pos += 63;
$end_pos = strpos($wk_score_file, '</table>', $pos);
$wk_score_ripped = substr($wk_score_file, $pos, $end_pos - $pos);
$wk_score_ripped = ereg_replace('src="', 'src="http://www.viplanet.nl', $wk_score_ripped);
}
}else{
$wk_score_ripped = "Er is geen tussenstand beschikbaar.";
}
?>
<html>
<head>
<meta http-equiv="refresh" content="20">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<title>Live Match</title>
</head>
<style type="text/css">
<!--
body {font-family:verdana, helvetica, arial, sans-serif;font-size:8pt}
td {align:left;font-family:verdana, helvetica, arial, sans-serif;font-size:8pt}
a {text-decoration: none;font-family:verdana, helvetica, arial, sans-serif;font-size:8pt}
.input {font-family:verdana, helvetica, arial, sans-serif; font-size:8pt; color:#003366}
.input220 {font-family:verdana, helvetica, arial, sans-serif; font-size:8pt; color:#003366; width:220px}
.input300 {font-family:verdana, helvetica, arial, sans-serif; font-size:8pt; color:#003366; width:300px}
-->
</style>
<body>
<?
print "<table border='0' cellspacing='0' cellpadding='0' width='400'>";
echo $wk_score_ripped;
print "<tr><td><a href='http://www.viplanet.nl' target='_blank'>Voetbal International Planet</a></td></tr></table>";
?>
</body>
</html> |