mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00

* Fix alert class name * feature: csrf protection * Cosmetics * Fix token generate * Admin Panel: changelogs csrf protection * news/id route * Refactor admin newses + add csrf * Use admin.links instead * Admin panel: Pages csrf * Menus: better csrf + add success message on reset colors * Plugins csrf * Move definitions * add info function, same as note($message) * Update mailer.php * Fix new page/news links * clear_cache & maintenance csrf * Formatting * Fix news type * Fix changelog link * Add new changelog link * More info to confirm dialog * This is always true
22 lines
598 B
Twig
22 lines
598 B
Twig
<div id="install_plugin">
|
|
<div class="card card-info card-outline">
|
|
<div class="card-header">
|
|
<h5 class="m-0">Install plugin</h5>
|
|
</div>
|
|
<form enctype="multipart/form-data" method="post" action="{{ constant('ADMIN_URL') }}?p=plugins">
|
|
{{ csrf() }}
|
|
<div class="card-body">
|
|
<input type="hidden" name="upload_plugin"/>
|
|
|
|
<div class="form-group">
|
|
<label>File input</label>
|
|
<input type="file" name="plugin" accept=".zip">
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<button type="submit" class="btn btn-info">Upload</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|