-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
55 lines (50 loc) · 1.98 KB
/
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
48
49
50
51
52
53
54
55
<?php
date_default_timezone_set("Europe/Helsinki"); // this is needed for getting the correct daily items
error_reporting(0);
/*
* Database configuration:
* =======================
*
* Create file named "config.database.php", and place the following variables there:
*
* $mysql_host = "localhost"; // Your MySQL server host
* $mysq_port = ""; // MySQL server port
* $mysql_database = "camera"; // MySQL database to be used
* $mysql_user = "root"; // User with read/write privileges to the database
* $mysql_pass = ""; // Password for the user
*
*/
require_once("config.database.php");
/*
* Cameras configuration:
* ======================
*
* Create file named "config.camera.php", and place the following variables there:
*
* $media_storage = "/path/to/storage"; // real file system path where images are located
* // Note! Make symlink to this path in webroot as "media"
* $process_uploaded_images_limit = 1000; // default is 1000, 0 to process indefinitely
* $process_uploaded_images_time_limit = 50; // processing time limit for uploads.php (default 50 seconds)
*
* $cameras[] = (object) array( "id" => "1", "name" => "Etupuoli" );
* $camera_paths[] = (object) array( "path" => "/path/to/camera1/videos", "camera" => "1" );
* $camera_paths[] = (object) array( "path" => "/path/to/camera1/pictures", "camera" => "1" );
*
* $cameras[] = (object) array( "id" => "2", "name" => "Takapuoli" );
* $camera_paths[] = (object) array( "path" => "/path/to/camera2/videos", "camera" => "2" );
* $camera_paths[] = (object) array( "path" => "/path/to/camera2/pictures", "camera" => "2" );
*
*/
require_once("config.camera.php");
/*
* Host configuration:
* ===================
*
* Create file named "config.site.php", and place the following variables there:
*
* $site_url = "http://myserver.local/camerasystem/"; // Fully qualified URL of the site
* $site_path = "/camerasystem/"; // Relative path of the site
*
*/
require_once("config.site.php");
?>