summaryrefslogtreecommitdiffstats
path: root/modules-available/imgmanagement
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/imgmanagement')
-rw-r--r--modules-available/imgmanagement/config.json4
-rw-r--r--modules-available/imgmanagement/lang/de/module.json3
-rw-r--r--modules-available/imgmanagement/lang/en/module.json3
-rw-r--r--modules-available/imgmanagement/lang/pt/module.json3
-rw-r--r--modules-available/imgmanagement/lang/pt/template-tags.json3
-rw-r--r--modules-available/imgmanagement/page.inc.php63
-rw-r--r--modules-available/imgmanagement/templates/page-imgmanagement.html62
7 files changed, 0 insertions, 141 deletions
diff --git a/modules-available/imgmanagement/config.json b/modules-available/imgmanagement/config.json
deleted file mode 100644
index 2fbb822f..00000000
--- a/modules-available/imgmanagement/config.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "category": "main.content",
- "permission": "1"
-} \ No newline at end of file
diff --git a/modules-available/imgmanagement/lang/de/module.json b/modules-available/imgmanagement/lang/de/module.json
deleted file mode 100644
index aff88855..00000000
--- a/modules-available/imgmanagement/lang/de/module.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "module_name": "Image-Verwaltung"
-} \ No newline at end of file
diff --git a/modules-available/imgmanagement/lang/en/module.json b/modules-available/imgmanagement/lang/en/module.json
deleted file mode 100644
index 0d1f4c24..00000000
--- a/modules-available/imgmanagement/lang/en/module.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "module_name": "Image management"
-} \ No newline at end of file
diff --git a/modules-available/imgmanagement/lang/pt/module.json b/modules-available/imgmanagement/lang/pt/module.json
deleted file mode 100644
index 83b9751a..00000000
--- a/modules-available/imgmanagement/lang/pt/module.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "module_name": "Gerenciamento de Imagens"
-} \ No newline at end of file
diff --git a/modules-available/imgmanagement/lang/pt/template-tags.json b/modules-available/imgmanagement/lang/pt/template-tags.json
deleted file mode 100644
index c44dc44f..00000000
--- a/modules-available/imgmanagement/lang/pt/template-tags.json
+++ /dev/null
@@ -1,3 +0,0 @@
-[
-
-] \ No newline at end of file
diff --git a/modules-available/imgmanagement/page.inc.php b/modules-available/imgmanagement/page.inc.php
deleted file mode 100644
index 99f1a1a3..00000000
--- a/modules-available/imgmanagement/page.inc.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-
-class Page_Imgmanagement extends Page
-{
-
- private $page;
- private $baselocation;
- private $images;
-
- protected function doPreprocess()
- {
-
- User::load();
- if (!User::hasPermission('baseconfig_local')) {
- Message::addError('main.no-permission');
- Util::redirect('?do=Main');
- }
-
- error_reporting(E_ALL);
- ini_set('display_errors','on');
-
- Session::get('token');
-
- }
-
- protected function doRender()
- {
- error_reporting(E_ALL);
- ini_set('display_errors','on');
-
- $actives = array();
- $deactives = array();
-
- $res = Database::simpleQuery("SELECT id, name, path, userid, is_template, is_active, description FROM images ORDER BY id DESC");
- while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
- if($row['is_active'])
- $actives[] = array(
- 'id' => $row['id'],
- 'name' => $row['name'],
- 'path' => $row['path'],
- 'userid' => $row['userid'],
- 'is_template' => $row['is_template'],
- 'is_active' => $row['is_active'],
- 'description' => $row['description']
- );
- else
- $deactives[] = array(
- 'id' => $row['id'],
- 'name' => $row['name'],
- 'path' => $row['path'],
- 'userid' => $row['userid'],
- 'is_template' => $row['is_template'],
- 'is_active' => $row['is_active'],
- 'description' => $row['description']
- );
-
- }
-
- Render::addTemplate('page-imgmanagement', array(
- 'deactives' => $deactives,
- 'actives' => $actives));
- }
-}
diff --git a/modules-available/imgmanagement/templates/page-imgmanagement.html b/modules-available/imgmanagement/templates/page-imgmanagement.html
deleted file mode 100644
index cdae627b..00000000
--- a/modules-available/imgmanagement/templates/page-imgmanagement.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<div class="panel panel-default">
- <div class="panel-heading">
- Gerenciamento de Imagens
- </div>
-
- <div class="panel-body">
- <div class="alert alert-info">
- Imagens em azul indicam imagens criadas pelo usuário
- </div>
-
- <div class="panel-body col-xs-6">
- <div class="left">
- <ul class="source connected">
- {{#deactives}}
- <li>{{name}}</li>
- {{/deactives}}
- </ul>
- </div>
- </div>
-
- <div class="panel-body col-xs-6">
- <div class="right">
- <ul class="target connected" id="ativa1">
-
- {{#actives}}
- <li>{{name}}</li>
- {{/actives}}
- </ul>
- </div>
- </div>
-
- <div class="panel-body text-center">
- <input type='button' value='<<' id='move_left' />
- <input type='button' value='>>' id='move_right' />
- <a class="btn btn-default" href="#" role="button">Upload de Nova Imagem<a>
- <a class="btn btn-info" href="#" role="button">Gerar IPXE<a>
- <a class="btn btn-info" href="#" role="button">Salvar<a>
- </div>
-
- </div>
-</div>
-
-<script src="script/jquery.sortable.min.js"></script>
-<script type="text/javascript">
- $(document).ready(function() {
- $(".source, .target").sortable({
- connectWith: ".connected"
- });
-
- });
- $('body').on('click', 'li', function() {
- $(this).toggleClass('selected');
- });
-
- $('#move_left').click(function() {
- $('.source').append($('.target .selected').removeClass('selected'));
- });
-
- $('#move_right').click(function() {
- $('.target').append($('.source .selected').removeClass('selected'));
- });
-</script>