forked from Cride5/visualcube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualcube_config.php
48 lines (38 loc) · 1.13 KB
/
visualcube_config.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
<?php
// Maximum cube dimension to render (pzl)
$MAX_PZL_DIM = 10;
// Whether to allow cookie config of style variables (r, sch, bg, cc, co, fo, dist)
$ENABLE_COOKIES = true;
// Default rendering values
$DEFAULTS = Array(
'fmt' => 'svg',
'pzl' => '3',
'size' => '128',
'view' => '',
'stage' => '',
'r' => 'y45x-34',
'alg' => '',
'case' => '',
'fd' => '',
'fc' => '',
'sch' => 'yrbwog',
'bg' => 'white',
'cc' => 'black',
'co' => '100',
'fo' => '100',
'dist' => '5',
);
// Location of ImageMagick's 'convert' binary.
// NOTE: if the $PATH variable is set up correctly using just 'convert' is sufficient
$CONVERT="convert";
// -------------[ Cache related configuration ]---------------
// Whether image caching is enabled. NOTE: if enabled a cron
// job will need to be set up to prune the database
$ENABLE_CACHE = false;
// Database Configuration (for image caching)
$DB_HOST="localhost";
$DB_NAME="DATABASE_NAME";
$DB_USERNAME="DATABASE_USERNAME";
$DB_PASSWORD="DATABASE_PASSWORD";
// Maximum size of image to be cached
$CACHE_IMG_SIZE_LIMIT = 10000; // 10Kb