Update index.php

pull/13/head
qkqpttgf 2020-01-02 09:00:31 +08:00 committed by GitHub
parent 76a3744af7
commit 0251f52869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -218,10 +218,11 @@ namespace:' . $namespace . '<br>
if ($_POST['submit1']) {
foreach ($_POST as $k => $v) {
if (in_array($k, $constEnv)) {
if (!(getConfig($k)==''&&$v=='')) $tmp[$k] = $v;
//if (!(getConfig($k)==''&&$v==''))
$tmp[$k] = $v;
}
}
$response = json_decode(setHerokuConfig($function_name, $tmp, getConfig('APIKey')), true);
$response = setConfig($tmp);
if (isset($response['id'])&&isset($response['message'])) {
$html = $response['id'] . '<br>
' . $response['message'] . '<br><br>
@ -684,7 +685,7 @@ function render_list($path, $files)
<li><a onclick="showdiv(event,'create','');"><?php echo $constStr['Create'][$constStr['language']]; ?></a></li>
<li><a onclick="showdiv(event,'encrypt','');"><?php echo $constStr['encrypt'][$constStr['language']]; ?></a></li>
<?php } ?>
<li><a <?php if (getConfig('APIKey')!='') { ?>href="<?php echo $_GET['preview']?'?preview&':'?';?>setup"<?php } else { ?>onclick="alert('<?php echo $constStr['SetSecretsFirst'][$constStr['language']]; ?>');"<?php } ?>><?php echo $constStr['Setup'][$constStr['language']]; ?></a></li>
<li><a href="<?php echo $_GET['preview']?'?preview&':'?';?>setup"><?php echo $constStr['Setup'][$constStr['language']]; ?></a></li>
<li><a onclick="logout()"><?php echo $constStr['Logout'][$constStr['language']]; ?></a></li>
</ul></li>
<?php