· 7 years ago · Nov 07, 2018, 06:56 AM
1root@web1:/home/wordpress/public_html# cat wp-config.php
2<?php
3/** Enable W3 Total Cache */
4define('WP_CACHE', true); // Added by W3 Total Cache
5
6
7
8
9
10define( 'WP_AUTO_UPDATE_CORE', false );
11
12
13if ( ($_SERVER['HTTP_HOST']=='caxtondigital.co.za') || ($_SERVER['HTTP_HOST']=='kormorant.co.za') || ($_SERVER['HTTP_HOST']=='heidelbergnigelheraut.co.za') || ($_SERVER['HTTP_HOST']=='letabaherald.co.za') || ($_SERVER['HTTP_HOST']=='albertonrecord.co.za') || ($_SERVER['HTTP_HOST']=='kathorusmail.co.za') || ($_SERVER['HTTP_HOST']=='krugersdorpnews.co.za') || ($_SERVER['HTTP_HOST']=='comarochronicle.co.za') || ($_SERVER['HTTP_HOST']=='africanreporter.co.za') || ($_SERVER['HTTP_HOST']=='benonicitytimes.co.za') || ($_SERVER['HTTP_HOST']=='boksburgadvertiser.co.za') || ($_SERVER['HTTP_HOST']=='brakpanherald.co.za') || ($_SERVER['HTTP_HOST']=='germistoncitynews.co.za') || ($_SERVER['HTTP_HOST']=='springsadvertiser.co.za') || ($_SERVER['HTTP_HOST']=='tembisan.co.za') || ($_SERVER['HTTP_HOST']=='alexnews.co.za') || ($_SERVER['HTTP_HOST']=='citybuzz.co.za') || ($_SERVER['HTTP_HOST']=='fourwaysreview.co.za') || ($_SERVER['HTTP_HOST']=='joburgeastexpress.co.za') || ($_SERVER['HTTP_HOST']=='midrandreporter.co.za') || ($_SERVER['HTTP_HOST']=='northeasterntribune.co.za') || ($_SERVER['HTTP_HOST']=='northcliffmelvilletimes.co.za') || ($_SERVER['HTTP_HOST']=='randburgsun.co.za') || ($_SERVER['HTTP_HOST']=='roodepoortnorthsider.co.za') || ($_SERVER['HTTP_HOST']=='rosebankkillarneygazette.co.za') || ($_SERVER['HTTP_HOST']=='sandtonchronicle.co.za') || ($_SERVER['HTTP_HOST']=='bedfordviewedenvalenews.co.za') || ($_SERVER['HTTP_HOST']=='kemptonexpress.co.za') || ($_SERVER['HTTP_HOST']=='southerncourier.co.za') || ($_SERVER['HTTP_HOST']=='randfonteinherald.co.za') || ($_SERVER['HTTP_HOST']=='roodepoortrecord.co.za') || ($_SERVER['HTTP_HOST']=='sowetourban.co.za') || ($_SERVER['HTTP_HOST']=='westside-eldos.co.za') || ($_SERVER['HTTP_HOST']=='barbertontimes.co.za') || ($_SERVER['HTTP_HOST']=='corridorgazette.co.za') || ($_SERVER['HTTP_HOST']=='hazyviewherald.co.za') || ($_SERVER['HTTP_HOST']=='lowvelder.co.za') || ($_SERVER['HTTP_HOST']=='mpumalanganews.co.za') || ($_SERVER['HTTP_HOST']=='nelspruitpost.co.za') || ($_SERVER['HTTP_HOST']=='steelburgernews.co.za') || ($_SERVER['HTTP_HOST']=='whiteriverpost.co.za') || ($_SERVER['HTTP_HOST']=='rekordcenturion.co.za') || ($_SERVER['HTTP_HOST']=='rekordeast.co.za') || ($_SERVER['HTTP_HOST']=='rekordmoot.co.za') || ($_SERVER['HTTP_HOST']=='rekordnorth.co.za') || ($_SERVER['HTTP_HOST']=='highvelder.co.za') || ($_SERVER['HTTP_HOST']=='ridgetimes.co.za') || ($_SERVER['HTTP_HOST']=='standertonadvertiser.co.za') || ($_SERVER['HTTP_HOST']=='mobserver.co.za') || ($_SERVER['HTTP_HOST']=='witbanknews.co.za') || ($_SERVER['HTTP_HOST']=='capricornreview.co.za') || ($_SERVER['HTTP_HOST']=='reviewonline.co.za') || ($_SERVER['HTTP_HOST']=='bereamail.co.za') || ($_SERVER['HTTP_HOST']=='highwaymail.co.za') || ($_SERVER['HTTP_HOST']=='northglennews.co.za') || ($_SERVER['HTTP_HOST']=='southcoastsun.co.za') || ($_SERVER['HTTP_HOST']=='southlandssun.co.za') || ($_SERVER['HTTP_HOST']=='midsouthcoastrisingsun.co.za') || ($_SERVER['HTTP_HOST']=='phoenixsun.co.za') || ($_SERVER['HTTP_HOST']=='risingsunchatsworth.co.za') || ($_SERVER['HTTP_HOST']=='risingsunlenasia.co.za') || ($_SERVER['HTTP_HOST']=='risingsunoverport.co.za') || ($_SERVER['HTTP_HOST']=='estcourtnews.co.za') || ($_SERVER['HTTP_HOST']=='ladysmithgazette.co.za') || ($_SERVER['HTTP_HOST']=='newcastleadvertiser.co.za') || ($_SERVER['HTTP_HOST']=='northernnatalcourier.co.za') || ($_SERVER['HTTP_HOST']=='vryheidherald.co.za') || ($_SERVER['HTTP_HOST']=='eyethunews.co.za') || ($_SERVER['HTTP_HOST']=='maritzburgsun.co.za') || ($_SERVER['HTTP_HOST']=='publiceyemaritzburg.co.za') || ($_SERVER['HTTP_HOST']=='zululandobserver.co.za') || ($_SERVER['HTTP_HOST']=='southcoastherald.co.za') || ($_SERVER['HTTP_HOST']=='northcoastcourier.co.za') ) {
14
15 $_SERVER['HTTPS'] = 'on';
16
17 define('FORCE_SSL_ADMIN', true);
18
19}
20
21
22
23
24
25
26
27
28
29
30/**
31
32* The base configurations of the WordPress.
33
34*
35
36* This file has the following configurations: MySQL settings, Table Prefix,
37
38* Secret Keys, WordPress Language, and ABSPATH. You can find more information
39
40* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
41
42* wp-config.php} Codex page. You can get the MySQL settings from your web host.
43
44*
45
46* This file is used by the wp-config.php creation script during the
47
48* installation. You don't have to use the web site, you can just copy this file
49
50* to "wp-config.php" and fill in the values.
51
52*
53
54* @package WordPress
55
56*/
57
58
59// ** Server settings - to allow comments posted to not be throttle ** //
60
61$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
62
63
64// ** MySQL settings - You can get this info from your web host ** //
65
66/** The name of the database for WordPress */
67
68define('DB_NAME', 'wordpress');
69
70/** MySQL database username */
71
72define('DB_USER', 'wordpress');
73
74/** MySQL database password */
75
76define('DB_PASSWORD', 'q2gyt29qpowebnfpioubwe');
77
78/** MySQL hostname */
79
80define('DB_HOST', '172.16.1.21');
81
82/** Database Charset to use in creating database tables. */
83
84define('DB_CHARSET', 'utf8');
85
86/** The Database Collate type. Don't change this if in doubt. */
87
88define('DB_COLLATE', '');
89
90/**#@+
91
92* Authentication Unique Keys and Salts.
93
94*
95
96* Change these to different unique phrases!
97
98* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
99
100* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
101
102*
103
104* @since 2.6.0
105
106*/
107
108define('AUTH_KEY', 'o:1WF-qV*)}^$60mg/*+( :[x*JM[i{W,{kU8.})E+Wo?8?edA%gfo]pk4h;hiFT');
109
110define('SECURE_AUTH_KEY', '`*!,>+Fodr|d`.>!%4T`BfyDpzsiIz)RU+uN{Y}@o,CA6E_TES*R8GPtZ2`~1=`k');
111
112define('LOGGED_IN_KEY', '>]SmKd%_xh ^3R?TNSGq|oXNTtDy3U=3-1(J1*^||xK~KNvZ#0P~1`_f8*7Z+_#k');
113
114define('NONCE_KEY', 'L](|]WW.[L,e,IU5|EH;B<zO>/:[OM8a9WTAMk|nowXKj}3L/CF;qEyeV0j_LS=l');
115
116define('AUTH_SALT', '~FHwLpY:pZkVbN;#R}FOzMno$+M3!R>[NNwDgxmnN-TEppob-%};,A4[0X;N}HGL');
117
118define('SECURE_AUTH_SALT', '+)F|>+vrX#::Kpbok*.hN3E939v!w+].KR$LA9 IUYtP6,a&7Le-si4ILq|eF--5');
119
120define('LOGGED_IN_SALT', '/98@1CX1x6lfOQC/piAOG:b`bu-~3Y:Q@_&`M80:#@Obdt+w6o~X-2T,46Xb|X*V');
121
122define('NONCE_SALT', 'Xw=/1$;>3LGY|8 Ajwb$H[A+Qy7ye,7s7vOGs$Ouk-9a|2B<F6nZ,{|(juuDhZCX');
123
124/**#@-*/
125
126/**
127
128* WordPress Database Table prefix.
129
130*
131
132* You can have multiple installations in one database if you give each a unique
133
134* prefix. Only numbers, letters, and underscores please!
135
136*/
137
138$table_prefix = 'wp_';
139
140/**
141
142* WordPress Localized Language, defaults to English.
143
144*
145
146* Change this to localize WordPress. A corresponding MO file for the chosen
147
148* language must be installed to wp-content/languages. For example, install
149
150* de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
151
152* language support.
153
154*/
155
156define('WPLANG', '');
157
158/**
159
160* For developers: WordPress debugging mode.
161
162*
163
164* Change this to true to enable the display of notices during development.
165
166* It is strongly recommended that plugin and theme developers use WP_DEBUG
167
168* in their development environments.
169
170*/
171
172//
173//if ($_SERVER['HTTP_HOST']=='jabavuurbannews.co.za') {
174// define('WP_DEBUG', false);
175// define('WP_DEBUG_DISPLAY', false);
176//} else {
177// define('WP_DEBUG', false);
178// define('WP_DEBUG_DISPLAY', false); }
179
180//added this
181if ($_SERVER["REMOTE_ADDR"] == '41.71.67.155') {
182 define( 'WP_DEBUG', true );
183 define( 'WP_DEBUG_LOG', true );
184 define( 'WP_DEBUG_DISPLAY', true );
185} else {
186 define( 'WP_DEBUG', false );
187 define( 'WP_DEBUG_LOG', false );
188 define( 'WP_DEBUG_DISPLAY', false );
189}
190//added this
191
192
193//define('WP_DEBUG', false);
194
195//define('WP_DEBUG_DISPLAY', false);
196//define('WP_DEBUG_LOG', false);
197
198/* Multisite */
199
200#define('WP_ALLOW_MULTISITE', true);
201
202define('MULTISITE', true);
203
204define('SUBDOMAIN_INSTALL', true);
205
206define('DOMAIN_CURRENT_SITE', 'sites.caxton.co.za');
207
208define('PATH_CURRENT_SITE', '/');
209
210define('SITE_ID_CURRENT_SITE', 1);
211
212define('BLOG_ID_CURRENT_SITE', 1);
213
214define( 'SUNRISE', 'on' );
215
216define('WP_DEFAULT_THEME', 'Caxton WMS Default');
217
218define('WP_MEMORY_LIMIT', '512M');
219
220define( 'NOBLOGREDIRECT', 'http://localnewsnetwork.co.za' );
221
222define('DISABLE_WP_CRON', true);
223
224define( 'WP_POST_REVISIONS', 3);
225
226set_time_limit(0);
227
228/* That's all, stop editing! Happy blogging. */
229
230/** Absolute path to the WordPress directory. */
231
232if ( !defined('ABSPATH') )
233
234define('ABSPATH', dirname(__FILE__) . '/');
235
236/** Sets up WordPress vars and included files. */
237
238require_once(ABSPATH . 'wp-settings.php');