Remove the cloud create submit page

This commit is contained in:
Gregory Trolliet 2021-01-11 18:05:46 +01:00
parent 17a975f28d
commit af32ddf003
4 changed files with 13 additions and 24 deletions

View file

@ -47,27 +47,8 @@ if (empty($_POST)) {
if ($cloud = $db->createCloud($text, $size, $duration)) {
$viewUrl = 'result.php?id=' . $cloud['code'];
$viewName = 'https://' . $_SERVER['HTTP_HOST'] . '/' . $viewUrl;
$voteUrl = 'index.php?id=' . $cloud['code'];
$voteName = 'https://' . $_SERVER['HTTP_HOST'] . '/' . $voteUrl;
?>
<h2><?php echo L::cloud_links_warning ?></h2>
<div id="cloud_links">
<div id="cloud_links_results" class="cloud_link">
<div class="label"><?php echo L::cloud_link_view_title ?></div>
<div class="link">
<a href="<?php echo $viewUrl ?>" title="<?php echo L::cloud_link_view_tooltip ?>"><?php echo $viewName ?></a>
</div>
</div>
<div id="cloud_links_vote" class="cloud_link">
<div class="label"><?php echo L::cloud_link_vote_title ?></div>
<div class="link">
<a href="<?php echo $voteUrl ?>" title="<?php echo L::cloud_link_vote_tooltip ?>"><?php echo $voteName ?></a>
</div>
</div>
</div>
<?php
header('Location: ' . $viewUrl);
die();
} else {
?>
<h2><?php echo L::create_errorCode ?></h2>