Permalink
Browse files

License header and example config updates.

  • Loading branch information...
1 parent cd25e6e commit 45c5ec1da08304ecbd727c4736ad56d2aba0557b @sofar committed Oct 5, 2012
Showing with 127 additions and 6 deletions.
  1. +19 −0 album-watch
  2. +0 −1 album-watch.service
  3. +21 −0 album.css
  4. +19 −0 album.js
  5. +6 −0 config.php.example
  6. +20 −0 db.php
  7. +20 −0 exif.php
  8. +22 −3 image.php
  9. +0 −2 robots.txt
View
19 album-watch
@@ -1,5 +1,24 @@
#!/bin/bash
+#
+# (C) 2010-2012 - Auke Kok <auke@foo-projects.org>
+#
+
+# This file is part of Album.
+#
+# Album is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Album is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Album. If not, see <http://www.gnu.org/licenses/>.
+
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
export IFS=$'\n '
View
1 album-watch.service
@@ -10,6 +10,5 @@ RestartSec=1
Nice=19
OOMScoreAdjust=500
-
[Install]
WantedBy=multi-user.target
View
21 album.css
@@ -1,3 +1,24 @@
+
+/*
+ * (C) 2010-2012 - Auke Kok <auke@foo-projects.org>
+ *
+ *
+ * This file is part of Album.
+ *
+ * Album is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Album is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Album. If not, see <http://www.gnu.org/licenses/>.
+ */
+
html {
height: 100%;
}
View
19 album.js
@@ -1,4 +1,23 @@
+//
+// (C) 2010-2012 - Auke Kok <auke@foo-projects.org>
+//
+
+// This file is part of Album.
+//
+// Album is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Album is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with Album. If not, see <http://www.gnu.org/licenses/>.
+
var last = "";
var last_album = -1;
var last_image = -1;
View
6 config.php.example
@@ -8,4 +8,10 @@ $users = array (
"bonnie"
);
+# image size control:
+$max_size = 800;
+
+# where to store our thumbnail cache
+$cache_base = "/var/cache/httpd";
+
?>
View
20 db.php
@@ -1,5 +1,25 @@
<?
+#
+# (C) 2010-2012 - Auke Kok <auke@foo-projects.org>
+#
+
+# This file is part of Album.
+#
+# Album is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Album is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Album. If not, see <http://www.gnu.org/licenses/>.
+
+
# config.php stores the list of users that are permitted to
# be included in the album. Edit it first.
include 'config.php';
View
20 exif.php
@@ -1,5 +1,25 @@
<?
+#
+# (C) 2010-2012 - Auke Kok <auke@foo-projects.org>
+#
+
+# This file is part of Album.
+#
+# Album is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Album is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Album. If not, see <http://www.gnu.org/licenses/>.
+
+
# exif.php
#
# Get exif info for an image, and render a XML content that can be inserted
View
25 image.php
@@ -1,5 +1,27 @@
<?
+#
+# (C) 2010-2012 - Auke Kok <auke@foo-projects.org>
+#
+
+# This file is part of Album.
+#
+# Album is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Album is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Album. If not, see <http://www.gnu.org/licenses/>.
+
+# config.php includes the location of our cache folder, as well
+# as some global settings.
+include 'config.php';
if (!function_exists("imagerotate")) {
function imagerotate($src_img, $angle) {
@@ -82,8 +104,6 @@ function pass_file_and_exit($file) {
exit;
}
-$max_size = 800;
-
$size = $_GET['s'];
$resample = $_GET['r'];
@@ -105,7 +125,6 @@ function pass_file_and_exit($file) {
if ($size > $max_size)
$size = $max_size;
-$cache_base = "/var/cache/httpd";
$cache_path = $cache_base . "/" . $album;
$cache_file = $cache_path . "/" . "x" . $size . "-" . basename($image);
View
2 robots.txt
@@ -1,5 +1,3 @@
User-agent: *
Disallow: /
-User-agent: *
-Disallow: IS_A_DICK_BOT_VIOLATING_ROBOTS_TXT

0 comments on commit 45c5ec1

Please sign in to comment.