mirror of https://gitee.com/jeecg/jeecg.git
parent
a143e7e081
commit
9001a79a6d
@ -1,18 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<classpath>
|
|
||||||
<classpathentry kind="src" path="src"/>
|
|
||||||
<classpathentry kind="src" path="resources"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk7">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="owner.project.facets" value="java"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="owner.project.facets" value="jst.web"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
|
||||||
<classpathentry kind="output" path="build/classes"/>
|
|
||||||
</classpath>
|
|
@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>jeecg</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.wst.common.project.facet.core.builder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
|
|
||||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
|
|
||||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
|
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
||||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<classpath>
|
|
||||||
<classpathentry kind="src" path="WebContent"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="hide" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
|
||||||
<classpathentry kind="output" path=""/>
|
|
||||||
</classpath>
|
|
@ -1,3 +0,0 @@
|
|||||||
eclipse.preferences.version=1
|
|
||||||
encoding//resources/dbconfig.properties=UTF-8
|
|
||||||
encoding/<project>=UTF-8
|
|
@ -1,11 +0,0 @@
|
|||||||
eclipse.preferences.version=1
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.7
|
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
|
||||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
|
||||||
org.eclipse.jdt.core.compiler.source=1.7
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
|
|
||||||
<wb-module deploy-name="jeecg">
|
|
||||||
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
|
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
|
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/resources"/>
|
|
||||||
<property name="java-output-path" value="/jeecg/build/classes"/>
|
|
||||||
<property name="context-root" value="jeecg"/>
|
|
||||||
</wb-module>
|
|
||||||
</project-modules>
|
|
@ -1,10 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<faceted-project>
|
|
||||||
<runtime name="Apache Tomcat v6.0"/>
|
|
||||||
<fixed facet="wst.jsdt.web"/>
|
|
||||||
<fixed facet="java"/>
|
|
||||||
<fixed facet="jst.web"/>
|
|
||||||
<installed facet="java" version="1.7"/>
|
|
||||||
<installed facet="jst.web" version="2.5"/>
|
|
||||||
<installed facet="wst.jsdt.web" version="1.0"/>
|
|
||||||
</faceted-project>
|
|
@ -1 +0,0 @@
|
|||||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
|
|
@ -1 +0,0 @@
|
|||||||
Window
|
|
@ -1,3 +0,0 @@
|
|||||||
Manifest-Version: 1.0
|
|
||||||
Class-Path:
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
|
|
||||||
"""This is a blind proxy that we use to get around browser
|
|
||||||
restrictions that prevent the Javascript from loading pages not on the
|
|
||||||
same server as the Javascript. This has several problems: it's less
|
|
||||||
efficient, it might break some sites, and it's a security risk because
|
|
||||||
people can use this proxy to browse the web and possibly do bad stuff
|
|
||||||
with it. It only loads pages via http and https, but it can load any
|
|
||||||
content type. It supports GET and POST requests."""
|
|
||||||
|
|
||||||
import urllib2
|
|
||||||
import cgi
|
|
||||||
import sys, os
|
|
||||||
|
|
||||||
# Designed to prevent Open Proxy type stuff.
|
|
||||||
|
|
||||||
allowedHosts = ['www.openlayers.org', 'openlayers.org',
|
|
||||||
'labs.metacarta.com', 'world.freemap.in',
|
|
||||||
'prototype.openmnnd.org', 'geo.openplans.org',
|
|
||||||
'sigma.openplans.org', 'demo.opengeo.org',
|
|
||||||
'www.openstreetmap.org', 'sample.azavea.com',
|
|
||||||
'v2.suite.opengeo.org', 'v-swe.uni-muenster.de:8080',
|
|
||||||
'vmap0.tiles.osgeo.org', 'www.openrouteservice.org','192.168.1.241:8080']
|
|
||||||
|
|
||||||
method = os.environ["REQUEST_METHOD"]
|
|
||||||
|
|
||||||
if method == "POST":
|
|
||||||
qs = os.environ["QUERY_STRING"]
|
|
||||||
d = cgi.parse_qs(qs)
|
|
||||||
if d.has_key("url"):
|
|
||||||
url = d["url"][0]
|
|
||||||
else:
|
|
||||||
url = "http://www.openlayers.org"
|
|
||||||
else:
|
|
||||||
fs = cgi.FieldStorage()
|
|
||||||
url = fs.getvalue('url', "http://www.openlayers.org")
|
|
||||||
|
|
||||||
try:
|
|
||||||
host = url.split("/")[2]
|
|
||||||
if allowedHosts and not host in allowedHosts:
|
|
||||||
print "Status: 502 Bad Gateway"
|
|
||||||
print "Content-Type: text/plain"
|
|
||||||
print
|
|
||||||
print "This proxy does not allow you to access that location (%s)." % (host,)
|
|
||||||
print
|
|
||||||
print os.environ
|
|
||||||
|
|
||||||
elif url.startswith("http://") or url.startswith("https://"):
|
|
||||||
|
|
||||||
if method == "POST":
|
|
||||||
length = int(os.environ["CONTENT_LENGTH"])
|
|
||||||
headers = {"Content-Type": os.environ["CONTENT_TYPE"]}
|
|
||||||
body = sys.stdin.read(length)
|
|
||||||
r = urllib2.Request(url, body, headers)
|
|
||||||
y = urllib2.urlopen(r)
|
|
||||||
else:
|
|
||||||
y = urllib2.urlopen(url)
|
|
||||||
|
|
||||||
# print content type header
|
|
||||||
i = y.info()
|
|
||||||
if i.has_key("Content-Type"):
|
|
||||||
print "Content-Type: %s" % (i["Content-Type"])
|
|
||||||
else:
|
|
||||||
print "Content-Type: text/plain"
|
|
||||||
print
|
|
||||||
|
|
||||||
print y.read()
|
|
||||||
|
|
||||||
y.close()
|
|
||||||
else:
|
|
||||||
print "Content-Type: text/plain"
|
|
||||||
print
|
|
||||||
print "Illegal request."
|
|
||||||
|
|
||||||
except Exception, E:
|
|
||||||
print "Status: 500 Unexpected Error"
|
|
||||||
print "Content-Type: text/plain"
|
|
||||||
print
|
|
||||||
print "Some unexpected error occurred. Error text was:", E
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue