1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
|
if ( ( $userid != $visitor ) and ( !in_array($visitor, $idexclude ) ) ) :
if ( $timeout == 0 ) : // Kein TimeOut
$doit = 1 ;
else: // TimeOut gesetzt
$result = $db->query_first("Select datum from $datei where profile_id='$userid' and visitor_id='$visitor' and art='V' ORDER BY datum DESC");
[B]
$tag = substr( $result[0],8,2 ) ;
$mon = substr( $result[0],5,2 ) ;
$jahr = substr( $result[0],0,4 ) ;
$std = substr( $result[0],11,2 ) ;
$min = substr( $result[0],14,2 ) ;
$sec = substr( $result[0],17,2 ) ;
$last = mktime($std,$min,$sec,$mon,$tag,$jahr) ;
$diff = mktime() - $last ;
[/B]
// TimeOut noch nicht abgelaufen?
if ( $diff < $timeout ): |