forked from 4ducky/4ducky
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>
69 lines
1.8 KiB
PHP
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> </dt>
|
|
<dd>
|
|
- Nur lustige Sachen erlaubt.
|
|
</dd>
|
|
<dt> </dt>
|
|
<dd>
|
|
- Wenn ihr Fragen habt schreibt eine PN - oh wait hier ist nicht Schwuchtel-4fuckr, nervt jemand Anderen mit euren Problemen.
|
|
</dd>
|
|
<dt> </dt> <dd> </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> </dt>
|
|
<dd>
|
|
<input type="submit" name="upload" value="Upload" class="button"/>
|
|
</dd>
|
|
</dl>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<?php } include( $templates.'footer.tpl.php' ); ?>
|