Revision 1819
Added by Dietmar almost 12 years ago
thumbs.php | ||
---|---|---|
15 | 15 |
* |
16 | 16 |
*/ |
17 | 17 |
|
18 |
require('../../config.php'); |
|
18 |
if(!defined('WB_URL')) |
|
19 |
{ |
|
20 |
$config_file = realpath('../../config.php'); |
|
21 |
if(file_exists($config_file) && !defined('WB_URL')) |
|
22 |
{ |
|
23 |
require($config_file); |
|
24 |
} |
|
25 |
} |
|
26 |
//if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); } |
|
19 | 27 |
$modulePath = dirname(__FILE__); |
20 | 28 |
|
21 | 29 |
/* |
... | ... | |
35 | 43 |
$thumb = PhpThumbFactory::create(WB_PATH.MEDIA_DIRECTORY.'/'.$image); |
36 | 44 |
|
37 | 45 |
if ($type == 1) { |
46 |
$thumb->adaptiveResize(20,20); |
|
47 |
// $thumb->resize(30,30); |
|
38 | 48 |
// $thumb->cropFromCenter(80,50); |
39 |
$thumb->resize(30,30); |
|
40 | 49 |
// $thumb->resizePercent(40); |
41 | 50 |
} else { |
42 |
$thumb->resize(250,250);
|
|
43 |
// $thumb->resizePercent(50);
|
|
51 |
// $thumb->adaptiveResize(250,250);
|
|
52 |
$thumb->resizePercent(30);
|
|
44 | 53 |
// $thumb->cropFromCenter(80,50); |
45 | 54 |
} |
46 | 55 |
$thumb->show(); |
Also available in: Unified diff
- removed obselete resize_img.php