La til ikoner ✅
This commit is contained in:
parent
bdcb14961d
commit
0a9d2b0617
BIN
img/info.ico
Normal file
BIN
img/info.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
15
index.php
15
index.php
@ -76,12 +76,12 @@ session_start();
|
||||
<div class="title-bar">
|
||||
<div class="title-bar-text">Trygves filopplasting!</div>
|
||||
<div class="title-bar-controls">
|
||||
<button aria-label="Close"></button>
|
||||
<a href="https://trygve.net"><button aria-label="Close" ></button></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="window-body">
|
||||
<p>Hei! Her kan du laste opp filer du ønsker å dele med andre, eller bare deg selv. Fra tid til annen sletter jeg filene her for for å spare plass så denne sida er kun for midlertidig fillagring.</p>
|
||||
<a href="/offentlig">Her kan du bla gjennom alle offentlige filer</a>
|
||||
<a href="/offentlig/">Her kan du bla gjennom alle offentlige filer</a>
|
||||
<article>
|
||||
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group">
|
||||
@ -112,7 +112,9 @@ session_start();
|
||||
</div>
|
||||
</div>
|
||||
<div class="window-body">
|
||||
<p>'. $message . '</p>
|
||||
<section class="field-row">
|
||||
<img src="'. $icon_name .'" height="32px"><p>'. $message . '</p>
|
||||
</section>
|
||||
<section class="field-row" style="justify-content: flex-end"><button onclick="document.getElementById(\'popup\').remove()">Ok</button></section>
|
||||
</div>
|
||||
</div>';
|
||||
@ -128,9 +130,12 @@ session_start();
|
||||
</div>
|
||||
</div>
|
||||
<div class="window-body">
|
||||
<section class="field-row">
|
||||
<img src="img/info.ico" height="32px">
|
||||
<p>'
|
||||
. $_SESSION['linkData'] .
|
||||
'</p>
|
||||
</section>
|
||||
<section class="field-row" style="justify-content: flex-end"><button onclick="copyToClipboard(\'' . $_SESSION['link'] . '\')">Kopier lenke</button></section>
|
||||
</div>
|
||||
</div>
|
||||
@ -139,10 +144,10 @@ session_start();
|
||||
echo($successMSG);
|
||||
}
|
||||
elseif ($_SESSION['fileupload-response'] == "failed") {
|
||||
echo(popup($_SESSION['filename'], 'Oisan, noe gikk vist galt!', 'ERROR'));
|
||||
echo(popup($_SESSION['filename'], 'Oisan, noe gikk vist galt!', 'img/!.png'));
|
||||
}
|
||||
elseif ($_SESSION['fileupload-response'] == "banned") {
|
||||
echo(popup($_SESSION['filename'], 'Stoppe en hall! Denne filtypen er forbudt!', 'ERROR'));
|
||||
echo(popup($_SESSION['filename'], 'Stoppe en hall! Denne filtypen er forbudt!', 'img/x.png'));
|
||||
}
|
||||
session_destroy();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user