forked from ezsystems/ezpublish-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_image.php
58 lines (50 loc) · 2.19 KB
/
index_image.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version //autogentag//
* @package kernel
*/
/*
This file should be included from a file containing
clustering database settings.
Here are sample contents of such file:
-------------------------------------------
<?php
define( 'STORAGE_BACKEND', 'mysql' );
define( 'STORAGE_HOST', 'db' );
define( 'STORAGE_PORT', 3306 );
define( 'STORAGE_SOCKET', '/tmp/mysql.sock' );
define( 'STORAGE_USER', 'fred' );
define( 'STORAGE_PASS', 'secret' );
define( 'STORAGE_DB', 'cluster' );
define( 'STORAGE_CHUNK_SIZE', 65535 );
// define the Expires HTTP header timeout in seconds.
// It's set to 6000 seconds (100 minutes) if EXPIRY_TIMEOUT is not defined.
// to work around an IE bug, it's recommended to not set it to a value lower
// than 600 seconds (10 minutes).
// Image urls contain the version number, it can be set to a very far future
// without any risk (one year below)
define( 'EXPIRY_TIMEOUT', 60 * 60 * 24 * 365 );
// If you use the DFS cluster, you also need to set the path for the shared directory:
define( 'MOUNT_POINT_PATH', 'var/nfsmount' );
// If you use Oracle you might want to set these (see README.cluster in the ezoracle extension):
//define( 'USE_ETAG', true );
//define ( 'STORAGE_PERSISTENT_CONNECTION', true );
// If you're not using UTF-8 (which we STRONGLY recommend),
// you MUST define the character set according to your setup:
// site.ini/[DatabaseSettings]/Charset
// Not doing so will use a default UTF-8 connection
// NOTE: Use here a character set as understood by the server!
// MySQL uses for instance 'utf8', 'latin1', 'cp1250',... rather than
// 'utf-8', 'iso-8859-1', 'windows-1250',...
define( 'STORAGE_CHARSET', 'utf8' );
//include_once( 'index_image.php' );
?>
-------------------------------------------
*/
if ( !defined( 'STORAGE_BACKEND' ) )
die( "No storage backend chosen.\n" );
ini_set( 'display_errors', 0 );
include_once( 'index_image_' . STORAGE_BACKEND . '.php' );
?>