diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-06-21 16:34:27 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-06-21 16:34:27 +0200 |
commit | 889e8eaf7c40817663dd602a21ac771062ccac3b (patch) | |
tree | ca8ac81ee202165333e5ffe16147d09e5cdaf2ab /lib/conf | |
parent | 5c4caed8560d5fded00525844dfa8386b97e7918 (diff) | |
download | Bits-889e8eaf7c40817663dd602a21ac771062ccac3b.tar.gz Bits-889e8eaf7c40817663dd602a21ac771062ccac3b.zip |
Big change, sir. Can now upload any kind of files.
Diffstat (limited to 'lib/conf')
-rw-r--r-- | lib/conf/apps.php | 2 | ||||
-rw-r--r-- | lib/conf/file.php | 13 | ||||
-rw-r--r-- | lib/conf/image.php | 7 |
3 files changed, 14 insertions, 8 deletions
diff --git a/lib/conf/apps.php b/lib/conf/apps.php index 8afeb2d..8e755b1 100644 --- a/lib/conf/apps.php +++ b/lib/conf/apps.php @@ -5,7 +5,7 @@ $homepage = "blog"; $apps = array( // Image upload application - "image" => array( + "file" => array( "index" => 1, "delete" => 1, "editinfo" => 1, diff --git a/lib/conf/file.php b/lib/conf/file.php new file mode 100644 index 0000000..4a8830e --- /dev/null +++ b/lib/conf/file.php @@ -0,0 +1,13 @@ +<?php + +$baseurl = "http://localhost/alex.auvolat/files/"; +$savedir = getcwd() . "/files/"; + +$img_mini_width = 127; + +function has_mini($ext) { + return $ext == "jpg" || $ext == "jpeg" || $ext == "png" || $ext == "gif"; +} + +//$quota = 128;; //ceil((time() - 1220000000) / (3600 * 24 * 20)); +//$min_priv_for_no_quota = 2; diff --git a/lib/conf/image.php b/lib/conf/image.php deleted file mode 100644 index 462300e..0000000 --- a/lib/conf/image.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -$baseurl = "http://localhost/alex.auvolat/images/"; -$savedir = getcwd() . "/images/"; -$miniature_width = 127; -//$quota = 128;; //ceil((time() - 1220000000) / (3600 * 24 * 20)); -//$min_priv_for_no_quota = 2; |