summaryrefslogtreecommitdiffstats
diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2010-05-18 00:11:19 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2010-05-18 00:11:19 -0400
commit3fe367b2d7d9590070aedd996c10cc8c61ea2e84 (patch)
tree6562d7347587aa4c4913cdca533f306a543329e7
parentRsync changes to not send pyc and a warning box that the URL will soon change. (diff)
downloadMovieStatistics-3fe367b2d7d9590070aedd996c10cc8c61ea2e84.tar.xz
MovieStatistics-3fe367b2d7d9590070aedd996c10cc8c61ea2e84.zip
Updated for new server
-rw-r--r--.htaccess5
-rw-r--r--.htpasswd2
-rw-r--r--index.php3
-rwxr-xr-xupload.sh4
4 files changed, 4 insertions, 10 deletions
diff --git a/.htaccess b/.htaccess
deleted file mode 100644
index d5f6f0d..0000000
--- a/.htaccess
+++ /dev/null
@@ -1,5 +0,0 @@
-AuthName "Restricted Area"
-AuthType Basic
-AuthUserFile /home/zx2c4/anyclip.zx2c4.com/MovieStatistics/.htpasswd
-AuthGroupFile /dev/null
-require valid-user
diff --git a/.htpasswd b/.htpasswd
deleted file mode 100644
index 70f0a4a..0000000
--- a/.htpasswd
+++ /dev/null
@@ -1,2 +0,0 @@
-anyclip:aAz0MnkwuYU52
-
diff --git a/index.php b/index.php
index 23db02e..1a83219 100644
--- a/index.php
+++ b/index.php
@@ -45,7 +45,7 @@ if (!$running && $_GET["action"] == "start" && $_POST["forreal"] == "yeah") {
file_put_contents("input.txt", $_POST['list']);
file_put_contents("totalLines", (string)count(split("\n", trim($_POST['list']))));
@unlink("MovieStats.csv");
- runInBackground("/home/zx2c4/opt/bin/python MovieSearchStats.py input.txt MovieStats.csv '".$_POST['email']."'");
+ runInBackground("/usr/bin/python MovieSearchStats.py input.txt MovieStats.csv '".$_POST['email']."'");
$running = true;
}
?>
@@ -96,6 +96,5 @@ Jaws
<input type="submit" value="Start">
</form>
<?php endif; ?>
-<div style="background: #DDAAAA; width:550px; text-align: justify; font-weight: bold; padding: 10px; border: 3px black dotted;"><i>Warning</i>: Now that AnyClip has the capability and resources to host an AnyClip Labs server, all applications running at anyclip.zx2c4.com will be shutting down and migrated to AnyClip-owned&amp;operated servers at the earliest convienence. This URL will change.</div>
</body>
</html>
diff --git a/upload.sh b/upload.sh
index 2d749ec..e24b174 100755
--- a/upload.sh
+++ b/upload.sh
@@ -1 +1,3 @@
-rsync -avz --exclude=*.pyc --exclude=.git --exclude=upload.sh --exclude=.gitignore --delete-excluded . zx2c4.com:anyclip.zx2c4.com/MovieStatistics
+#!/bin/sh
+shopt -s dotglob
+rsync -rlptDvz --exclude=*.pyc --exclude=.git --exclude=upload.sh --exclude=.gitignore --delete-excluded * 184.75.34.82:/var/www/localhost/htdocs/MovieStatistics/