ImgHost/index.php

50 lines
1.7 KiB
PHP

<!--
ImgHost - An open source image databasing and hosting system
A project by Taylor Courage (http://taylorcourage.net)
Latest Release: v0.5.0-alpha (Dec 17, 2023)
See README.MD for the latest changelog
-->
<?php
include './config/db_config.php';
include './config/configuration.php';
?>
<html>
<head>
<link rel="stylesheet" href="./config/<?php echo $stylesheet; ?>">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
<title><?php echo $serverName; ?></title>
</head>
<body class="background">
<div class="layout" align="center">
<h1><?php echo $serverName; ?></h1>
<br />
<h3>Image Upload</h3>
<form action="upload.php" method="post" enctype="multipart/form-data">
<br />
<p><input type="file" name="fileToUpload" id="fileToUpload" /></p>
<?php
if ($enablePrivate == 1) {
echo '<p><input type="checkbox" name="isPrivate" id="isPrivate" value="1" /><label for="isPrivate"> Private</label></p>';
echo '<p>Private images will not be shown in the public gallery, but will still be accessible by visiting the provided link.</p>';
echo '<p>All links are generated at random, and are virtually impossible to guess. "Security" through obscurity!</p>';
}
?>
<p><input type="submit" value="Upload Your Image" name="submit" /></p>
</form>
<br />
<p>Accepted file formats: .gif, .png, .jpg/jpeg, .webp</p>
<br />
<hr>
<br />
<input type="submit" value="Browse Public Images" onclick="window.location='./browse';" />
<br />
<br />
<br />
<h6><?php echo $serverName . " - " . $serverVers; ?></h6>
</div>
</body>
</html>