Subversion Repositories ALCASAR

Rev

Rev 2112 | Rev 2394 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2112 Rev 2278
Line 16... Line 16...
16
        }
16
        }
17
        else
17
        else
18
        {
18
        {
19
// if we found duplicate user IP, it will not be writen again
19
// if we found duplicate user IP, it will not be writen again
20
                foreach($content as $line){
20
                foreach($content as $line){
21
                        $line = preg_replace('/\s+/', '', $line);
21
                        $line = preg_replace('/\s+/', '', $line); #remove whitespace
22
                        if($line == $_SERVER['REMOTE_ADDR'])
22
                        if($line == $_SERVER['REMOTE_ADDR'])
23
                        {
23
                        {
24
                                $change_me = 0;
24
                                $change_me = 0;
25
                        }
25
                        }
26
                }
26
                }