Permalink
Browse files

Fixes on things

Fixed HTTPS detection on viewer.phtml
Fixed Stylesheet location where it was relying on site root
  • Loading branch information...
linuxgemini committed Oct 22, 2017
1 parent 7eb7575 commit 8b233220207e7c7560f2bf30244f004b8ab1181e
@@ -1,9 +1,10 @@
<?php $stylesheetDir = IMAGESERVE_DIR . "/assets/css/style.css"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php echo APP_NAME . " - Error"; ?></title>
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="<?php echo $stylesheetDir; ?>">
</head>

<body>
@@ -1,9 +1,10 @@
<?php $stylesheetDir = IMAGESERVE_DIR . "/assets/css/style.css"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php echo APP_NAME . " - Home"; ?></title>
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="<?php echo $stylesheetDir; ?>">
</head>

<body>
@@ -1,13 +1,14 @@
<?php
$imgurl = IMAGESERVE_DIR . "/images/$type/$file.$type";
$protocol = isset($_SERVER['https']) && $_SERVER['https'] != "off" ? "https" : "http";
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off" ? "https" : "http";
$stylesheetDir = IMAGESERVE_DIR . "/assets/css/style.css";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php echo APP_NAME . " - $file.$type"; ?></title>
<link rel="stylesheet" href="/assets/css/style.css">
<link rel="stylesheet" href="<?php echo $stylesheetDir; ?>">
<?php if (TWITTER_CARDS) { ?>
<meta name="twitter:card" content="photo" />
<meta name="twitter:site" content="<?php echo TWITTER_HANDLE; ?>" />

0 comments on commit 8b23322

Please sign in to comment.