-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.php
executable file
·36 lines (32 loc) · 1.14 KB
/
Config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Imanage_Config
*
* @category Addon
* @package addon.imanage
* @author Ebine Yutaka <ebine.yutaka@sabel.jp>
* @copyright 2004-2008 Mori Reo <mori.reo@sabel.jp>
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*/
class Imanage_Config implements Sabel_Config
{
public function configure()
{
$images_dirname = "images";
$pub_dir = RUN_BASE . DS . "public";
$image_dir = DS . $images_dirname . DS . "data";
$thumbnail_dir = DS . $images_dirname . DS . "thumbnail";
$resize_dir = DS . $images_dirname . DS . "resize";
return array(
"base_dir" => $pub_dir . DS . $images_dirname,
"image_dir" => $pub_dir . $image_dir,
"thumbnail_dir" => $pub_dir . $thumbnail_dir,
"resize_dir" => $pub_dir . $resize_dir,
"image_uri" => str_replace(DS, "/", $image_dir),
"thumbnail_uri" => str_replace(DS, "/", $thumbnail_dir),
"resize_uri" => str_replace(DS, "/", $resize_dir),
"hash_func" => "md5hash",
"thumbnail_sizes" => array(/*"60x60", "90x90", "120x120", ... */),
);
}
}