Make impressum and privacy links able to open in a new tab

This commit is contained in:
2021-03-17 14:00:18 +01:00
parent 133be6c98d
commit 389f7343d3
4 changed files with 47 additions and 5 deletions

View File

@@ -505,10 +505,10 @@ if(isset($_GET["manageservice"])) {
echo '
<form action="admin.php?upautoreload" method="post">
<input type="text" class="username-field" value="'.$autoreload_setting.'" readonly>
<select name = "autoreload">
<option value = "enabled" selected>Enabled</option>
<option value = "disabled">Disabled</option>
</select>
<select name = "autoreload">
<option value = "enabled" selected>Enabled</option>
<option value = "disabled">Disabled</option>
</select>
<input style="display: none;" type="submit"><button class="button-green button-up">Submit</button></input>
</form>
@@ -518,6 +518,8 @@ if(isset($_GET["manageservice"])) {
echo '<p class="upassword">Impressum link set to: '.$_GET['impressumset'].'!</p>';
} else if($_GET['privacyset']) {
echo '<p class="upassword">Privacy policity link set to: '.$_GET['privacyset'].'!</p>';
} else if(isset($_GET['newtabset'])) {
echo '<p class="upassword">Open new tab policy updated!</p>';
}
echo '
<form action="admin.php?upimpressum" method="post">
@@ -531,6 +533,15 @@ if(isset($_GET["manageservice"])) {
<input type="text" class="username-field" placeholder="Privacy policity link" name="privacy">
<input style="display: none;" type="submit"><button class="button-green button-up">Submit</button></input>
</form>
<form action="admin.php?uptabpolicy" method="post">
<input type="text" class="username-field" value="'.$newtab.'" readonly>
<select name = "newtab">
<option value = "new tab" selected>new tab</option>
<option value = "same tab">same tab</option>
</select>
<input style="display: none;" type="submit"><button class="button-green button-up">Submit</button></input>
</form>
</div>
</div>';
}