Overview
Comment:Fix mixed content when WWW_URL is http and ADMIN_URL is https
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 7685aa1f87cd2e06f8d8ec8971cc3ac9850f5839
User & Date: bohwaz on 2020-12-04 23:59:21
Other Links: branch diff | manifest | tags
Context
2020-12-05
10:15
Fix cron.php has moved check-in: 6114f71e0c user: bohwaz tags: dev
2020-12-04
23:59
Fix mixed content when WWW_URL is http and ADMIN_URL is https check-in: 7685aa1f87 user: bohwaz tags: dev
20:24
Fix old services with wrong dates check-in: 9b1179a6fb user: bohwaz tags: dev, 1.0.0-rc5
Changes

Modified src/include/init.php from [3ff5d62638] to [53a38bd077].

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
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







-











+
+
+
+







	'SMTP_PORT'             => 587,
	'SMTP_SECURITY'         => 'STARTTLS',
	'ADMIN_URL'             => WWW_URL . 'admin/',
	'NTP_SERVER'            => 'fr.pool.ntp.org',
	'ENABLE_AUTOMATIC_BACKUPS' => true,
	'ADMIN_COLOR1'          => '#9c4f15',
	'ADMIN_COLOR2'          => '#d98628',
	'ADMIN_BACKGROUND_IMAGE' => WWW_URL . 'admin/static/gdin_bg.png'
];

foreach ($default_config as $const => $value)
{
	$const = sprintf('Garradin\\%s', $const);

	if (!defined($const))
	{
		define($const, $value);
	}
}

if (!defined('Garradin\ADMIN_BACKGROUND_IMAGE')) {
	define('Garradin\ADMIN_BACKGROUND_IMAGE', ADMIN_URL . 'static/gdin_bg.png');
}

const WEBSITE = 'https://fossil.kd2.org/garradin/';
const PLUGINS_URL = 'https://garradin.eu/plugins/list.json';

// PHP devrait être assez intelligent pour chopper la TZ système mais nan
// il sait pas faire (sauf sur Debian qui a le bon patch pour ça), donc pour
// éviter le message d'erreur à la con on définit une timezone par défaut