forked from GlotPress/GlotPress-standalone
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgp-config-sample.php
211 lines (190 loc) · 7.54 KB
/
gp-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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php
/**
* The base configuration of the GlotPress
*
* This file has the following configurations: MySQL settings, table prefix,
* secret keys, GlotPress language and integration with WordPress user system.
* You can get the MySQL settings from your web host.
*
*/
/** The name of the database for GlotPress */
define('GPDB_NAME', 'glotpress');
/** MySQL database username */
define('GPDB_USER', 'username');
/** MySQL database password */
define('GPDB_PASSWORD', 'password');
/** MySQL hostname */
define('GPDB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('GPDB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('GPDB_COLLATE', '');
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
*
* @since 0.1
*/
define('GP_AUTH_KEY', 'put your unique phrase here');
define('GP_SECURE_AUTH_KEY', 'put your unique phrase here');
define('GP_LOGGED_IN_KEY', 'put your unique phrase here');
define('GP_NONCE_KEY', 'put your unique phrase here');
/**#@-*/
/**
* GlotPress Localized Language, defaults to English.
*
* Change this to localize GlotPress. A corresponding MO file for the chosen
* language must be installed to languages/. For example, install
* fr_FR.mo to languages/ and set GP_LANG to 'fr_FR' to enable French
* language support.
*/
define('GP_LANG', '');
/**
* Custom users and usermeta tables for integration with WordPress user system.
*
* You might want to delete your current permissions, since they will point to different
* users in the custom table. You can use `php scripts/wipe-permissions.php` for that.
*
* If you start with fresh permissions, you can add admins via `php scripts/add-admin.php`
*/
// define('CUSTOM_USER_TABLE', 'wp_users');
// define('CUSTOM_USER_META_TABLE', 'wp_usermeta');
/**
* GlotPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$gp_table_prefix = 'gp_';
/**
* Google Translate Plugin
*
* Enable the Google Translate plugin by uncommenting the following define and
* adding your Google API key.
*
* For more options, see plugins/google-translate/readme.txt
*/
//define('GP_GOOGLE_TRANSLATE', 'YOUR-API-KEY-HERE');
/**
* Use Slug for Downloads Plugin
*
* Enable the Use Slug for Downloads plugin by uncommenting the following define.
*
* For more options, see plugins/use-slug-for-downloads/readme.txt
*/
//define('GP_USE_SLUG_FOR_DOWNLOADS', true);
/**
* Remove Projects from Breadcrumbs Plugin
*
* Enable the Remove Projects from Breadcrumbs plugin by uncommenting the following define.
* If you wish the GlotPress logo to take you directly to a spcific project, then uncomment
* the second define and add your own URL.
*
* For more options, see plugins/remove-projects-from-breadcrumbs/readme.txt
*/
//define('GP_REMOVE_PROJECTS_FROM_BREADCRUMS', true);
//define('GP_REMOVE_PROJECTS_FROM_BREADCRUMS_LOGO_URL', 'projects/test/');
/**
* WordPress Single Sign On Plugin
*
* For more details, see plugins/wordpress-single-sign-on/readme.txt
*/
//define('GP_WORDPRESS_SINGLE_SIGN_ON', true);
//define('AUTH_CLASS', 'WP_Auth_V2');
//define('AUTH_CLASS_FILE', './plugins/wordpress-single-sign-on/class.wp-auth.v2.php');
//define('GP_LOGIN_PATH', '/wp-login.php' );
//define('GP_WORDPRESS_HASH', md5( 'YOUR-WP-PATH-HERE' ) );
//define('GP_AUTH_COOKIE', 'wordpress_' . GP_WORDPRESS_HASH);
//define('GP_SECURE_AUTH_COOKIE', 'wordpress_sec_auth_' . GP_WORDPRESS_HASH);
//define('GP_LOGGED_IN_COOKIE', 'wordpress_logged_in_' . GP_WORDPRESS_HASH);
//define('GP_AUTH_SALT', 'YOUR-SALT-HERE');
//define('GP_SECURE_AUTH_SALT', 'YOUR-SALT-HERE');
//define('GP_LOGGED_IN_SALT', 'YOUR-SALT-HERE');
//define('GP_NONCE_SALT', 'YOUR-SALT-HERE');
/**
* New Window for External Links Plugin
*
* Enable the New Window for External Links plugin by uncommenting the following define.
*
* For more options, see plugins/google-translate/readme.txt
*/
//define( 'GP_NEW_WINDOW_FOR_EXTERNAL_LINKS', true );
/**
* Remove Powered By Plugin
*
* Enable the Remove Powered By plugin by uncommenting the following define.
*
* For more options, see plugins/remove-powered-by/readme.txt
*/
//define( 'GP_REMOVE_POWERED_BY', true );
/**
* Bulk Download Translations Plugin
*
* Enable the Bulk Download Translations plugin by uncommenting the first define below.
* To include more than just the PO files in the export, uncomment the appropriate define below.
*
* Note: If uncomment more than the first define and want the PO files in the export you must
* uncomment the second define.
*
* For more options, see the readme in plugins/google-translate/readme.txt
*/
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS', true );
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS_FORMAT_PO', true );
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS_FORMAT_MO', true );
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS_FORMAT_ANDROID', true );
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS_FORMAT_RESX', true );
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS_FORMAT_STRINGS', true );
//define( 'GP_BULK_DOWNLOAD_TRANSLATIONS_TEMP_DIR', 'c:/temp' );
/**
* Force SSL Plugin
*
* Enable the Force SSL plugin by uncommenting the first two defines below. You may also need to uncomment
* the additional lines if your hosting provider places the SSL certificates on a proxy server in front of
* the web server. If you enable SSL and get an infinite redirect loop, try uncommenting these lines.
*
* Note: If uncomment more than the first define and want the PO files in the export you must
* uncomment the second define.
*
* For more options, see the readme in plugins/force-ssl/readme.txt
*/
//define( 'GP_SSL', true );
//define( 'GP_FORCE_SSL', true );
//
// If your hosting provider puts the server behind a reverse proxy with the SSL certificates on them,
// check for the extended protocol type and set the variables as required.
//if (array_key_exists( 'HTTP_X_FORWARDED_PROTO', $_SERVER ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
// $_SERVER['HTTPS']='on';
// $_SERVER['SERVER_PORT']='443';
//}
/**
* Single Click Edit Plugin
*
* Single Click Edit is a plugin for GlotPress that will enable users to single click anywhere
* on the translation row to open the editor instead of having to click on "Details" or double
* click the row.
*
* For more options, see the readme in plugins/single-click-edit/readme.txt
*/
//define( 'GP_SINGLE_CLICK_EDIT', true );
/**
* Last Update Plugin
*
* Last Update is a plugin for GlotPress that will display the last update time for translation
* sets.
*
* For more options, see the readme in plugins/single-click-edit/readme.txt
*/
//define( 'GP_LAST_UPDATE', true ); // Enable the plugin.
//define( 'GP_LAST_UPDATE_FORMAT', 'M j Y @ g:i a' ); // See PHP's date() function for format, default: 'M j Y @ g:i a'
//define( 'GP_LAST_UPDATE_REQUIRED_PERMISSION', 'approve' ); // Permissions: read, approve, admin
/**
* Color Logo Plugin
*
* Color Logo is a plugin for GlotPress that will make the GlotPress logo in to top left of the
* screen have some color.
*
* For more options, see the readme in plugins/color-logo/readme.txt
*/
//define( 'GP_COLOR_LOGO', true );