forked from ezsystems/ezpublish-legacy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index_image.php
27 lines (24 loc) · 860 Bytes
/
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
<?php
/*
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 );
//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' );
?>