forked from andig/videodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.php
More file actions
99 lines (83 loc) · 3.82 KB
/
Copy pathconfig.sample.php
File metadata and controls
99 lines (83 loc) · 3.82 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* Global config file
*
* Sets database connection Strings and debug option
*
* @package Setup
* @author Andreas Gohr <a.gohr@web.de>
* @author Andreas Goetz <cpuidle@gmx.de>
* @version $Id: config.sample.php,v 1.10 2012/06/14 17:17:36 andig2 Exp $
*/
/* Database configuration */
$config['db_server'] = 'localhost'; // database server
$config['db_user'] = 'videodb'; // DB user for connection
$config['db_password'] = ''; // password for above user
$config['db_database'] = 'videodb'; // Database name
$config['db_prefix'] = 'videodb_'; // Database table prefix (for use in hosting environments)
$config['offline'] = 0; // Use to take videoDB offline
// Boxee box configuration
$config['boxeeHost'] = ''; // boxee box host
$config['boxeePort'] = 9090; // boxee box port
/* Debug options */
$config['debug'] = 0; // Usually leave this at 0
$config['httpclientlog'] = 0; // HttpClient logging (debug only)
/* Cache configuration */
$config['IMDBage'] = 3600*24*7; // Maximum cache age in seconds
$config['hierarchical'] = 1; // Set to 1 to enable hierarchical cache folders (if existing!)
$config['cache_pruning'] = 1; // Set to 1 to enable automatical cleanup of cache folders
/* Defaults for external data lookup */
$config['lookupdefault_edit'] = 0; // 0=ignore, 1=lookup, 2=overwrite
$config['lookupdefault_new'] = 2; // 0=ignore, 1=lookup, 2=overwrite
/*
* Amount of digits which are automatically generated as DiskID
* if "Automatic DiskID" is enabled in the configuration tab
*/
$config['diskid_digits'] = 4;
/* XML Import/Export */
$config['xml'] = 0; // Set to 1 to enable XML data im/export - import requires php5
/* RSS Feed */
$config['rss'] = 1; // Set to 1 to enable RSS Feed
/*
* Thumbnail configuration
*
* If you're running videodb over a low bandwidth connection with many users or want to enhance
* image quality by applying smooth scaling, use the following settings to control the behavior.
*
* Define when thumbnails are created and which jpeg quality to use:
*/
define('TUMB_NO_SCALE', -1); // no scaling - use of thumbnails is disabled
define('TUMB_REDUCE_ONLY', 0); // reduce only - create thumbnails when requested image dimensions are smaller than original image
define('TUMB_SCALE', 1); // always scale - create thumbnails for all images (applies aliasing when scaling)
// or define a positive integer to check filesize - thumbnail is created when existing file is bigger than specified value
$config['thumbnail_level'] = TUMB_SCALE;
$config['thumbnail_quality'] = 80;
/*
* To enable PDF export you can uncomment the following line and edit
* the settings in pdf.inc.php.
* The required FPDF library is bundled in the lib/fpdf folder.
*/
require_once 'pdf.inc.php';
/*
* To enable XLS export you can uncomment the following line and edit
* the settings in xls.inc.php. This option requires the additional installation
* of "Spreadsheet OLE" and "Spreadsheet Excel Writer". They have to be accessible
* from the "include_path" which is set inside "php.ini".
*
* In the Apache Distribution XAMPP it is included by default.
* On gentoo linux systems you can easily add it by typing
* emerge dev-php/PEAR-Spreadsheet_Excel_Writer
*
* Official Website:
* http://pear.php.net/package/Spreadsheet_Excel_Writer/
*/
// require_once 'xls.inc.php';
/*
* To get access to FSK18 rated movies in the german dvdb engine you
* have to enter your dvdb user id and password. If you don't have a
* user you can go to http://www.dvdb.de and click on 'Neu registrieren'.
* Don't forget to enter the identification card id to get FSK18 access!
*/
$config['dvdb_user'] = '';
$config['dvdb_password'] = '';
?>