Files
5ducky/legacy/templates/upload.tpl.php
T
kibiandClaude Opus 5.5 664d8c6117 Move the original PHP site into legacy/
The PHP sources, templates and old jQuery-based scripts move unchanged into
legacy/ for reference. Shared assets (media/, images/, favicon.ico, the
default avatar) stay at the repository root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 02:15:05 +02:00

69 lines
1.8 KiB
PHP

<?php include( $templates.'header.tpl.php' );
$upl = DB::getRow("SELECT * FROM pl_settings");
if ($upl["upload"] != 1){ ?>
<div align="center">
<fieldset>
<legend>Upload / Post</legend>
<div class="warn">
There was an issue uploading your image:
<ul>Upload Disabled.</ul>
</div>
</fieldset>
</div>
<?php }else{
?>
<div align="center">
<form action="<?php echo Config::$absolutePath; ?>upload" enctype="multipart/form-data" method="POST">
<fieldset>
<legend>Upload / Post</legend>
<?php if( !empty( $uploadErrors ) ) { ?>
<div class="warn">
There was an issue uploading your image:
<ul>
<?php foreach( $uploadErrors as $msg ) { ?>
<li class="error"><?php echo $msg?></li>
<?php }/*foreach*/?>
</ul>
</div>
<?php }/*if*/?>
<dl class="form">
<dt>Info:</dt>
<dd>
- Sinnloser Goreupload = Ban
</dd>
<dt>&nbsp;</dt>
<dd>
- Nur lustige Sachen erlaubt.
</dd>
<dt>&nbsp;</dt>
<dd>
- Wenn ihr Fragen habt schreibt eine PN - oh wait hier ist nicht Schwuchtel-4fuckr, nervt jemand Anderen mit euren Problemen.
</dd>
<dt>&nbsp;</dt> <dd>&nbsp;</dd>
<dt>File:</dt>
<dd>
<input type="file" name="image" style="color: #000; background-color: #fff;"/>
</dd>
<dt>or URL:</dt>
<dd>
<input type="text" name="url" value="<?php echo htmlspecialchars( $_POST['url'] ); ?>"/>
</dd>
<dt>Comment</dt>
<dd>
<textarea name="ucomment" rows="3" cols="60"></textarea>
</dd>
<dt>&nbsp;</dt>
<dd>
<input type="submit" name="upload" value="Upload" class="button"/>
</dd>
</dl>
</fieldset>
</form>
</div>
<?php } include( $templates.'footer.tpl.php' ); ?>