From aa513707d09f68e0001b72e3dca0d37a579dac49 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 01 Nov 2005 15:27:43 -0500
Subject: [PATCH] some code cleanups
---
/dev/null | 0
interface/sql/ispconfig3db.sql | 305 +++++++++++++++++++++++++++++---------------------
2 files changed, 177 insertions(+), 128 deletions(-)
diff --git a/interface/sql/ispconfig3db.sql b/interface/sql/ispconfig3db.sql
index d2d583f..33dd406 100644
--- a/interface/sql/ispconfig3db.sql
+++ b/interface/sql/ispconfig3db.sql
@@ -6,134 +6,7 @@
# Erstellungszeit: 18. Oktober 2005 um 16:00
# Server Version: 4.0.22
# PHP-Version: 5.0.2
-# Datenbank: `scrigo`
-# --------------------------------------------------------
-
-#
-# Tabellenstruktur f�r Tabelle `haendler`
-#
-
-DROP TABLE IF EXISTS haendler;
-CREATE TABLE haendler (
- id bigint(20) NOT NULL auto_increment,
- KD_Nr varchar(15) NOT NULL default '',
- Typ varchar(255) NOT NULL default 'Verarbeiter',
- PLZ_Index varchar(5) NOT NULL default '',
- Name1 varchar(255) NOT NULL default '',
- Name2 varchar(255) NOT NULL default '',
- Strasse varchar(255) NOT NULL default '',
- PLZ varchar(20) NOT NULL default '',
- PLZ_Ort varchar(255) NOT NULL default '',
- Ort varchar(255) NOT NULL default '',
- Region varchar(255) NOT NULL default '',
- Land varchar(255) NOT NULL default '',
- Telefon varchar(255) NOT NULL default '',
- Fax varchar(255) NOT NULL default '',
- email varchar(255) NOT NULL default '',
- Internet varchar(255) NOT NULL default '',
- Verkauft varchar(255) NOT NULL default '',
- bem text NOT NULL,
- Land_lt_Haendler varchar(255) NOT NULL default '',
- Land_dt varchar(255) NOT NULL default '',
- Land_int varchar(255) NOT NULL default '',
- LK varchar(255) NOT NULL default '',
- PRIMARY KEY (id)
-) TYPE=MyISAM;
-
-#
-# Daten f�r Tabelle `haendler`
-#
-
-# --------------------------------------------------------
-
-#
-# Tabellenstruktur f�r Tabelle `media`
-#
-
-DROP TABLE IF EXISTS media;
-CREATE TABLE media (
- media_id bigint(20) NOT NULL auto_increment,
- media_profile_id varchar(255) NOT NULL default '',
- media_cat_id varchar(255) NOT NULL default '',
- media_name varchar(255) NOT NULL default '',
- media_type varchar(30) NOT NULL default '',
- media_size varchar(255) NOT NULL default '',
- media_format varchar(255) NOT NULL default '',
- thumbnail int(11) NOT NULL default '0',
- path0 varchar(255) NOT NULL default '',
- path1 varchar(255) NOT NULL default '',
- path2 varchar(255) NOT NULL default '',
- path3 varchar(255) NOT NULL default '',
- path4 varchar(255) NOT NULL default '',
- path5 varchar(255) NOT NULL default '',
- PRIMARY KEY (media_id)
-) TYPE=MyISAM;
-
-#
-# Daten f�r Tabelle `media`
-#
-
-# --------------------------------------------------------
-
-#
-# Tabellenstruktur f�r Tabelle `media_cat`
-#
-
-DROP TABLE IF EXISTS media_cat;
-CREATE TABLE media_cat (
- media_cat_id int(10) unsigned NOT NULL auto_increment,
- parent varchar(100) NOT NULL default '',
- sort varchar(10) NOT NULL default '9999',
- active char(1) NOT NULL default '1',
- name varchar(255) NOT NULL default '',
- PRIMARY KEY (media_cat_id),
- UNIQUE KEY tree_id (media_cat_id),
- KEY sort (sort)
-) TYPE=MyISAM PACK_KEYS=1;
-
-#
-# Daten f�r Tabelle `media_cat`
-#
-
-INSERT INTO media_cat VALUES (1, '0', '', '1', 'Images');
-# --------------------------------------------------------
-
-#
-# Tabellenstruktur f�r Tabelle `media_profile`
-#
-
-DROP TABLE IF EXISTS media_profile;
-CREATE TABLE media_profile (
- media_profile_id bigint(20) NOT NULL auto_increment,
- media_cat_id varchar(255) NOT NULL default '',
- profile_name varchar(255) NOT NULL default '',
- profile_description text NOT NULL,
- thumbnail int(11) NOT NULL default '1',
- original int(11) NOT NULL default '0',
- path0 varchar(255) NOT NULL default '',
- path1 varchar(255) NOT NULL default '',
- resize1 varchar(50) NOT NULL default '',
- options1 varchar(50) NOT NULL default '',
- path2 varchar(255) NOT NULL default '',
- resize2 varchar(50) NOT NULL default '',
- options2 varchar(50) NOT NULL default '',
- path3 varchar(255) NOT NULL default '',
- resize3 varchar(50) NOT NULL default '',
- options3 varchar(50) NOT NULL default '',
- path4 varchar(255) NOT NULL default '',
- resize4 varchar(50) NOT NULL default '',
- options4 varchar(50) NOT NULL default '',
- path5 varchar(255) NOT NULL default '',
- resize5 varchar(50) NOT NULL default '',
- options5 varchar(50) NOT NULL default '',
- PRIMARY KEY (media_profile_id)
-) TYPE=MyISAM;
-
-#
-# Daten f�r Tabelle `media_profile`
-#
-
-INSERT INTO media_profile VALUES (1, '2', 'Default Image', '', 1, 1, '[ROOT]/web/media/original/[ID].[EXT]', '[ROOT]/web/media/images/img_[ID]_80x110.[EXT]', '80x110', '-sharpen 2', '', '', '', '', '', '', '', '', '', '', '', '');
+# Datenbank: `ispconfig3`
# --------------------------------------------------------
#
@@ -274,3 +147,179 @@
INSERT INTO sys_user VALUES (1, 1, 0, 'riud', 'riud', '', 'admin', '21232f297a57a5a743894a0e4a801fc3', 'admin,clients,designer,resellers,sites', 'admin', 'default', 'admin', 1, '', 'Administrator', '', '', '', '', '', '', '', '', '', 'en', '1,2', 0);
+
+#
+# Tabellenstruktur f�r Tabelle `mail_blacklist`
+#
+
+DROP TABLE IF EXISTS mail_blacklist;
+CREATE TABLE mail_blacklist (
+ blacklist_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ address varchar(255) NOT NULL default '',
+ PRIMARY KEY (blacklist_id),
+ KEY server_id (server_id,address)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_domain`
+#
+
+DROP TABLE IF EXISTS mail_domain;
+CREATE TABLE mail_domain (
+ domain_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ domain varchar(255) NOT NULL default '',
+ type enum('local','relay','manual_relay') NOT NULL default 'local',
+ relay_host varchar(255) NOT NULL default '',
+ PRIMARY KEY (domain_id),
+ KEY server_id (server_id,domain,type)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_domain_alias`
+#
+
+DROP TABLE IF EXISTS mail_domain_alias;
+CREATE TABLE mail_domain_alias (
+ domain_alias_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ domain varchar(255) NOT NULL default '',
+ destination varchar(255) NOT NULL default '',
+ PRIMARY KEY (domain_alias_id),
+ KEY server_id (server_id,domain)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_domain_catchall`
+#
+
+DROP TABLE IF EXISTS mail_domain_catchall;
+CREATE TABLE mail_domain_catchall (
+ virtual_default_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ domain varchar(255) NOT NULL default '',
+ dest varchar(255) NOT NULL default '',
+ PRIMARY KEY (virtual_default_id),
+ KEY server_id (server_id,domain)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_email`
+#
+
+DROP TABLE IF EXISTS mail_email;
+CREATE TABLE mail_email (
+ mailbox_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ email varchar(255) NOT NULL default '',
+ type enum('mailbox','alias') NOT NULL default 'mailbox',
+ cryptpwd varchar(128) NOT NULL default '',
+ clearpwd varchar(128) NOT NULL default '',
+ name varchar(128) NOT NULL default '',
+ uid int(10) unsigned NOT NULL default '0',
+ gid int(10) unsigned NOT NULL default '0',
+ maildir varchar(255) NOT NULL default '',
+ quota varchar(255) NOT NULL default '',
+ cc varchar(50) NOT NULL default '',
+ forward varchar(50) NOT NULL default '',
+ autoresponder enum('yes','no') NOT NULL default 'no',
+ autoresponder_text tinytext NOT NULL,
+ enabled enum('yes','no') NOT NULL default 'yes',
+ antivirus enum('yes','no') NOT NULL default 'no',
+ spamscan enum('yes','no') NOT NULL default 'no',
+ spamdelete enum('yes','no') NOT NULL default 'no',
+ PRIMARY KEY (mailbox_id),
+ KEY server_id (server_id,email)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_greylist`
+#
+
+DROP TABLE IF EXISTS mail_greylist;
+CREATE TABLE mail_greylist (
+ greylist_id int(11) NOT NULL auto_increment,
+ relay_ip varchar(64) default NULL,
+ from_domain varchar(255) default NULL,
+ block_expires datetime NOT NULL default '0000-00-00 00:00:00',
+ record_expires datetime NOT NULL default '0000-00-00 00:00:00',
+ origin_type enum('MANUAL','AUTO') NOT NULL default 'AUTO',
+ create_time datetime NOT NULL default '0000-00-00 00:00:00',
+ PRIMARY KEY (greylist_id)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_mailman_domain`
+#
+
+DROP TABLE IF EXISTS mail_mailman_domain;
+CREATE TABLE mail_mailman_domain (
+ mailman_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ domain varchar(255) NOT NULL default '',
+ mm_home varchar(255) NOT NULL default '',
+ mm_wrap varchar(255) NOT NULL default '',
+ mm_user varchar(50) NOT NULL default '',
+ mm_group varchar(50) NOT NULL default '',
+ PRIMARY KEY (mailman_id,server_id,domain)
+) TYPE=MyISAM;
+# --------------------------------------------------------
+
+#
+# Tabellenstruktur f�r Tabelle `mail_whitelist`
+#
+
+DROP TABLE IF EXISTS mail_whitelist;
+CREATE TABLE mail_whitelist (
+ whitelist_id int(11) NOT NULL auto_increment,
+ server_id int(11) NOT NULL default '0',
+ address varchar(255) NOT NULL default '',
+ PRIMARY KEY (whitelist_id),
+ KEY server_id (server_id,address)
+) TYPE=MyISAM;
+
+#
+# Tabellenstruktur f�r Tabelle `reseller`
+#
+
+CREATE TABLE reseller (
+ reseller_id bigint(20) NOT NULL auto_increment,
+ sys_userid int(11) NOT NULL default '0',
+ sys_groupid int(11) NOT NULL default '0',
+ sys_perm_user varchar(5) NOT NULL default '',
+ sys_perm_group varchar(5) NOT NULL default '',
+ sys_perm_other varchar(5) NOT NULL default '',
+ company varchar(255) NOT NULL default '',
+ title varchar(255) NOT NULL default '',
+ firstname varchar(255) NOT NULL default '',
+ surname varchar(255) NOT NULL default '',
+ street varchar(255) NOT NULL default '',
+ zip varchar(255) NOT NULL default '',
+ city varchar(255) NOT NULL default '',
+ country varchar(255) NOT NULL default '',
+ telephone varchar(255) NOT NULL default '',
+ mobile varchar(255) NOT NULL default '',
+ fax varchar(255) NOT NULL default '',
+ email varchar(255) NOT NULL default '',
+ internet varchar(255) NOT NULL default '',
+ icq varchar(255) NOT NULL default '',
+ notes text NOT NULL,
+ limit_client int(11) NOT NULL default '-1',
+ limit_domain int(11) NOT NULL default '-1',
+ limit_subdomain int(11) NOT NULL default '-1',
+ limit_mailbox int(11) NOT NULL default '-1',
+ limit_mailalias int(11) NOT NULL default '-1',
+ limit_webquota int(11) NOT NULL default '-1',
+ limit_mailquota int(11) NOT NULL default '-1',
+ limit_database int(11) NOT NULL default '-1',
+ ip_address text NOT NULL,
+ PRIMARY KEY (reseller_id)
+) TYPE=MyISAM;
+# --------------------------------------------------------
\ No newline at end of file
diff --git a/interface/web/cms/form/media.tform.php b/interface/web/cms/form/media.tform.php
deleted file mode 100644
index d9d42da..0000000
--- a/interface/web/cms/form/media.tform.php
+++ /dev/null
@@ -1,256 +0,0 @@
-<?php
-
-/*
- Form Definition
-
- Tabellendefinition
-
- Datentypen:
- - INTEGER (Wandelt Ausdr�cke in Int um)
- - DOUBLE
- - CURRENCY (Formatiert Zahlen nach W�hrungsnotation)
- - VARCHAR (kein weiterer Format Check)
- - TEXT (kein weiterer Format Check)
- - DATE (Datumsformat, Timestamp Umwandlung)
-
- Formtype:
- - TEXT (normales Textfeld)
- - TEXTAREA (normales Textfeld)
- - PASSWORD (Feldinhalt wird nicht angezeigt)
- - SELECT (Gibt Werte als option Feld aus)
- - RADIO
- - CHECKBOX
- - CHECKBOXARRAY
- - FILE
-
- VALUE:
- - Wert oder Array
-
- Hinweis:
- Das ID-Feld ist nicht bei den Table Values einzuf�gen.
-
-
-*/
-
-$form["title"] = "Media";
-$form["description"] = "";
-$form["name"] = "media";
-$form["action"] = "media_edit.php";
-$form["db_table"] = "media";
-$form["db_table_idx"] = "media_id";
-$form["tab_default"] = "media";
-$form["list_default"] = "media_list.php";
-$form["auth"] = 'no';
-
-$app->uses("tree");
-$parents = $app->db->queryAllRecords("SELECT * FROM media_cat ORDER BY name");
-$app->tree->loadFromArray($parents);
-// Damit eintr�ge nicht unter sich selbst eingeh�ngt werden k�nnen
-// $app->tree->deltree($_REQUEST["id"]);
-$parents = $app->tree->optionlist();
-
-$parent[0] = "Root";
-if(is_array($parents)) {
- foreach($parents as $p) {
- $tmp_id = $p["id"];
- $parent[$tmp_id] = $p["data"];
- }
-}
-
-// Hole Felder
-$tmp_records = $app->db->queryAllRecords("SELECT media_profile_id, profile_name FROM media_profile ORDER BY profile_name");
-$media_profiles = array();
-$media_profiles[0] = "";
-foreach($tmp_records as $tmp) {
- $tmp_id = $tmp["media_profile_id"];
- $media_profiles[$tmp_id] = $tmp["profile_name"];
-}
-unset($tmp_records);
-
-
-
-$form["tabs"]['media'] = array (
- 'title' => "Media",
- 'width' => 80,
- 'template' => "templates/media_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'media_profile_id' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $media_profiles,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'media_cat_id' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $parent,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'media_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '/^.{1,255}$/',
- 'errmsg' => 'media_name_err',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'media_type' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '5',
- 'maxlength' => '30',
- 'rows' => '',
- 'cols' => ''
- ),
- 'media_size' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'media_format' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'thumbnail' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '0',
- 'value' => '1',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path0' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path1' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path2' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path3' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path4' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path5' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/form/media_cat.tform.php b/interface/web/cms/form/media_cat.tform.php
deleted file mode 100644
index abc537c..0000000
--- a/interface/web/cms/form/media_cat.tform.php
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-
-/*
- Form Definition
-
- Tabellendefinition
-
- Datentypen:
- - INTEGER (Wandelt Ausdr�cke in Int um)
- - DOUBLE
- - CURRENCY (Formatiert Zahlen nach W�hrungsnotation)
- - VARCHAR (kein weiterer Format Check)
- - TEXT (kein weiterer Format Check)
- - DATE (Datumsformat, Timestamp Umwandlung)
-
- Formtype:
- - TEXT (normales Textfeld)
- - TEXTAREA (normales Textfeld)
- - PASSWORD (Feldinhalt wird nicht angezeigt)
- - SELECT (Gibt Werte als option Feld aus)
- - RADIO
- - CHECKBOX
- - CHECKBOXARRAY
- - FILE
-
- VALUE:
- - Wert oder Array
-
- Hinweis:
- Das ID-Feld ist nicht bei den Table Values einzuf�gen.
-
-
-*/
-
-$form["title"] = "Media Categories";
-$form["description"] = "Form to edit Media Categories.";
-$form["name"] = "media_cat";
-$form["action"] = "media_cat_edit.php";
-$form["db_table"] = "media_cat";
-$form["db_table_idx"] = "media_cat_id";
-$form["tab_default"] = "media_cat";
-$form["list_default"] = "media_cat_list.php";
-$form["auth"] = 'no';
-
-$app->uses("tree");
-$parents = $app->db->queryAllRecords("SELECT * FROM media_cat ORDER BY name");
-$app->tree->loadFromArray($parents);
-// Damit eintr�ge nicht unter sich selbst eingeh�ngt werden k�nnen
-$app->tree->deltree($_REQUEST["id"]);
-$parents = $app->tree->optionlist();
-
-$parent[0] = "Root";
-if(is_array($parents)) {
- foreach($parents as $p) {
- $tmp_id = $p["id"];
- $parent[$tmp_id] = $p["data"];
- }
-}
-
-
-
-$form["tabs"]['media_cat'] = array (
- 'title' => "Categorie",
- 'width' => 80,
- 'template' => "templates/media_cat_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '/^.{1,30}$/',
- 'errmsg' => 'name_err',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'parent' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $parent,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'sort' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '15',
- 'maxlength' => '30',
- 'rows' => '',
- 'cols' => ''
- ),
- 'active' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '1',
- 'value' => '1',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/form/media_profile.tform.php b/interface/web/cms/form/media_profile.tform.php
deleted file mode 100644
index 6ef89a4..0000000
--- a/interface/web/cms/form/media_profile.tform.php
+++ /dev/null
@@ -1,346 +0,0 @@
-<?php
-
-/*
- Form Definition
-
- Tabellendefinition
-
- Datentypen:
- - INTEGER (Wandelt Ausdr�cke in Int um)
- - DOUBLE
- - CURRENCY (Formatiert Zahlen nach W�hrungsnotation)
- - VARCHAR (kein weiterer Format Check)
- - TEXT (kein weiterer Format Check)
- - DATE (Datumsformat, Timestamp Umwandlung)
-
- Formtype:
- - TEXT (normales Textfeld)
- - TEXTAREA (normales Textfeld)
- - PASSWORD (Feldinhalt wird nicht angezeigt)
- - SELECT (Gibt Werte als option Feld aus)
- - RADIO
- - CHECKBOX
- - CHECKBOXARRAY
- - FILE
-
- VALUE:
- - Wert oder Array
-
- Hinweis:
- Das ID-Feld ist nicht bei den Table Values einzuf�gen.
-
-
-*/
-
-$form["title"] = "Media profile";
-$form["description"] = "";
-$form["name"] = "media_profile";
-$form["action"] = "media_profile_edit.php";
-$form["db_table"] = "media_profile";
-$form["db_table_idx"] = "media_profile_id";
-$form["tab_default"] = "media_profile";
-$form["list_default"] = "media_profile_list.php";
-$form["auth"] = 'no';
-
-$app->uses("tree");
-$parents = $app->db->queryAllRecords("SELECT * FROM media_cat ORDER BY name");
-$app->tree->loadFromArray($parents);
-$parents = $app->tree->optionlist();
-
-$parent[0] = "Medienkatalog";
-if(is_array($parents)) {
- foreach($parents as $p) {
- $tmp_id = $p["id"];
- $parent[$tmp_id] = $p["data"];
- }
-}
-
-$form["tabs"]['media_profile'] = array (
- 'title' => "Media",
- 'width' => 80,
- 'template' => "templates/media_profile_edit.htm",
- 'fields' => array (
- ##################################
- # Beginn Datenbankfelder
- ##################################
- 'media_cat_id' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'SELECT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => $parent,
- 'separator' => ',',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'profile_name' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '/^.{1,255}$/',
- 'errmsg' => 'profile_name_err',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'profile_description' => array (
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '5',
- 'cols' => '30'
- ),
- 'thumbnail' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '1',
- 'value' => '1',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '',
- 'cols' => ''
- ),
- 'original' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'CHECKBOX',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '0',
- 'value' => '1',
- 'separator' => '',
- 'width' => '',
- 'maxlength' => '',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path0' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '[ROOT]/web/media/original/[ID].[EXT]',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path1' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'resize1' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'options1' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path2' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'resize2' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'options2' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path3' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'resize3' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'options3' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path4' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'resize4' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'options4' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'path5' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '30',
- 'maxlength' => '255',
- 'rows' => '',
- 'cols' => ''
- ),
- 'resize5' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- ),
- 'options5' => array (
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'regex' => '',
- 'errmsg' => '',
- 'default' => '',
- 'value' => '',
- 'separator' => '',
- 'width' => '10',
- 'maxlength' => '50',
- 'rows' => '',
- 'cols' => ''
- )
- ##################################
- # ENDE Datenbankfelder
- ##################################
- )
-);
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/admin.conf.php b/interface/web/cms/lib/admin.conf.php
deleted file mode 100644
index 8dce5a5..0000000
--- a/interface/web/cms/lib/admin.conf.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de.lng b/interface/web/cms/lib/lang/de.lng
deleted file mode 100644
index 0165eb2..0000000
--- a/interface/web/cms/lib/lang/de.lng
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de_media.lng b/interface/web/cms/lib/lang/de_media.lng
deleted file mode 100644
index f1052a7..0000000
--- a/interface/web/cms/lib/lang/de_media.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-$wb["media_profile_id_txt"] = 'Profil';
-$wb["media_cat_id_txt"] = 'Kategorie';
-$wb["media_name_txt"] = 'Dateiname';
-$wb["media_name_err"] = 'Es wurde kein Name angegeben';
-$wb["media_type_txt"] = 'Typ';
-$wb["media_size_txt"] = 'Gr��e';
-$wb["media_format_txt"] = 'Format';
-$wb["thumbnail_txt"] = 'Vorschaubild';
-$wb["path0_txt"] = 'path0';
-$wb["path1_txt"] = 'path1';
-$wb["path2_txt"] = 'path2';
-$wb["path3_txt"] = 'path3';
-$wb["path4_txt"] = 'path4';
-$wb["path5_txt"] = 'path5';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de_media_cat.lng b/interface/web/cms/lib/lang/de_media_cat.lng
deleted file mode 100644
index 314eed9..0000000
--- a/interface/web/cms/lib/lang/de_media_cat.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$wb["name_txt"] = 'name';
-$wb["name_err"] = 'name_err';
-$wb["parent_txt"] = 'parent';
-$wb["sort_txt"] = 'sort';
-$wb["active_txt"] = 'active';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de_media_cat_list.lng b/interface/web/cms/lib/lang/de_media_cat_list.lng
deleted file mode 100644
index e1fb9eb..0000000
--- a/interface/web/cms/lib/lang/de_media_cat_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-$wb["list_head_txt"] = 'Kategorie';
-$wb["name_txt"] = 'Name';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de_media_list.lng b/interface/web/cms/lib/lang/de_media_list.lng
deleted file mode 100644
index a7c6031..0000000
--- a/interface/web/cms/lib/lang/de_media_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-$wb["list_head_txt"] = 'Medien Dateien';
-$wb["media_name_txt"] = 'Dateiname';
-$wb["media_type_txt"] = 'Dateityp';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de_media_profile.lng b/interface/web/cms/lib/lang/de_media_profile.lng
deleted file mode 100644
index 14ef964..0000000
--- a/interface/web/cms/lib/lang/de_media_profile.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-$wb["media_cat_id_txt"] = 'media_cat_id';
-$wb["profile_name_txt"] = 'profile_name';
-$wb["profile_name_err"] = 'profile_name_err';
-$wb["profile_description_txt"] = 'profile_description';
-$wb["thumbnail_txt"] = 'thumbnail';
-$wb["original_txt"] = 'original';
-$wb["path0_txt"] = 'path0';
-$wb["path1_txt"] = 'path1';
-$wb["resize1_txt"] = 'resize1';
-$wb["options1_txt"] = 'options1';
-$wb["path2_txt"] = 'path2';
-$wb["resize2_txt"] = 'resize2';
-$wb["options2_txt"] = 'options2';
-$wb["path3_txt"] = 'path3';
-$wb["resize3_txt"] = 'resize3';
-$wb["options3_txt"] = 'options3';
-$wb["path4_txt"] = 'path4';
-$wb["resize4_txt"] = 'resize4';
-$wb["options4_txt"] = 'options4';
-$wb["path5_txt"] = 'path5';
-$wb["resize5_txt"] = 'resize5';
-$wb["options5_txt"] = 'options5';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/de_media_profile_list.lng b/interface/web/cms/lib/lang/de_media_profile_list.lng
deleted file mode 100644
index a275e68..0000000
--- a/interface/web/cms/lib/lang/de_media_profile_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-$wb["list_head_txt"] = 'media_profile';
-$wb["profile_name_txt"] = 'profile_name';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en.lng b/interface/web/cms/lib/lang/en.lng
deleted file mode 100644
index 15c5adc..0000000
--- a/interface/web/cms/lib/lang/en.lng
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en_media.lng b/interface/web/cms/lib/lang/en_media.lng
deleted file mode 100644
index 8cd09fb..0000000
--- a/interface/web/cms/lib/lang/en_media.lng
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-$wb["media_profile_id_txt"] = 'Profile';
-$wb["media_cat_id_txt"] = 'Category';
-$wb["media_name_txt"] = 'Filename';
-$wb["media_name_err"] = 'Filename is empty.';
-$wb["media_type_txt"] = 'Type';
-$wb["media_size_txt"] = 'Size';
-$wb["media_format_txt"] = 'Format';
-$wb["thumbnail_txt"] = 'Thumbnail';
-$wb["path0_txt"] = 'path0';
-$wb["path1_txt"] = 'path1';
-$wb["path2_txt"] = 'path2';
-$wb["path3_txt"] = 'path3';
-$wb["path4_txt"] = 'path4';
-$wb["path5_txt"] = 'path5';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en_media_cat.lng b/interface/web/cms/lib/lang/en_media_cat.lng
deleted file mode 100644
index 2d9fedd..0000000
--- a/interface/web/cms/lib/lang/en_media_cat.lng
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-$wb["name_txt"] = 'Name';
-$wb["name_err"] = 'Name is empty.';
-$wb["parent_txt"] = 'Parent';
-$wb["sort_txt"] = 'Sort';
-$wb["active_txt"] = 'Active';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en_media_cat_list.lng b/interface/web/cms/lib/lang/en_media_cat_list.lng
deleted file mode 100644
index 12f34ad..0000000
--- a/interface/web/cms/lib/lang/en_media_cat_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-$wb["list_head_txt"] = 'Category';
-$wb["name_txt"] = 'Name';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en_media_list.lng b/interface/web/cms/lib/lang/en_media_list.lng
deleted file mode 100644
index 6b9f2d8..0000000
--- a/interface/web/cms/lib/lang/en_media_list.lng
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-$wb["list_head_txt"] = 'Media Files';
-$wb["media_name_txt"] = 'Filename';
-$wb["media_type_txt"] = 'Filetype';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en_media_profile.lng b/interface/web/cms/lib/lang/en_media_profile.lng
deleted file mode 100644
index 8560fc5..0000000
--- a/interface/web/cms/lib/lang/en_media_profile.lng
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-$wb["media_cat_id_txt"] = 'media_cat_id';
-$wb["profile_name_txt"] = 'profile_name';
-$wb["profile_name_err"] = 'profile_name_err';
-$wb["profile_description_txt"] = 'profile_description';
-$wb["thumbnail_txt"] = 'thumbnail';
-$wb["original_txt"] = 'original';
-$wb["path0_txt"] = 'path0';
-$wb["path1_txt"] = 'path1';
-$wb["resize1_txt"] = 'resize1';
-$wb["options1_txt"] = 'options1';
-$wb["path2_txt"] = 'path2';
-$wb["resize2_txt"] = 'resize2';
-$wb["options2_txt"] = 'options2';
-$wb["path3_txt"] = 'path3';
-$wb["resize3_txt"] = 'resize3';
-$wb["options3_txt"] = 'options3';
-$wb["path4_txt"] = 'path4';
-$wb["resize4_txt"] = 'resize4';
-$wb["options4_txt"] = 'options4';
-$wb["path5_txt"] = 'path5';
-$wb["resize5_txt"] = 'resize5';
-$wb["options5_txt"] = 'options5';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/lang/en_media_profile_list.lng b/interface/web/cms/lib/lang/en_media_profile_list.lng
deleted file mode 100644
index 64f5078..0000000
--- a/interface/web/cms/lib/lang/en_media_profile_list.lng
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-$wb["list_head_txt"] = 'media_profile';
-$wb["profile_name_txt"] = 'profile_name';
-?>
\ No newline at end of file
diff --git a/interface/web/cms/lib/module.conf.php b/interface/web/cms/lib/module.conf.php
deleted file mode 100644
index 06ff321..0000000
--- a/interface/web/cms/lib/module.conf.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-
-$module["name"] = "cms";
-$module["title"] = "Media Manager";
-$module["template"] = "module_tree.tpl.htm";
-$module["startpage"] = "cms/media_list.php";
-$module["navframe_page"] = "cms/treenavi.php";
-$module["tab_width"] = ''; // Standard ist 100
-
-
-$items[] = array( 'title' => 'Neu',
- 'target' => 'content',
- 'link' => 'cms/media_add.php?filenum=5&phpsessid='.$_SESSION["s"]["id"]);
-
-$items[] = array( 'title' => 'Bearbeiten',
- 'target' => 'content',
- 'link' => 'cms/media_list.php?phpsessid='.$_SESSION["s"]["id"]);
-
-
- $module["nav"][] = array( 'title' => 'Media Inhalt',
- 'open' => 1,
- 'items' => $items);
-
-// aufr�umen
-unset($items);
-
-$items[] = array( 'title' => 'Neu',
- 'target' => 'content',
- 'link' => 'cms/media_profile_edit.php?phpsessid='.$_SESSION["s"]["id"]);
-
-$items[] = array( 'title' => 'Bearbeiten',
- 'target' => 'content',
- 'link' => 'cms/media_profile_list.php?phpsessid='.$_SESSION["s"]["id"]);
-
-
- $module["nav"][] = array( 'title' => 'Media Profile',
- 'open' => 1,
- 'items' => $items);
-
-// aufr�umen
-unset($items);
-
-$items[] = array( 'title' => 'Neu',
- 'target' => 'content',
- 'link' => 'cms/media_cat_edit.php?phpsessid='.$_SESSION["s"]["id"]);
-
-$items[] = array( 'title' => 'Bearbeiten',
- 'target' => 'content',
- 'link' => 'cms/media_cat_list.php?phpsessid='.$_SESSION["s"]["id"]);
-
-
- $module["nav"][] = array( 'title' => 'Media Kategorie',
- 'open' => 1,
- 'items' => $items);
-
-// aufr�umen
-unset($items);
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/list/media.list.php b/interface/web/cms/list/media.list.php
deleted file mode 100644
index a925f1f..0000000
--- a/interface/web/cms/list/media.list.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-
-/*
- Datentypen:
- - INTEGER (Wandelt Ausdr�cke in Int um)
- - DOUBLE
- - CURRENCY (Formatiert Zahlen nach W�hrungsnotation)
- - VARCHAR (kein weiterer Format Check)
- - TEXT (kein weiterer Format Check)
- - DATE (Datumsformat, Timestamp Umwandlung)
-*/
-
-
-
-// Name der Liste
-$liste["name"] = "media";
-
-// Datenbank Tabelle
-$liste["table"] = "media";
-
-// Index Feld der datenbank
-$liste["table_idx"] = "media_id";
-
-// Search Field Prefix
-$liste["search_prefix"] = "search_";
-
-// Eintr�ge pro Seite
-$liste["records_per_page"] = 15;
-
-// Script File der Liste
-$liste["file"] = "media_list.php";
-
-// Script File der Liste
-$liste["edit_file"] = "media_edit.php";
-
-// Script File der Liste
-$liste["delete_file"] = "media_del.php";
-
-// Paging Template
-$liste["paging_tpl"] = "templates/paging.tpl.htm";
-
-// Script File der Liste
-$liste["auth"] = "no";
-
-
-/*****************************************************
-* Suchfelder
-*****************************************************/
-
-$liste["item"][] = array( 'field' => "media_name",
- 'datatype' => "VARCHAR",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "");
-
-$liste["item"][] = array( 'field' => "media_type",
- 'datatype' => "VARCHAR",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "");
-
-
-$liste["item"][] = array( 'field' => "media_cat_id",
- 'datatype' => "VARCHAR",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "");
-?>
\ No newline at end of file
diff --git a/interface/web/cms/list/media_cat.list.php b/interface/web/cms/list/media_cat.list.php
deleted file mode 100644
index a32d085..0000000
--- a/interface/web/cms/list/media_cat.list.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-/*
- Datentypen:
- - INTEGER (Wandelt Ausdr�cke in Int um)
- - DOUBLE
- - CURRENCY (Formatiert Zahlen nach W�hrungsnotation)
- - VARCHAR (kein weiterer Format Check)
- - TEXT (kein weiterer Format Check)
- - DATE (Datumsformat, Timestamp Umwandlung)
-*/
-
-
-
-// Name der Liste
-$liste["name"] = "media_cat";
-
-// Datenbank Tabelle
-$liste["table"] = "media_cat";
-
-// Index Feld der datenbank
-$liste["table_idx"] = "media_cat_id";
-
-// Search Field Prefix
-$liste["search_prefix"] = "search_";
-
-// Eintr�ge pro Seite
-$liste["records_per_page"] = 15;
-
-// Script File der Liste
-$liste["file"] = "media_cat_list.php";
-
-// Script File der Liste
-$liste["edit_file"] = "media_cat_edit.php";
-
-// Script File der Liste
-$liste["delete_file"] = "media_cat_del.php";
-
-// Paging Template
-$liste["paging_tpl"] = "templates/paging.tpl.htm";
-
-// Script File der Liste
-$liste["auth"] = "no";
-
-
-/*****************************************************
-* Suchfelder
-*****************************************************/
-
-$liste["item"][] = array( 'field' => "name",
- 'datatype' => "VARCHAR",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "");
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/list/media_profile.list.php b/interface/web/cms/list/media_profile.list.php
deleted file mode 100644
index 106a4fc..0000000
--- a/interface/web/cms/list/media_profile.list.php
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-
-/*
- Datentypen:
- - INTEGER (Wandelt Ausdr�cke in Int um)
- - DOUBLE
- - CURRENCY (Formatiert Zahlen nach W�hrungsnotation)
- - VARCHAR (kein weiterer Format Check)
- - TEXT (kein weiterer Format Check)
- - DATE (Datumsformat, Timestamp Umwandlung)
-*/
-
-
-
-// Name der Liste
-$liste["name"] = "media_profile";
-
-// Datenbank Tabelle
-$liste["table"] = "media_profile";
-
-// Index Feld der datenbank
-$liste["table_idx"] = "media_profile_id";
-
-// Search Field Prefix
-$liste["search_prefix"] = "search_";
-
-// Eintr�ge pro Seite
-$liste["records_per_page"] = 15;
-
-// Script File der Liste
-$liste["file"] = "media_profile_list.php";
-
-// Script File der Liste
-$liste["edit_file"] = "media_profile_edit.php";
-
-// Script File der Liste
-$liste["delete_file"] = "media_profile_del.php";
-
-// Paging Template
-$liste["paging_tpl"] = "templates/paging.tpl.htm";
-
-// Script File der Liste
-$liste["auth"] = "no";
-
-
-/*****************************************************
-* Suchfelder
-*****************************************************/
-
-$liste["item"][] = array( 'field' => "profile_name",
- 'datatype' => "VARCHAR",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
- 'width' => "");
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_add.php b/interface/web/cms/media_add.php
deleted file mode 100644
index d634d8d..0000000
--- a/interface/web/cms/media_add.php
+++ /dev/null
@@ -1,284 +0,0 @@
-<?php
-
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-// Checke Berechtigungen f�r Modul
-//if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
-// header("Location: ../index.php");
-// exit;
-//}
-
-// TODO: Permission Check in Media manager
-
-// getting variables
-$filenum = intval($_REQUEST["filenum"]);
-$media_profile_id = intval($_REQUEST["media_profile_id"]);
-$media_cat_id = intval($_REQUEST["media_cat_id"]);
-if($filenum < 1 or $filenum > 20) $filenum = 1;
-
-$message = '';
-
-if(count($_FILES['files']['tmp_name']) > 0) {
-
- if($media_profile_id == 0) {
- // Without media profile
- $uploaddir = $_REQUEST["path"];
- if(substr($uploaddir,-1) != '/') $uploaddir .= "/";
-
- // gespeicherte Pfade sind immer unix slashes, auch unter win32
- $uploaddir = str_replace($conf["fs_div"],"/",$uploaddir);
-
- for($n = 0; $n < count($_FILES['files']['tmp_name']); $n++) {
- $uploadfile = $uploaddir. $_FILES['files']['name'][$n];
- $media_type = addslashes($_FILES["files"]["type"][$n]);
- $media_name = addslashes($_FILES["files"]["name"][$n]);
- if (@move_uploaded_file($_FILES['files']['tmp_name'][$n], $uploadfile)) {
- // Insert record in media DB
- $app->db->query("INSERT INTO media (media_profile_id,media_cat_id,media_name,media_type,path0) VALUES ($media_profile_id, $media_cat_id,'$media_name','$media_type','$uploadfile')");
- $media_id = $app->db->insertID();
- $message .= "Uploaded file: $uploadfile<br />";
- } else {
- $message .= "Error uploading file: ".$_FILES['files']['name'][$n]."<br />";
- }
- }
- } else {
- // With mediaprofile
- $profile = $app->db->queryOneRecord("SELECT * FROM media_profile WHERE media_profile_id = ".$media_profile_id);
- // first upload the files to temp directory
- $uploaddir = $conf["temppath"].$conf["fs_div"];
- for($n = 0; $n < count($_FILES['files']['tmp_name']); $n++) {
- $path_parts = pathinfo($_FILES['files']['name'][$n]);
- $tmp_filename = md5(uniqid(rand(), true)).".".$path_parts["extension"];
- $uploadfile = $uploaddir. $tmp_filename;
- $media_type = addslashes($_FILES["files"]["type"][$n]);
- $media_name = addslashes($_FILES["files"]["name"][$n]);
- list($width, $height) = getimagesize($_FILES['files']['tmp_name'][$n]);
- $media_size = $width."x".$height;
-
- if (@move_uploaded_file($_FILES['files']['tmp_name'][$n], $uploadfile)) {
- // insert Data into media DB
- $app->db->query("INSERT INTO media (media_profile_id,media_cat_id,media_name,media_type,media_size) VALUES ($media_profile_id, $media_cat_id,'$media_name','$media_type','$media_size')");
- $media_id = $app->db->insertID();
-
- // Store original file
- if($profile["original"] == 1) {
- $path = $profile["path0"];
- $path = str_replace("[ID]",$media_id,$path);
- $path = str_replace("[EXT]",$path_parts["extension"],$path);
- $path = str_replace("[NAME]",$_FILES["files"]["name"][$n],$path);
- $path = str_replace("[ROOT]",$conf["rootpath"],$path);
- //$path0 = escapeshellcmd($path);
- $path0 = str_replace("/",$conf["fs_div"],$path);
- // $path0 = "../media/original/file_".$media_id.".".$path_parts["extension"];
- // $path0 = escapeshellcmd($path0);
- @copy($uploadfile,$path0);
- }
-
- // Make Thumbnail
- if($profile["thumbnail"] == 1) {
- $tmp_command = $conf["programs"]["convert"]." $uploadfile -resize 100x120 -sharpen 2 ..".$conf["fs_div"]."media".$conf["fs_div"]."thumbnails".$conf["fs_div"]."thumb_".$media_id.".png";
- exec($tmp_command);
- }
-
- for($p = 1; $p <= 5; $p++) {
- if($profile["path".$p] != '') {
- // parse variables in path
- $path = $profile["path".$p];
- $path = str_replace("[ID]",$media_id,$path);
- $path = str_replace("[EXT]",$path_parts["extension"],$path);
- $path = str_replace("[NAME]",$_FILES["files"]["name"][$n],$path);
- $path = str_replace("[ROOT]",$conf["rootpath"],$path);
- //$path = escapeshellcmd($path);
-
- // set a variable like path1 path2 etc.
- $tmp = "path".$p;
- $$tmp = $path;
-
- // In case we are under win32, replace linux slashes with win32 slashes
- $path = str_replace("/",$conf["fs_div"],$path0);
-
- if($profile["resize".$p] == '' and $profile["options".$p] == '') {
- copy($uploadfile,$path);
- } else {
- $tmp_command = $conf["programs"]["convert"]." ";
- if($profile["resize".$p] != '') $tmp_command .= "-resize ".$profile["resize".$p]." ";
- if($profile["options".$p] != '') $tmp_command .= $profile["options".$p]." ";
- $tmp_command .= $uploadfile . " ".$path;
- exec($tmp_command);
- }
- }
- }
-
- // remove root-path replace win32 slashes with linux slashes
- $path0 = str_replace($conf["rootpath"],'',$path0);
- $path0 = str_replace("\\","/",$path0);
-
- $path1 = str_replace($conf["rootpath"],'',$path1);
- $path1 = str_replace("\\","/",$path1);
-
- $path2 = str_replace($conf["rootpath"],'',$path2);
- $path2 = str_replace("\\","/",$path2);
-
- $path3 = str_replace($conf["rootpath"],'',$path3);
- $path3 = str_replace("\\","/",$path3);
-
- $path4 = str_replace($conf["rootpath"],'',$path4);
- $path4 = str_replace("\\","/",$path4);
-
- $path5 = str_replace($conf["rootpath"],'',$path5);
- $path5 = str_replace("\\","/",$path5);
-
-
- // Update media record in database
- $app->db->query("UPDATE media SET thumbnail = '".$profile["thumbnail"]."', path0 = '$path0', path1 = '$path1', path2 = '$path2', path3 = '$path3', path4 = '$path4', path5 = '$path5' WHERE media_id = $media_id");
-
- $message .= "Uploaded file: $uploadfile<br />";
- unlink($uploadfile);
- } else {
- $message .= "Error uploading file: ".$_FILES['files']['name'][$n]."<br />";
- die($message);
- }
-
-
- }
- }
- /*
- if($_REQUEST["table"] != '' and $_REQUEST["field"] != '' and $media_id > 0) {
- $table = $app->db->quote($_REQUEST["table"]);
- $field = $app->db->quote($_REQUEST["field"]);
- $idx_field = $app->db->quote($_REQUEST["idx_field"]);
- $idx_val = $app->db->quote($_REQUEST["idx_val"]);
- $app->db->query("UPDATE $table SET $field = '$media_id' WHERE $idx_field = $idx_val");
- }
- */
-
-
- if($_REQUEST["action"] != '' and $media_id > 0) {
- if($_REQUEST["action"] == 'closewin_submit') {
- $field = $_REQUEST["field"];
- echo
-'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>empty</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<script language="JavaScript" type="text/JavaScript">
- function action() {
- var position = null;
- if (document.all) position = opener.document.myform.'.$field.'.length;
- var Eintrag = opener.document.createElement("option");
- Eintrag.text = '."'$media_name'".';
- Eintrag.value = '."'$media_id'".';
- position = opener.document.myform.'.$field.'.add(Eintrag, position);
- opener.document.myform.'.$field.".value = '$media_id'".';
- window.close();
- }
-</script>
-</head>
-
-<body onLoad="action();">
-
-</body>
-</html>';
- exit;
- }
- }
-
-
-}
-
-// Lade Template
-$app->uses('tpl,tree');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/media_add.htm');
-
-
-
-$vars["filenum"] = $filenum;
-
-// read in media profiles
-$tmp_records = $app->db->queryAllRecords("SELECT media_profile_id, profile_name, media_cat_id FROM media_profile ORDER BY profile_name");
-$vars["media_profile"] = "";
-$vars["media_profile"] .= "<option value='0'>Kein Profil</option>\r\n";
-foreach($tmp_records as $tmp) {
- if($tmp["media_profile_id"] == $media_profile_id) {
- $vars["media_profile"] .= "<option value='".$tmp["media_profile_id"]."' SELECTED>".$tmp["profile_name"]."</option>\r\n";
- if($media_cat_id == 0) $media_cat_id = $tmp["media_cat_id"];
- } else {
- $vars["media_profile"] .= "<option value='".$tmp["media_profile_id"]."'>".$tmp["profile_name"]."</option>\r\n";
- }
-}
-unset($tmp_records);
-
-// read media categories
-$parents = $app->db->queryAllRecords("SELECT * FROM media_cat ORDER BY name");
-$app->tree->loadFromArray($parents);
-$parents = $app->tree->optionlist();
-
-$vars["media_cat"] = "";
-$vars["media_cat"] .= "<option value='0'>Medienkatalog</option>\r\n";
-if(is_array($parents)) {
- foreach($parents as $tmp) {
- if($tmp["id"] == $media_cat_id) {
- $vars["media_cat"] .= "<option value='".$tmp["id"]."' SELECTED>".$tmp["data"]."</option>\r\n";
- } else {
- $vars["media_cat"] .= "<option value='".$tmp["id"]."'>".$tmp["data"]."</option>\r\n";
- }
- }
-}
-
-$vars["show_path"] = ($media_profile_id == 0)?1:0;
-
-
-$records = array();
-for($n = 1; $n <= $filenum; $n++) {
- $records[]["n"] = $n;
-}
-$app->tpl->setLoop('file',$records);
-
-if($_REQUEST["action"] != '') {
- $vars["cancel_action"] = "window.close();";
-} else {
- $vars["cancel_action"] = "self.location.href='index.php';";
-}
-
-$app->tpl->setVar($_GET);
-$app->tpl->setVar($vars);
-
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_cat_del.php b/interface/web/cms/media_cat_del.php
deleted file mode 100644
index 855ecdf..0000000
--- a/interface/web/cms/media_cat_del.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$list_def_file = "list/media_cat.list.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-include_once($list_def_file);
-
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if($id > 0) {
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id");
- } else {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id and userid = ".$_SESSION["s"]["user"]["userid"]);
- }
-}
-
-
-header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
-exit;
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_cat_edit.php b/interface/web/cms/media_cat_edit.php
deleted file mode 100644
index f1a1a1f..0000000
--- a/interface/web/cms/media_cat_edit.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$tform_def_file = "form/media_cat.tform.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-// Lade Template
-$app->uses('tpl,tform');
-$app->tpl->newTemplate("tabbed_form.tpl.htm");
-
-// Tabellendefinition und Formdefinition laden
-$app->tform->loadFormDef($tform_def_file);
-
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if(count($_POST) > 1) {
-
- // Bestimme aktion
- if($id > 0) {
- $action = 'UPDATE';
- } else {
- $action = 'INSERT';
- }
-
- $sql = $app->tform->getSQL($_POST,$_SESSION["s"]["form"]["tab"],$action,$id,$ext_where);
- if($app->tform->errorMessage == '') {
- $app->db->query($sql);
- if($action == "INSERT") $id = $app->db->insertID();
-
- // Liste anzeigen, wenn speichern geklickt wurde
- if($_REQUEST["next_tab"] == '') {
- header("Location: ".$app->tform->formDef['list_default']);
- exit;
- }
-
- } else {
- $app->tpl->setVar("error","<b>Fehler:</b><br>".$app->tform->errorMessage);
- $app->tpl->setVar($_POST);
- }
-}
-
-// Welcher Tab wird angezeigt
-if($app->tform->errorMessage == '') {
- // wenn kein Fehler vorliegt
- if($_REQUEST["next_tab"] != '') {
- // wenn n�chster Tab bekannt
- $active_tab = $_REQUEST["next_tab"];
- } else {
- // ansonsten ersten tab nehmen
- $active_tab = $app->tform->formDef['tab_default'];
- }
-} else {
- // bei Fehlern den gleichen Tab nochmal anzeigen
- $active_tab = $_SESSION["s"]["form"]["tab"];
-}
-
-
-if($id > 0) {
- // bestehenden Datensatz anzeigen
- if($app->tform->errorMessage == '') {
- if($app->tform->formDef['auth'] == 'no') {
- $sql = "SELECT * FROM ".$app->tform->formDef['db_table']." WHERE ".$app->tform->formDef['db_table_idx']." = $id";
- } else {
- die("Auth ist noch nicht implementiert!");
- }
- $record = $app->db->queryOneRecord($sql);
- } else {
- $record = $app->tform->encode($_POST,$active_tab);
- }
-
- // Userdaten umwandeln
- $record = $app->tform->getHTML($record, $active_tab,'EDIT');
- $record['id'] = $id;
-} else {
- if($app->tform->errorMessage == '') {
- $record = array();
- $record = $app->tform->getHTML($record, $app->tform->formDef['tab_default'],'NEW');
- } else {
- $record = $app->tform->getHTML($app->tform->encode($_POST,$active_tab),$active_tab,'EDIT');
- }
-}
-
-$app->tpl->setVar($record);
-
-// Formular und Tabs erzeugen
-$app->tform->showForm();
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_cat_list.php b/interface/web/cms/media_cat_list.php
deleted file mode 100644
index 0fca1a4..0000000
--- a/interface/web/cms/media_cat_list.php
+++ /dev/null
@@ -1,117 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$list_def_file = "list/media_cat.list.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-$app->uses('tpl,listform,tree');
-
-// Listen Definition laden
-$app->listform->loadListDef($list_def_file);
-
-if(!is_file('templates/'.$app->listform->listDef["name"].'_list.htm')) {
- $app->uses('listform_tpl_generator');
- $app->listform_tpl_generator->buildHTML($app->listform->listDef);
-}
-
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/'.$app->listform->listDef["name"].'_list.htm');
-
-// SQL f�r Suche generieren
-if($app->listform->listDef["name"] != 'no') {
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $sql_where = "";
- } else {
- $sql_where = "userid = ".$_SESSION["s"]["user"]["userid"]." and";
- }
-}
-
-$sql_where = $app->listform->getSearchSQL($sql_where);
-$app->tpl->setVar($app->listform->searchValues);
-
-// SQL f�r Paging generieren
-$limit_sql = $app->listform->getPagingSQL($sql_where);
-$app->tpl->setVar("paging",$app->listform->pagingHTML);
-
-// hole alle Datens�tze
-$records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $limit_sql");
-$app->tree->loadFromArray($records);
-$app->tree->opt_spacer = " ";
-$records = $app->tree->optionlist();
-//die(print_r($records));
-
-$bgcolor = "#FFFFFF";
-
-if(is_array($records)) {
- $idx_key = $app->listform->listDef["table_idx"];
- foreach($records as $rec) {
-
- //$rec = $app->listform->decode($rec);
-
- // Farbwechsel
- $bgcolor = ($bgcolor == "#FFFFFF")?"#EEEEEE":"#FFFFFF";
- $rec["bgcolor"] = $bgcolor;
- $rec["name"] = $rec["data"];
-
- // die Variable "id" enth�lt immer die Index variable
- // $rec["id"] = $rec[$idx_key];
-
- $records_new[] = $rec;
- }
-}
-
-$app->tpl->setLoop('records',$records_new);
-
-// Language File setzen
-$lng_file = "lib/lang/".$app->listform->listDef['name']."_list_de.lng";
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_del.php b/interface/web/cms/media_del.php
deleted file mode 100644
index c6fa7a9..0000000
--- a/interface/web/cms/media_del.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$list_def_file = "list/media.list.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-include_once($list_def_file);
-
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if($id > 0) {
- $media = $app->db->queryOneRecord("SELECT * FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id");
-
- for($n = 0;$n <= 5; $n++) {
- if($media["path".$n] != '') unlink($media["path".$n]);
- }
-
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id");
- } else {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id and userid = ".$_SESSION["s"]["user"]["userid"]);
- }
-}
-
-
-header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
-exit;
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_edit.php b/interface/web/cms/media_edit.php
deleted file mode 100644
index 2187122..0000000
--- a/interface/web/cms/media_edit.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$tform_def_file = "form/media.tform.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-// Lade Template
-$app->uses('tpl,tform');
-$app->tpl->newTemplate("tabbed_form.tpl.htm");
-
-// Tabellendefinition und Formdefinition laden
-$app->tform->loadFormDef($tform_def_file);
-
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if(count($_POST) > 1) {
-
- // Bestimme aktion
- if($id > 0) {
- $action = 'UPDATE';
- } else {
- $action = 'INSERT';
- }
-
- $sql = $app->tform->getSQL($_POST,$_SESSION["s"]["form"]["tab"],$action,$id,$ext_where);
- if($app->tform->errorMessage == '') {
- $app->db->query($sql);
- if($action == "INSERT") $id = $app->db->insertID();
-
- // Liste anzeigen, wenn speichern geklickt wurde
- if($_REQUEST["next_tab"] == '') {
- header("Location: ".$app->tform->formDef['list_default']);
- exit;
- }
-
- } else {
- $app->tpl->setVar("error","<b>Fehler:</b><br>".$app->tform->errorMessage);
- $app->tpl->setVar($_POST);
- }
-}
-
-// Welcher Tab wird angezeigt
-if($app->tform->errorMessage == '') {
- // wenn kein Fehler vorliegt
- if($_REQUEST["next_tab"] != '') {
- // wenn n�chster Tab bekannt
- $active_tab = $_REQUEST["next_tab"];
- } else {
- // ansonsten ersten tab nehmen
- $active_tab = $app->tform->formDef['tab_default'];
- }
-} else {
- // bei Fehlern den gleichen Tab nochmal anzeigen
- $active_tab = $_SESSION["s"]["form"]["tab"];
-}
-
-
-if($id > 0) {
- // bestehenden Datensatz anzeigen
- if($app->tform->errorMessage == '') {
- if($app->tform->formDef['auth'] == 'no') {
- $sql = "SELECT * FROM ".$app->tform->formDef['db_table']." WHERE ".$app->tform->formDef['db_table_idx']." = $id";
- } else {
- die("Auth ist noch nicht implementiert!");
- }
- $record = $app->db->queryOneRecord($sql);
- } else {
- $record = $app->tform->encode($_POST,$active_tab);
- }
-
- // Userdaten umwandeln
- $record = $app->tform->getHTML($record, $active_tab,'EDIT');
- $record['id'] = $id;
-} else {
- if($app->tform->errorMessage == '') {
- $record = array();
- $record = $app->tform->getHTML($record, $app->tform->formDef['tab_default'],'NEW');
- } else {
- $record = $app->tform->getHTML($app->tform->encode($_POST,$active_tab),$active_tab,'EDIT');
- }
-}
-
-$app->tpl->setVar($record);
-
-// Formular und Tabs erzeugen
-$app->tform->showForm();
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_list.php b/interface/web/cms/media_list.php
deleted file mode 100644
index e9770cb..0000000
--- a/interface/web/cms/media_list.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$list_def_file = "list/media.list.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-$app->uses('tpl,listform');
-
-// Listen Definition laden
-$app->listform->loadListDef($list_def_file);
-
-if(!is_file('templates/'.$app->listform->listDef["name"].'_list.htm')) {
- $app->uses('listform_tpl_generator');
- $app->listform_tpl_generator->buildHTML($app->listform->listDef);
-}
-
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/'.$app->listform->listDef["name"].'_list.htm');
-
-// SQL f�r Suche generieren
-if($app->listform->listDef["name"] != 'no') {
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $sql_where = "";
- } else {
- $sql_where = "userid = ".$_SESSION["s"]["user"]["userid"]." and";
- }
-}
-
-$sql_where = $app->listform->getSearchSQL($sql_where);
-$app->tpl->setVar($app->listform->searchValues);
-
-// SQL f�r Paging generieren
-$limit_sql = $app->listform->getPagingSQL($sql_where);
-$app->tpl->setVar("paging",$app->listform->pagingHTML);
-
-// hole alle Datens�tze
-$records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $limit_sql");
-
-$bgcolor = "#FFFFFF";
-
-if(is_array($records)) {
- $idx_key = $app->listform->listDef["table_idx"];
- foreach($records as $rec) {
-
- $rec = $app->listform->decode($rec);
-
- // Farbwechsel
- $bgcolor = ($bgcolor == "#FFFFFF")?"#EEEEEE":"#FFFFFF";
- $rec["bgcolor"] = $bgcolor;
- $rec["id"] = $rec[$idx_key];
-
- $records_new[] = $rec;
- }
-}
-
-$app->tpl->setLoop('records',$records_new);
-
-// Language File setzen
-$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_profile_del.php b/interface/web/cms/media_profile_del.php
deleted file mode 100644
index b6b031b..0000000
--- a/interface/web/cms/media_profile_del.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$list_def_file = "list/media_profile.list.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-include_once($list_def_file);
-
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if($id > 0) {
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id");
- } else {
- $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = $id and userid = ".$_SESSION["s"]["user"]["userid"]);
- }
-}
-
-
-header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
-exit;
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_profile_edit.php b/interface/web/cms/media_profile_edit.php
deleted file mode 100644
index d728cab..0000000
--- a/interface/web/cms/media_profile_edit.php
+++ /dev/null
@@ -1,137 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$tform_def_file = "form/media_profile.tform.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-// Lade Template
-$app->uses('tpl,tform');
-$app->tpl->newTemplate("tabbed_form.tpl.htm");
-
-// Tabellendefinition und Formdefinition laden
-$app->tform->loadFormDef($tform_def_file);
-
-// ID importieren
-$id = intval($_REQUEST["id"]);
-
-if(count($_POST) > 1) {
-
- // Bestimme aktion
- if($id > 0) {
- $action = 'UPDATE';
- } else {
- $action = 'INSERT';
- }
-
- $sql = $app->tform->getSQL($_POST,$_SESSION["s"]["form"]["tab"],$action,$id,$ext_where);
- if($app->tform->errorMessage == '') {
- $app->db->query($sql);
- if($action == "INSERT") $id = $app->db->insertID();
-
- // Liste anzeigen, wenn speichern geklickt wurde
- if($_REQUEST["next_tab"] == '') {
- header("Location: ".$app->tform->formDef['list_default']);
- exit;
- }
-
- } else {
- $app->tpl->setVar("error","<b>Fehler:</b><br>".$app->tform->errorMessage);
- $app->tpl->setVar($_POST);
- }
-}
-
-// Welcher Tab wird angezeigt
-if($app->tform->errorMessage == '') {
- // wenn kein Fehler vorliegt
- if($_REQUEST["next_tab"] != '') {
- // wenn n�chster Tab bekannt
- $active_tab = $_REQUEST["next_tab"];
- } else {
- // ansonsten ersten tab nehmen
- $active_tab = $app->tform->formDef['tab_default'];
- }
-} else {
- // bei Fehlern den gleichen Tab nochmal anzeigen
- $active_tab = $_SESSION["s"]["form"]["tab"];
-}
-
-
-if($id > 0) {
- // bestehenden Datensatz anzeigen
- if($app->tform->errorMessage == '') {
- if($app->tform->formDef['auth'] == 'no') {
- $sql = "SELECT * FROM ".$app->tform->formDef['db_table']." WHERE ".$app->tform->formDef['db_table_idx']." = $id";
- } else {
- die("Auth ist noch nicht implementiert!");
- }
- $record = $app->db->queryOneRecord($sql);
- } else {
- $record = $app->tform->encode($_POST,$active_tab);
- }
-
- // Userdaten umwandeln
- $record = $app->tform->getHTML($record, $active_tab,'EDIT');
- $record['id'] = $id;
-} else {
- if($app->tform->errorMessage == '') {
- $record = array();
- $record = $app->tform->getHTML($record, $app->tform->formDef['tab_default'],'NEW');
- } else {
- $record = $app->tform->getHTML($app->tform->encode($_POST,$active_tab),$active_tab,'EDIT');
- }
-}
-
-$app->tpl->setVar($record);
-
-// Formular und Tabs erzeugen
-$app->tform->showForm();
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_profile_list.php b/interface/web/cms/media_profile_list.php
deleted file mode 100644
index c8fe8ae..0000000
--- a/interface/web/cms/media_profile_list.php
+++ /dev/null
@@ -1,110 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-/******************************************
-* Begin Form configuration
-******************************************/
-
-$list_def_file = "list/media_profile.list.php";
-
-/******************************************
-* End Form configuration
-******************************************/
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-$app->uses('tpl,listform');
-
-// Listen Definition laden
-$app->listform->loadListDef($list_def_file);
-
-if(!is_file('templates/'.$app->listform->listDef["name"].'_list.htm')) {
- $app->uses('listform_tpl_generator');
- $app->listform_tpl_generator->buildHTML($app->listform->listDef);
-}
-
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/'.$app->listform->listDef["name"].'_list.htm');
-
-// SQL f�r Suche generieren
-if($app->listform->listDef["name"] != 'no') {
- if($_SESSION["s"]["user"]["typ"] == "admin") {
- $sql_where = "";
- } else {
- $sql_where = "userid = ".$_SESSION["s"]["user"]["userid"]." and";
- }
-}
-
-$sql_where = $app->listform->getSearchSQL($sql_where);
-$app->tpl->setVar($app->listform->searchValues);
-
-// SQL f�r Paging generieren
-$limit_sql = $app->listform->getPagingSQL($sql_where);
-$app->tpl->setVar("paging",$app->listform->pagingHTML);
-
-// hole alle Datens�tze
-$records = $app->db->queryAllRecords("SELECT * FROM ".$app->listform->listDef["table"]." WHERE $sql_where $limit_sql");
-
-$bgcolor = "#FFFFFF";
-
-if(is_array($records)) {
- $idx_key = $app->listform->listDef["table_idx"];
- foreach($records as $rec) {
-
- $rec = $app->listform->decode($rec);
-
- // Farbwechsel
- $bgcolor = ($bgcolor == "#FFFFFF")?"#EEEEEE":"#FFFFFF";
- $rec["bgcolor"] = $bgcolor;
- $rec["id"] = $rec[$idx_key];
-
- $records_new[] = $rec;
- }
-}
-
-$app->tpl->setLoop('records',$records_new);
-
-// Language File setzen
-$lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng";
-include($lng_file);
-$app->tpl->setVar($wb);
-
-$app->tpl_defaults();
-$app->tpl->pparse();
-
-
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/media_view.php b/interface/web/cms/media_view.php
deleted file mode 100644
index 7b04c07..0000000
--- a/interface/web/cms/media_view.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-// Lade Template
-$app->uses('tpl,tree');
-$app->tpl->newTemplate("form.tpl.htm");
-$app->tpl->setInclude('content_tpl','templates/media_add.htm');
-
-$media_id = intval($_REQUEST["media_id"]);
-$sql = "SELECT * FROM media WHERE media_id = $media_id";
-
-$rec = $app->db->queryOneRecord($sql);
-
-$app->tpl->setVar($rec);
-
-
-// Defaultwerte setzen
-$app->tpl_defaults();
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_add.htm b/interface/web/cms/templates/media_add.htm
deleted file mode 100644
index f4b158c..0000000
--- a/interface/web/cms/templates/media_add.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-<form method="POST" name="addmedia" action="media_add.php" enctype="multipart/form-data">
-<div class="frmTextHead">Mediendatei hinzuf�gen</div><br />
-<table width="500" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td width="126" class="frmText11">Profil:</td>
- <td width="366" class="frmText11">
- <select name="media_profile_id" class="text" onChange="document.forms[0].submit();">
- {tmpl_var name='media_profile'}
- </select>
- </td>
- </tr>
- <tr>
- <td width="126" class="frmText11">Kategorie:</td>
- <td width="366" class="frmText11">
- <select name="media_cat_id" class="text">
- {tmpl_var name='media_cat'}
- </select>
- </td>
- </tr>
- <tmpl_if name="show_path">
- <tr>
- <td width="126" class="frmText11">Pfad:</td>
- <td width="366" class="frmText11">
- <input type="text" name="path" size="30" />
- </td>
- </tr>
- </tmpl_if>
- <tmpl_loop name="file">
- <tr>
- <td width="126" class="frmText11">Datei <tmpl_var name="n">:</td>
- <td width="366" class="frmText11"><input type="file" name="files[]"></td>
- </tr>
- </tmpl_loop>
- <tr>
- <td class="frmText11"> </td>
- <td class="frmText11"> </td>
- </tr>
- <tr>
- <td> </td>
- <td><input name="Speichern" type="submit" class="button" value="Speichern">
- <input name="Abbrechen" type="button" class="button" value="Abbrechen" onClick="{tmpl_var name='cancel_action'}">
- </td>
- </tr>
-</table>
-<input type="hidden" name="PHPSESSID" value="{tmpl_var name='PHPSESSID'}">
-<input type="hidden" name="filenum" value="{tmpl_var name='filenum'}">
-<input type="hidden" name="table" value="{tmpl_var name='table'}">
-<input type="hidden" name="field" value="{tmpl_var name='field'}">
-<input type="hidden" name="idx_field" value="{tmpl_var name='idx_field'}">
-<input type="hidden" name="idx_val" value="{tmpl_var name='idx_val'}">
-<input type="hidden" name="action" value="{tmpl_var name='action'}">
-<input type="hidden" name="formtab" value="{tmpl_var name='formtab'}">
-</form>
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_cat_edit.htm b/interface/web/cms/templates/media_cat_edit.htm
deleted file mode 100644
index 3a513e6..0000000
--- a/interface/web/cms/templates/media_cat_edit.htm
+++ /dev/null
@@ -1,32 +0,0 @@
-<table width="500" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='name_txt'}:</td>
- <td width="366" class="frmText11"><input name="name" type="text" class="text" value="{tmpl_var name='name'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='parent_txt'}:</td>
- <td width="366" class="frmText11">
- <select name="parent" class="text">
- {tmpl_var name='parent'}
- </select>
- </td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='sort_txt'}:</td>
- <td width="366" class="frmText11"><input name="sort" type="text" class="text" value="{tmpl_var name='sort'}" size="15" maxlength="30"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='active_txt'}:</td>
- <td width="366" class="frmText11">{tmpl_var name='active'}</td>
- </tr> <tr>
- <td class="frmText11"> </td>
- <td class="frmText11"> </td>
- </tr>
- <tr>
- <td> </td>
- <td><input name="Speichern" type="submit" class="button" value="Speichern">
- <input name="Abbrechen" type="button" class="button" value="Abbrechen" onClick="self.location.href='media_cat_list.php';">
- </td>
- </tr>
-</table>
-<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_cat_list.htm b/interface/web/cms/templates/media_cat_list.htm
deleted file mode 100644
index 759d50c..0000000
--- a/interface/web/cms/templates/media_cat_list.htm
+++ /dev/null
@@ -1,23 +0,0 @@
-<form name="myform" action="media_cat_list.php" method="POST">
-<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br />
-<table width="100%" border="0" cellspacing="0" cellpadding="4">
- <tr>
- <td class="tblHead"><tmpl_var name="name_txt"></td>
- <td class="tblHead"> </td>
- </tr>
- <tr>
- <td class="frmText11"><input type="text" name="search_name" value="{tmpl_var name='search_name'}" class="text" /></td>
- <td class="frmText11" align="right"><input name="Filter" type="submit" id="Filter" value="Filter"></td>
- </tr>
- <tmpl_loop name="records">
- <tr bgcolor="{tmpl_var name="bgcolor"}">
- <td class="frmText11"><a href="media_cat_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="name"}</a></td>
- <td class="frmText11" align="right">[<a href="javascript: del_record('media_cat_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">L�schen</a>]</td>
- </tr>
- </tmpl_loop>
-
- <tr>
- <td colspan="2" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td>
- </tr>
-</table>
-</form>
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_edit.htm b/interface/web/cms/templates/media_edit.htm
deleted file mode 100644
index 576c640..0000000
--- a/interface/web/cms/templates/media_edit.htm
+++ /dev/null
@@ -1,72 +0,0 @@
-<table width="500" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_profile_id_txt'}:</td>
- <td width="366" class="frmText11">
- <select name="media_profile_id" class="text">
- {tmpl_var name='media_profile_id'}
- </select>
- </td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_cat_id_txt'}:</td>
- <td width="366" class="frmText11">
- <select name="media_cat_id" class="text">
- {tmpl_var name='media_cat_id'}
- </select>
- </td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_name_txt'}:</td>
- <td width="366" class="frmText11"><input name="media_name" type="text" class="text" value="{tmpl_var name='media_name'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_type_txt'}:</td>
- <td width="366" class="frmText11"><input name="media_type" type="text" class="text" value="{tmpl_var name='media_type'}" size="15" maxlength="30"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_size_txt'}:</td>
- <td width="366" class="frmText11"><input name="media_size" type="text" class="text" value="{tmpl_var name='media_size'}" size="15" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_format_txt'}:</td>
- <td width="366" class="frmText11"><input name="media_format" type="text" class="text" value="{tmpl_var name='media_format'}" size="15" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='thumbnail_txt'}:</td>
- <td width="366" class="frmText11">{tmpl_var name='thumbnail'}</td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path0_txt'}:</td>
- <td width="366" class="frmText11"><input name="path0" type="text" class="text" value="{tmpl_var name='path0'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path1_txt'}:</td>
- <td width="366" class="frmText11"><input name="path1" type="text" class="text" value="{tmpl_var name='path1'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path2_txt'}:</td>
- <td width="366" class="frmText11"><input name="path2" type="text" class="text" value="{tmpl_var name='path2'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path3_txt'}:</td>
- <td width="366" class="frmText11"><input name="path3" type="text" class="text" value="{tmpl_var name='path3'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path4_txt'}:</td>
- <td width="366" class="frmText11"><input name="path4" type="text" class="text" value="{tmpl_var name='path4'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path5_txt'}:</td>
- <td width="366" class="frmText11"><input name="path5" type="text" class="text" value="{tmpl_var name='path5'}" size="30" maxlength="255"></td>
- </tr> <tr>
- <td class="frmText11"> </td>
- <td class="frmText11"> </td>
- </tr>
- <tr>
- <td> </td>
- <td><input name="Speichern" type="submit" class="button" value="Speichern">
- <input name="Abbrechen" type="button" class="button" value="Abbrechen" onClick="self.location.href='media_list.php';">
- </td>
- </tr>
-</table>
-<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_list.htm b/interface/web/cms/templates/media_list.htm
deleted file mode 100644
index 6555d1c..0000000
--- a/interface/web/cms/templates/media_list.htm
+++ /dev/null
@@ -1,26 +0,0 @@
-<form name="myform" action="media_list.php" method="POST">
-<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br />
-<table width="100%" border="0" cellspacing="0" cellpadding="4">
- <tr>
- <td class="tblHead"><tmpl_var name="media_name_txt"></td>
- <td class="tblHead"><tmpl_var name="media_type_txt"></td>
- <td class="tblHead"> </td>
- </tr>
- <tr>
- <td class="frmText11"><input type="text" name="search_media_name" value="{tmpl_var name='search_media_name'}" class="text" /></td>
- <td class="frmText11"><input type="text" name="search_media_type" value="{tmpl_var name='search_media_type'}" class="text" /></td>
- <td class="frmText11" align="right"><input name="Filter" type="submit" id="Filter" value="Filter"></td>
- </tr>
- <tmpl_loop name="records">
- <tr bgcolor="{tmpl_var name="bgcolor"}">
- <td class="frmText11"><a href="media_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="media_name"}</a></td>
- <td class="frmText11"><a href="media_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="media_type"}</a></td>
- <td class="frmText11" align="right">[<a href="javascript: del_record('media_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">L�schen</a>]</td>
- </tr>
- </tmpl_loop>
-
- <tr>
- <td colspan="3" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td>
- </tr>
-</table>
-</form>
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_profile_edit.htm b/interface/web/cms/templates/media_profile_edit.htm
deleted file mode 100644
index b5d6fa7..0000000
--- a/interface/web/cms/templates/media_profile_edit.htm
+++ /dev/null
@@ -1,100 +0,0 @@
-<table width="500" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='media_cat_id_txt'}:</td>
- <td width="366" class="frmText11">
- <select name="media_cat_id" class="text">
- {tmpl_var name='media_cat_id'}
- </select>
- </td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='profile_name_txt'}:</td>
- <td width="366" class="frmText11"><input name="profile_name" type="text" class="text" value="{tmpl_var name='profile_name'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='profile_description_txt'}:</td>
- <td width="366" class="frmText11"><textarea name='profile_description' cols='30' rows='5'>{tmpl_var name='profile_description'}</textarea></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='thumbnail_txt'}:</td>
- <td width="366" class="frmText11">{tmpl_var name='thumbnail'}</td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='original_txt'}:</td>
- <td width="366" class="frmText11">{tmpl_var name='original'}</td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path0_txt'}:</td>
- <td width="366" class="frmText11"><input name="path0" type="text" class="text" value="{tmpl_var name='path0'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path1_txt'}:</td>
- <td width="366" class="frmText11"><input name="path1" type="text" class="text" value="{tmpl_var name='path1'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='resize1_txt'}:</td>
- <td width="366" class="frmText11"><input name="resize1" type="text" class="text" value="{tmpl_var name='resize1'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='options1_txt'}:</td>
- <td width="366" class="frmText11"><input name="options1" type="text" class="text" value="{tmpl_var name='options1'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path2_txt'}:</td>
- <td width="366" class="frmText11"><input name="path2" type="text" class="text" value="{tmpl_var name='path2'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='resize2_txt'}:</td>
- <td width="366" class="frmText11"><input name="resize2" type="text" class="text" value="{tmpl_var name='resize2'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='options2_txt'}:</td>
- <td width="366" class="frmText11"><input name="options2" type="text" class="text" value="{tmpl_var name='options2'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path3_txt'}:</td>
- <td width="366" class="frmText11"><input name="path3" type="text" class="text" value="{tmpl_var name='path3'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='resize3_txt'}:</td>
- <td width="366" class="frmText11"><input name="resize3" type="text" class="text" value="{tmpl_var name='resize3'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='options3_txt'}:</td>
- <td width="366" class="frmText11"><input name="options3" type="text" class="text" value="{tmpl_var name='options3'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path4_txt'}:</td>
- <td width="366" class="frmText11"><input name="path4" type="text" class="text" value="{tmpl_var name='path4'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='resize4_txt'}:</td>
- <td width="366" class="frmText11"><input name="resize4" type="text" class="text" value="{tmpl_var name='resize4'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='options4_txt'}:</td>
- <td width="366" class="frmText11"><input name="options4" type="text" class="text" value="{tmpl_var name='options4'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='path5_txt'}:</td>
- <td width="366" class="frmText11"><input name="path5" type="text" class="text" value="{tmpl_var name='path5'}" size="30" maxlength="255"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='resize5_txt'}:</td>
- <td width="366" class="frmText11"><input name="resize5" type="text" class="text" value="{tmpl_var name='resize5'}" size="10" maxlength="50"></td>
- </tr>
- <tr>
- <td width="126" class="frmText11">{tmpl_var name='options5_txt'}:</td>
- <td width="366" class="frmText11"><input name="options5" type="text" class="text" value="{tmpl_var name='options5'}" size="10" maxlength="50"></td>
- </tr> <tr>
- <td class="frmText11"> </td>
- <td class="frmText11"> </td>
- </tr>
- <tr>
- <td> </td>
- <td><input name="Speichern" type="submit" class="button" value="Speichern">
- <input name="Abbrechen" type="button" class="button" value="Abbrechen" onClick="self.location.href='media_profile_list.php';">
- </td>
- </tr>
-</table>
-<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
diff --git a/interface/web/cms/templates/media_profile_list.htm b/interface/web/cms/templates/media_profile_list.htm
deleted file mode 100644
index 42659d9..0000000
--- a/interface/web/cms/templates/media_profile_list.htm
+++ /dev/null
@@ -1,23 +0,0 @@
-<form name="myform" action="media_profile_list.php" method="POST">
-<div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br />
-<table width="100%" border="0" cellspacing="0" cellpadding="4">
- <tr>
- <td class="tblHead"><tmpl_var name="profile_name_txt"></td>
- <td class="tblHead"> </td>
- </tr>
- <tr>
- <td class="frmText11"><input type="text" name="search_profile_name" value="{tmpl_var name='search_profile_name'}" class="text" /></td>
- <td class="frmText11" align="right"><input name="Filter" type="submit" id="Filter" value="Filter"></td>
- </tr>
- <tmpl_loop name="records">
- <tr bgcolor="{tmpl_var name="bgcolor"}">
- <td class="frmText11"><a href="media_profile_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="profile_name"}</a></td>
- <td class="frmText11" align="right">[<a href="javascript: del_record('media_profile_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">L�schen</a>]</td>
- </tr>
- </tmpl_loop>
-
- <tr>
- <td colspan="2" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td>
- </tr>
-</table>
-</form>
\ No newline at end of file
diff --git a/interface/web/cms/templates/paging.tpl.htm b/interface/web/cms/templates/paging.tpl.htm
deleted file mode 100644
index cb82704..0000000
--- a/interface/web/cms/templates/paging.tpl.htm
+++ /dev/null
@@ -1,9 +0,0 @@
-[ <a href='{tmpl_var name="list_file"}?page=0'>|<< </a>]
-<tmpl_if name="show_page_back">
- [<< <a href='{tmpl_var name="list_file"}?page={tmpl_var name="last_page"}'>Zur�ck</a>]
-</tmpl_if>
- Seite {tmpl_var name="next_page"} von {tmpl_var name="max_pages"}
-<tmpl_if name="show_page_next">
- [<a href='{tmpl_var name="list_file"}?page={tmpl_var name="next_page"}'>Weiter >></a>]
-</tmpl_if>
- [<a href='{tmpl_var name="list_file"}?page={tmpl_var name="pages"}'> >>| </a>]
\ No newline at end of file
diff --git a/interface/web/cms/templates/treenavi.htm b/interface/web/cms/templates/treenavi.htm
deleted file mode 100644
index 368c29b..0000000
--- a/interface/web/cms/templates/treenavi.htm
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<title>CMS</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link href="../themes/default/style.css" rel="stylesheet" type="text/css">
-<style type="text/css">
-<!--
-.mnuLevel0 {
- margin-left: 0px;
-}
-
-.mnuLevel1 {
- margin-left: 0px;
-}
-
-.mnuLevel2 {
- margin-left: 20px;
-}
-
-.mnuLevel3 {
- margin-left: 40px;
-}
-.mnuLevel4 {
- margin-left: 60px;
-}
-.mnuLevel5 {
- margin-left: 80px;
-}
-.navtext {
- font-family: Arial, Helvetica, sans-serif;
- font-size: 14px;
- color: #000000;
- text-decoration: underline;
-}
-
-
-//-->
-</style>
-</head>
-
-<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
-<div class="frmTextHead">Medien Kategorie</div><br />
-<br />
-<tmpl_loop name="media_cat">
- <tmpl_var name="media_cat">
-</tmpl_loop>
-</body>
-</html>
diff --git a/interface/web/cms/treenavi.php b/interface/web/cms/treenavi.php
deleted file mode 100644
index eee1b3c..0000000
--- a/interface/web/cms/treenavi.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/*
-Copyright (c) 2005, Till Brehm, projektfarm Gmbh
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of ISPConfig nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-*/
-
-require_once('../../lib/config.inc.php');
-require_once('../../lib/app.inc.php');
-
-// Checke Berechtigungen f�r Modul
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
- header("Location: ../index.php");
- exit;
-}
-
-// Lade Template
-$app->uses('tpl,cmstree');
-$app->tpl->newTemplate("templates/treenavi.htm");
-
-$kat = $_REQUEST["kat"];
-
-if($kat > 0) {
- // nur eine Kategorie ist offen
- // bestimme Level
- /*
- $parent = '';
- $level = -1;
- $kat_path = '';
- $temp_kat = $kat;
- while( $level < 20 and $temp_kat != 'root') {
- $tmp_node = $db->queryOneRecord("SELECT parent,name,media_cat_id FROM media_cat WHERE media_cat_id = $temp_kat");
- $temp_kat = $tmp_node["parent"];
- $kat_path = $tmp_node["kategorie"]." > ".$kat_path;
- $level++;
- }
-
- if($level < 2) unset($_SESSION["kat_open"]);
- $_SESSION["kat_open"][$kat] = 1;
-
- $tpl->setVar("kategorie_pfad",substr($kat_path,0,-2));
- */
-
- // oder Kategorien lassen sich �ffnen und schliessen
-
- if($_SESSION["s"]["cat_open"][$kat] == 1) {
- unset($_SESSION["s"]["cat_open"][$kat]);
- } else {
- $_SESSION["s"]["cat_open"][$kat] = 1;
- }
-
-}
-
-
-// $tree = new tree;
-$media_cat = $app->cmstree->node_list();
-$app->tpl->setLoop("media_cat",$media_cat);
-
-
-// Template parsen
-$app->tpl->pparse();
-
-?>
\ No newline at end of file
diff --git a/interface/web/media/thumbnails/thumb_3.png b/interface/web/media/thumbnails/thumb_3.png
deleted file mode 100644
index 3e8b077..0000000
--- a/interface/web/media/thumbnails/thumb_3.png
+++ /dev/null
Binary files differ
--
Gitblit v1.9.1