CA/CERT Move

This commit is contained in:
jim-p 2010-09-01 15:26:50 -04:00
parent 4e990e1e20
commit b4e6524c16
8 changed files with 25 additions and 25 deletions

View File

@ -62,7 +62,7 @@ $pconfig['enablesshd'] = $config['system']['enablesshd'];
$pconfig['sshport'] = $config['system']['ssh']['port'];
$pconfig['sshdkeyonly'] = isset($config['system']['ssh']['sshdkeyonly']);
$a_cert =& $config['system']['cert'];
$a_cert =& $config['cert'];
$certs_available = false;
if (is_array($a_cert) && count($a_cert))

View File

@ -52,15 +52,15 @@ $id = $_GET['id'];
if (isset($_POST['id']))
$id = $_POST['id'];
if (!is_array($config['system']['ca']))
$config['system']['ca'] = array();
if (!is_array($config['ca']))
$config['ca'] = array();
$a_ca =& $config['system']['ca'];
$a_ca =& $config['ca'];
if (!is_array($config['system']['cert']))
$config['system']['cert'] = array();
if (!is_array($config['cert']))
$config['cert'] = array();
$a_cert =& $config['system']['cert'];
$a_cert =& $config['cert'];
$act = $_GET['act'];
if ($_POST['act'])

View File

@ -53,15 +53,15 @@ $id = $_GET['id'];
if (isset($_POST['id']))
$id = $_POST['id'];
if (!is_array($config['system']['ca']))
$config['system']['ca'] = array();
if (!is_array($config['ca']))
$config['ca'] = array();
$a_ca =& $config['system']['ca'];
$a_ca =& $config['ca'];
if (!is_array($config['system']['cert']))
$config['system']['cert'] = array();
if (!is_array($config['cert']))
$config['cert'] = array();
$a_cert =& $config['system']['cert'];
$a_cert =& $config['cert'];
$internal_ca_count = 0;
foreach ($a_ca as $ca)

View File

@ -674,8 +674,8 @@ function sshkeyClicked(obj) {
</tr>
<?php else : ?>
<?php if (is_array($config['system']['ca']) && count($config['system']['ca']) > 0): ?>
<?php $i = 0; foreach( $config['system']['ca'] as $ca) {
<?php if (is_array($config['ca']) && count($config['ca']) > 0): ?>
<?php $i = 0; foreach( $config['ca'] as $ca) {
if (!$ca['prv'])
continue;
$i++;
@ -706,7 +706,7 @@ function sshkeyClicked(obj) {
<td width="78%" class="vtable">
<select name='caref' id='caref' class="formselect" onChange='internalca_change()'>
<?php
foreach( $config['system']['ca'] as $ca):
foreach( $config['ca'] as $ca):
if (!$ca['prv'])
continue;
?>

View File

@ -53,10 +53,10 @@ if (!is_array($config['system']['user']))
$a_user =& $config['system']['user'];
if (!is_array($config['system']['ca']))
$config['system']['ca'] = array();
if (!is_array($config['ca']))
$config['ca'] = array();
$a_ca =& $config['system']['ca'];
$a_ca =& $config['ca'];
$internal_ca_count = 0;
foreach ($a_ca as $ca)

View File

@ -702,7 +702,7 @@ function dpdchkbox_change() {
<td width="78%" class="vtable">
<select name='certref' class="formselect">
<?php
foreach ($config['system']['cert'] as $cert):
foreach ($config['cert'] as $cert):
$selected = "";
if ($pconfig['certref'] == $cert['refid'])
$selected = "selected";
@ -721,7 +721,7 @@ function dpdchkbox_change() {
<td width="78%" class="vtable">
<select name='caref' class="formselect">
<?php
foreach ($config['system']['ca'] as $ca):
foreach ($config['ca'] as $ca):
$selected = "";
if ($pconfig['caref'] == $ca['refid'])
$selected = "selected";

View File

@ -610,7 +610,7 @@ function autotls_change() {
<td width="78%" class="vtable">
<select name='caref' class="formselect">
<?php
foreach ($config['system']['ca'] as $ca):
foreach ($config['ca'] as $ca):
$selected = "";
if ($pconfig['caref'] == $ca['refid'])
$selected = "selected";
@ -625,7 +625,7 @@ function autotls_change() {
<td width="78%" class="vtable">
<select name='certref' class="formselect">
<?php
foreach ($config['system']['cert'] as $cert):
foreach ($config['cert'] as $cert):
$selected = "";
if ($pconfig['certref'] == $cert['refid'])
$selected = "selected";

View File

@ -698,7 +698,7 @@ function netbios_change() {
<td width="78%" class="vtable">
<select name='caref' class="formselect">
<?php
foreach ($config['system']['ca'] as $ca):
foreach ($config['ca'] as $ca):
$selected = "";
if ($pconfig['caref'] == $ca['refid'])
$selected = "selected";
@ -713,7 +713,7 @@ function netbios_change() {
<td width="78%" class="vtable">
<select name='certref' class="formselect">
<?php
foreach ($config['system']['cert'] as $cert):
foreach ($config['cert'] as $cert):
$selected = "";
if (strstr($cert['name'], "webConfigurator"))
continue;