aboutsummaryrefslogtreecommitdiff
path: root/classes/Constants.php
blob: 3ffadd71b3130b297c91c98e9e0b1cd9cf835189 (plain) (blame)
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
<?php
/**
 * Some constants that can be used on other locations
 *
 * @author Camil Staps
 *
 * BusinessAdmin: administrative software for small companies
 * Copyright (C) 2015 Camil Staps (ViviSoft)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * A class for some constants
 */
class Constants {
	/** @const db_prefix                A prefix to add to the tables in the database (leave empty for none) */
	const db_prefix                     = '';

	/** @const files_folder             The folder to store all files (appendices, invoices, etc.) in; with a trailing slash */
	const files_folder                  = '/var/www/localhost/BusinessAdmin/files/';
	/** @const files_folder_external    The external URI to this folder; with a trailing slash */
	const files_folder_external         = 'http://localhost/BusinessAdmin/files/';
	/** @const files_folder_trash       The folder inside files_folder to use a trash, without any trailing slashes */
	const files_folder_trash            = 'trash';

	/** @const url_external             The external URI to this folder; with a trailing slash */
	const url_external                  = 'http://localhost/BusinessAdmin/';
	/** @const url_internal             The URI without the domain name; with a slash at the beginning but not at the end */
	const url_internal                  = '/BusinessAdmin';

	/** @const my_name                  Name of this control panel */
	const my_name                       = 'BusinessAdmin';

	/**
	 * @const invoice_name              Your name or the name of your business
	 * @const invoice_address_1         First address line
	 * @const invoice_address_2         Second address line
	 * @const invoice_address_3         Third address line
	 * @const invoice_tax_nr            Your tax number
	 * @const invoice_iban              Your IBAN number
	 * @const invoice_bic               The BIC code of your bank
	 * @const invoice_tel_nr            Your telephone number
	 * @const invoice_email             Your email address
	 * @const invoice_valuta            The valuta symbol (will be placed in front of amounts). You can use a symbol like $ or a code like USD
	 */
	const invoice_name                  = 'BusinessAdmin';
	const invoice_address_1             = 'My Street 1';
	const invoice_address_2             = '12345 My City';
	const invoice_address_3             = 'My Country';
	const invoice_tax_nr                = 'XX123456789A00';
	const invoice_iban                  = 'XX00 ABCD 1234 5678 90';
	const invoice_bic                   = 'XXXX XXXX';
	const invoice_tel_nr                = '+31 6 1234 5678';
	const invoice_email                 = 'my-email@domain.tld';
	const invoice_valuta                = '€';

	/** @const fa_valuta see http://fontawesome.io/icons/#currency; the fa- postfix for valuta */
	const fa_valuta                     = 'eur';

	/** @const user_admins              The user ids that have administrator rights (creating and deleting users) */
	const user_admins                   = [1];

	/**
	 * @const password_algo             Algorithm for the password_hash function.
	 * @const password_cost             Cost for the password_hash function. Run install?password_cost to benchmark your system
	 */
	const password_algo                 = PASSWORD_DEFAULT;
	const password_cost                 = 10;

	/** @const version                  Version of BusinessAdmin. Don't change this yourself! */
	const version                       = '0.4.2';
}