|
|
@ -35,7 +35,6 @@ import net.yacy.cora.document.feed.RSSMessage;
|
|
|
|
import net.yacy.cora.document.id.DigestURL;
|
|
|
|
import net.yacy.cora.document.id.DigestURL;
|
|
|
|
import net.yacy.cora.document.id.MultiProtocolURL;
|
|
|
|
import net.yacy.cora.document.id.MultiProtocolURL;
|
|
|
|
import net.yacy.cora.protocol.ClientIdentification;
|
|
|
|
import net.yacy.cora.protocol.ClientIdentification;
|
|
|
|
import net.yacy.cora.protocol.Domains;
|
|
|
|
|
|
|
|
import net.yacy.cora.protocol.HeaderFramework;
|
|
|
|
import net.yacy.cora.protocol.HeaderFramework;
|
|
|
|
import net.yacy.cora.protocol.RequestHeader;
|
|
|
|
import net.yacy.cora.protocol.RequestHeader;
|
|
|
|
import net.yacy.cora.protocol.RequestHeader.FileType;
|
|
|
|
import net.yacy.cora.protocol.RequestHeader.FileType;
|
|
|
@ -62,7 +61,6 @@ import net.yacy.server.serverSwitch;
|
|
|
|
import net.yacy.utils.crypt;
|
|
|
|
import net.yacy.utils.crypt;
|
|
|
|
import net.yacy.utils.nxTools;
|
|
|
|
import net.yacy.utils.nxTools;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class yacysearchitem {
|
|
|
|
public class yacysearchitem {
|
|
|
|
|
|
|
|
|
|
|
|
private static final String SHORTEN_SUFFIX = "...";
|
|
|
|
private static final String SHORTEN_SUFFIX = "...";
|
|
|
@ -79,7 +77,6 @@ public class yacysearchitem {
|
|
|
|
final String eventID = post.get("eventID", "");
|
|
|
|
final String eventID = post.get("eventID", "");
|
|
|
|
final boolean authenticated = sb.adminAuthenticated(header) >= 2;
|
|
|
|
final boolean authenticated = sb.adminAuthenticated(header) >= 2;
|
|
|
|
final int item = post.getInt("item", -1);
|
|
|
|
final int item = post.getInt("item", -1);
|
|
|
|
final boolean auth = Domains.isLocalhost(header.get(HeaderFramework.CONNECTION_PROP_CLIENTIP, "")) || sb.verifyAuthentication(header);
|
|
|
|
|
|
|
|
final RequestHeader.FileType fileType = header.fileType();
|
|
|
|
final RequestHeader.FileType fileType = header.fileType();
|
|
|
|
|
|
|
|
|
|
|
|
// default settings for blank item
|
|
|
|
// default settings for blank item
|
|
|
@ -279,7 +276,7 @@ public class yacysearchitem {
|
|
|
|
|
|
|
|
|
|
|
|
final String license = URLLicense.aquireLicense(image.imageUrl);
|
|
|
|
final String license = URLLicense.aquireLicense(image.imageUrl);
|
|
|
|
sb.loader.loadIfNotExistBackground(image.imageUrl, 1024 * 1024 * 10, null, ClientIdentification.yacyIntranetCrawlerAgent);
|
|
|
|
sb.loader.loadIfNotExistBackground(image.imageUrl, 1024 * 1024 * 10, null, ClientIdentification.yacyIntranetCrawlerAgent);
|
|
|
|
prop.putHTML("content_item_hrefCache", (auth) ? "/ViewImage.png?url=" + imageUrlstring : imageUrlstring);
|
|
|
|
prop.putHTML("content_item_hrefCache", "/ViewImage.png?maxwidth=128&maxheight=128&quadratic=&url=" + imageUrlstring);
|
|
|
|
prop.putHTML("content_item_href", imageUrlstring);
|
|
|
|
prop.putHTML("content_item_href", imageUrlstring);
|
|
|
|
prop.putHTML("content_item_target", target);
|
|
|
|
prop.putHTML("content_item_target", target);
|
|
|
|
prop.put("content_item_code", license);
|
|
|
|
prop.put("content_item_code", license);
|
|
|
|