aboutsummaryrefslogtreecommitdiffstats
path: root/template/admin/html/database.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
committerThomas Lange <code@nerdmind.de>2017-02-24 21:27:59 +0100
commit52b077a48c743ba4d08ac00520a0bf1ef6deef5f (patch)
treeb4205c194167e0e03e273957cdd0aab3be9fdf01 /template/admin/html/database.php
downloadblog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.gz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.tar.xz
blog-52b077a48c743ba4d08ac00520a0bf1ef6deef5f.zip
Initial commit.v1.0
Diffstat (limited to 'template/admin/html/database.php')
-rw-r--r--template/admin/html/database.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/template/admin/html/database.php b/template/admin/html/database.php
new file mode 100644
index 0000000..92c5103
--- /dev/null
+++ b/template/admin/html/database.php
@@ -0,0 +1,26 @@
+<h1><i class="fa fa-database"></i><?=$Language->template('overview_database_text')?></h1>
+<p><?=$Language->template('overview_database_desc')?></p>
+
+<?php if(isset($FORM['INFO'])): ?>
+ <?php foreach($FORM['INFO'] as $message): ?>
+ <div class="red"><?=$message?></div>
+ <?php endforeach; ?>
+<?php endif; ?>
+
+<form action="" method="POST">
+ <input type="hidden" name="token" value="<?=$FORM['TOKEN']?>" />
+
+ <section class="flex flex-padding">
+ <textarea id="content-editor" placeholder="<?=$Language->template('database_warning')?>" name="command"><?=escapeHTML($FORM['COMMAND'])?></textarea>
+ </section>
+
+<?php if(isset($FORM['RESULT'])): ?>
+ <section class="flex flex-padding background flex-direction-column">
+ <pre id="database-result"><?=escapeHTML($FORM['RESULT'])?></pre>
+ </section>
+<?php endif; ?>
+
+ <section class="flex flex-padding background">
+ <input type="submit" name="execute" value="Execute" />
+ </section>
+</form> \ No newline at end of file