starting to show HTTPS preferences
This commit is contained in:
parent
46e21285d6
commit
1a0614dcf3
|
@ -120,6 +120,7 @@ if (! empty($r['dns_result']) && $r['dns_result'] != '0') {
|
||||||
<?php if ( $r["dns"] ) { ?>
|
<?php if ( $r["dns"] ) { ?>
|
||||||
<li class="view"><a href="#tabsdom-view" onClick="update_dns_content();"><?php __("View");?></a></li>
|
<li class="view"><a href="#tabsdom-view" onClick="update_dns_content();"><?php __("View");?></a></li>
|
||||||
<?php } //if gesdns ?>
|
<?php } //if gesdns ?>
|
||||||
|
<li class="ssl"><a href="#tabsdom-ssl" onClick="update_ssl_content();"><?php __("HTTPS Preferences");?></a></li>
|
||||||
<li class="delete"><a href="#tabsdom-delete"><?php __("Delete");?></a></li>
|
<li class="delete"><a href="#tabsdom-delete"><?php __("Delete");?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@ -360,6 +361,12 @@ if (!$r['noerase']) {
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
|
<div id="tabsdom-ssl">
|
||||||
|
<div id="sslpref">
|
||||||
|
</div>
|
||||||
|
</div> <!-- tabsdom-ssl -->
|
||||||
|
|
||||||
</div> <!-- tabsdom -->
|
</div> <!-- tabsdom -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
@ -380,6 +387,14 @@ function update_dns_content(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_ssl_content(){
|
||||||
|
$.ajax({
|
||||||
|
url: "dom_ssl.inc.php?domain=<?php echo urlencode($domain)?>",
|
||||||
|
}).done(function( html ) {
|
||||||
|
$("#sslpref").html(html);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function force_update_dns_content(){
|
function force_update_dns_content(){
|
||||||
get_dns_content = 1;
|
get_dns_content = 1;
|
||||||
$("#divdumpdns").html('In progress...');
|
$("#divdumpdns").html('In progress...');
|
||||||
|
|
|
@ -0,0 +1,69 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form to get/set HTTPS preferences
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$fields = array (
|
||||||
|
"domain" => array ("request", "string", (empty($domain)?"":$domain) ),
|
||||||
|
);
|
||||||
|
getFields($fields);
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p class="alert alert-info"><?php __("These parameters are for advanced user who want to choose specific certificate provider. <br />Usually you'd want to click 'edit' in front of a subdomain to choose between HTTP and HTTPS by default."); ?></p>
|
||||||
|
<p>
|
||||||
|
<?php __("For each subdomain that may be available through HTTPS, please choose which certificate provider you want to use."); ?>
|
||||||
|
<br />
|
||||||
|
<?php __("please note that you only see a provider if you have a valid certificate for this domain"); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table class="tlist" id="dom_edit_ssl">
|
||||||
|
<thead>
|
||||||
|
<tr><th><?php __("Subdomain"); ?></th><th><?php __("HTTPS Preference"); ?></th></tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$dom->lock();
|
||||||
|
if (!$r=$dom->get_domain_all($domain)) {
|
||||||
|
$dom->unlock();
|
||||||
|
echo $msg->msg_html_all();
|
||||||
|
include('foot.php');
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
for($i=0;$i<$r["nsub"];$i++) {
|
||||||
|
if (!$r["sub"][$i]["only_dns"]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
echo "<br />\n";
|
||||||
|
echo "<tr>";
|
||||||
|
echo "<td>".$r["name"].(($r["name"])?".":"").$r["sub"][$i]["name"]."</td>";
|
||||||
|
echo "<td><select name=\"ssl_".$r["sub"][$i]["name"]."\" id=\"ssl_".$r["sub"][$i]["name"]."\">";
|
||||||
|
echo "<option value=\"\">"._("-- no HTTPS certificate provider preference --")."</option>";
|
||||||
|
echo "</select>";
|
||||||
|
echo "</td>";
|
||||||
|
echo "</tr>";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -1073,11 +1073,11 @@ div.progress-bar div.txt {
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lock a, a.lock, input.lock {
|
.ssl a:before, input.ssl:before, a.ssl:before, .lock a:before, a.lock:before, input.lock:before {
|
||||||
background-image: url(../icon/encrypted.png);
|
font-family: "Font Awesome 5 Free";
|
||||||
background-repeat: no-repeat;
|
font-weight: 900;
|
||||||
background-position: 8px 5px;
|
content:"\f023";
|
||||||
padding-left: 30px;
|
padding-right: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings a:before, a.settings:before, input.settings:before {
|
.settings a:before, a.settings:before, input.settings:before {
|
||||||
|
@ -1425,7 +1425,7 @@ body .ui-tabs .ui-tabs-panel {
|
||||||
}
|
}
|
||||||
|
|
||||||
body .ui-tabs .ui-tabs-nav li a {
|
body .ui-tabs .ui-tabs-nav li a {
|
||||||
padding: .5em 1em .5em 30px;
|
padding: .5em 1em .5em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .ui-state-active, body .ui-widget-content .ui-state-active, body .ui-widget-header .ui-state-active,
|
body .ui-state-active, body .ui-widget-content .ui-state-active, body .ui-widget-header .ui-state-active,
|
||||||
|
@ -1717,14 +1717,6 @@ small > i {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.ssl a, a.ssl, input.ssl, .ssl-menu .menu-title {
|
|
||||||
background-image: url(../images/ssl.png);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: 8px 3px;
|
|
||||||
padding-left: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea.cert {
|
textarea.cert {
|
||||||
font-family: Courier New, Courier, monospace, fixed;
|
font-family: Courier New, Courier, monospace, fixed;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|
Loading…
Reference in New Issue