user_exists || !$this->user_info['user_photo'] ) if(!$owner['user_photo'] ) return $nophoto_image; $user_photo = $url->url_userdir($owner['user_id']).$owner['user_photo']; if( $thumb ) { $user_thumb = substr($user_photo, 0, strrpos($user_photo, "."))."_thumb".substr($user_photo, strrpos($user_photo, ".")); if( file_exists($user_thumb) ){ $user_thumb=str_replace("./", "", $user_thumb); return IMAGECDN.$user_thumb; } } if( file_exists($user_photo) ){ $user_photo = $url->cloud_userdir($owner['user_id']).$owner['user_photo']; return $user_photo;} return $nophoto_image; } function userprofiledot($owner, $picture="", $width="", $height="", $lazod="1", $forcesize="0") { $image="
"; }else{ $image.=""; } } if($verified==1) { $image.=""; } if(online_now($owner)){ $image.=""; } if($owner["staff"]==1){$image.='
BateWorld Staff
';} $image.="
"; return $image; } function online_now($owner) { global $database; //$online_users_array = online_users(); //if(in_array($this->user_info['user_username'], $online_users_array[2])) { $this->is_online = 1; } else { $this->is_online = 0; } $profile_query = "SELECT profilevalue_22 FROM se_profilevalues WHERE profilevalue_user_id='".$owner['user_id']."'"; $query=$database->database_query($profile_query); $row=$database->database_fetch_array($query); $profile_info["profilevalue_22"]=$row["profilevalue_22"]; if($profile_info["profilevalue_22"]==1){return false;} if($owner['online']==""||$owner['online']==null) { $query=$database->database_query("SELECT `online` FROM se_users WHERE user_id='".$owner['user_id']."'"); $row=$database->database_fetch_array($query); $owner['online']=$row["online"]; } $is_online = $owner['online']; return $is_online; }