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
| <? // If statements to determine the actions. if ($action == "go") { foreach ($rd_code as $key => $value) { if ($value == $to) { $url = $rd_URL[$key]; if($remote_host = get_stats( "REMOTE_HOST", false)) { $remote_host = get_stats( "REMOTE_ADDR", "-"); } $remote_user = get_stats( "REMOTE_USER", "-"); $user_agent = get_stats( "HTTP_USER_AGENT", "-"); $referer = get_stats( "HTTP_X_FORWARDED_FOR", "-"); $date = gmdate($date_format); $log = "$url|$date|$remote_user|$remote_host|$referer|$user_agent\n"; if($fd = @fopen($log_file, "a")) { fputs($fd, $log); fclose($fd); } Header("Location: $url"); exit; } ?> |
Warning: Invalid argument supplied for foreach() in /home/sites/site75/web/click.php on line 75
Nou hier staat nu het deel van het script..
Weet nu iemand waarom het fout gaat?!?