Permalink
Browse files

customizable downloads via d.o, http, or git

  • Loading branch information...
1 parent 29b8cae commit b6d1f670bb55f303f47dddca0907565f62d03e30 @rupl committed Feb 25, 2011
Showing with 505 additions and 154 deletions.
  1. +1 −1 .gitignore
  2. +52 −0 .htaccess
  3. +1 −1 _config.example.php
  4. +253 −125 _lib.php
  5. +34 −0 ajax.php
  6. +50 −13 css/style.css
  7. +1 −1 file.php
  8. +2 −2 footer.php
  9. +30 −8 generate.php
  10. BIN img/add.png
  11. BIN img/delete.png
  12. +12 −2 index.php
  13. +69 −1 js/script.js
View
@@ -5,4 +5,4 @@ d6/*
d7
d7/*
_config.php
-
+css/style.old.css
View
@@ -0,0 +1,52 @@
+# Don't show directory listings for URLs which map to a directory.
+Options -Indexes
+
+# Follow symbolic links in this directory.
+Options +FollowSymLinks
+
+# Set the default handler.
+DirectoryIndex index.php
+
+# Override PHP settings. More in sites/default/settings.php
+# but the following cannot be changed at runtime.
+
+# PHP 4, Apache 1.
+<IfModule mod_php4.c>
+ php_value magic_quotes_gpc 0
+ php_value register_globals 0
+ php_value session.auto_start 0
+ php_value mbstring.http_input pass
+ php_value mbstring.http_output pass
+ php_value mbstring.encoding_translation 0
+</IfModule>
+
+# PHP 4, Apache 2.
+<IfModule sapi_apache2.c>
+ php_value magic_quotes_gpc 0
+ php_value register_globals 0
+ php_value session.auto_start 0
+ php_value mbstring.http_input pass
+ php_value mbstring.http_output pass
+ php_value mbstring.encoding_translation 0
+</IfModule>
+
+# PHP 5, Apache 1 and 2.
+<IfModule mod_php5.c>
+ php_value magic_quotes_gpc 0
+ php_value register_globals 0
+ php_value session.auto_start 0
+ php_value mbstring.http_input pass
+ php_value mbstring.http_output pass
+ php_value mbstring.encoding_translation 0
+</IfModule>
+
+# Various rewrite rules.
+<IfModule mod_rewrite.c>
+ RewriteEngine on
+
+ # Rewrite URLs of the form '/a/XXX' to the form 'file.php?short=XXX'.
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_URI} !=/favicon.ico
+ RewriteRule ^a/(.*)$ file.php?short=$1 [L,QSA]
+</IfModule>
View
@@ -22,7 +22,7 @@
// directory to install contrib modules
-define('CONTRIB_DIR','contrib');
+define('CONTRIB_DIR','');
// path to drush. default assumes you have an alias 'drush'
Oops, something went wrong.

0 comments on commit b6d1f67

Please sign in to comment.