diff --git a/rhein/sai/saimod_webcraft_gallery/qq/SAIMOD_WEBCRAFT_GALLERY_GALLERIES.php b/rhein/sai/saimod_webcraft_gallery/qq/SAIMOD_WEBCRAFT_GALLERY_GALLERIES.php
deleted file mode 100644
index f34ccde..0000000
--- a/rhein/sai/saimod_webcraft_gallery/qq/SAIMOD_WEBCRAFT_GALLERY_GALLERIES.php
+++ /dev/null
@@ -1,11 +0,0 @@
-next()){
- $img['active'] = $first ? 'active' : '';
- $first = false;
- $gallery_items .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webraft_gallery_gallery_item.tpl'), $img);}
- return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webraft_gallery_gallery.tpl'),
- array('gallery' => $id, 'items' => $gallery_items));
- }
-
- public static function getGalleryGalleria($id){
- $gallery = \DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERY_ID::QQ(array($id));
- $result = '';
- while($img = $gallery->next()){
- $result .= '
';}
- $result .= '';
- return $result;
- }
-
- public static function sai_mod_saimod_webcraft_gallery_action_addgalleryitem($gallery, $position, $heading, $description, $file_cat, $file_id){
- if(!\DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERY_ITEM_ADD::QI(array($gallery, $position, $heading, $description, $file_cat, $file_id))){
- throw new SYSTEM\LOG\ERROR("Problem with adding Galleryitem!");}
- return \SYSTEM\LOG\JsonResult::ok();}
- public static function sai_mod_saimod_webcraft_gallery_action_delgalleryitem($id){
- if(!\DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERY_ITEM_DELETE::QI(array($id))){
- throw new SYSTEM\LOG\ERROR("Problem with deleting Galleryitem!");}
- return \SYSTEM\LOG\JsonResult::ok();}
- public static function sai_mod_saimod_webcraft_gallery_action_chggalleryitem($id, $gallery, $position, $heading, $description, $file_cat, $file_id){
- if(!\DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERY_ITEM_CHG::QI(array($gallery, $position, $heading, $description, $file_cat, $file_id, $id))){
- throw new SYSTEM\LOG\ERROR("Problem with changing Galleryitem!");}
- return \SYSTEM\LOG\JsonResult::ok();}
-
- public static function sai_mod_saimod_webcraft_gallery_action_addgallery(){
- $vars = array('file_cat_options' => self::select_options_cat(), 'file_id_options' => self::sai_mod_saimod_webcraft_gallery_action_select_options_id(array_keys(\SYSTEM\FILES\files::get())[0]));
- return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_add.tpl'),$vars);
- }
-
- private static function select_options_cat($cat = null){
- $result = '';
- $cats = \SYSTEM\FILES\files::get();
- foreach($cats as $name=>$path){
- $selected = $name == $cat ? 'selected' : '';
- $result .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_file_option.tpl'), array('name' => $name, 'selected' => $selected));
- }
- return $result;
- }
-
- public static function sai_mod_saimod_webcraft_gallery_action_select_options_id($cat, $id = null){
- $result = '';
- $files = \SYSTEM\FILES\files::get($cat);
- foreach($files as $file){
- $selected = $file == $id ? 'selected' : '';
- $result .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_file_option.tpl'), array('name' => $file, 'selected' => $selected));
- }
- return $result;
- }
-
- public static function sai_mod_saimod_webcraft_gallery_action_showgalleryitem($gallery,$id){
- $vars = \DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERY_ITEM_ID::Q1(array($gallery,$id));
- $vars = array_merge($vars, array('file_cat_options' => self::select_options_cat($vars['file_cat']), 'file_id_options' => self::sai_mod_saimod_webcraft_gallery_action_select_options_id($vars['file_cat'],$vars['file_id'])));
- return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_show.tpl'),$vars);
- }
-
- public static function sai_mod_saimod_webcraft_gallery(){
- $galleries = DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERIES::QQ();
- $vars = array('tabopts' => '', 'firsttab' => '');
- $first = true;
- while($gallery = $galleries->next()){
- $gallery['active'] = $first ? 'active' : '';
- if($first){$vars['firsttab'] = self::sai_mod_saimod_webcraft_gallery_action_tab($gallery['gallery']);}
- $first = false;
- $vars['tabopts'] .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_tabopt.tpl'), $gallery);}
-
- return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_tabs.tpl'),$vars);
- }
-
- public static function sai_mod_saimod_webcraft_gallery_action_tab($name){
- $gallery = DBD\SAIMOD_WEBCRAFT_GALLERY_GALLERY_ID::QQ(array($name));
- $content = '';
- while($entry = $gallery->next()){
- $content .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_tabentry.tpl'), $entry);}
- return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new PSAI(), 'saimod_webcraft_gallery/saimod_webcraft_gallery_tab.tpl'),
- array('content' => $content, 'gallery' => self::getGalleryBootstrap($name)));
- }
-
- public static function html_li_menu(){return '
Gallery';}
- public static function right_public(){return false;}
- public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
- public static function sai_mod_saimod_webcraft_gallery_flag_js(){
- return \SYSTEM\LOG\JsonResult::toString(
- array( \SYSTEM\WEBPATH(new PSAI(),'saimod_webcraft_gallery/saimod_webcraft_gallery.js')));}
- public static function sai_mod_saimod_webcraft_gallery_flag_css(){
- return \SYSTEM\LOG\JsonResult::toString(array());}
-
-}
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_add.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_add.tpl
deleted file mode 100644
index 6b4106f..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_add.tpl
+++ /dev/null
@@ -1,31 +0,0 @@
-Add Gallery Element
-
-
-
-
-
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_file_option.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_file_option.tpl
deleted file mode 100644
index 63340a7..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_file_option.tpl
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_show.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_show.tpl
deleted file mode 100644
index 3a47b86..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_show.tpl
+++ /dev/null
@@ -1,37 +0,0 @@
-Show Gallery Element
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tab.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tab.tpl
deleted file mode 100644
index 47b8a7d..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tab.tpl
+++ /dev/null
@@ -1,20 +0,0 @@
-${gallery}
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabentry.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabentry.tpl
deleted file mode 100644
index 449ad41..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabentry.tpl
+++ /dev/null
@@ -1,8 +0,0 @@
-
- | ${ID} |
- ${gallery} |
- ${position} |
- ${heading} |
- ${description} |
- ./api.php?call=files&cat=${file_cat}&id=${file_id} |
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabopt.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabopt.tpl
deleted file mode 100644
index 062063e..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabopt.tpl
+++ /dev/null
@@ -1 +0,0 @@
-Gallery ${gallery}
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabs.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabs.tpl
deleted file mode 100644
index c718641..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webcraft_gallery_tabs.tpl
+++ /dev/null
@@ -1,10 +0,0 @@
-Gallery
-
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webraft_gallery_gallery.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webraft_gallery_gallery.tpl
deleted file mode 100644
index 2f3b8ba..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webraft_gallery_gallery.tpl
+++ /dev/null
@@ -1,5 +0,0 @@
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/saimod_webraft_gallery_gallery_item.tpl b/rhein/sai/saimod_webcraft_gallery/saimod_webraft_gallery_gallery_item.tpl
deleted file mode 100644
index 8e78282..0000000
--- a/rhein/sai/saimod_webcraft_gallery/saimod_webraft_gallery_gallery_item.tpl
+++ /dev/null
@@ -1,7 +0,0 @@
-
-

-
-
${heading}
-
${description}
-
-
\ No newline at end of file
diff --git a/rhein/sai/saimod_webcraft_gallery/sql/saimod_webcraft_gallery.sql b/rhein/sai/saimod_webcraft_gallery/sql/saimod_webcraft_gallery.sql
deleted file mode 100644
index e1d822a..0000000
--- a/rhein/sai/saimod_webcraft_gallery/sql/saimod_webcraft_gallery.sql
+++ /dev/null
@@ -1,26 +0,0 @@
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5000, 42, 0, 0, 'saimod_webcraft_gallery', 'action', NULL);
-
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5001, 42, 2, 5000, 'showgalleryitem', 'gallery', 'UINT0');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5002, 42, 2, 5000, 'showgalleryitem', 'id', 'UINT0');
-
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5005, 42, 2, 5000, 'addgalleryitem', 'gallery', 'UINT0');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5006, 42, 2, 5000, 'addgalleryitem', 'position', 'UINT0');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5007, 42, 2, 5000, 'addgalleryitem', 'heading', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5008, 42, 2, 5000, 'addgalleryitem', 'description', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5009, 42, 2, 5000, 'addgalleryitem', 'file_cat', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5010, 42, 2, 5000, 'addgalleryitem', 'file_id', 'STRING');
-
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5015, 42, 2, 5000, 'delgalleryitem', 'id', 'UINT0');
-
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5020, 42, 2, 5000, 'select_options_id', 'cat', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5021, 42, 3, 5000, 'select_options_id', 'id', 'STRING');
-
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5025, 42, 2, 5000, 'chggalleryitem', 'id', 'UINT0');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5026, 42, 2, 5000, 'chggalleryitem', 'gallery', 'UINT0');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5027, 42, 2, 5000, 'chggalleryitem', 'position', 'UINT0');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5028, 42, 2, 5000, 'chggalleryitem', 'heading', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5029, 42, 2, 5000, 'chggalleryitem', 'description', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5030, 42, 2, 5000, 'chggalleryitem', 'file_cat', 'STRING');
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5031, 42, 2, 5000, 'chggalleryitem', 'file_id', 'STRING');
-
-INSERT INTO `system_api` (`ID`, `group`, `type`, `parentID`, `parentValue`, `name`, `verify`) VALUES (5035, 42, 2, 5000, 'tab', 'name', 'UINT0');
\ No newline at end of file