mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Fix slash on windows server
This commit is contained in:
parent
cd16026f31
commit
a63991ad2d
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
$path = rtrim(dirname($_SERVER['PHP_SELF']), '/');
|
$path = rtrim(str_replace('\\','/',dirname($_SERVER['PHP_SELF'])), '/');
|
||||||
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
|
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user