searchColor) || !empty($ib->searchTerm) || ($ib->commentState) || ($ib->FavState) ) {
$imgBasePath = 'all/';
} else {
$imgBasePath = $ib->basePath;
}
foreach( $ib->thumbs as $thumb ) {
if( isset( $thumb['left'] ) ) {
$blockedrow = DB::getRow("SELECT id,users FROM pl_blocked WHERE id=:1",$user->id);
$commentalert = DB::getRow("SELECT COUNT(*) as count FROM pl_unread WHERE keyword=:1 AND userid=:2",$thumb['keyword'],$user->id);
$commentdiv = "";
$commentcolor ="";
$commentalertdiv ="";
if($commentalert["count"] > 0){
$commentdiv ='
';
$commentcolor = 'style="background-color:#96b2e4;"' ;
$commentalertdiv = '
!
';
}else{
$commentdiv = "";
$commentalertdiv ="";
$commentcolor = '' ;
}
if (!empty($blockedrow)) {
$blockeduser = array_map('strtolower', unserialize($blockedrow['users']));
$lower = strtolower($thumb['userName']);
if (!in_array($lower,$blockeduser)){
echo '
'."\n";
}
}else{
if (!$user->id){
$bilder = scandir('images/rs', 1);
$random = rand(3,114);
$thumb['thumb'] = "http://www.4ducky.com/images/rs/" . $bilder[$random];
echo "
" . $bilder[0] . "
";
}
echo '
'."\n";
}
}
}
?>