mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-14 03:54:11 +02:00
testing before release v0.7.0
This commit is contained in:
@@ -13,7 +13,8 @@ return array(
|
||||
* Default values:
|
||||
* mode: 'production'
|
||||
*/
|
||||
//'mode' => 'production', // 'development', 'strict'
|
||||
'mode' => 'development',
|
||||
//'mode' => 'production', // 'development', 'strict'
|
||||
|
||||
|
||||
|
||||
@@ -21,8 +22,8 @@ return array(
|
||||
* Where are the sources for the classfiles.
|
||||
*
|
||||
* Default values:
|
||||
* autoloader: null
|
||||
* cimage_class: null
|
||||
* autoloader: null // used from v0.6.2
|
||||
* cimage_class: null // used until v0.6.1
|
||||
*/
|
||||
'autoloader' => __DIR__ . '/../autoload.php',
|
||||
//'cimage_class' => __DIR__ . '/../CImage.php',
|
||||
|
@@ -2,6 +2,9 @@
|
||||
/**
|
||||
* Resize and crop images on the fly, store generated images in a cache.
|
||||
*
|
||||
* This version is a all-in-one version of img.php, it is not dependant an any other file
|
||||
* so you can simply copy it to any place you want it.
|
||||
*
|
||||
* @author Mikael Roos mos@dbwebb.se
|
||||
* @example http://dbwebb.se/opensource/cimage
|
||||
* @link https://github.com/mosbth/cimage
|
||||
@@ -11,19 +14,22 @@
|
||||
|
||||
/**
|
||||
* Change configuration details in the array below or create a separate file
|
||||
* where you store the configuration details. Name the config file same name as
|
||||
* this file and add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file 'img_config.php'.
|
||||
* where you store the configuration details.
|
||||
*
|
||||
* The configuration file should be named the same name as this file and then
|
||||
* add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file should be named 'img_config.php'.
|
||||
*
|
||||
* The settings below are only a few of the available ones. Check the file in
|
||||
* webroot/img_config.php for a complete list of configuration options.
|
||||
*/
|
||||
$config = array(
|
||||
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'image_path' => __DIR__ . '/img/',
|
||||
//'cache_path' => __DIR__ . '/../cache/',
|
||||
//'alias_path' => __DIR__ . '/img/alias/',
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
|
||||
);
|
||||
|
@@ -2,6 +2,9 @@
|
||||
/**
|
||||
* Resize and crop images on the fly, store generated images in a cache.
|
||||
*
|
||||
* This version is a all-in-one version of img.php, it is not dependant an any other file
|
||||
* so you can simply copy it to any place you want it.
|
||||
*
|
||||
* @author Mikael Roos mos@dbwebb.se
|
||||
* @example http://dbwebb.se/opensource/cimage
|
||||
* @link https://github.com/mosbth/cimage
|
||||
@@ -11,20 +14,23 @@
|
||||
|
||||
/**
|
||||
* Change configuration details in the array below or create a separate file
|
||||
* where you store the configuration details. Name the config file same name as
|
||||
* this file and add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file 'img_config.php'.
|
||||
* where you store the configuration details.
|
||||
*
|
||||
* The configuration file should be named the same name as this file and then
|
||||
* add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file should be named 'img_config.php'.
|
||||
*
|
||||
* The settings below are only a few of the available ones. Check the file in
|
||||
* webroot/img_config.php for a complete list of configuration options.
|
||||
*/
|
||||
$config = array(
|
||||
|
||||
'mode' => 'development', // 'production', 'development', 'strict'
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'image_path' => __DIR__ . '/img/',
|
||||
//'cache_path' => __DIR__ . '/../cache/',
|
||||
//'alias_path' => __DIR__ . '/img/alias/',
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
|
||||
);
|
||||
|
||||
@@ -586,7 +592,7 @@ class CRemoteImage
|
||||
*/
|
||||
public function loadCacheDetails()
|
||||
{
|
||||
$cacheFile = str_replace(["/", ":", "#", ".", "?"], "-", $this->url);
|
||||
$cacheFile = str_replace(array("/", ":", "#", ".", "?"), "-", $this->url);
|
||||
$this->fileName = $this->saveFolder . $cacheFile;
|
||||
$this->fileJson = $this->fileName . ".json";
|
||||
if (is_readable($this->fileJson)) {
|
||||
|
@@ -2,6 +2,9 @@
|
||||
/**
|
||||
* Resize and crop images on the fly, store generated images in a cache.
|
||||
*
|
||||
* This version is a all-in-one version of img.php, it is not dependant an any other file
|
||||
* so you can simply copy it to any place you want it.
|
||||
*
|
||||
* @author Mikael Roos mos@dbwebb.se
|
||||
* @example http://dbwebb.se/opensource/cimage
|
||||
* @link https://github.com/mosbth/cimage
|
||||
@@ -11,20 +14,23 @@
|
||||
|
||||
/**
|
||||
* Change configuration details in the array below or create a separate file
|
||||
* where you store the configuration details. Name the config file same name as
|
||||
* this file and add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file 'img_config.php'.
|
||||
* where you store the configuration details.
|
||||
*
|
||||
* The configuration file should be named the same name as this file and then
|
||||
* add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file should be named 'img_config.php'.
|
||||
*
|
||||
* The settings below are only a few of the available ones. Check the file in
|
||||
* webroot/img_config.php for a complete list of configuration options.
|
||||
*/
|
||||
$config = array(
|
||||
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'image_path' => __DIR__ . '/img/',
|
||||
//'cache_path' => __DIR__ . '/../cache/',
|
||||
//'alias_path' => __DIR__ . '/img/alias/',
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
|
||||
);
|
||||
|
||||
@@ -586,7 +592,7 @@ class CRemoteImage
|
||||
*/
|
||||
public function loadCacheDetails()
|
||||
{
|
||||
$cacheFile = str_replace(["/", ":", "#", ".", "?"], "-", $this->url);
|
||||
$cacheFile = str_replace(array("/", ":", "#", ".", "?"), "-", $this->url);
|
||||
$this->fileName = $this->saveFolder . $cacheFile;
|
||||
$this->fileJson = $this->fileName . ".json";
|
||||
if (is_readable($this->fileJson)) {
|
||||
|
@@ -2,6 +2,9 @@
|
||||
/**
|
||||
* Resize and crop images on the fly, store generated images in a cache.
|
||||
*
|
||||
* This version is a all-in-one version of img.php, it is not dependant an any other file
|
||||
* so you can simply copy it to any place you want it.
|
||||
*
|
||||
* @author Mikael Roos mos@dbwebb.se
|
||||
* @example http://dbwebb.se/opensource/cimage
|
||||
* @link https://github.com/mosbth/cimage
|
||||
@@ -11,20 +14,23 @@
|
||||
|
||||
/**
|
||||
* Change configuration details in the array below or create a separate file
|
||||
* where you store the configuration details. Name the config file same name as
|
||||
* this file and add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file 'img_config.php'.
|
||||
* where you store the configuration details.
|
||||
*
|
||||
* The configuration file should be named the same name as this file and then
|
||||
* add '_config.php'. If this file is named 'img.php' then name the
|
||||
* config file should be named 'img_config.php'.
|
||||
*
|
||||
* The settings below are only a few of the available ones. Check the file in
|
||||
* webroot/img_config.php for a complete list of configuration options.
|
||||
*/
|
||||
$config = array(
|
||||
|
||||
'mode' => 'strict', // 'production', 'development', 'strict'
|
||||
//'mode' => 'production', // 'production', 'development', 'strict'
|
||||
//'image_path' => __DIR__ . '/img/',
|
||||
//'cache_path' => __DIR__ . '/../cache/',
|
||||
//'alias_path' => __DIR__ . '/img/alias/',
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
//'remote_allow' => true,
|
||||
//'password' => false, // "secret-password",
|
||||
|
||||
);
|
||||
|
||||
@@ -586,7 +592,7 @@ class CRemoteImage
|
||||
*/
|
||||
public function loadCacheDetails()
|
||||
{
|
||||
$cacheFile = str_replace(["/", ":", "#", ".", "?"], "-", $this->url);
|
||||
$cacheFile = str_replace(array("/", ":", "#", ".", "?"), "-", $this->url);
|
||||
$this->fileName = $this->saveFolder . $cacheFile;
|
||||
$this->fileJson = $this->fileName . ".json";
|
||||
if (is_readable($this->fileJson)) {
|
||||
|
Reference in New Issue
Block a user