mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-01 22:00:31 +02:00
Correcting issue #27 and removing default config-options from img.php
This commit is contained in:
11
README.md
11
README.md
@@ -26,12 +26,12 @@ This is free software and open source software, licensed according MIT.
|
|||||||
Installation and get going
|
Installation and get going
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
**Latest stable version is v0.5.1 released 2014-02-12.**
|
**Latest stable version is v0.5.2 released 2014-04-01.**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone git://github.com/mosbth/cimage.git
|
git clone git://github.com/mosbth/cimage.git
|
||||||
cd cimage
|
cd cimage
|
||||||
git checkout v0.5.1
|
git checkout v0.5.2
|
||||||
```
|
```
|
||||||
|
|
||||||
Make the cache-directory writable by the webserver.
|
Make the cache-directory writable by the webserver.
|
||||||
@@ -131,6 +131,13 @@ Revision history
|
|||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
v0.5.2 (2014-04-01)
|
||||||
|
|
||||||
|
* Correcting issue #26 providing error message when not using postprocessing.
|
||||||
|
* Correcting issue #27 warning of default timezone.
|
||||||
|
* Removed default $config options in `img.php`, was not used, all configuration should be in `img_config.php`.
|
||||||
|
|
||||||
|
|
||||||
v0.5.1 (2014-02-12)
|
v0.5.1 (2014-02-12)
|
||||||
|
|
||||||
* Display image in README-file.
|
* Display image in README-file.
|
||||||
|
1
cache/README.md
vendored
1
cache/README.md
vendored
@@ -0,0 +1 @@
|
|||||||
|
This directory must be writable by the webserver.
|
||||||
|
@@ -95,19 +95,26 @@ function verbose($msg = null)
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default configuration options, can be overridden in own config-file.
|
* Get configuration options from file.
|
||||||
*/
|
*/
|
||||||
$config = array(
|
|
||||||
|
|
||||||
);
|
|
||||||
|
|
||||||
$configFile = __DIR__.'/'.basename(__FILE__, '.php').'_config.php';
|
$configFile = __DIR__.'/'.basename(__FILE__, '.php').'_config.php';
|
||||||
$config = array_merge($config, require $configFile);
|
$config = require $configFile;
|
||||||
|
|
||||||
call_user_func($config['error_reporting']);
|
call_user_func($config['error_reporting']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set default timezone if not set or if its set in the config-file.
|
||||||
|
*/
|
||||||
|
if (isset($config['default_timezone'])) {
|
||||||
|
date_default_timezone_set($config['default_timezone']);
|
||||||
|
} else if (!ini_get('default_timezone')) {
|
||||||
|
date_default_timezone_set('UTC');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* verbose, v - do a verbose dump of what happens
|
* verbose, v - do a verbose dump of what happens
|
||||||
*/
|
*/
|
||||||
|
@@ -17,6 +17,14 @@ return array(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set default timezone, it defaults to UTC if not specified otherwise.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//'default_timezone' => 'UTC',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Max image dimensions,
|
* Max image dimensions,
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user