Added missing files

This commit is contained in:
Marcin Kurczewski 2013-10-07 20:45:09 +02:00
parent 793d996166
commit 1b57b9b691
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<p>Todo: help. Examples what should be written here:</p>
<ul>
<li>what does NSFW mean</li>
<li>search syntax</li>
<li>search syntax examples</li>
</ul>

View file

@ -0,0 +1,12 @@
<?php
if (!empty($this->context->transport->errorMessage))
{
\Chibi\HeadersHelper::set('Content-Type', 'text/plain; charset=utf-8');
echo $this->context->transport->errorMessage;
}
else
{
\Chibi\HeadersHelper::set('Content-Type', $this->context->transport->mimeType);
readfile($this->context->transport->filePath);
flush();
}

View file

@ -0,0 +1,5 @@
<?php if (!empty($this->context->transport->errorMessage)): ?>
<p class="alert alert-error"><?php echo $this->context->transport->errorMessage ?></p>
<?php else: ?>
<img src="<?php echo \Chibi\UrlHelper::route('post', 'send', ['name' => $this->context->transport->post->name]) ?>" alt="<?php echo $this->context->transport->post->name ?>"/>
<?php endif ?>