add ability to advertise https option
This commit is contained in:
1 parent
538e94143c
commit
57db23b2ae
4 files changed
+11
-2
No files matched your search
+2
-1
@@ -10,6 +10,7 @@ return array(
|
||||
'maximagesize' => 3072000, //in bytes
|
||||
'maxtextlength' => 5000, //in bytes
|
||||
'admincontact' => 'your@email', //will be encoded in the agreement webpage
|
||||
'allowedhtml' => '<p><b><i><u><br><ul><li><font>' //HTML could mess up the client, or be used as an attack, allow only certain safer tags
|
||||
'allowedhtml' => '<p><b><i><u><br><ul><li><font>', //HTML could mess up the client, or be used as an attack, allow only certain safer tags
|
||||
'allowhttps' => false //if your server supports https, set to true to advertise the option. requiring https is up to your server (redirect) config.
|
||||
);
|
||||
?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
global $config;
|
||||
if ($config['allowhttps'] && !isset($_SERVER['HTTPS'])) {
|
||||
$secure_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
|
||||
echo $actual_link;
|
||||
echo "<img src='images/lock.png' style='height:20px; width:20px; margin-top: -2px; vertical-align:middle'> <a href='" . $secure_link . "'>Switch to HTTPS</a> | ";
|
||||
}
|
||||
?>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
+1
-1
@@ -44,7 +44,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body class="login" onload="swapTech()">
|
||||
<div class="login-header"><a href="index.php">Cancel</a> </div>
|
||||
<div class="login-header"><?php include("header.php");?><a href="index.php">Cancel</a> </div>
|
||||
<table width="100%" height="95%" border="0" id="tableLayout">
|
||||
<tr>
|
||||
<td width="100%" height="100%" border="0" id="tdLayout" align="center">
|
||||
|
||||
Reference in new issue
Block a user