XOOPS & DataLife Engine için CMS modül yayın sistemi
Ortak CSS + 2 sayfa + 10 widget
Xoops için SSL kurulumu daha sonra yapıldığında https:// protokolünde yönlendirme sorunları olabiliyor.Bu sorunları gidermek için aşağıdaki örneği inceleyebilirsiniz.
mainfile.php define('XOOPS_URL', 'https://siteadii.com.tr'); $checkScheme = function () {
$s = $_SERVER;
$parsed = parse_url(XOOPS_URL);
$targetScheme = $parsed['scheme'];
$currentScheme = (!empty($s['HTTPS']) && $s['HTTPS'] !== 'off') ? 'https' : 'http';
if (0 !== strcmp($targetScheme, $currentScheme)) {
$host = $parsed['host'];
$port = isset($parsed['port']) ? ':' . $parsed['port'] : '';
$fullUrl = $targetScheme . '://' . $host . $port . $s['REQUEST_URI'];
header('Location: ' . $fullUrl, true, 301);
exit();
}
};
$checkScheme();