aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2010-04-17 00:23:48 +0200
committerEgil Moeller <egil.moller@freecode.no>2010-04-17 00:23:48 +0200
commitab980cb586124550f7efac28d1b5cd31b2df5f0c (patch)
tree667ced3b9227fc6ab7ff1d45ad0129f171951d94
parent630d57aa4d017cca3d12f234497e9832005c3ded (diff)
parent009b92e3425f9d0fa764e02a191bd139b4f8ae1c (diff)
downloadetherpad-ab980cb586124550f7efac28d1b5cd31b2df5f0c.tar.gz
etherpad-ab980cb586124550f7efac28d1b5cd31b2df5f0c.tar.xz
etherpad-ab980cb586124550f7efac28d1b5cd31b2df5f0c.zip
Merge branch 'master' of git://github.com/shomeya/pad
-rw-r--r--README.md4
-rw-r--r--etherpad/src/etherpad/legacy_urls.js2
-rw-r--r--etherpad/src/main.js20
-rw-r--r--etherpad/src/static/js/store.js2
-rw-r--r--etherpad/src/static/robots.txt1
-rw-r--r--infrastructure/com.etherpad/licensing.scala2
6 files changed, 18 insertions, 13 deletions
diff --git a/README.md b/README.md
index e8df528..c60e847 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# About Etherpad
EtherPad is a web-based realtime collaborative document editor.
-EtherPad currently lives at http://etherpad.org
+EtherPad currently lives at <http://etherpad.org>
-For instructions to build and run EtherPad, see: http://doc.etherpad.org/ep/tag/?query=installation
+For instructions to build and run EtherPad, see: <http://doc.etherpad.org/ep/tag/?query=installation>
diff --git a/etherpad/src/etherpad/legacy_urls.js b/etherpad/src/etherpad/legacy_urls.js
index 458f3b6..d8aa629 100644
--- a/etherpad/src/etherpad/legacy_urls.js
+++ b/etherpad/src/etherpad/legacy_urls.js
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-/* legacy URLs only apply to the public etherpad.com site. (not Pro or PNE). */
+/* legacy URLs only apply to the public main site. (not Pro or PNE). */
var _legacyURLs = {
'/ep/beta-signup': '/',
diff --git a/etherpad/src/main.js b/etherpad/src/main.js
index b77d5ee..738df51 100644
--- a/etherpad/src/main.js
+++ b/etherpad/src/main.js
@@ -275,7 +275,7 @@ function checkHost() {
return;
}
- // redirect to etherpad.com
+ // redirect to main site
var newurl = "http://etherpad.com"+request.path;
if (request.query) { newurl += "?"+request.query; }
response.redirect(newurl);
@@ -311,11 +311,13 @@ function checkHTTPS() {
http: 80,
https: 443
};
+
+ // Require HTTPS for the following paths:
var _requiredHttpsPrefixes = [
- '/ep/admin', // pro and etherpad
+ '/ep/admin', // pro and main site
'/ep/account', // pro only
- '/ep/store', // etherpad.com only
- '/ep/pro-account' // etherpad.com only
+ '/ep/store', // main site only
+ '/ep/pro-account' // main site only
];
var httpsRequired = false;
@@ -381,8 +383,9 @@ function handlePath() {
[DirMatcher('/ep/pro-help/'), forward(pro_help_control)]
]);
- var etherpadDotComDispatcher = new Dispatcher();
- etherpadDotComDispatcher.addLocations([
+ // these paths are main site only
+ var mainsiteDispatcher = new Dispatcher();
+ mainsiteDispatcher.addLocations([
['/', maincontrol.render_main],
[DirMatcher('/ep/beta-account/'), forward(pro_beta_control)],
[DirMatcher('/ep/pro-signup/'), forward(pro_signup_control)],
@@ -400,6 +403,7 @@ function handlePath() {
[PrefixMatcher('/ep/'), forward(maincontrol)]
]);
+ // these paths are pro only
var proDispatcher = new Dispatcher();
proDispatcher.addLocations([
['/', pro_main_control.render_main],
@@ -407,7 +411,7 @@ function handlePath() {
]);
// dispatching logic: first try common, then dispatch to
- // etherpad.com or pro.
+ // main site or pro.
if (commonDispatcher.dispatch()) {
return;
@@ -420,7 +424,7 @@ function handlePath() {
return;
}
} else {
- if (etherpadDotComDispatcher.dispatch()) {
+ if (mainsiteDispatcher.dispatch()) {
return;
}
}
diff --git a/etherpad/src/static/js/store.js b/etherpad/src/static/js/store.js
index 96a6487..5750f42 100644
--- a/etherpad/src/static/js/store.js
+++ b/etherpad/src/static/js/store.js
@@ -74,7 +74,7 @@ store.eepnetTrial.submit = function() {
$('#dlsignup').hide();
$('#processingmsg').fadeIn('fast');
- // first stubmit to etherpad.com...
+ // first submit...
var data = {};
$(".signupData").each(function() {
data[$(this).attr("id")] = $(this).val();
diff --git a/etherpad/src/static/robots.txt b/etherpad/src/static/robots.txt
new file mode 100644
index 0000000..4f9540b
--- /dev/null
+++ b/etherpad/src/static/robots.txt
@@ -0,0 +1 @@
+User-agent: * \ No newline at end of file
diff --git a/infrastructure/com.etherpad/licensing.scala b/infrastructure/com.etherpad/licensing.scala
index 9318f78..68019f5 100644
--- a/infrastructure/com.etherpad/licensing.scala
+++ b/infrastructure/com.etherpad/licensing.scala
@@ -134,7 +134,7 @@ object Licensing {
println("Done.");
}
case "genmainkey" => {
- println("Generating key for etherpad.com...");
+ println("Generating main key...");
config.values("licenseGeneratorKey") = args(1);
val out = new PrintWriter(new FileOutputStream(args(2)));
out.print(generateKey("etherpad", "AppJet", -1, 0, -1, 0, 0, 0))