diff options
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; |