Changeset 282 for profile.lastvisitors/files/lib/system/event/listener/ProfilelastVisitorsListener.class.php
- Timestamp:
- 03/08/08 09:54:02 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
profile.lastvisitors/files/lib/system/event/listener/ProfilelastVisitorsListener.class.php
r278 r282 39 39 'profileID' => $eventObj->userID, 40 40 )); 41 //Datenbank wird hier aufgeraeumt... Hier werden alle Visitors geloescht, die nicht mehr angezeigt werden koennen (Visitors groesser 10 )41 //Datenbank wird hier aufgeraeumt... Hier werden alle Visitors geloescht, die nicht mehr angezeigt werden koennen (Visitors groesser 100) 42 42 $sql = "SELECT userID FROM wcf".WCF_N."_profile_lastvisitors WHERE profileID = '".$eventObj->userID."' ORDER BY time DESC"; 43 43 $result = WCF::getDB()->sendQuery($sql); … … 45 45 $deleteIDs = array(); 46 46 while ($row = WCF::getDB()->fetchArray($result)){ 47 if($skipCount > 10 ) $deleteIDs[] = $row['userID'];47 if($skipCount > 100) $deleteIDs[] = $row['userID']; 48 48 $skipCount++; 49 49 } … … 55 55 56 56 //Hier werden die Templates in die Platzhalter der userProfile.tpl geladen 57 WCF::getTPL()->append('additionalBoxes5', WCF::getTPL()->fetch('ProfilelastVisitorSmall'));57 WCF::getTPL()->append('additionalBoxes5', WCF::getTPL()->fetch('ProfilelastVisitorSmall')); 58 58 WCF::getTPL()->append('additionalContents3', WCF::getTPL()->fetch('ProfilelastVisitor')); 59 59
