<?php
error_reporting(0);
?>
<!DOCTYPE html>
<html>
<head>
    <title>imgeasy: host your crap I guess</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
    <div class="container">
        <center>
            <a href="/"><img src="logo2.png"></a><br>
            <div class="note">jpg, png, gif, svg, txt, webm, webp, mp4 and mov files allowed up to ~30mb</div><br><br>
            <label for="fileToUpload" class="custom-file-upload">
                <span id="fileCount">Select Files</span>
                <input id="fileToUpload" type="file" accept="image/*,video/mp4,video/webm,txt,svg,video/quicktime,image/webp" multiple onchange="updateFileCount()" />
            </label>
            <div class="centered-note">you can also drag and drop anywhere inside this box</div><br>
            <button onclick="uploadFiles()" class="button">Upload</button><br>
            <div id="uploadResult"></div>
        </center>
    </div>

    <script src="upload.js"></script>
    <div class="centered-note">
        <?php include "stats.php"; ?>
        <br>
		Send Abuse and DMCA reports to <a href="mailto:report@imgeasy.com">report@imgeasy.com</a><br>
		<a href="sharex-setup" target="_new">ShareX uploading possible</a> - Want to share more? <a href="https://sharemy.zip">sharemy.zip</a>
    </div>
</body>
</html>

