-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfig-sample.php
56 lines (42 loc) · 1.67 KB
/
config-sample.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
<?php
/* Set this if you would like to display errors and warning messages. */
define('DEBUG', false);
/* The title for the generated web pages.
* You probably want to put the title of your event here. */
define('TITLE', 'Your Page Title');
/* The url of the WordCamp. */
define('URL', 'Your WordCamp Url');
/* The logo of the event.
* It's 120px height if you don't want to adjust the webpage's CSS. */
define('TOP_LOGO', 'img/logo.png');
/* Database connection credentials.
* See the dbschema.sql file for the required structure. */
define('DB_HOST', 'localhost');
define('DB_NAME', 'your_db');
define('DB_USER', 'your_db_user');
define('DB_PASS', 'your_db_password');
/* Don't touch this unless you know what you're doing. */
define('BASE_PATH', dirname(__FILE__));
/* Where you want the application to generate the image cache.
* Remember to create this directory with write permissions. */
define('CACHE_DIR', 'cache');
/* Just leave it. */
define('CACHE_PATH', BASE_PATH . '/' . CACHE_DIR);
/* To know how to adjust the following positions, please take a look
* at the documentation.
* https://github.com/viniciusmassuchetto/certificate-generator */
/* Font and location of the person's name. */
define('IMG_NAME_FONT', BASE_PATH . '/font/arialbd.ttf');
define('IMG_NAME_TOP', 310);
define('IMG_NAME_SIZE', 30);
/* Font and location of general description text. */
define('IMG_DATA_FONT', BASE_PATH . '/font/arialbd.ttf');
define('IMG_DATA_TOP', 468);
define('IMG_DATA_SIZE', 26);
/* Font color for the texts that will be placed in the certificate. */
define('FONT_COLOR_R', 255);
define('FONT_COLOR_G', 255);
define('FONT_COLOR_B', 255);
global $db;
require('functions.php');
?>