# phpMyAdmin MySQL-Dump
# version 2.3.2
# http://www.phpmyadmin.net/ (download page)
#
# Host: localhost
# Erstellungszeit: 10. Juli 2003 um 21:25
# Server Version: 3.23.54
# PHP-Version: 4.2.3
# Datenbank: `dedi30`
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_backendmenu`
#

DROP TABLE IF EXISTS dedi_backendmenu;
CREATE TABLE dedi_backendmenu (
  idbackendmenu int(11) NOT NULL auto_increment,
  parent int(11) NOT NULL default '0',
  idclient int(11) NOT NULL default '0',
  sortindex int(11) default NULL,
  entry_langstring varchar(63) NOT NULL default '',
  entry_url varchar(255) NOT NULL default '',
  url_target enum('single','frame') NOT NULL default 'single',
  entry_validate varchar(255) default NULL,
  PRIMARY KEY  (idbackendmenu),
  KEY idclient (idclient)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_backendmenu`
#

INSERT INTO dedi_backendmenu VALUES (1, 0, 0, 10, 'nav_1_0', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (2, 0, 0, 20, 'nav_2_0', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (3, 0, 0, 30, 'nav_3_0', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (4, 0, 0, 40, 'nav_4_0', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (5, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (6, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (7, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (8, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (9, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (10, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (11, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (12, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (13, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (14, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (15, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (16, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (17, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (18, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (19, 0, 0, 40, 'empty_dummy', 'root', 'single', 'root');
INSERT INTO dedi_backendmenu VALUES (20, 1, 0, 10, 'nav_1_1', 'main.php?area=con', 'single', '$perm->have_perm(\'area_con\')');
INSERT INTO dedi_backendmenu VALUES (21, 1, 0, 32, 'nav_1_2', 'main.php?area=upl', 'single', '$perm->have_perm(\'area_upl\')');
INSERT INTO dedi_backendmenu VALUES (22, 2, 0, 10, 'nav_2_1', 'main.php?area=lay&idclient=$client', 'single', '$perm->have_perm(\'area_lay\')');
INSERT INTO dedi_backendmenu VALUES (23, 2, 0, 20, 'nav_2_2', 'main.php?area=css&idclient=$client', 'single', '$perm->have_perm(\'area_css\')');
INSERT INTO dedi_backendmenu VALUES (24, 2, 0, 40, 'nav_2_4', 'main.php?area=mod&idclient=$client', 'single', '$perm->have_perm(\'area_mod\')');
INSERT INTO dedi_backendmenu VALUES (25, 2, 0, 30, 'nav_2_3', 'main.php?area=js&idclient=$client', 'single', '$perm->have_perm(\'area_js\')');
INSERT INTO dedi_backendmenu VALUES (26, 2, 0, 50, 'nav_2_5', 'main.php?area=tpl', 'single', '$perm->have_perm(\'area_tpl\')');
INSERT INTO dedi_backendmenu VALUES (27, 3, 0, 10, 'nav_3_1', 'main.php?area=user', 'single', '$perm->is_admin()');
INSERT INTO dedi_backendmenu VALUES (28, 3, 0, 20, 'nav_3_2', 'main.php?area=group', 'single', '$perm->have_perm(\'area_group\')');
INSERT INTO dedi_backendmenu VALUES (29, 3, 0, 30, 'nav_3_3', 'main.php?area=clients', 'single', '$perm->have_perm(\'area_clients\')');
INSERT INTO dedi_backendmenu VALUES (30, 3, 0, 40, 'nav_3_4', 'main.php?area=settings', 'single', '$perm->have_perm(\'area_settings\')');
INSERT INTO dedi_backendmenu VALUES (31, 3, 0, 50, 'nav_3_5', 'main.php?area=plug&idclient=$client', 'single', '$perm->have_perm(\'area_plug\')');
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_cat`
#

DROP TABLE IF EXISTS dedi_cat;
CREATE TABLE dedi_cat (
  idcat int(6) NOT NULL auto_increment,
  parent int(6) NOT NULL default '0',
  rootparent int(6) NOT NULL default '0',
  sortindex int(6) NOT NULL default '1',
  idclient int(6) NOT NULL default '0',
  PRIMARY KEY  (idcat),
  KEY parent (parent),
  KEY rootparent (rootparent),
  KEY sortindex (sortindex),
  KEY idclient (idclient)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_cat`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_cat_expand`
#

DROP TABLE IF EXISTS dedi_cat_expand;
CREATE TABLE dedi_cat_expand (
  idusers int(6) NOT NULL default '0',
  idcat int(6) NOT NULL default '0'
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_cat_expand`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_cat_lang`
#

DROP TABLE IF EXISTS dedi_cat_lang;
CREATE TABLE dedi_cat_lang (
  idcatlang int(6) NOT NULL auto_increment,
  idcat int(6) NOT NULL default '0',
  idlang int(6) NOT NULL default '0',
  idtplconf int(6) NOT NULL default '0',
  name varchar(255) NOT NULL default '',
  description text,
  visible tinyint(1) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idcatlang),
  KEY idcat (idcat),
  KEY idlang (idlang),
  KEY idtplconf (idtplconf),
  KEY visible (visible)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_cat_lang`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_cat_side`
#

DROP TABLE IF EXISTS dedi_cat_side;
CREATE TABLE dedi_cat_side (
  idcatside int(6) NOT NULL auto_increment,
  idcat int(6) NOT NULL default '0',
  idside int(6) NOT NULL default '0',
  sortindex int(6) unsigned NOT NULL,
  is_start tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (idcatside),
  KEY is_start (is_start),
  KEY idcat (idcat),
  KEY idside (idside),
  KEY sortindex (sortindex)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_cat_side`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_clients`
#

DROP TABLE IF EXISTS dedi_clients;
CREATE TABLE dedi_clients (
  idclient int(6) NOT NULL auto_increment,
  name varchar(255) NOT NULL default '',
  description varchar(255) default NULL,
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idclient)
) TYPE=MyISAM;
#
# Daten für Tabelle `dedi_clients`
#

INSERT INTO dedi_clients VALUES (1, '1. Projekt', NULL, 1, 0, 0);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_clients_lang`
#

DROP TABLE IF EXISTS dedi_clients_lang;
CREATE TABLE dedi_clients_lang (
  idclientslang int(6) NOT NULL auto_increment,
  idclient int(6) NOT NULL default '0',
  idlang int(6) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idclientslang),
  KEY idclient (idclient),
  KEY idlang (idlang)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_clients_lang`
#

INSERT INTO dedi_clients_lang VALUES (1, 1, 1, 1, 0, 0);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_code`
#

DROP TABLE IF EXISTS dedi_code;
CREATE TABLE dedi_code (
  idcode int(6) NOT NULL auto_increment,
  idlang int(6) NOT NULL default '0',
  idcatside int(6) NOT NULL default '0',
  code mediumtext NOT NULL,
  changed tinyint(1) NOT NULL default '0',
  PRIMARY KEY  (idcode),
  KEY idlang (idlang),
  KEY idcatside (idcatside)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_code`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_container`
#

DROP TABLE IF EXISTS dedi_container;
CREATE TABLE dedi_container (
  idcontainer int(6) NOT NULL auto_increment,
  idtpl int(6) NOT NULL default '0',
  container int(6) NOT NULL default '0',
  idmod int(6) NOT NULL default '0',
  PRIMARY KEY  (idcontainer),
  KEY container (container),
  KEY idmod (idmod)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_container`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_container_conf`
#

DROP TABLE IF EXISTS dedi_container_conf;
CREATE TABLE dedi_container_conf (
  idcontainerconf int(6) NOT NULL auto_increment,
  idtplconf int(6) NOT NULL default '0',
  idcontainer int(6) NOT NULL default '0',
  config text NOT NULL,
  view int(6) NOT NULL default '0',
  edit int(6) NOT NULL default '0',
  PRIMARY KEY  (idcontainerconf),
  KEY idtplconf (idtplconf),
  KEY idcontainer (idcontainer)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_container_conf`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_content`
#

DROP TABLE IF EXISTS dedi_content;
CREATE TABLE dedi_content (
  idcontent int(10) NOT NULL auto_increment,
  idsidelang int(6) NOT NULL default '0',
  container int(6) NOT NULL default '0',
  number int(6) NOT NULL default '0',
  idtype int(11) default NULL,
  typenumber int(10) NOT NULL default '0',
  value text NOT NULL,
  online tinyint(1) NOT NULL default '1',
  version int(6) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idcontent),
  KEY idsidelang (idsidelang),
  KEY container (container),
  KEY number (number),
  KEY typenumber (typenumber),
  FULLTEXT KEY value (value)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_content`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_content_external`
#

DROP TABLE IF EXISTS dedi_content_external;
CREATE TABLE dedi_content_external (
  idcontent int(10) NOT NULL auto_increment,
  idsidelang int(6) NOT NULL default '0',
  container int(6) NOT NULL default '0',
  number int(6) NOT NULL default '0',
  idtype varchar(255) NOT NULL default '',
  typenumber int(10) NOT NULL default '0',
  value text NOT NULL,
  online tinyint(1) NOT NULL default '1',
  version int(6) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idcontent),
  KEY idsidelang (idsidelang),
  KEY container (container),
  KEY number (number),
  KEY typenumber (typenumber),
  FULLTEXT KEY value (value)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_content_external`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_css`
#

DROP TABLE IF EXISTS dedi_css;
CREATE TABLE dedi_css (
  idcss int(6) NOT NULL auto_increment,
  idclient int(6) NOT NULL default '0',
  type varchar(8) NOT NULL default '0',
  name varchar(255) NOT NULL default '',
  description varchar(255) NOT NULL default '',
  styles text NOT NULL,
  status int(6) NOT NULL default '0',
  warning text,
  author int(6) NOT NULL default '0',
  lastmodified timestamp(14) NOT NULL,
  created timestamp(14) NOT NULL,
  PRIMARY KEY  (idcss)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_css`
#

INSERT INTO dedi_css VALUES (1, 0, '', 'a:active', '', 'color: #000000; ', 1, '', 1, 20030310204808, 20030310204808);
INSERT INTO dedi_css VALUES (2, 0, '', 'a:hover', '', 'color: #000000; text-decoration: underline; ', 1, '', 1, 20030310204808, 20030310204808);
INSERT INTO dedi_css VALUES (3, 0, '', 'a:link', '', 'color: #777777; ', 1, '', 1, 20030310204808, 20030310204808);
INSERT INTO dedi_css VALUES (4, 0, '', 'body', '', 'background-color: #ffffff; color: #000000; ', 1, '', 1, 20030310204811, 20030310204811);
INSERT INTO dedi_css VALUES (5, 0, '.', 'Arial-12px', '', 'font-family: Arial, Helvetica, sans-serif; font-size: 12px; ', 1, '', 1, 20030310204809, 20030310204809);
INSERT INTO dedi_css VALUES (6, 0, '.', 'Navigation-Ordner', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-decoration: none; color: #FFFFFF;', 1, '', 1, 20030516003228, 20030516002644);
INSERT INTO dedi_css VALUES (7, 0, '.', 'Navigation-Ordner:active', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-decoration: none; color: #FFFFFF;', 1, '', 1, 20030516003242, 20030516002825);
INSERT INTO dedi_css VALUES (8, 0, '.', 'Navigation-Ordner:hover', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-decoration: none; color: #FFFFFF;', 1, '', 1, 20030516003254, 20030516002925);
INSERT INTO dedi_css VALUES (9, 0, '.', 'Navigation-Ordner:link', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-decoration: none; color: #FFFFFF;', 1, '', 1, 20030516003306, 20030516002949);
INSERT INTO dedi_css VALUES (10, 0, '.', 'Navigation-Seiten', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000000;', 1, '', 1, 20030516003449, 20030516003449);
INSERT INTO dedi_css VALUES (11, 0, '.', 'Navigation-Seiten:active', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000000;', 1, '', 1, 20030516003516, 20030516003516);
INSERT INTO dedi_css VALUES (12, 0, '.', 'Navigation-Seiten:hover', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000000;', 1, '', 1, 20030516003532, 20030516003532);
INSERT INTO dedi_css VALUES (13, 0, '.', 'Navigation-Seiten:link', '', 'font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-decoration: none; color: #000000;', 1, '', 1, 20030516003548, 20030516003548);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_css_upl`
#

DROP TABLE IF EXISTS dedi_css_upl;
CREATE TABLE dedi_css_upl (
  idcssupl int(6) NOT NULL auto_increment,
  idcss int(6) NOT NULL default '0',
  idupl int(6) NOT NULL default '0',
  intSort int(4) NOT NULL default '0',
  PRIMARY KEY  (idcssupl)
) TYPE=MyISAM;
#
# Daten für Tabelle `dedi_css_upl`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_directory`
#

DROP TABLE IF EXISTS dedi_directory;
CREATE TABLE dedi_directory (
  iddirectory int(6) NOT NULL auto_increment,
  idclient int(6) NOT NULL default '0',
  name varchar(255) NOT NULL default '',
  dirname varchar(255) NOT NULL default '',
  description varchar(255) NOT NULL default '',
  parentid int(6) NOT NULL default '0',
  status int(6) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  lastmodified timestamp(14) NOT NULL,
  created timestamp(14) NOT NULL,
  PRIMARY KEY  (iddirectory)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_directory`
#

INSERT INTO dedi_directory VALUES (1, 1, 'css', 'cms/css/', '', 0, 4, 1, 20030521025421, 20030521025421);
INSERT INTO dedi_directory VALUES (2, 1, 'js', 'cms/js/', '', 0, 4, 1, 20030521025421, 20030521025421);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_filetype`
#

DROP TABLE IF EXISTS dedi_filetype;
CREATE TABLE dedi_filetype (
  idfiletype int(6) NOT NULL auto_increment,
  filetype varchar(20) NOT NULL default '',
  description varchar(255) NOT NULL default '',
  filetypepict varchar(255) NOT NULL default 'unknown.gif',
  status int(6) NOT NULL default '0',
  filetypegroup varchar(20) NOT NULL default '',
  mimetype varchar(60) NOT NULL default 'x-dedi/x-unknown',
  addinfo_names varchar(100) NOT NULL default '',
  author int(6) NOT NULL default '0',
  lastmodified timestamp(14) NOT NULL,
  created timestamp(14) NOT NULL,
  PRIMARY KEY  (idfiletype)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_filetype`
#

INSERT INTO dedi_filetype VALUES (1, 'css', 'Cascading Style Sheet', 'css.gif', 1, 'Style', 'text/css', '', 1, 20030610005436, 20030305185033);
INSERT INTO dedi_filetype VALUES (2, 'js', 'Javascript', 'unknown.gif', 1, 'Script', 'text/javascript', '', 1, 20030610005454, 20030305185136);
INSERT INTO dedi_filetype VALUES (3, 'jpg', 'JPEG', 'jpg.gif', 0, 'Bilder', 'image/jpeg', 'width,height', 1, 20030610005505, 20030305185214);
INSERT INTO dedi_filetype VALUES (4, 'gif', 'GIF', 'gif.gif', 0, 'Bilder', 'image/gif', 'width,height', 1, 20030610005535, 20030305185237);
INSERT INTO dedi_filetype VALUES (5, 'php', 'PHP-Script', 'php.gif', 1, 'Text', 'text/plain', '', 1, 20030609232705, 20030330162104);
INSERT INTO dedi_filetype VALUES (6, 'html', 'HTML-Dokument', 'html.gif', 1, 'Text', 'text/html', '', 1, 20030610005521, 20030330162104);
INSERT INTO dedi_filetype VALUES (7, 'pdf', 'Acrobat PDF-Dokument', 'pdf.gif', 0, 'Asset', 'application/pdf', '', 1, 20030609234945, 20030330162125);
INSERT INTO dedi_filetype VALUES (8, 'ico', 'Icon', 'image.gif', 1, 'Bilder', 'image/vnd.microsoft.icon', '', 1, 20030609232618, 20030330180911);
INSERT INTO dedi_filetype VALUES (9, 'txt', 'Textdatei', 'txt.gif', 0, 'Text', 'text/plain', '', 1, 20030610005552, 20030330180911);
INSERT INTO dedi_filetype VALUES (10, 'zip', 'ZIP-Archiv', 'zip.gif', 0, 'Asset', 'application/zip', '', 1, 20030610004229, 20030516004100);
INSERT INTO dedi_filetype VALUES (11, 'htm', 'HTML-Dokument', 'html.gif', 0, 'Text', 'text/html', '', 1, 20030610005527, 20030519000527);
INSERT INTO dedi_filetype VALUES (12, 'png', 'Portable Network Graphic', 'png.gif', 0, 'Bilder', 'image/png', 'width,height', 1, 20030610005605, 20030601003713);
INSERT INTO dedi_filetype VALUES (13, 'jpeg', 'JPEG', 'jpg.gif', 0, 'Bilder', 'image/jpeg', 'width,height', 1, 20030610005510, 20030305185214);
INSERT INTO dedi_filetype VALUES (14, 'doc', 'Word-Dokument', 'word.gif', 0, 'Text', 'application/msword', '', 1, 20030610004315, 20030610004315);
INSERT INTO dedi_filetype VALUES (15, 'xls', 'Excel-Dokument', 'xls.gif', 0, 'Asset', 'application/vnd.ms-excel', '', 1, 20030610004352, 20030610004352);
INSERT INTO dedi_filetype VALUES (16, 'vsd', 'Visio-Zeichnung', 'unknown.gif', 0, 'Asset', 'application/vnd.visio', '', 1, 20030610004424, 20030610004424);
INSERT INTO dedi_filetype VALUES (17, 'ppt', 'PowerPoint-Präsentation', 'ppt.gif', 0, 'Asset', 'application/vnd.ms-powerpoint', '', 1, 20030610004533, 20030610004533);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_groups`
#

DROP TABLE IF EXISTS dedi_groups;
CREATE TABLE dedi_groups (
  idgroup int(11) NOT NULL auto_increment,
  name varchar(255) NOT NULL default '',
  description text,
  is_sys_admin int(11) NOT NULL default '0',
  is_active int(11) NOT NULL default '0',
  is_deletable tinyint(1) NOT NULL default '1',
  PRIMARY KEY  (idgroup),
  KEY idgroup (idgroup)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_groups`
#

INSERT INTO dedi_groups VALUES (1, '--keine--', 'Der User besitzt keine Gruppe', 0, 0, 0);
INSERT INTO dedi_groups VALUES (2, 'System- Administrator', 'Diese Gruppe hat Zugriff auf das gesamte System.', 1, 1, 0);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_js`
#

DROP TABLE IF EXISTS dedi_js;
CREATE TABLE dedi_js (
  idjs int(6) NOT NULL auto_increment,
  idupl int(6) NOT NULL default '0',
  idclient int(6) NOT NULL default '0',
  filecontent text NOT NULL,
  status int(6) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  lastmodified timestamp(14) NOT NULL,
  created timestamp(14) NOT NULL,
  KEY idjs (idjs),
  KEY idupl (idupl)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_js`
#

INSERT INTO dedi_js VALUES (1, 1, 0, '<!--\r\nfunction new_window(theURL,winName,features,myWidth,myHeight,isCenter) {\r\n  if(window.screen)if(isCenter)if(isCenter == \'true\') {\r\n    var myLeft = (screen.width-myWidth)/2;\r\n    var myTop = (screen.height-myHeight)/2;\r\n    features+=(features!=\'\')?\',\':\'\';\r\n    features+=\',left=\'+myLeft+\',top=\'+myTop;\r\n  }\r\n  window.open(theURL,winName,features+((features!=\'\')?\',\':\'\')+\'width=\'+myWidth+\',height=\'+myHeight);\r\n}\r\n\r\nfunction new_imagepopup(theURL,winName,altName,features,myWidth,myHeight,isCenter) {\r\n  if(window.screen)if(isCenter)if(isCenter == \'true\') {\r\n    var myLeft = (screen.width-myWidth)/2;\r\n    var myTop = (screen.height-myHeight)/2;\r\n    features+=(features!=\'\')?\',\':\'\';\r\n    features+=\',left=\'+myLeft+\',top=\'+myTop;\r\n  }\r\n  imagepopup = window.open(\'\',\'\',features+((features!=\'\')?\',\':\'\')+\'width=\'+myWidth+\',height=\'+myHeight);\r\n  with (imagepopup) {\r\n    document.open();\r\n    document.write(\'<title>\'+winName+\'</title>\');\r\n    document.write(\'<meta http-equiv="imagetoolbar" content="no">\');\r\n    document.write(\'<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">\');\r\n    document.write(\'<a href="javascript:self.close()">\');\r\n    document.write(\'<img src="\'+theURL+\'" border="0" alt="\'+altName+\'" title="\'+altName+\'">\');\r\n    document.write(\'</a></body>\');\r\n    document.close();\r\n  }\r\n}\r\n\r\nfunction newImage(arg) {\r\n  if (document.images) {\r\n    rslt = new Image();\r\n    rslt.src = arg;\r\n    return rslt;\r\n  }\r\n}\r\n\r\nvar preloadFlag = false;\r\nfunction preloadImages() {\r\n  if (document.images) {\r\n    for (var i=0; i<preloadImages.arguments.length; i++) {\r\n      rslt = newImage(preloadImages.arguments[i]);\r\n    }\r\n    preloadFlag = true;\r\n  }\r\n}\r\n\r\nfunction changeImages() {\r\n  if (document.images && (preloadFlag == true)) {\r\n    for (var i=0; i<changeImages.arguments.length; i+=2) {\r\n      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];\r\n    }\r\n  }\r\n}\r\n//-->', 1, 1, 20030310214759, 20030207204900);
INSERT INTO dedi_js VALUES (2, 2, 0, '<!--\r\nfunction verifyCompatibleBrowser() {\r\n	this.ver=navigator.appVersion\r\n	this.dom=document.getElementById?1:0\r\n	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;\r\n	this.ie4=(document.all && !this.dom)?1:0;\r\n	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;\r\n	this.ns4=(document.layers && !this.dom)?1:0;\r\n	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)\r\n	return this\r\n}\r\nbw=new verifyCompatibleBrowser()\r\nvar speed=50\r\nvar loop, timer\r\n\r\nfunction ConstructObject(obj,nest) {\r\n	nest=(!nest) ? \'\':\'document.\'+nest+\'.\'\r\n	this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+\'document.\'+obj):0;\r\n	this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+\'document.\'+obj):0;\r\n	this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight\r\n	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight\r\n	this.up=MoveAreaUp;this.down=MoveAreaDown;\r\n	this.MoveArea=MoveArea; this.x; this.y;\r\n	this.obj = obj + "Object"\r\n	eval(this.obj + "=this")\r\n	return this\r\n}\r\n\r\nfunction MoveArea(x,y) {\r\n	this.x=x;this.y=y\r\n	this.css.left=this.x\r\n	this.css.top=this.y\r\n}\r\n\r\nfunction MoveAreaDown(move) {\r\n	if(this.y>-this.scrollHeight+objContainer.clipHeight) {\r\n		this.MoveArea(0,this.y-move)\r\n		if(loop) setTimeout(this.obj+".down("+move+")",speed)\r\n	}\r\n}\r\n\r\nfunction MoveAreaUp(move){\r\n	if(this.y<0){\r\n    this.MoveArea(0,this.y-move)\r\n    if(loop) setTimeout(this.obj+".up("+move+")",speed)\r\n	}\r\n}\r\n\r\nfunction PerformScroll(speed){\r\n	if(initialised){\r\n		loop=true;\r\n		if(speed>0) objScroller.down(speed)\r\n		else objScroller.up(speed)\r\n	}\r\n}\r\n\r\nfunction CeaseScroll() {\r\n	loop=false\r\n	if(timer) clearTimeout(timer)\r\n}\r\n\r\nvar initialised;\r\nfunction InitialiseScrollableArea() {\r\n	objContainer=new ConstructObject(\'divContainer\')\r\n	objScroller=new ConstructObject(\'divContent\',\'divContainer\')\r\n	objScroller.MoveArea(0,0)\r\n	objContainer.css.visibility=\'visible\'\r\n	initialised=true;\r\n}\r\n//-->', 1, 1, 20030310214759, 20030207204900);
INSERT INTO dedi_js VALUES (3, 3, 0, '<!--\r\n/****************************************************************************\r\nDHTML library from DHTMLCentral.com\r\n*   Copyright (C) 2001 Thomas Brattli 2001\r\n*   This script was released at DHTMLCentral.com\r\n*   Visit for more great scripts!\r\n*   This may be used and changed freely as long as this msg is intact!\r\n*   We will also appreciate any links you could give us.\r\n*\r\n*   Made by Thomas Brattli 2001\r\n***************************************************************************/\r\n\r\n//Browsercheck (needed) ***************\r\nfunction lib_bwcheck(){\r\n  this.ver=navigator.appVersion\r\n  this.agent=navigator.userAgent\r\n  this.dom=document.getElementById?1:0\r\n  this.opera5=this.agent.indexOf("Opera 5")>-1\r\n  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;\r\n  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;\r\n  this.ie4=(document.all && !this.dom && !this.opera5)?1:0;\r\n  this.ie=this.ie4||this.ie5||this.ie6\r\n  this.mac=this.agent.indexOf("Mac")>-1\r\n  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;\r\n  this.ns4=(document.layers && !this.dom)?1:0;\r\n  this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5)\r\n  return this\r\n}\r\nbw=new lib_bwcheck() //Browsercheck object\r\n\r\n//Debug function ******************\r\nfunction lib_message(txt){alert(txt); return false}\r\n\r\n//Lib objects  ********************\r\nfunction lib_obj(obj,nest){\r\n  if(!bw.bw) return lib_message(\'Old browser\')\r\n  nest=(!nest) ? "":\'document.\'+nest+\'.\'\r\n  this.evnt=bw.dom? document.getElementById(obj):\r\n    bw.ie4?document.all[obj]:bw.ns4?eval(nest+"document.layers." +obj):0;\r\n  if(!this.evnt) return lib_message(\'The layer does not exist (\'+obj+\')\'\r\n    +\'- \nIf your using Netscape please check the nesting of your tags!\')\r\n  this.css=bw.dom||bw.ie4?this.evnt.style:this.evnt;\r\n  this.ref=bw.dom||bw.ie4?document:this.css.document;\r\n  this.x=parseInt(this.css.left)||this.css.pixelLeft||this.evnt.offsetLeft||0;\r\n  this.y=parseInt(this.css.top)||this.css.pixelTop||this.evnt.offsetTop||0\r\n  this.w=this.evnt.offsetWidth||this.css.clip.width||\r\n    this.ref.width||this.css.pixelWidth||0;\r\n  this.h=this.evnt.offsetHeight||this.css.clip.height||\r\n    this.ref.height||this.css.pixelHeight||0\r\n  this.c=0 //Clip values\r\n  if((bw.dom || bw.ie4) && this.css.clip) {\r\n  this.c=this.css.clip; this.c=this.c.slice(5,this.c.length-1);\r\n  this.c=this.c.split(\' \');\r\n  for(var i=0;i<4;i++){this.c[i]=parseInt(this.c[i])}\r\n  }\r\n  this.ct=this.css.clip.top||this.c[0]||0;\r\n  this.cr=this.css.clip.right||this.c[1]||this.w||0\r\n  this.cb=this.css.clip.bottom||this.c[2]||this.h||0;\r\n  this.cl=this.css.clip.left||this.c[3]||0\r\n  this.obj = obj + "Object"; eval(this.obj + "=this")\r\n  return this\r\n}\r\n\r\n//Moving object to **************\r\nlib_obj.prototype.moveIt = function(x,y){\r\n  this.x=x;this.y=y; this.css.left=x;this.css.top=y\r\n}\r\n\r\n//Moving object by ***************\r\nlib_obj.prototype.moveBy = function(x,y){\r\n  this.css.left=this.x+=x; this.css.top=this.y+=y\r\n}\r\n\r\n//Showing object ************\r\nlib_obj.prototype.showIt = function(){this.css.visibility="visible"}\r\n\r\n//Hiding object **********\r\nlib_obj.prototype.hideIt = function(){this.css.visibility="hidden"}\r\n\r\n//Changing backgroundcolor ***************\r\nlib_obj.prototype.bg = function(color){\r\n	if(bw.opera) this.css.background=color\r\n	else if(bw.dom || bw.ie4) this.css.backgroundColor=color\r\n	else if(bw.ns4) this.css.bgColor=color\r\n}\r\n\r\n//Writing content to object ***\r\nlib_obj.prototype.writeIt = function(text,startHTML,endHTML){\r\n	if(bw.ns4){\r\n    if(!startHTML){startHTML=""; endHTML=""}\r\n	  this.ref.open("text/html");\r\n    this.ref.write(startHTML+text+endHTML);\r\n    this.ref.close()\r\n	}else this.evnt.innerHTML=text\r\n}\r\n\r\n//Clipping object to ******\r\nlib_obj.prototype.clipTo = function(t,r,b,l,setwidth){\r\n  this.ct=t; this.cr=r; this.cb=b; this.cl=l\r\n  if(bw.ns4){\r\n    this.css.clip.top=t;this.css.clip.right=r\r\n    this.css.clip.bottom=b;this.css.clip.left=l\r\n  }else{\r\n    if(t<0)t=0;if(r<0)r=0;if(b<0)b=0;if(b<0)b=0\r\n    this.css.clip="rect("+t+","+r+","+b+","+l+")";\r\n    if(setwidth){this.css.pixelWidth=this.css.width=r;\r\n    this.css.pixelHeight=this.css.height=b}\r\n  }\r\n}\r\n\r\n//Clipping object by ******\r\nlib_obj.prototype.clipBy = function(t,r,b,l,setwidth){\r\n  this.clipTo(this.ct+t,this.cr+r,this.cb+b,this.cl+l,setwidth)\r\n}\r\n\r\n//Clip animation ************\r\nlib_obj.prototype.clipIt = function(t,r,b,l,step,fn,wh){\r\n  tstep=Math.max(Math.max(Math.abs((t-this.ct)/step),Math.abs((r-this.cr)/step)),\r\n    Math.max(Math.abs((b-this.cb)/step),Math.abs((l-this.cl)/step)))\r\n  if(!this.clipactive){\r\n    this.clipactive=true; if(!wh) wh=0; if(!fn) fn=0\r\n    this.clip(t,r,b,l,(t-this.ct)/tstep,(r-this.cr)/tstep,\r\n      (b-this.cb)/tstep,(l-this.cl)/tstep,tstep,0, fn,wh)\r\n  }\r\n}\r\nlib_obj.prototype.clip = function(t,r,b,l,ts,rs,bs,ls,tstep,astep,fn,wh){\r\n  if(astep<tstep){\r\n    if(wh) eval(wh);\r\n    astep++\r\n    this.clipBy(ts,rs,bs,ls,1);\r\n    setTimeout(this.obj+".clip("+t+","+r+","+b+","+l+","+ts+","+rs+","\r\n      +bs+","+ls+","+tstep+","+astep+",\'"+fn+"\',\'"+wh+"\')",50)\r\n  }else{\r\n    this.clipactive=false; this.clipTo(t,r,b,l,1);\r\n    if(fn) eval(fn)\r\n  }\r\n}\r\n\r\n//Slide animation ***********\r\nlib_obj.prototype.slideIt = function(endx,endy,inc,speed,fn,wh){\r\n  if(!this.slideactive){\r\n    var distx = endx - this.x;\r\n    var disty = endy - this.y\r\n    var num = Math.sqrt(Math.pow(distx,2)+Math.pow(disty,2))/inc\r\n    var dx = distx/num; var dy = disty/num\r\n    this.slideactive = 1;\r\n    if(!wh) wh=0; if(!fn) fn=0\r\n    this.slide(dx,dy,endx,endy,speed,fn,wh)\r\n    }\r\n}\r\nlib_obj.prototype.slide = function(dx,dy,endx,endy,speed,fn,wh) {\r\n  if(this.slideactive&&\r\n  (Math.floor(Math.abs(dx))<Math.floor(Math.abs(endx-this.x))||\r\n    Math.floor(Math.abs(dy))<Math.floor(Math.abs(endy-this.y)))){\r\n    this.moveBy(dx,dy);\r\n    if(wh) eval(wh)\r\n    setTimeout(this.obj+".slide("+dx+","+dy+","+endx+","+endy+","+speed+",\'"\r\n    +fn+"\',\'"+wh+"\')",speed)\r\n  }else{\r\n    this.slideactive = 0;\r\n    this.moveIt(endx,endy);\r\n    if(fn) eval(fn)\r\n  }\r\n}\r\n\r\n//Circle animation ****************\r\nlib_obj.prototype.circleIt = function(rad,ainc,a,enda,xc,yc,speed,fn) {\r\n  if((Math.abs(ainc)<Math.abs(enda-a))) {\r\n    a += ainc\r\n    var x = xc + rad*Math.cos(a*Math.PI/180)\r\n    var y = yc - rad*Math.sin(a*Math.PI/180)\r\n    this.moveIt(x,y)\r\n    setTimeout(this.obj+".circleIt("+rad+","+ainc+","+a+","+enda+","\r\n      +xc+","+yc+","+speed+",\'"+fn+"\')",speed)\r\n  }else if(fn&&fn!="undefined") eval(fn)\r\n}\r\n\r\n//Document size object ********\r\nfunction lib_doc_size(){\r\n  this.x=0;this.x2=bw.ie && document.body.offsetWidth-20||innerWidth||0;\r\n  this.y=0;this.y2=bw.ie && document.body.offsetHeight-5||innerHeight||0;\r\n  if(!this.x2||!this.y2) return message(\'Document has no width or height\')\r\n  this.x50=this.x2/2;this.y50=this.y2/2;\r\n  return this;\r\n}\r\n\r\n//Drag drop functions start *******************\r\ndd_is_active=0; dd_obj=0; dd_mobj=0\r\nfunction lib_dd(){\r\n  dd_is_active=1\r\n  if(bw.ns4){\r\n    document.captureEvents(Event.MOUSEMOVE|Event.MOUSEDOWN|Event.MOUSEUP)\r\n  }\r\n  document.onmousemove=lib_dd_move;\r\n  document.onmousedown=lib_dd_down\r\n  document.onmouseup=lib_dd_up\r\n}\r\nlib_obj.prototype.dragdrop = function(obj){\r\n  if(!dd_is_active) lib_dd()\r\n  this.evnt.onmouseover=new Function("lib_dd_over("+this.obj+")")\r\n  this.evnt.onmouseout=new Function("dd_mobj=0")\r\n  if(obj) this.ddobj=obj\r\n}\r\nlib_obj.prototype.nodragdrop = function(){\r\n  this.evnt.onmouseover=""; this.evnt.onmouseout=""\r\n  dd_obj=0; dd_mobj=0\r\n}\r\n//Drag drop event functions\r\nfunction lib_dd_over(obj){dd_mobj=obj}\r\nfunction lib_dd_up(e){dd_obj=0}\r\nfunction lib_dd_down(e){ //Mousedown\r\n  if(dd_mobj){\r\n    x=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX\r\n    y=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY\r\n    dd_obj=dd_mobj\r\n    dd_obj.clX=x-dd_obj.x;\r\n    dd_obj.clY=y-dd_obj.y\r\n  }\r\n}\r\nfunction lib_dd_move(e,y,rresize){ //Mousemove\r\n  x=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX\r\n  y=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY\r\n  if(dd_obj){\r\n    nx=x-dd_obj.clX; ny=y-dd_obj.clY\r\n    if(dd_obj.ddobj) dd_obj.ddobj.moveIt(nx,ny)\r\n    else dd_obj.moveIt(nx,ny)\r\n  }\r\n  if(!bw.ns4) return false\r\n}\r\n//Drag drop functions end *************\r\n//-->', 1, 1, 20030310214759, 20030207204900);
INSERT INTO dedi_js VALUES (4, 4, 0, '<!--\r\nself.onError=null;\r\ncurrentX = currentY = 0;\r\nwhichIt = null;\r\nlastScrollX = 0; lastScrollY = 0;\r\nNS = (document.layers) ? 1 : 0;\r\nIE = (document.all) ? 1: 0;\r\nfunction heartBeat() {\r\n	if(IE) {\r\n         	diffY = document.body.scrollTop;\r\n                 diffX = document.body.scrollLeft;\r\n         }\r\n         if(NS) {\r\n         	diffY = self.pageYOffset;\r\n                 diffX = self.pageXOffset;\r\n	}\r\n	if(diffY != lastScrollY) {\r\n		percent = .1 * (diffY - lastScrollY);\r\n		if(percent > 0) percent = Math.ceil(percent);\r\n		else percent = Math.floor(percent);\r\n		if(IE) document.all.slide.style.pixelTop += percent;\r\n		if(NS) document.slide.top += percent;\r\n		lastScrollY = lastScrollY + percent;\r\n	}\r\n	if(diffX != lastScrollX) {\r\n		percent = .1 * (diffX - lastScrollX);\r\n		if(percent > 0) percent = Math.ceil(percent);\r\n		else percent = Math.floor(percent);\r\n		if(IE) document.all.slide.style.pixelLeft += percent;\r\n		if(NS) document.slide.left += percent;\r\n		lastScrollX = lastScrollX + percent;\r\n	}\r\n}\r\n\r\nfunction checkFocus(x,y) {\r\n	var totalY, totalX;\r\n	floatx = document.slide.pageX;\r\n	floaty = document.slide.pageY;\r\n	floatwidth = document.slide.clip.width;\r\n	floatheight = document.slide.clip.height;\r\n\r\n	if(20 == 0) totalY = floatheight;\r\n	else totalY = 25;\r\n	if(0 == 0) totalX = floatwidth;\r\n	else totalX = 0;\r\n	if( (x > floatx && x < (floatx+totalX)) && (y > floaty && y < (floaty+totalY))) return true;\r\n	else return false;\r\n}\r\n\r\nfunction grabIt(e) {\r\n	if(IE) {\r\n		whichIt = event.srcElement;\r\n		while (whichIt.id.indexOf(\'slide\') == -1) {\r\n			whichIt = whichIt.parentElement;\r\n			if (whichIt == null) return true;\r\n		}\r\n		whichIt.style.pixelLeft = whichIt.offsetLeft;\r\n		whichIt.style.pixelTop = whichIt.offsetTop;\r\n		currentX = (event.clientX + document.body.scrollLeft);\r\n		currentY = (event.clientY + document.body.scrollTop);\r\n\r\n		if(20 == 0) totalY = whichIt.style.pixelHeight;\r\n		else totalY = 20;\r\n		if(0 == 0) totalX = whichIt.style.pixelWidth;\r\n		else totalX = 0;\r\n		if(!(event.clientX > whichIt.offsetLeft && event.clientX < whichIt.offsetLeft + totalX) || !(currentY > whichIt.offsetTop && currentY < whichIt.offsetTop + totalY)) whichIt = null;\r\n	} else {\r\n		window.captureEvents(Event.MOUSEMOVE);\r\n		if (checkFocus (e.pageX,e.pageY)) {\r\n			whichIt = document.slide;\r\n			FloatTouchedX = e.pageX-document.slide.pageX;\r\n			FloatTouchedY = e.pageY-document.slide.pageY;\r\n		}\r\n	}\r\n	return true;\r\n}\r\n\r\nfunction moveIt(e) {\r\n	if (whichIt == null) return false;\r\n	if(IE) {\r\n		newX = (event.clientX + document.body.scrollLeft);\r\n		newY = (event.clientY + document.body.scrollTop);\r\n		distanceX = (newX - currentX);\r\n                 distanceY = (newY - currentY);\r\n		currentX = newX;\r\n                 currentY = newY;\r\n		whichIt.style.pixelLeft += distanceX;\r\n		whichIt.style.pixelTop += distanceY;\r\n		if(whichIt.style.pixelTop < document.body.scrollTop) whichIt.style.pixelTop = document.body.scrollTop;\r\n		if(whichIt.style.pixelLeft < document.body.scrollLeft) whichIt.style.pixelLeft = document.body.scrollLeft;\r\n		if(whichIt.style.pixelLeft > document.body.offsetWidth - document.body.scrollLeft - whichIt.style.pixelWidth - 20) whichIt.style.pixelLeft = document.body.offsetWidth - whichIt.style.pixelWidth - 20;\r\n		if(whichIt.style.pixelTop > document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5) whichIt.style.pixelTop = document.body.offsetHeight + document.body.scrollTop - whichIt.style.pixelHeight - 5;\r\n		event.returnValue = false;\r\n	} else {\r\n		whichIt.moveTo(e.pageX-FloatTouchedX,e.pageY-FloatTouchedY);\r\n		if(whichIt.left < 0+self.pageXOffset) whichIt.left = 0+self.pageXOffset;\r\n		if(whichIt.top < 0+self.pageYOffset) whichIt.top = 0+self.pageYOffset;\r\n		if( (whichIt.left + whichIt.clip.width) >= (window.innerWidth+self.pageXOffset-17)) whichIt.left = ((window.innerWidth+self.pageXOffset)-whichIt.clip.width)-17;\r\n		if( (whichIt.top + whichIt.clip.height) >= (window.innerHeight+self.pageYOffset-17)) whichIt.top = ((window.innerHeight+self.pageYOffset)-whichIt.clip.height)-17;\r\n		return false;\r\n	}\r\n	return false;\r\n}\r\n\r\nfunction dropIt() {\r\n	whichIt = null;\r\n	if(NS) window.releaseEvents (Event.MOUSEMOVE);\r\n	return true;\r\n}\r\n\r\nif(NS) {\r\n	window.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);\r\n	window.onmousedown = grabIt;\r\n	window.onmousemove = moveIt;\r\n	window.onmouseup = dropIt;\r\n}\r\nif(IE) {\r\n	document.onmousedown = grabIt;\r\n	document.onmousemove = moveIt;\r\n	document.onmouseup = dropIt;\r\n}\r\nif(NS || IE) action = window.setInterval(\'heartBeat()\', 1);\r\n//-->', 1, 1, 20030310214759, 20030207204900);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_lang`
#

DROP TABLE IF EXISTS dedi_lang;
CREATE TABLE dedi_lang (
  idlang int(6) NOT NULL auto_increment,
  name varchar(255) NOT NULL default '',
  description varchar(255) default NULL,
  charset varchar(255) NOT NULL default '',
  author int(10) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idlang)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_lang`
#

INSERT INTO dedi_lang VALUES (1, 'deutsch', '', 'iso-8859-1', 1, 0, 0);

#
# Tabellenstruktur für Tabelle `dedi_lay`
#

DROP TABLE IF EXISTS dedi_lay;
CREATE TABLE dedi_lay (
  idlay int(6) NOT NULL auto_increment,
  idclient int(6) NOT NULL default '0',
  name varchar(255) NOT NULL default '',
  description text,
  code text NOT NULL,
  deletable tinyint(1) default '1',
  author varchar(32) NOT NULL default '',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idlay),
  KEY idclient (idclient)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_lay`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_lay_upl`
#

DROP TABLE IF EXISTS dedi_lay_upl;
CREATE TABLE dedi_lay_upl (
  idlayupl int(6) NOT NULL auto_increment,
  idlay int(6) NOT NULL default '0',
  idupl int(6) NOT NULL default '0',
  PRIMARY KEY  (idlayupl),
  KEY idlay (idlay),
  KEY idupl (idupl)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_lay_upl`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_mod`
#

DROP TABLE IF EXISTS dedi_mod;
CREATE TABLE dedi_mod (
  idmod int(6) NOT NULL auto_increment,
  name varchar(255) NOT NULL default '',
  version varchar(63) default NULL,
  cat varchar(63) default NULL,
  description text,
  input LONGTEXT NOT NULL,
  output LONGTEXT NOT NULL,
  config text,
  idclient int(6) NOT NULL default '0',
  deletable tinyint(1) NOT NULL default '1',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  repository_id varchar(255) default NULL,
  install_sql text,
  uninstall_sql text,
  update_sql text,
  source_id int(6) unsigned NOT NULL default '0',
  is_install enum('0','1') NOT NULL default '0',
  verbose varchar(100) default NULL,
  checked enum('1','0') NOT NULL default '0',
  PRIMARY KEY  (idmod),
  KEY idclient (idclient)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_mod`
#
INSERT INTO `dedi_mod` VALUES (1, 'Textfeld', '1.0', 'Content', 'Textfeld, gut geeignet für Überschriften.', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Einzeiliges Textfeld'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''2''][''cat''] = ''radio'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''2''][''option_val''][''0''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''2''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''2''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''2''][''option_val''][''2''] = ''false'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''3''][''desc''] = ''Template'';\r\n$mip_form[''3''][''cat''] = ''txtarea'';\r\n$mip_form[''3''][''rows''] = ''6'';\r\n$mip_form[''3''][''type''] = ''long'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''{text}'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\necho '' <small><b>Legende:</b><br> \r\nEinzeiliges Textfeld: {text}, Ausgewähltes Stylesheet: {style}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br> \r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\n}\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n$myText[''text''] = <dedi:mod type="text" id="1" title="MOD_VALUE[0]" styleclass="MOD_VALUE[1]" menuoptions="MOD_VALUE[2]" addslashes="true" />;\r\n$myText[''style''] = "MOD_VALUE[1]";\r\n\r\n$myTplVars[''text''] = ''{text}'';\r\n$myTplVars[''style''] = ''{style}'';\r\n$myTpl = "MOD_VALUE[3]";\r\n    \r\n$myTpl = str_replace($myTplVars, $myText, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myText);\r\n?>\r\n', '', 0, 1, 1, 1066927900, 1132942705, 'mod:e39de608156656814b7b2e8ee199adcc:c7de1855', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (2, 'Textarea', '1.0', 'Content', 'Erzeugt eine Textarea', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Textfeld'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''2''][''cat''] = ''radio'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''2''][''option_val''][''0''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''2''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''2''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''2''][''option_val''][''2''] = ''false'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''3''][''desc''] = ''Template'';\r\n$mip_form[''3''][''cat''] = ''txtarea'';\r\n$mip_form[''3''][''rows''] = ''6'';\r\n$mip_form[''3''][''type''] = ''long'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''{textarea}'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\necho '' <small><b>Legende:</b><br> \r\nTextarea: {textarea}, Ausgewähltes Stylesheet: {style}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br>\r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\n}\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n$myTextarea[''text''] = <dedi:mod type="textarea" id="1"  styleclass="MOD_VALUE[1]" title="MOD_VALUE[0]" menuoptions="MOD_VALUE[2]" addslashes="true" />;\r\n$myTextarea[''style''] = "MOD_VALUE[1]";\r\n\r\n$myTplVars[''textarea''] = ''{textarea}'';\r\n$myTplVars[''style''] = ''{style}'';\r\n$myTpl = "MOD_VALUE[3]";\r\n    \r\n$myTpl = str_replace($myTplVars, $myTextarea, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myTextarea);\r\n?>\r\n', '', 0, 1, 1, 1066927900, 1132942748, 'mod:6394d816bfb4220289a6f4b29cfb1834:ea9d48ba', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (3, 'Sourcecode', '1.0', 'Content', 'HTML- Quelltexteditor', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,1);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Quelltext'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''1''][''cat''] = ''radio'';\r\n$mip_form[''1''][''type''] = '''';\r\n$mip_form[''1''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''true'';\r\n$mip_form[''1''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''1''][''option_val''][''0''] = ''true'';\r\n$mip_form[''1''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''1''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''1''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''1''][''option_val''][''2''] = ''false'';\r\n$mip_form[''1''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''2''][''desc''] = ''Template'';\r\n$mip_form[''2''][''cat''] = ''txtarea'';\r\n$mip_form[''2''][''rows''] = ''6'';\r\n$mip_form[''2''][''type''] = ''long'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''{sourcecode}'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\necho '' <small><b>Legende:</b><br> \r\nQuelltexteditor: {sourcecode}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn<br>\r\nes eine Änderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\n}\r\nunset($mip_form);\r\n?>', '<?PHP\r\n$mySource = <dedi:mod type="sourcecode" id="1"   title="MOD_VALUE[0]" menuoptions="MOD_VALUE[1]" addslashes="true" />;\r\n\r\n$myTplVar = ''{sourcecode}'';\r\n$myTpl = "MOD_VALUE[2]";\r\n    \r\n$myTpl = str_replace($myTplVar, $mySource, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVar, $mySource);\r\n?>\r\n', '', 0, 1, 1, 1066927900, 1132942780, 'mod:99e4c8121cd7d4b0d4c6f388df4e4c82:65b09a4c', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (4, 'WYSIWYG', '1.0', 'Content', 'WYSIWYG-Editor zum bearbeiten von Text / HTML.', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''WYSIWYG'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''2''][''cat''] = ''radio'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''2''][''option_val''][''0''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''2''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''2''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''2''][''option_val''][''2''] = ''false'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''3''][''desc''] = ''Template'';\r\n$mip_form[''3''][''cat''] = ''txtarea'';\r\n$mip_form[''3''][''rows''] = ''6'';\r\n$mip_form[''3''][''type''] = ''long'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''{wysiwyg}'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\necho '' <small><b>Legende:</b><br> \r\nWYSIWYG- Editor: {wysiwyg}, Ausgewähltes Stylesheet: {style}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br> \r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\n}\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n$myWysiwyg[''wysiwyg''] = <dedi:mod type="wysiwyg" id="1"  styleclass="MOD_VALUE[1]" title="MOD_VALUE[0]" menuoptions="MOD_VALUE[2]" addslashes="true" />;\r\n$myWysiwyg[''style''] = "MOD_VALUE[1]";\r\n\r\n$myTplVars[''wysiwyg''] = ''{wysiwyg}'';\r\n$myTplVars[''style''] = ''{style}'';\r\n$myTpl = "MOD_VALUE[3]";\r\n    \r\n$myTpl = str_replace($myTplVars, $myWysiwyg, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myWysiwyg);\r\n?>\r\n', '', 0, 1, 1, 1066927900, 1132942800, 'mod:7d7915c405c8ce1ec5db4e7408825a12:b92e7fd8', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (5, 'WYSIWYG2', '1.1', 'Content', 'Erweiterter WYSIWYG- Editor', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2,3,4,5,6,7,8,9,10,11);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Beschriftung Textfeld'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''WYSIWYG 2'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''2''][''cat''] = ''radio'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Erweitertes Bearbeitungsmenü'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''2''][''option_val''][''0''] = ''advanced'';\r\n$mip_form[''2''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''2''][''option_val''][''1''] = ''true'';\r\n\r\n//Featureauswahl\r\n$mip_form[''3''][''desc''] = ''Angezeigt Schaltflächen'';\r\n$mip_form[''3''][''cat''] = ''option'';\r\n$mip_form[''3''][''flag''] = ''multiple'';\r\n$mip_form[''3''][''size''] = ''7'';\r\n$mip_form[''3''][''option_desc''][] = ''Alle Felder sichtbar'';\r\n$mip_form[''3''][''option_val''][] =  ''true'';\r\n$mip_form[''3''][''option_desc''][] = ''Fonts'';\r\n$mip_form[''3''][''option_val''][] =  ''font'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontgröße'';\r\n$mip_form[''3''][''option_val''][] =  ''fontsize'';\r\n$mip_form[''3''][''option_desc''][] = ''Stylesheets'';\r\n$mip_form[''3''][''option_val''][] =  ''styles'';\r\n$mip_form[''3''][''option_desc''][] = ''Text zurücksetzten'';\r\n$mip_form[''3''][''option_val''][] =  ''reset'';\r\n$mip_form[''3''][''option_desc''][] = ''Vorschau'';\r\n$mip_form[''3''][''option_val''][] =  ''preview'';\r\n$mip_form[''3''][''option_desc''][] = ''Drucken'';\r\n$mip_form[''3''][''option_val''][] =  ''print'';\r\n$mip_form[''3''][''option_desc''][] = ''Zwischenablagefunktionen'';\r\n$mip_form[''3''][''option_val''][] =  ''clipboardtools'';\r\n$mip_form[''3''][''option_desc''][] = ''HTMLtags entfernen'';\r\n$mip_form[''3''][''option_val''][] =  ''striptag'';\r\n$mip_form[''3''][''option_desc''][] = ''Undo/ Redo'';\r\n$mip_form[''3''][''option_val''][] =  ''undo'';\r\n$mip_form[''3''][''option_desc''][] = ''Suchen und Ersetzen'';\r\n$mip_form[''3''][''option_val''][] =  ''search'';\r\n$mip_form[''3''][''option_desc''][] = ''Upper-, Lowercase'';\r\n$mip_form[''3''][''option_val''][] =  ''changecase'';\r\n$mip_form[''3''][''option_desc''][] = ''Umschalten in HTMLansicht'';\r\n$mip_form[''3''][''option_val''][] =  ''changemode'';\r\n$mip_form[''3''][''option_desc''][] = ''Externes Bearbeitungsfenster'';\r\n$mip_form[''3''][''option_val''][] =  ''popupeditor'';\r\n$mip_form[''3''][''option_desc''][] = ''Tabellen'';\r\n$mip_form[''3''][''option_val''][] =  ''table'';\r\n$mip_form[''3''][''option_desc''][] = ''Fett'';\r\n$mip_form[''3''][''option_val''][] =  ''bold'';\r\n$mip_form[''3''][''option_desc''][] = ''Kursiv'';\r\n$mip_form[''3''][''option_val''][] =  ''italic'';\r\n$mip_form[''3''][''option_desc''][] = ''Unterstrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''underline'';\r\n$mip_form[''3''][''option_desc''][] = ''Durchgestrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''strikethrough'';\r\n$mip_form[''3''][''option_desc''][] = ''Tiefgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''subscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Hochgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''superscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Ausrichtung'';\r\n$mip_form[''3''][''option_val''][] =  ''align'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''fontcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Hintergrundfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''backgroundcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Listen'';\r\n$mip_form[''3''][''option_val''][] =  ''list'';\r\n$mip_form[''3''][''option_desc''][] = ''Einrückung'';\r\n$mip_form[''3''][''option_val''][] =  ''indent'';\r\n$mip_form[''3''][''option_desc''][] = ''Links einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''link'';\r\n$mip_form[''3''][''option_desc''][] = ''Bilder einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''image'';\r\n$mip_form[''3''][''option_desc''][] = ''Dateien einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''file'';\r\n$mip_form[''3''][''option_desc''][] = ''Liveresize'';\r\n$mip_form[''3''][''option_val''][] =  ''liveresize'';\r\n$mip_form[''3''][''option_desc''][] = ''Mehrfachauswahl'';\r\n$mip_form[''3''][''option_val''][] =  ''multipleselect'';\r\n$mip_form[''3''][''option_desc''][] = ''Trennlinie'';\r\n$mip_form[''3''][''option_val''][] =  ''hr'';\r\n$mip_form[''3''][''option_desc''][] = ''Besondere Zeichen'';\r\n$mip_form[''3''][''option_val''][] =  ''specialchars'';\r\n$mip_form[''3''][''option_desc''][] = ''Aktuelles Datum'';\r\n$mip_form[''3''][''option_val''][] =  ''date'';\r\n$mip_form[''3''][''option_desc''][] = ''Lauftexteditor'';\r\n$mip_form[''3''][''option_val''][] =  ''marquee'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n\r\n//Auswählbare Stylesheets\r\n$mip_form[''4''][''desc''] = ''Für den Redakteur auswählbare Stylesheets'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''output_flag''] = ''multiple'';\r\n$mip_form[''4''][''size''] = ''5'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n$mip_form[''4''][''return_val''] = ''idcssupl'';\r\n\r\n//Grafikordner\r\n$mip_form[''5''][''desc''] = ''Grafikauswahl aus folgenden Verzeichnissen ermöglichen'';\r\n$mip_form[''5''][''cat''] = ''app_directory'';\r\n$mip_form[''5''][''output_cat''] = ''option'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''flag''] = ''multiple'';\r\n$mip_form[''5''][''size''] = ''5'';\r\n\r\n//Mit Unterverzeichnissen\r\n$mip_form[''6''][''cat''] = ''option'';\r\n$mip_form[''6''][''type''] = '''';\r\n$mip_form[''6''][''desc''] = ''Automatischa Anzeige von Unterverzeichnissen'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = ''false'';\r\n$mip_form[''6''][''option_desc''][''0''] = ''Nein'';\r\n$mip_form[''6''][''option_val''][''0''] = ''false'';\r\n$mip_form[''6''][''option_desc''][''1''] = ''Ja'';\r\n$mip_form[''6''][''option_val''][''1''] = ''true'';\r\n$mip_form[''6''][''tab''] = ''0'';\r\n\r\n//Grafiktypen\r\n$mip_form[''7''][''desc''] = ''Auswählbare Grafiktypen: '';\r\n$mip_form[''7''][''cat''] = ''option'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''option_desc''][] = ''Alle Webtypen'';\r\n$mip_form[''7''][''option_val''][] =  '''';\r\n$mip_form[''7''][''option_val''][] =  ''gif'';\r\n$mip_form[''7''][''option_val''][] =  ''jpg'';\r\n$mip_form[''7''][''option_val''][] =  ''jpeg'';\r\n$mip_form[''7''][''option_val''][] =  ''png'';\r\n$mip_form[''7''][''flag''] = ''multiple'';\r\n$mip_form[''7''][''size''] = ''5'';\r\n\r\n//Dateilinks Ordner\r\n$mip_form[''8''][''desc''] = ''Ordner: '';\r\n$mip_form[''8''][''cat''] = ''app_directory'';\r\n$mip_form[''8''][''output_cat''] = ''option'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''flag''] = ''multiple'';\r\n$mip_form[''8''][''size''] = ''5'';\r\n\r\n//Mit Unterverzeichnissen\r\n$mip_form[''9''][''cat''] = ''option'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = ''Automatischa Anzeige von Unterverzeichnissen'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''false'';\r\n$mip_form[''9''][''option_desc''][''0''] = ''Nein'';\r\n$mip_form[''9''][''option_val''][''0''] = ''false'';\r\n$mip_form[''9''][''option_desc''][''1''] = ''Ja'';\r\n$mip_form[''9''][''option_val''][''1''] = ''true'';\r\n$mip_form[''9''][''tab''] = ''0'';\r\n\r\n//Dateilinks -typen\r\n$mip_form[''10''][''desc''] = ''Dateitypen: '';\r\n$mip_form[''10''][''cat''] = ''app_filetype'';\r\n$mip_form[''10''][''output_cat''] = ''option'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''flag''] = ''multiple'';\r\n$mip_form[''10''][''size''] = ''5'';\r\n\r\n//Bearbeitungsrecht Gruppen\r\n$mip_form[''11''][''desc''] = ''Bearbeitungsrecht (Gruppen): '';\r\n$mip_form[''11''][''cat''] = ''app_group'';\r\n$mip_form[''11''][''output_cat''] = ''option'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''flag''] = ''multiple'';\r\n$mip_form[''11''][''size''] = ''5'';\r\n$mip_form[''11''][''cms_val_default''] = ''true'';\r\n\r\n// Template\r\n$mip_form[''12''][''desc''] = ''Template'';\r\n$mip_form[''12''][''cat''] = ''txtarea'';\r\n$mip_form[''12''][''rows''] = ''6'';\r\n$mip_form[''12''][''type''] = ''long'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''{wysiwyg2}'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\nmip_formsp($mip_form[''0'']);//formularname\r\nmip_formsp($mip_form[''1'']);//style\r\nmip_formsp($mip_form[''2'']);//erweitertes menü\r\nmip_formsp($mip_form[''3'']);//features\r\nmip_formsp($mip_form[''4'']);//auswählbare styles\r\nmip_formsp($mip_form[''5'']);//gfx folders\r\nmip_formsp($mip_form[''6'']);//gfx subfolder\r\nmip_formsp($mip_form[''7'']);//grafiktypen\r\nmip_formsp($mip_form[''8'']);//ordener dateilinks\r\nmip_formsp($mip_form[''9'']);//subfolder\r\nmip_formsp($mip_form[''10'']);//dateitypen\r\nmip_formsp($mip_form[''11'']);//gruppenrechte\r\nmip_formsp($mip_form[''12'']);//template\r\necho '' <small><b>Legende:</b><br> \r\nWYSIWYG- Editor: {wysiwyg2}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode!"; ?&gt;<br>\r\n&lt;DEDIPHP&gt;echo "Ich bin ungecachter phpcode!";&lt;/DEDIPHP&gt;</small>'';\r\n\r\n}\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n$myTplContent[''wysiwyg2''] = <dedi:mod \r\ntype="wysiwyg2" \r\nid="1" \r\ntitle="MOD_VALUE[0]" \r\nstyleclass="MOD_VALUE[1]" \r\nmenuoptions="MOD_VALUE[2]" \r\nfeatures="MOD_VALUE[3]" \r\nselectablestyles = "MOD_VALUE[4]"\r\nimagefolders = "MOD_VALUE[5]"\r\nimagesubfolders ="MOD_VALUE[6]"\r\nimagefiletypes = "MOD_VALUE[7]" \r\nfilefolders = "MOD_VALUE[8]"\r\nfilesubfolders ="MOD_VALUE[9]"\r\nfilefiletypes = "MOD_VALUE[10]" \r\neditable = "MOD_VALUE[11]"\r\naddslashes="true" />;\r\n\r\n$myTplVars[''wysiwyg2''] = ''{wysiwyg2}'';\r\n$myTpl = "MOD_VALUE[12]";\r\n    \r\n$myTpl = str_replace($myTplVars, $myTplContent, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myLink);\r\n?>', '', 0, 1, 1, 1079916519, 1132942813, 'mod:d095bc10015c1aaa14189fcf842c8266:518e37da', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (6, 'Bild', '1.0', 'Content', 'Erzeugt ein Bild', '<?PHP\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Bild'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style Beschreibung\r\n$mip_form[''4''][''desc''] = ''Stylesheet für Bildbeschreibung '';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n\r\n//Dateitypen\r\n$mip_form[''5''][''desc''] = ''Dateitypen'';\r\n$mip_form[''5''][''cat''] = ''option'';\r\n$mip_form[''5''][''flag''] = ''multiple'';\r\n$mip_form[''5''][''size''] = ''5'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''true'';\r\n$mip_form[''5''][''option_desc''][''0''] = ''Alle verfügbaren Webgrafiken'';\r\n$mip_form[''5''][''option_val''][''0''] = ''true'';\r\n$mip_form[''5''][''option_desc''][''1''] = ''gif'';\r\n$mip_form[''5''][''option_val''][''1''] = ''*.gif'';\r\n$mip_form[''5''][''option_desc''][''2''] = ''jpg'';\r\n$mip_form[''5''][''option_val''][''2''] = ''*.jpg'';\r\n$mip_form[''5''][''option_desc''][''3''] = ''jpeg'';\r\n$mip_form[''5''][''option_val''][''3''] = ''*.jpeg'';\r\n$mip_form[''5''][''option_desc''][''4''] = ''png'';\r\n$mip_form[''5''][''option_val''][''4''] = ''*.png'';\r\n\r\n//Ordner\r\n$mip_form[''6''][''desc''] = ''Ordner: '';\r\n$mip_form[''6''][''cat''] = ''app_directory'';\r\n$mip_form[''6''][''output_cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''flag''] = ''multiple'';\r\n$mip_form[''6''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''7''][''cat''] = ''option'';\r\n$mip_form[''7''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''false'';\r\n$mip_form[''7''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''7''][''option_val''][''0''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''7''][''option_val''][''1''] = ''false'';\r\n$mip_form[''7''][''tab''] = ''0'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''8''][''cat''] = ''radio'';\r\n$mip_form[''8''][''type''] = '''';\r\n$mip_form[''8''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''true'';\r\n$mip_form[''8''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''8''][''option_val''][''0''] = ''true'';\r\n$mip_form[''8''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''8''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''8''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''8''][''option_val''][''2''] = ''false'';\r\n$mip_form[''8''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''2''][''desc''] = ''Template'';\r\n$mip_form[''2''][''cat''] = ''txtarea'';\r\n$mip_form[''2''][''rows''] = ''6'';\r\n$mip_form[''2''][''type''] = ''long'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''{image}'';\r\n\r\nmip_formsp($mip_form[''0'']);//Formularfeldname\r\nmip_formsp($mip_form[''4'']);//Style Beschreibung\r\nmip_formsp($mip_form[''5'']);//Dateitypen\r\nmip_formsp($mip_form[''6'']);//Ordner\r\nmip_formsp($mip_form[''7'']);//Unterordner anzeigen\r\nmip_formsp($mip_form[''8'']);//Menü\r\nmip_formsp($mip_form[''2'']);//Template\r\necho '' <small><b>Legende:</b><br> \r\nBild: {image}, Bildbeschreibung {desc}, Stylesheet für Bildbeschreibung: {style}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br>\r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n$myImage[''style''] = "MOD_VALUE[4]";\r\n$myImage[''desc''] = <dedi:mod type="image" id="1" mode="desc" addslashes="true" />;\r\n//Stylesheet für Text hinzufügen\r\n$myImage[''desc''] = (  "MOD_VALUE[4]" == "") ? $myImage[''desc''] : ''<span class="MOD_VALUE[4]">''. $myImage[''desc''] .''</span>'';\r\n//Gibt es mehrere Tags, bei denen type und id gleich sind, ist es wichtig, dass das letzt "gleiche" Element alle erweiterten\r\n//Konfigurationsvariablen enthält (z.B. folders, subfolders) . Den nur die Variablen des "letzten" Tags können im Formular\r\n//weiterverarbeitet werden. Andernfalls bleibt z.B. die Auswahl von bestimmten Dateitypen ohne Wirkung.\r\n$myImage[''image''] = <dedi:mod type="image" id="1" title="MOD_VALUE[0]"  filetypes = "MOD_VALUE[5]" folders = "MOD_VALUE[6]" subfolders ="MOD_VALUE[7]" menuoptions ="MOD_VALUE[8]" addslashes="true" />;\r\n\r\n$myTplVars[''style''] = ''{style}'';\r\n$myTplVars[''desc''] = ''{desc}'';\r\n$myTplVars[''image''] = ''{image}'';\r\n\r\n$myTpl = "MOD_VALUE[2]";\r\n\r\n$myTpl = str_replace($myTplVars, $myImage, $myTpl);\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myImage);\r\n?>', '', 0, 1, 1, 1066927900, 1132942833, 'mod:bb21a2f11b3957f442f721fd6a9bcbd7:3f84f6bf', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (7, 'Link', '1.2', 'Content', 'Erzeugt einen Textlink', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Link'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''2''][''cat''] = ''radio'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''2''][''option_val''][''0''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''2''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''2''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''2''][''option_val''][''2''] = ''false'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''3''][''desc''] = ''Template'';\r\n$mip_form[''3''][''cat''] = ''txtarea'';\r\n$mip_form[''3''][''rows''] = ''6'';\r\n$mip_form[''3''][''type''] = ''long'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''{textlink}'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\necho '' <small><b>Legende:</b><br> \r\nKompletter Textlink: {textlink}, Url: {url}, Beschreibung/Linkname: {desc}, Linkziel: {target}, Stylesheet: {style}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br>\r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\n}\r\nunset($mip_form);\r\n?>', '<?PHP\r\n$myLink[''url''] = <dedi:mod type="link" id="1" mode="url" addslashes="true" />;\r\n$myLink[''desc''] = <dedi:mod type="link" id="1" mode="desc"  addslashes="true" />;\r\n$myLink[''target''] = <dedi:mod type="link" id="1" mode="target" addslashes="true" />;\r\n$myLink[''style''] = "MOD_VALUE[1]";\r\n$myLink[''textlink''] = <dedi:mod type="link" id="1" mode="textlink" styleclass="MOD_VALUE[1]" title="MOD_VALUE[0]" menuoptions="MOD_VALUE[2]" addslashes="true" />;\r\n\r\n$myTplVars[''url''] = ''{url}'';\r\n$myTplVars[''desc''] = ''{desc}'';\r\n$myTplVars[''target''] = ''{target}'';\r\n$myTplVars[''style''] = ''{style}'';\r\n$myTplVars[''textlink''] = ''{textlink}'';\r\n$myTpl = "MOD_VALUE[3]";\r\n    \r\n$myTpl = str_replace($myTplVars, $myLink, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myLink);\r\n?>\r\n', '', 0, 1, 1, 1066927900, 1132942851, 'mod:2a304a1348456ccd2234cd71a81bd338:6489b5d7', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (8, 'Dateilink', '1.1', 'Content', 'Es kann auf eine beliebige Datei gelinkt werden, die vom Dateimanger verwaltet wird', '<?PHP\r\n//configmode\r\n$mip_form[''99''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''99''][''cat''] = ''option'';\r\n$mip_form[''99''][''size''] = ''1'';\r\n$mip_form[''99''][''option_desc''][] = ''Normal'';\r\n$mip_form[''99''][''option_val''][] =  '''';\r\n$mip_form[''99''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''99''][''option_val''][] =  ''advanced'';\r\n$mip_form[''99''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''99''][''option_val''][] =  ''hidden'';\r\n$mip_form[''99''][''cms_var''] = ''MOD_VAR[99]'';\r\n$mip_form[''99''][''cms_val''] = $dedi_mod[''value''][''99''];\r\n$mip_form[''99''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''99'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2,4,5,6,7,8,9,10,11,12);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''99''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''99''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''99''] == '''' || $dedi_mod[''value''][''99''] == ''advanced''){\r\n\r\n\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Dateilink'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Dateitypen\r\n$mip_form[''4''][''desc''] = ''Dateitypen: '';\r\n$mip_form[''4''][''cat''] = ''app_filetype'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''multiple'';\r\n$mip_form[''4''][''size''] = ''5'';\r\n\r\n//Ordner\r\n$mip_form[''5''][''desc''] = ''Ordner: '';\r\n$mip_form[''5''][''cat''] = ''app_directory'';\r\n$mip_form[''5''][''output_cat''] = ''option'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''flag''] = ''multiple'';\r\n$mip_form[''5''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''7''][''cat''] = ''option'';\r\n$mip_form[''7''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''false'';\r\n$mip_form[''7''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''7''][''option_val''][''0''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''7''][''option_val''][''1''] = ''false'';\r\n$mip_form[''7''][''tab''] = ''0'';\r\n\r\n//target verstecken\r\n$mip_form[''6''][''cat''] = ''option'';\r\n$mip_form[''6''][''type''] = '''';\r\n$mip_form[''6''][''desc''] = ''Im Bearbeitungsmodus Zielfensterfeld ausblenden'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = ''false'';\r\n$mip_form[''6''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''6''][''option_val''][''0''] = ''true'';\r\n$mip_form[''6''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''6''][''option_val''][''1''] = ''false'';\r\n$mip_form[''6''][''tab''] = ''0'';\r\n\r\n//Tausender-Trennzeichen\r\n$mip_form[''8''][''cat''] = ''txt'';\r\n$mip_form[''8''][''type''] = '''';\r\n$mip_form[''8''][''desc''] = ''Tausender-Trennzeichen f&uuml;r Dateigr&ouml;&szlig;en'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''.'';\r\n$mip_form[''8''][''tab''] = ''0'';\r\n\r\n//Kommastellen-Trennzeichen\r\n$mip_form[''9''][''cat''] = ''txt'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = ''Kommastellen-Trennzeichen f&uuml;r Dateigr&ouml;&szlig;en'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = '','';\r\n$mip_form[''9''][''tab''] = ''0'';\r\n\r\n//Bezeichnung für Byte\r\n$mip_form[''10''][''cat''] = ''txt'';\r\n$mip_form[''10''][''type''] = '''';\r\n$mip_form[''10''][''desc''] = ''Bezeichnung f&uuml;r Byte bei Dateigr&ouml;&szlig;en'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''Byte'';\r\n$mip_form[''10''][''tab''] = ''0'';\r\n\r\n//Bezeichnung für kByte\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Bezeichnung f&uuml;r kByte bei Dateigr&ouml;&szlig;en'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''kByte'';\r\n$mip_form[''11''][''tab''] = ''0'';\r\n\r\n//Bezeichnung für kByte\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''type''] = '''';\r\n$mip_form[''12''][''desc''] = ''Bezeichnung f&uuml;r mByte bei Dateigr&ouml;&szlig;en'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''mByte'';\r\n$mip_form[''12''][''tab''] = ''0'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''2''][''cat''] = ''radio'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Bearbeitungsmen&uuml;<br />\r\n<small>Ein <b>normales Men&uuml;</b> besteht aus der Schalfl&auml;che "bearbeiten", das <b>erweiterte Men&uuml;</b> \r\nbietet dar&uuml;berhinaus die Schaltfl&auml;chen "neu, l&oouml;schen, nach oben, nach unten". Wird <b>kein Men&uuml;</b> gew&auml;hlt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''0''] = ''Normales Men&uuml;'';\r\n$mip_form[''2''][''option_val''][''0''] = ''true'';\r\n$mip_form[''2''][''option_desc''][''1''] = ''Erweitertes Men&uuml;'';\r\n$mip_form[''2''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''2''][''option_desc''][''2''] = ''Kein Men&uuml;'';\r\n$mip_form[''2''][''option_val''][''2''] = ''false'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''3''][''desc''] = ''Template'';\r\n$mip_form[''3''][''cat''] = ''txtarea'';\r\n$mip_form[''3''][''rows''] = ''6'';\r\n$mip_form[''3''][''type''] = ''long'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''<p><a href="{url}">{name}</a> {size}{editbutton}\\n<br /><span class="{style}">&nbsp; &nbsp; {desc?}</span>\\n</p>'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''99''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\nmip_formsp($mip_form[''0'']);//Formularfeldname\r\nmip_formsp($mip_form[''1'']);//Style\r\nmip_formsp($mip_form[''8'']);//Tausender-Trennzeichen\r\nmip_formsp($mip_form[''9'']);//Kommastellen-Trennzeichen\r\nmip_formsp($mip_form[''10'']);//Byte\r\nmip_formsp($mip_form[''11'']);//kByte\r\nmip_formsp($mip_form[''12'']);//mByte\r\nmip_formsp($mip_form[''4'']);//Dateitypen\r\nmip_formsp($mip_form[''5'']);//Ordner\r\nmip_formsp($mip_form[''7'']);//Unterordner anzeigen\r\nmip_formsp($mip_form[''6'']);//Target verstecken\r\nmip_formsp($mip_form[''2'']);//Menü\r\nmip_formsp($mip_form[''3'']);//Template\r\necho '' <small><b>Legende:</b><br /> \r\nKompletter Dateilink: {filelink}, URL: {url}, Dateipfad: {path}, Zielfenster: {target}, <br />\r\nid_upl der Datei aus Tabelle dedi_upl {id}, Stylesheet: {style}, Beschreibung: {desc}, <br />\r\nBedingte Beschreibung: {desc?} (Der umliegende Text wird nur ausgegeben, wenn die Bechreibung nicht leer ist), <br />\r\nDateiname: {name}, Dateiname oder falls vorhanden Beschreibung: {nameordesc}, <br />\r\nDateidatum: {date}, Dateizeit: {time}, Dateigr&ouml;&szlig;e: {size}, Bearbeiten-Symbol: {editbutton}<br />\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine <br />\r\n&Auml;nderung auf der Seite gegeben hat"; ?&gt;<br />\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgef&uuml;hrt";&lt;/DEDIPHP&gt;<br />\r\n</small>'';\r\n}\r\nunset($mip_form);\r\n\r\n?>\r\n', '<?PHP\r\n$myLink[''url''] = <dedi:mod type="file" id="1" mode="url" addslashes="true" />;\r\n$myLink[''path''] = <dedi:mod type="file" id="1" mode="path" addslashes="true" />;\r\n$myLink[''desc''] = <dedi:mod type="file" id="1" mode="desc"  addslashes="true" />;\r\nif ( !empty($myLink[''desc'']) ) $myLink[''desc''] = ''$1''.$myLink[''desc''].''$2'';\r\n$myLink[''target''] = <dedi:mod type="file" id="1" mode="target" addslashes="true" />;\r\n$myLink[''id''] = <dedi:mod type="file" id="1" mode="id" addslashes="true" />;\r\n$myLink[''style''] = "MOD_VALUE[1]";\r\n//Gibt es mehrere Tags, bei denen type und id gleich sind, ist es wichtig, dass das letzt "gleiche" Element alle erweiterten\r\n//Konfigurationsvariablen enthält (z.B. folders, subfolders) . Den nur die Variablen des "letzten" Tags können im Formular\r\n//weiterverarbeitet werden. Andernfalls bleibt z.B. die Auswahl von bestimmten Dateitypen ohne Wirkung.\r\n$myLink[''filelink''] = <dedi:mod type="file" id="1" title="MOD_VALUE[0]" styleclass="MOD_VALUE[1]" hidetarget ="MOD_VALUE[6]" folders = "MOD_VALUE[5]" subfolders ="MOD_VALUE[7]" filetypes = "MOD_VALUE[4]" menuoptions ="MOD_VALUE[2]" addslashes="true" />;\r\n$myLink[''name''] = file_exists($myLink[''path'']) ? basename($myLink[''path'']) : "";\r\n$myLink[''editbutton''] = <dedi:mod type="typegroup" elements="file[1]" menuoptions="advanced" title="MOD_VALUE[0]" addslashes="true" />;\r\n$myLink[''date''] = file_exists($myLink[''path'']) ? date($cfg_dedi[''FormatDate''],filemtime($myLink[''path''])) : "";\r\n$myLink[''time''] = file_exists($myLink[''path'']) ? date($cfg_dedi[''FormatTime''],filemtime($myLink[''path''])) : "";\r\n$myLink[''size''] = file_exists($myLink[''path'']) ? filesize($myLink[''path'']) : "";\r\n$myLink[''nameordesc''] = empty($myLink[''desc'']) ? $myLink[''name''] : $myLink[''desc''];\r\n\r\nif ($myLink[''size''] > 1048576) {\r\n   $myLink[''size''] = number_format($myLink[''size'']/1048576, 2, ''MOD_VALUE[9]'', ''MOD_VALUE[8]'');\r\n   $myLink[''size''] .= '' ''.''MOD_VALUE[12]'';\r\n} else {\r\n   if ($myLink[''size''] > 1024) {\r\n   $myLink[''size''] = number_format($myLink[''size'']/1024, 2, ''MOD_VALUE[9]'', ''MOD_VALUE[8]'');\r\n   $myLink[''size''] .= '' ''.''MOD_VALUE[11]'';\r\n   } else {\r\n      $myLink[''size''] = number_format($myLink[''size''], 2, ''MOD_VALUE[9]'', ''MOD_VALUE[8]'');\r\n      $myLink[''size''] .= '' ''.''MOD_VALUE[10]'';\r\n   }  \r\n}\r\n\r\n$myTplVars[''url''] = ''/\\{url\\}/'';\r\n$myTplVars[''path''] = ''/\\{path\\}/'';\r\n$myTplVars[''desc''] = ''/\\{desc\\}|(.*)\\{desc\\?\\}(.*)/'';\r\n$myTplVars[''target''] = ''/\\{target\\}/'';\r\n$myTplVars[''id''] = ''/\\{id\\}/'';\r\n$myTplVars[''style''] = ''/\\{style\\}/'';\r\n$myTplVars[''filelink''] = ''/\\{filelink\\}/'';\r\n$myTplVars[''name''] = ''/\\{name\\}/'';\r\n$myTplVars[''editbutton''] = ''/\\{editbutton\\}/'';\r\n$myTplVars[''date''] = ''/\\{date\\}/'';\r\n$myTplVars[''time''] = ''/\\{time\\}/'';\r\n$myTplVars[''size''] = ''/\\{size\\}/'';\r\n$myTplVars[''nameordesc''] = ''/\\{nameordesc\\}/'';\r\n\r\n$myTpl = "MOD_VALUE[3]";\r\n    \r\n$myTpl = preg_replace($myTplVars, $myLink, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myLink, $myFilename);\r\n?>', '', 0, 1, 1, 1066927900, 1135555775, 'mod:dfbc83af929dc44d0bb85fdef4ef3010:8d2a75bd', '', '', '', 0, '0', 'Dateilink', '1');
INSERT INTO `dedi_mod` VALUES (9, 'Linkliste', '1.1', 'Contentliste', 'Für eine nicht limitierte Anzahl von Links und Linkbeschreibungen', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,2,4);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n//Formularname Link\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname Link'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Bitte geben Sie einen Link ein'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Style Link\r\n$mip_form[''1''][''desc''] = ''Stylesheet Link'';\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n//Formularname Linkbeschreibung\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Formularfeldname Linkbeschreibung'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''Linkbeschreibung'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n//Style Linkbeschreibung\r\n$mip_form[''3''][''desc''] = ''Stylesheet Linkbeschreibung'';\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''flag''] = ''class_only'';\r\n\r\n//Name des Layermenus\r\n$mip_form[''4''][''cat''] = ''txt'';\r\n$mip_form[''4''][''type''] = '''';\r\n$mip_form[''4''][''desc''] = ''Menüname'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''cms_val_default''] = ''Linklisteneintrag'';\r\n$mip_form[''4''][''tab''] = ''0'';\r\n\r\n\r\n// Template\r\n$mip_form[''5''][''desc''] = ''Template<small>Mögliche Templatevariablen: {link}, {desc}, {editbutton}</small>'';\r\n$mip_form[''5''][''cat''] = ''txtarea'';\r\n$mip_form[''5''][''rows''] = ''6'';\r\n$mip_form[''5''][''type''] = ''long'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''<table width="100%" align="center" border="0" cellspacing="1" cellpadding="2" bgcolor="#BBC2CE" >\r\n  <tr height="20">\r\n    <td bgcolor="#E5E8EB" valign="middle" >\r\n       {editbutton}{link}\r\n     </td>\r\n  </tr>\r\n  <tr height="40" valign="top">\r\n    <td bgcolor="#FFFFFF" >\r\n      {desc}\r\n    </td>\r\n  </tr>\r\n</table>\r\n<br>'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''5'']);\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP:CACHE>\r\n$myList[''link''] = <dedi:mod type="link" id="1" menuoptions="false" title="MOD_VALUE[0]" styleclass="MOD_VALUE[1]" addslashes="true" />;\r\n$myList[''desc''] = <dedi:mod type="textarea" id="1" menuoptions="false" title="MOD_VALUE[2]" styleclass="MOD_VALUE[3]" addslashes="true" />;\r\n$myList[''editbutton''] = <dedi:mod type="typegroup" elements="link[1],textarea[1]" menuoptions="advanced" title="MOD_VALUE[4]" addslashes="true" />;\r\n\r\n$myTplVars[''link''] = ''{link}'';\r\n$myTplVars[''desc''] = ''{desc}'';\r\n$myTplVars[''editbutton''] = ''{editbutton}'';\r\n$myTpl = "MOD_VALUE[5]";\r\n    \r\n$myTpl = str_replace($myTplVars, $myList, $myTpl);\r\n\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myList);\r\n</DEDIPHP:CACHE>', '', 0, 1, 1, 1066927900, 1132942898, 'mod:99663ed64b93be0047d7fedfdc8f0efe:54b1bbd5', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (10, 'Tabelle', '0.96', 'Contentliste', 'Ideal zum erstellen von Terminplaner, Linkliste, Downloadliste etc. Layout über CSS', '<?php\r\n// Anzahl der Spalten\r\nif ($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] <= ''0'') $dedi_mod[''value''][''0''] = ''3'';\r\nif ($dedi_mod[''value''][''9''] != ''0'') $dedi_mod[''value''][''0''] = round($dedi_mod[''value''][''0'']+$dedi_mod[''value''][''9'']);\r\n$mip_form[''0''][''cat''] = ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n\r\n// Tabellenlayout\r\n$mip_form[''1''][''desc''] = ''Tabellenlayout'';\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Schriftart der Spaltennamen\r\n$mip_form[''2''][''desc''] = ''Layout Kopfzeile'';\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\n\r\n// Datenzeilen alternierend\r\n$mip_form[''3''][''desc''] = ''Datenzeilen alternierend: '';\r\n$mip_form[''3''][''cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''option_desc''][''0''] = ''alle Zeilen gleiches Layout'';\r\n$mip_form[''3''][''option_desc''][''1''] = ''jede 2. Zeile anderes Layout'';\r\n$mip_form[''3''][''option_val''][''0''] = ''simple_mode'';\r\n$mip_form[''3''][''option_val''][''1''] = ''advanced_mode'';\r\n$mip_form[''3''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''3'']);\r\n\r\nif ($dedi_mod[''value''][''3''] == ''advanced_mode'') {\r\n	// Layout Zeile 1\r\n	$mip_form[''4''][''desc''] = ''Layout Datenzeile 1'';\r\n	$mip_form[''4''][''cat''] = ''app_css'';\r\n	$mip_form[''4''][''output_cat''] = ''option'';\r\n	$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n	$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n	$mip_form[''4''][''flag''] = ''class_only'';\r\n	// Layout Zeile 2\r\n	$mip_form[''5''][''desc''] = ''Layout Datenzeile 2'';\r\n	$mip_form[''5''][''cat''] = ''app_css'';\r\n	$mip_form[''5''][''output_cat''] = ''option'';\r\n	$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n	$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n	$mip_form[''5''][''flag''] = ''class_only'';\r\n	mip_formsp($mip_form[''4'']);\r\n	mip_formsp($mip_form[''5'']);\r\n}\r\nelse	{\r\n	// Layout Zeile\r\n	$mip_form[''4''][''desc''] = ''Layout Datenzeile'';\r\n	$mip_form[''4''][''cat''] = ''app_css'';\r\n	$mip_form[''4''][''output_cat''] = ''option'';\r\n	$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n	$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n	$mip_form[''4''][''flag''] = ''class_only'';\r\n	mip_formsp($mip_form[''4'']);\r\n}\r\n\r\n?>\r\n<br>\r\n<table cellspacing="0" cellpadding="0" border="0" width="640">\r\n  <tr>\r\n    <td>&nbsp;</td>\r\n    <td>&nbsp;Spaltenname&nbsp;</td>\r\n    <td>&nbsp;Element&nbsp;</td>\r\n    <td>&nbsp;Layout Zelle&nbsp;</td>\r\n    <td>&nbsp;Breite&nbsp;</td>\r\n  </tr>\r\n<?php\r\n// Konfiguration der einzelnen Spalten\r\nfor ($tmp_mod[''i''] = 1; $tmp_mod[''i''] <= $dedi_mod[''value''][''0'']; $tmp_mod[''i'']++) {\r\n	$y = round($tmp_mod[''i'']*10);\r\n	$tmp_mod[''row''][''1''] = $y+1;\r\n	$tmp_mod[''row''][''3''] = $y+3;\r\n	$tmp_mod[''row''][''4''] = $y+4;\r\n	$mip_form[$tmp_mod[''row''][''3'']][''cat''] = ''app_css'';\r\n	$mip_form[$tmp_mod[''row''][''3'']][''output_cat''] = ''option'';\r\n	$mip_form[$tmp_mod[''row''][''3'']][''type''] = ''input'';\r\n	$mip_form[$tmp_mod[''row''][''3'']][''cms_var''] = ''MOD_VAR[''.$tmp_mod[''row''][''3''].'']'';\r\n	$mip_form[$tmp_mod[''row''][''3'']][''cms_val''] = $dedi_mod[''value''][$tmp_mod[''row''][''3'']];\r\n	$mip_form[$tmp_mod[''row''][''3'']][''flag''] = ''class_only'';\r\n?>\r\n  <tr>\r\n    <td>&nbsp;<?php echo $tmp_mod[''i'']; ?>. Spalte&nbsp;</td>\r\n    <td>&nbsp;<input name="MOD_VAR[<?php echo $y; ?>]" type="text" value="<?php echo $dedi_mod[''value''][$y];?>" size="20">&nbsp;</td>\r\n    <td>&nbsp;<select name="MOD_VAR[<?php echo $tmp_mod[''row''][''1'']; ?>]" size="1">\r\n<?php\r\nprintf ("      <option value=\\"\\"%s>leer</option>\\n", ($dedi_mod[''value''][$tmp_mod[''row''][''1'']] == '''') ? '' selected'':'''');\r\nprintf ("      <option value=\\"text\\"%s>Text</option>\\n", ($dedi_mod[''value''][$tmp_mod[''row''][''1'']] == ''text'') ? '' selected'':'''');\r\nprintf ("      <option value=\\"textarea\\"%s>Textarea</option>\\n", ($dedi_mod[''value''][$tmp_mod[''row''][''1'']] == ''textarea'') ? '' selected'':'''');\r\nprintf ("      <option value=\\"wysiwyg\\"%s>WYSIWYG</option>\\n", ($dedi_mod[''value''][$tmp_mod[''row''][''1'']] == ''wysiwyg'') ? '' selected'':'''');\r\nprintf ("      <option value=\\"image\\"%s>Bild</option>\\n", ($dedi_mod[''value''][$tmp_mod[''row''][''1'']] == ''image'') ? '' selected'':'''');\r\n?>\r\n    </select>&nbsp;</td>\r\n    <td>&nbsp;<?php mip_formsp($mip_form[$tmp_mod[''row''][''3'']]); ?>&nbsp;</td>\r\n    <td>&nbsp;<input name="MOD_VAR[<?php echo $tmp_mod[''row''][''4'']; ?>]" type="text" value="<?php echo $dedi_mod[''value''][$tmp_mod[''row''][''4'']];?>" size="5" maxlength="5">&nbsp;</td>\r\n  </tr>\r\n<?php\r\n}\r\n?>\r\n  <tr>\r\n    <td colspan="6" align="right"><select name="MOD_VAR[9]" size="1" onchange="document.editform.action.value=''change'';document.editform.submit();">\r\n      <option value="0" selected>Spalte erstellen - löschen</option>\r\n      <?php if ($dedi_mod[''value''][''0''] >= ''4'') echo "<option value=\\"-3\\">-3</option>"; ?>\r\n      <?php if ($dedi_mod[''value''][''0''] >= ''3'') echo "<option value=\\"-2\\">-2</option>"; ?>\r\n      <?php if ($dedi_mod[''value''][''0''] >= ''2'') echo "<option value=\\"-1\\">-1</option>"; ?>\r\n      <option value="1">+1</option>\r\n      <option value="2">+2</option>\r\n      <option value="3">+3</option>\r\n    </select></td>\r\n  </tr>\r\n</table>\r\n<?php unset($mip_form, $tmp_mod, $y); ?>', '<?php\r\nif ($dedi_side[''edit'']) {\r\n	$dedi_side[''edit_all''] = ''true'';\r\n	unset($dedi_side[''edit'']);\r\n}\r\n\r\nif ($dedi_mod[''modul''][''id''] == ''1'') {\r\n	printf ("<table%s>\\n", ($dedi_mod[''value''][''1''] != '''') ? '' class="''.$dedi_mod[''value''][''1''].''"'':'''');\r\n	echo "<colgroup>\\n";\r\n	for ($i=1; $i<=$dedi_mod[''value''][''0'']; $i++) {\r\n		printf ("<col%s></col>\\n", ($dedi_mod[''value''][$i*10+4] != '''') ? '' style="width:''.$dedi_mod[''value''][$i*10+4].'';"'':'''');\r\n	}\r\n	if ($dedi_side[''edit_all''] == ''true'') echo "<col></col>\\n";\r\n	echo "</colgroup>\\n";\r\n	printf ("<tr%s>\\n", ($dedi_mod[''value''][''2''] != '''') ? '' class="''.$dedi_mod[''value''][''2''].''"'':'''');\r\n	for ($i=1; $i<=$dedi_mod[''value''][''0'']; $i++) {\r\n		$head = $dedi_mod[''value''][$i*10];\r\n		if ($dedi_mod[''value''][$i*10+1] != '''') echo "<th>$head</th>\\n";\r\n		if ($i == $dedi_mod[''value''][''0''] && $dedi_side[''edit_all''] == ''true'') echo "    <th>&nbsp;</th>\\n";\r\n	}\r\n	echo "</tr>\\n";\r\n}\r\nif (is_int($dedi_mod[''modul''][''id'']/2) && $dedi_mod[''value''][''3''] == ''advanced_mode'') printf ("<tr%s>\\n", ($dedi_mod[''value''][''5''] != '''') ? '' class="''.$dedi_mod[''value''][''5''].''"'':'''');\r\nelse printf ("<tr%s>\\n", ($dedi_mod[''value''][''4''] != '''') ? '' class="''.$dedi_mod[''value''][''4''].''"'':'''');\r\nfor ($i=1; $i<=$dedi_mod[''value''][''0'']; $i++) {\r\n	// Elemente erstellen\r\n	if ($dedi_mod[''value''][$i*10+1] == ''text'') printf ("    <td%s>".<dedi:mod type="text" id="$i" addslashes="true">."</td>\\n", ($dedi_mod[''value''][$i*10+3] != '''') ? '' class="''.$dedi_mod[''value''][$i*10+3].''"'':'''');\r\n	if ($dedi_mod[''value''][$i*10+1] == ''textarea'') printf ("    <td%s>".<dedi:mod type="textarea" id="$i" addslashes="true">."</td>\\n", ($dedi_mod[''value''][$i*10+3] != '''') ? '' class="''.$dedi_mod[''value''][$i*10+3].''"'':'''');\r\n	if ($dedi_mod[''value''][$i*10+1] == ''wysiwyg'') printf ("    <td%s>".<dedi:mod type="wysiwyg" id="$i" addslashes="true">."</td>\\n", ($dedi_mod[''value''][$i*10+3] != '''') ? '' class="''.$dedi_mod[''value''][$i*10+3].''"'':'''');\r\n	if ($dedi_mod[''value''][$i*10+1] == ''image'') printf ("    <td%s>".<dedi:mod type="image" id="$i" addslashes="true">."</td>\\n", ($dedi_mod[''value''][$i*10+3] != '''') ? '' class="''.$dedi_mod[''value''][$i*10+3].''"'':'''');\r\n\r\n	// Bearbeitungsbutton\r\n	if ($i == $dedi_mod[''value''][''0''] && $dedi_side[''edit_all''] == ''true'') echo "    <td>".<dedi:mod type="edit_container" title="Tabellenzeile" addslashes="true" menuoptions="advanced">."</td>\\n";\r\n}\r\necho "  </tr>\\n";\r\nif ($dedi_mod[''modul''][''lastentry''] == ''true'') echo "</table>\\n";\r\nunset($i,$head);\r\nif ($dedi_side[''edit_all'']) {\r\n	$dedi_side[''edit''] = ''true'';\r\n	unset($dedi_side[''edit_all'']);\r\n}\r\n?>', '', 0, 1, 1, 1081346677, 1132942917, 'mod:8f75c8b271c5fb282bba87506393e948:eecd6571', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (12, 'ContentFlex', '0.9.2', 'Contentliste', 'Dieses Modul bietet die Möglichkeit beim erstellen der Seite flexibel Elemente, oder Elementgruppen wie z.b. "Text links - Bild rechts" einzufügen. ', '<?php\r\n// Version 0.9.1\r\n// (c) 2005 by Reto Haldemann v/o Mistral\r\n\r\n//\r\n//  zur Fehlersuche\r\n//if(isset($test))\r\n//{\r\n//    $mod[''test''] = "true";\r\n//}\r\n//configmode\r\n$mip_form[''0''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''size''] = ''1'';\r\n$mip_form[''0''][''option_desc''][] = ''Normal'';\r\n$mip_form[''0''][''option_val''][] =  '''';\r\n$mip_form[''0''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''0''][''option_val''][] =  ''advanced'';\r\n$mip_form[''0''][''option_desc''][] = ''Alles'';\r\n$mip_form[''0''][''option_val''][] =  ''all'';\r\n$mip_form[''0''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''0''][''option_val''][] =  ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''0'']);//configmode\r\n$mip_form[''hide_in_advanced_mode''] = array(5,7,8,10,11,12,13,15,16,17,18,19,6,3,4,28,27,80,82);\r\n$mip_form[''hide_in_standard_mode''] = array_merge( array(14,81,20,21,22,23,24,25,26,30,31,32,33,34,35,36,40,41,42,43,44,45,46,47,48,49,50,51) , $mip_form[''hide_in_advanced_mode''] );\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''0''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''0''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple, advanced and all config (not hidden config)\r\nelse if($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] == ''advanced'' || $dedi_mod[''value''][''0''] == ''all''){\r\n\r\n\r\n// Schriftart 1\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Schriftart 2\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font2}";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n// ***************************** Konfiguration *********************\r\n\r\n//Edit Template\r\n$mip_form[''13''][''desc''] = ''Templat für die Bearbeitung <small>{elements},{title},{edit},{insert}</small>'';\r\n$mip_form[''13''][''cat''] = ''txtarea'';\r\n$mip_form[''13''][''rows''] = ''6'';\r\n$mip_form[''13''][''type''] = ''long'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''cms_val_default''] = ''{elements}<div class="flex2_edit" align="right"><font face="Verdana, Arial, Helvetica" size="1">{title}</font>{edit}&nbsp;{insert}</div>'';\r\n\r\n// Template-Beschriftung ausgeben\r\n$mip_form[''14''][''desc''] = ''Template-Beschriftung ausgeben'';\r\n$mip_form[''14''][''cat''] = ''chk'';\r\n$mip_form[''14''][''option_var''][''0''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''option_val''][''0''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''14''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Ergebnisse pro Seite\r\n$mip_form[''5''][''cat''] = ''txt'';\r\n$mip_form[''5''][''type''] = '''';\r\n$mip_form[''5''][''desc''] = ''Eintr&#228;ge pro Seite: <small>(0 = alle)</small>'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''0'';\r\n\r\n// Default Template nur im Backend\r\n$mip_form[''7''][''desc''] = ''Default Template nur im Backend'';\r\n$mip_form[''7''][''cat''] = ''chk'';\r\n$mip_form[''7''][''option_var''][''0''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''option_val''][''0''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''7''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Template Eintrag\r\n$mip_form[''8''][''desc''] = ''Default Template'';\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''rows''] = ''7'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''<p><strong>Kein Template zugewiesen</strong><br />\r\ntext:1 -> {text:1}<br />\r\ntext:2 -> {text:2}<br />\r\ntext:3 -> {text:3}<br />\r\ntext:4 -> {text:4}<br />\r\ntext:5 -> {text:5}<br />\r\ntextarea:1 -> {textarea:1}<br />\r\ntextarea:2 -> {textarea:2}<br />\r\ntextarea:3 -> {textarea:3}<br />\r\nimage:1 -> {image:1}<br />\r\nimage:2 -> {image:2}<br />\r\nimage:3 -> {image:3}<br />\r\nlink:1 -> {link:1}<br />\r\nlink:2 -> {link:2}<br />\r\nlink:3 -> {link:3}<br />\r\nfile:1 -> {file:1}<br />\r\nfile:2 -> {file:2}<br />\r\nfile:3 -> {file:3}<br />\r\nwysiwyg:1 -> {wysiwyg:1}<br />\r\nwysiwyg:2 -> {wysiwyg:2}<br />\r\nwysiwyg:3 -> {wysiwyg:3}<br />\r\nwysiwyg2:1 -> {wysiwyg2:1}<br />\r\nwysiwyg2:2 -> {wysiwyg2:2}<br />\r\nwysiwyg2:3 -> {wysiwyg2:3}<br />\r\n</p>'';\r\n\r\n//beschreibung/ Legende\r\n$mip_form[''9''][''cat''] = ''desc'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = ''<br />Es k&#246;nnen folgende Elemente verwendet werden:<br /> \r\n<small>{author}, {date}, {created_date}, {username}, {name}, {surname}, {email}, {font1-2}, {popup}</small><br />\r\nBei folgenden Elementen muss <b>zwingend</b> eine Laufnummer mitgegeben werden:<br />\r\n<small>{text:x}, {textarea:x}, {wysiwyg:x}, {wysiwyg2:x}, <br />\r\n{file:x}, {fileurl:x}, {filedesc:x}, {filesize:x}, <br />\r\n{link:x}, {linkurl:x}, {linkdesc:x}, {linktarget:x}, <br />\r\n{image:x}, {imageurl:x}, {imagewidth:x}, {imageheight:x}, {imagedesc:x}, {imagethumb:x}</small><br />\r\nDie Nummerierung muss zwischen 1 und 3 sein.<br />'';\r\n\r\n// Template Nav\r\n$mip_form[''10''][''desc''] = ''Template Navigation'';\r\n$mip_form[''10''][''cat''] = ''txtarea'';\r\n$mip_form[''10''][''rows''] = ''3'';\r\n$mip_form[''10''][''type''] = ''long'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''<table width="100%" border="0"><tr>''."\\n".''<td width="50%" align="left" class="{font2}">{prev}</td>''."\\n".''<td width="50%" align="right" class="{font2}">{next}</td></tr></table>'';\r\n\r\n// text fuer weiter\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Text f&#252;r Weiter-Link'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''Seite vorw&#228;rts'';\r\n\r\n// text fuer zurueck\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''type''] = '''';\r\n$mip_form[''12''][''desc''] = ''Text f&#252;r Zur&#252;ck-Link'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''Seite zur&#252;ck'';\r\n\r\n// ***************************** Bild aus dem Modul Bild 1.0 *********************\r\n//Dateitypen\r\n$mip_form[''15''][''desc''] = ''Ausw&#228;hlbare Grafiktypen (G&#252;ltig f&#252;r {image:x},{wysiwyg2:x}):'';\r\n$mip_form[''15''][''cat''] = ''option'';\r\n$mip_form[''15''][''flag''] = ''multiple'';\r\n$mip_form[''15''][''size''] = ''5'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''cms_val_default''] = ''true'';\r\n$mip_form[''15''][''option_desc''][''0''] = ''Alle verf&#252;gbaren Webgrafiken'';\r\n$mip_form[''15''][''option_val''][''0''] = ''true'';\r\n$mip_form[''15''][''option_desc''][''1''] = ''*.gif'';\r\n$mip_form[''15''][''option_val''][''1''] = ''gif'';\r\n$mip_form[''15''][''option_desc''][''2''] = ''*.jpg'';\r\n$mip_form[''15''][''option_val''][''2''] = ''jpg'';\r\n$mip_form[''15''][''option_desc''][''3''] = ''*.jpeg'';\r\n$mip_form[''15''][''option_val''][''3''] = ''jpeg'';\r\n$mip_form[''15''][''option_desc''][''4''] = ''*.png'';\r\n$mip_form[''15''][''option_val''][''4''] = ''png'';\r\n\r\n//Ordner\r\n$mip_form[''16''][''desc''] = ''Ordner {image:x},{wysiwyg2:x}: '';\r\n$mip_form[''16''][''cat''] = ''app_directory'';\r\n$mip_form[''16''][''output_cat''] = ''option'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''flag''] = ''multiple'';\r\n$mip_form[''16''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''17''][''cat''] = ''option'';\r\n$mip_form[''17''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen {image:x},{wysiwyg2:x}:'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''cms_val_default''] = ''false'';\r\n$mip_form[''17''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''17''][''option_val''][''0''] = ''true'';\r\n$mip_form[''17''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''17''][''option_val''][''1''] = ''false'';\r\n$mip_form[''17''][''tab''] = ''0'';\r\n\r\n// ***************************** Wysiyg2 aus dem Modul wysiwyg2 1.1 *********************\r\n\r\n//Dateilinks Ordner\r\n$mip_form[''18''][''desc''] = ''Ordner {file:x},{wysiwyg2:x}: '';\r\n$mip_form[''18''][''cat''] = ''app_directory'';\r\n$mip_form[''18''][''output_cat''] = ''option'';\r\n$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''flag''] = ''multiple'';\r\n$mip_form[''18''][''size''] = ''5'';\r\n\r\n//Mit Unterverzeichnissen\r\n$mip_form[''19''][''cat''] = ''option'';\r\n$mip_form[''19''][''type''] = '''';\r\n$mip_form[''19''][''desc''] = ''Automatischa Anzeige von Unterverzeichnissen {file:x},{wysiwyg2:x}:'';\r\n$mip_form[''19''][''cms_var''] = ''MOD_VAR[19]'';\r\n$mip_form[''19''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n$mip_form[''19''][''cms_val_default''] = ''false'';\r\n$mip_form[''19''][''option_desc''][''0''] = ''Nein'';\r\n$mip_form[''19''][''option_val''][''0''] = ''false'';\r\n$mip_form[''19''][''option_desc''][''1''] = ''Ja'';\r\n$mip_form[''19''][''option_val''][''1''] = ''true'';\r\n$mip_form[''19''][''tab''] = ''0'';\r\n\r\n//Dateilinks -typen\r\n$mip_form[''6''][''desc''] = ''Dateitypen {file:x},{wysiwyg2:x}: '';\r\n$mip_form[''6''][''cat''] = ''app_filetype'';\r\n$mip_form[''6''][''output_cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''flag''] = ''multiple'';\r\n$mip_form[''6''][''size''] = ''5'';\r\n\r\n//Featureauswahl\r\n$mip_form[''3''][''desc''] = ''Angezeigt Schaltfl&#228;chen {wysiwyg2:x}:'';\r\n$mip_form[''3''][''cat''] = ''option'';\r\n$mip_form[''3''][''flag''] = ''multiple'';\r\n$mip_form[''3''][''size''] = ''7'';\r\n$mip_form[''3''][''option_desc''][] = ''Alle Felder sichtbar'';\r\n$mip_form[''3''][''option_val''][] =  ''true'';\r\n$mip_form[''3''][''option_desc''][] = ''Fonts'';\r\n$mip_form[''3''][''option_val''][] =  ''font'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontgr&#246;ße'';\r\n$mip_form[''3''][''option_val''][] =  ''fontsize'';\r\n$mip_form[''3''][''option_desc''][] = ''Stylesheets'';\r\n$mip_form[''3''][''option_val''][] =  ''styles'';\r\n$mip_form[''3''][''option_desc''][] = ''Text zur&#252;cksetzten'';\r\n$mip_form[''3''][''option_val''][] =  ''reset'';\r\n$mip_form[''3''][''option_desc''][] = ''Vorschau'';\r\n$mip_form[''3''][''option_val''][] =  ''preview'';\r\n$mip_form[''3''][''option_desc''][] = ''Drucken'';\r\n$mip_form[''3''][''option_val''][] =  ''print'';\r\n$mip_form[''3''][''option_desc''][] = ''Zwischenablagefunktionen'';\r\n$mip_form[''3''][''option_val''][] =  ''clipboardtools'';\r\n$mip_form[''3''][''option_desc''][] = ''HTMLtags entfernen'';\r\n$mip_form[''3''][''option_val''][] =  ''striptag'';\r\n$mip_form[''3''][''option_desc''][] = ''Undo/ Redo'';\r\n$mip_form[''3''][''option_val''][] =  ''undo'';\r\n$mip_form[''3''][''option_desc''][] = ''Suchen und Ersetzen'';\r\n$mip_form[''3''][''option_val''][] =  ''search'';\r\n$mip_form[''3''][''option_desc''][] = ''Upper-, Lowercase'';\r\n$mip_form[''3''][''option_val''][] =  ''changecase'';\r\n$mip_form[''3''][''option_desc''][] = ''Umschalten in HTMLansicht'';\r\n$mip_form[''3''][''option_val''][] =  ''changemode'';\r\n$mip_form[''3''][''option_desc''][] = ''Externes Bearbeitungsfenster'';\r\n$mip_form[''3''][''option_val''][] =  ''popupeditor'';\r\n$mip_form[''3''][''option_desc''][] = ''Tabellen'';\r\n$mip_form[''3''][''option_val''][] =  ''table'';\r\n$mip_form[''3''][''option_desc''][] = ''Fett'';\r\n$mip_form[''3''][''option_val''][] =  ''bold'';\r\n$mip_form[''3''][''option_desc''][] = ''Kursiv'';\r\n$mip_form[''3''][''option_val''][] =  ''italic'';\r\n$mip_form[''3''][''option_desc''][] = ''Unterstrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''underline'';\r\n$mip_form[''3''][''option_desc''][] = ''Durchgestrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''strikethrough'';\r\n$mip_form[''3''][''option_desc''][] = ''Tiefgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''subscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Hochgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''superscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Ausrichtung'';\r\n$mip_form[''3''][''option_val''][] =  ''align'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''fontcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Hintergrundfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''backgroundcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Listen'';\r\n$mip_form[''3''][''option_val''][] =  ''list'';\r\n$mip_form[''3''][''option_desc''][] = ''Einr&#252;ckung'';\r\n$mip_form[''3''][''option_val''][] =  ''indent'';\r\n$mip_form[''3''][''option_desc''][] = ''Links einf&#252;gen'';\r\n$mip_form[''3''][''option_val''][] =  ''link'';\r\n$mip_form[''3''][''option_desc''][] = ''Bilder einf&#252;gen'';\r\n$mip_form[''3''][''option_val''][] =  ''image'';\r\n$mip_form[''3''][''option_desc''][] = ''Dateien einf&#252;gen'';\r\n$mip_form[''3''][''option_val''][] =  ''file'';\r\n$mip_form[''3''][''option_desc''][] = ''Liveresize'';\r\n$mip_form[''3''][''option_val''][] =  ''liveresize'';\r\n$mip_form[''3''][''option_desc''][] = ''Mehrfachauswahl'';\r\n$mip_form[''3''][''option_val''][] =  ''multipleselect'';\r\n$mip_form[''3''][''option_desc''][] = ''Trennlinie'';\r\n$mip_form[''3''][''option_val''][] =  ''hr'';\r\n$mip_form[''3''][''option_desc''][] = ''Besondere Zeichen'';\r\n$mip_form[''3''][''option_val''][] =  ''specialchars'';\r\n$mip_form[''3''][''option_desc''][] = ''Aktuelles Datum'';\r\n$mip_form[''3''][''option_val''][] =  ''date'';\r\n$mip_form[''3''][''option_desc''][] = ''Lauftexteditor'';\r\n$mip_form[''3''][''option_val''][] =  ''marquee'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n\r\n//Auswaehlbare Stylesheets\r\n$mip_form[''4''][''desc''] = ''F&#252;r den Redakteur ausw&#228;hlbare Stylesheets {wysiwyg2:x}:'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''output_flag''] = ''multiple'';\r\n$mip_form[''4''][''size''] = ''5'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n$mip_form[''4''][''return_val''] = ''idcssupl'';\r\n\r\n// styleclass {wysiwyg2:x}\r\n$mip_form[''28''][''cat''] = ''txt'';\r\n$mip_form[''28''][''type''] = '''';\r\n$mip_form[''28''][''desc''] = ''styleclass für den {wysiwyg2:x}:'';\r\n$mip_form[''28''][''cms_var''] = ''MOD_VAR[28]'';\r\n$mip_form[''28''][''cms_val''] = $dedi_mod[''value''][''28''];\r\n$mip_form[''28''][''cms_val_default''] = '''';\r\n// ***************************** Dateilink aus dem Modul Daielink 1.0 *********************\r\n\r\n//target verstecken\r\n$mip_form[''27''][''cat''] = ''option'';\r\n$mip_form[''27''][''type''] = '''';\r\n$mip_form[''27''][''desc''] = ''Im Bearbeitungsmodus Zielfensterfeld ausblenden {file:x}:'';\r\n$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n$mip_form[''27''][''cms_val_default''] = ''false'';\r\n$mip_form[''27''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''27''][''option_val''][''0''] = ''true'';\r\n$mip_form[''27''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''27''][''option_val''][''1''] = ''false'';\r\n$mip_form[''27''][''tab''] = ''0'';\r\n\r\n// ***************************** TITEL **********************\r\n// Titel fuer {text:1}\r\n$mip_form[''20''][''cat''] = ''txt'';\r\n$mip_form[''20''][''type''] = '''';\r\n$mip_form[''20''][''desc''] = ''Titel f&#252;r das Element {text:1}'';\r\n$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''20''][''cms_val_default''] = ''Ich bin ein Text:1'';\r\n\r\n// Titel fuer {textarea:1}\r\n$mip_form[''21''][''cat''] = ''txt'';\r\n$mip_form[''21''][''type''] = '''';\r\n$mip_form[''21''][''desc''] = ''Titel f&#252;r das Element {textarea:1}'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''21''][''cms_val_default''] = ''Ich bin ein Textarea:1'';\r\n\r\n// Titel fuer {wysiwyg:1}\r\n$mip_form[''22''][''cat''] = ''txt'';\r\n$mip_form[''22''][''type''] = '''';\r\n$mip_form[''22''][''desc''] = ''Titel f&#252;r das Element {wysiwyg:1}'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''22''][''cms_val_default''] = ''Ich bin wysiwyg:1'';\r\n\r\n// Titel fuer {wysiwyg2:1}\r\n$mip_form[''23''][''cat''] = ''txt'';\r\n$mip_form[''23''][''type''] = '''';\r\n$mip_form[''23''][''desc''] = ''Titel f&#252;r das Element {wysiwyg2:1}'';\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n$mip_form[''23''][''cms_val_default''] = ''Ich bin wysiwyg2:1'';\r\n\r\n// Titel fuer {image:1}\r\n$mip_form[''24''][''cat''] = ''txt'';\r\n$mip_form[''24''][''type''] = '''';\r\n$mip_form[''24''][''desc''] = ''Titel f&#252;r das Element {image:1}'';\r\n$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n$mip_form[''24''][''cms_val_default''] = ''Ich bin ein Image:1'';\r\n\r\n// Titel fuer {file:1}\r\n$mip_form[''25''][''cat''] = ''txt'';\r\n$mip_form[''25''][''type''] = '''';\r\n$mip_form[''25''][''desc''] = ''Titel f&#252;r die Elemente {file:1}, {fileurl:1}, {filedesc:1}, {filesize:1}'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''25''][''cms_val_default''] = ''Ich bin ein File:1'';\r\n\r\n// Titel fuer {link:1}\r\n$mip_form[''26''][''cat''] = ''txt'';\r\n$mip_form[''26''][''type''] = '''';\r\n$mip_form[''26''][''desc''] = ''Titel f&#252;r das Element {link:1}'';\r\n$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n$mip_form[''26''][''cms_val_default''] = ''Ich bin ein Link:1'';\r\n\r\n// Titel fuer {text:2}\r\n$mip_form[''30''][''cat''] = ''txt'';\r\n$mip_form[''30''][''type''] = '''';\r\n$mip_form[''30''][''desc''] = ''Titel f&#252;r das Element {text:2}'';\r\n$mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n$mip_form[''30''][''cms_val_default''] = ''Ich bin ein Text:2'';\r\n\r\n// Titel fuer {textarea:2}\r\n$mip_form[''31''][''cat''] = ''txt'';\r\n$mip_form[''31''][''type''] = '''';\r\n$mip_form[''31''][''desc''] = ''Titel f&#252;r das Element {textarea:2}'';\r\n$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n$mip_form[''31''][''cms_val_default''] = ''Ich bin ein Textarea:2'';\r\n\r\n// Titel fuer {wysiwyg:2}\r\n$mip_form[''32''][''cat''] = ''txt'';\r\n$mip_form[''32''][''type''] = '''';\r\n$mip_form[''32''][''desc''] = ''Titel f&#252;r das Element {wysiwyg:2}'';\r\n$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n$mip_form[''32''][''cms_val_default''] = ''Ich bin wysiwyg:2'';\r\n\r\n// Titel fuer {wysiwyg2:3}\r\n$mip_form[''33''][''cat''] = ''txt'';\r\n$mip_form[''33''][''type''] = '''';\r\n$mip_form[''33''][''desc''] = ''Titel f&#252;r das Element {wysiwyg2:2}'';\r\n$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n$mip_form[''33''][''cms_val_default''] = ''Ich bin wysiwyg2:2'';\r\n\r\n// Titel fuer {image:2}\r\n$mip_form[''34''][''cat''] = ''txt'';\r\n$mip_form[''34''][''type''] = '''';\r\n$mip_form[''34''][''desc''] = ''Titel f&#252;r das Element {image:2}'';\r\n$mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n$mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n$mip_form[''34''][''cms_val_default''] = ''Ich bin ein Image:2'';\r\n\r\n// Titel fuer {file:2}\r\n$mip_form[''35''][''cat''] = ''txt'';\r\n$mip_form[''35''][''type''] = '''';\r\n$mip_form[''35''][''desc''] = ''Titel f&#252;r die Elemente {file:2}, {fileurl:2}, {filedesc:2}, {filesize:2}'';\r\n$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n$mip_form[''35''][''cms_val_default''] = ''Ich bin ein File:2'';\r\n\r\n// Titel fuer {link:2}\r\n$mip_form[''36''][''cat''] = ''txt'';\r\n$mip_form[''36''][''type''] = '''';\r\n$mip_form[''36''][''desc''] = ''Titel f&#252;r das Element {link:2}'';\r\n$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n$mip_form[''36''][''cms_val_default''] = ''Ich bin ein Link:2'';\r\n\r\n// Titel fuer {text:3}\r\n$mip_form[''40''][''cat''] = ''txt'';\r\n$mip_form[''40''][''type''] = '''';\r\n$mip_form[''40''][''desc''] = ''Titel f&#252;r das Element {text:3}'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''cms_val_default''] = ''Ich bin ein Text:3'';\r\n\r\n// Titel fuer {textarea:3}\r\n$mip_form[''41''][''cat''] = ''txt'';\r\n$mip_form[''41''][''type''] = '''';\r\n$mip_form[''41''][''desc''] = ''Titel f&#252;r das Element {textarea:3}'';\r\n$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n$mip_form[''41''][''cms_val_default''] = ''Ich bin ein Textarea:3'';\r\n\r\n// Titel fuer {wysiwyg:3}\r\n$mip_form[''42''][''cat''] = ''txt'';\r\n$mip_form[''42''][''type''] = '''';\r\n$mip_form[''42''][''desc''] = ''Titel f&#252;r das Element {wysiwyg:3}'';\r\n$mip_form[''42''][''cms_var''] = ''MOD_VAR[42]'';\r\n$mip_form[''42''][''cms_val''] = $dedi_mod[''value''][''42''];\r\n$mip_form[''42''][''cms_val_default''] = ''Ich bin wysiwyg:3'';\r\n\r\n// Titel fuer {wysiwyg2:3}\r\n$mip_form[''43''][''cat''] = ''txt'';\r\n$mip_form[''43''][''type''] = '''';\r\n$mip_form[''43''][''desc''] = ''Titel f&#252;r das Element {wysiwyg2:3}'';\r\n$mip_form[''43''][''cms_var''] = ''MOD_VAR[43]'';\r\n$mip_form[''43''][''cms_val''] = $dedi_mod[''value''][''43''];\r\n$mip_form[''43''][''cms_val_default''] = ''Ich bin wysiwyg2:3'';\r\n\r\n// Titel fuer {image:3}\r\n$mip_form[''44''][''cat''] = ''txt'';\r\n$mip_form[''44''][''type''] = '''';\r\n$mip_form[''44''][''desc''] = ''Titel f&#252;r das Element {image:3}'';\r\n$mip_form[''44''][''cms_var''] = ''MOD_VAR[44]'';\r\n$mip_form[''44''][''cms_val''] = $dedi_mod[''value''][''44''];\r\n$mip_form[''44''][''cms_val_default''] = ''Ich bin ein Image:3'';\r\n\r\n// Titel fuer {file:3}\r\n$mip_form[''45''][''cat''] = ''txt'';\r\n$mip_form[''45''][''type''] = '''';\r\n$mip_form[''45''][''desc''] = ''Titel f&#252;r die Elemente {file:3}, {fileurl:3}, {filedesc:3}, {filesize:3}'';\r\n$mip_form[''45''][''cms_var''] = ''MOD_VAR[45]'';\r\n$mip_form[''45''][''cms_val''] = $dedi_mod[''value''][''45''];\r\n$mip_form[''45''][''cms_val_default''] = ''Ich bin ein File:3'';\r\n\r\n// Titel fuer {link:3}\r\n$mip_form[''46''][''cat''] = ''txt'';\r\n$mip_form[''46''][''type''] = '''';\r\n$mip_form[''46''][''desc''] = ''Titel f&#252;r das Element {link:3}'';\r\n$mip_form[''46''][''cms_var''] = ''MOD_VAR[46]'';\r\n$mip_form[''46''][''cms_val''] = $dedi_mod[''value''][''46''];\r\n$mip_form[''46''][''cms_val_default''] = ''Ich bin ein Link:3'';\r\n\r\n// Titel fuer {text:4}\r\n$mip_form[''47''][''cat''] = ''txt'';\r\n$mip_form[''47''][''type''] = '''';\r\n$mip_form[''47''][''desc''] = ''Titel f&#252;r das Element {text:4}'';\r\n$mip_form[''47''][''cms_var''] = ''MOD_VAR[47]'';\r\n$mip_form[''47''][''cms_val''] = $dedi_mod[''value''][''47''];\r\n$mip_form[''47''][''cms_val_default''] = ''Ich bin ein Text:4'';\r\n\r\n// Titel fuer {text:5}\r\n$mip_form[''48''][''cat''] = ''txt'';\r\n$mip_form[''48''][''type''] = '''';\r\n$mip_form[''48''][''desc''] = ''Titel f&#252;r das Element {text:5}'';\r\n$mip_form[''48''][''cms_var''] = ''MOD_VAR[48]'';\r\n$mip_form[''48''][''cms_val''] = $dedi_mod[''value''][''48''];\r\n$mip_form[''48''][''cms_val_default''] = ''Ich bin ein Text:5'';\r\n\r\n// BBCode fuer textarea:1\r\n$mip_form[''49''][''desc''] = ''bbcode in textarea:1 einschalten'';\r\n$mip_form[''49''][''cat''] = ''option'';\r\n$mip_form[''49''][''cms_var''] = ''MOD_VAR[49]'';\r\n$mip_form[''49''][''cms_val''] = $dedi_mod[''value''][''49''];\r\n$mip_form[''49''][''cms_val_default''] = '''';\r\n$mip_form[''49''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''49''][''option_val''][''0''] = ''bbcode'';\r\n$mip_form[''49''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''49''][''option_val''][''1''] = '''';\r\n$mip_form[''49''][''tab''] = ''0'';\r\n\r\n// BBCode fuer textarea:2\r\n$mip_form[''50''][''desc''] = ''bbcode in textarea:2 einschalten'';\r\n$mip_form[''50''][''cat''] = ''option'';\r\n$mip_form[''50''][''cms_var''] = ''MOD_VAR[50]'';\r\n$mip_form[''50''][''cms_val''] = $dedi_mod[''value''][''50''];\r\n$mip_form[''50''][''cms_val_default''] = '''';\r\n$mip_form[''50''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''50''][''option_val''][''0''] = ''bbcode'';\r\n$mip_form[''50''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''50''][''option_val''][''1''] = '''';\r\n$mip_form[''50''][''tab''] = ''0'';\r\n\r\n// BBCode fuer textarea:3\r\n$mip_form[''51''][''desc''] = ''bbcode in textarea:3 einschalten'';\r\n$mip_form[''51''][''cat''] = ''option'';\r\n$mip_form[''51''][''cms_var''] = ''MOD_VAR[51]'';\r\n$mip_form[''51''][''cms_val''] = $dedi_mod[''value''][''51''];\r\n$mip_form[''51''][''cms_val_default''] = '''';\r\n$mip_form[''51''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''51''][''option_val''][''0''] = ''bbcode'';\r\n$mip_form[''51''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''51''][''option_val''][''1''] = '''';\r\n$mip_form[''51''][''tab''] = ''0'';\r\n\r\n// ***************************** Beschreibungen *********************\r\n\r\n$mip_form[''80''][''cat''] = ''desc'';\r\n$mip_form[''80''][''type''] = '''';\r\n$mip_form[''80''][''desc''] = "<hr /><strong>Navigation</strong><br />";\r\n$mip_form[''80''][''tab''] = ''0'';\r\n\r\n$mip_form[''81''][''cat''] = ''desc'';\r\n$mip_form[''81''][''type''] = '''';\r\n$mip_form[''81''][''desc''] = "<hr /><strong>Titel</strong><br />";\r\n$mip_form[''81''][''tab''] = ''0'';\r\n\r\n$mip_form[''82''][''cat''] = ''desc'';\r\n$mip_form[''82''][''type''] = '''';\r\n$mip_form[''82''][''desc''] = "<hr /><strong>Einschr&#228;nkungen</strong><br />";\r\n$mip_form[''82''][''tab''] = ''0'';\r\n\r\n$mip_form[''83''][''cat''] = ''desc'';\r\n$mip_form[''83''][''type''] = '''';\r\n$mip_form[''83''][''desc''] = "<hr /><strong>Template</strong><br />";\r\n$mip_form[''83''][''tab''] = ''0'';\r\n\r\n\r\n// Ausgabe\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''advanced''){\r\n   foreach ($mip_form[''hide_in_advanced_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n\r\nmip_formsp($mip_form[''1'']); // Style Beschreibung {font1}\r\nmip_formsp($mip_form[''2'']); // Style Beschreibung {font2}\r\nmip_formsp($mip_form[''83'']);  // Beschreibung Template\r\nmip_formsp($mip_form[''13'']); //Edit Template\r\nmip_formsp($mip_form[''14'']); // Template-Beschriftung ausgeben\r\nmip_formsp($mip_form[''7'']); // Template Default nur im Backend?\r\nmip_formsp($mip_form[''8'']); // Template Default\r\nmip_formsp($mip_form[''9'']); // Legende\r\n\r\n// -------------------------\r\n\r\n\r\n//change handler, wenn Gruppen geloescht werden, alte uniqe ids loeschen\r\nif($dedi_mod[''value''][''109''] != ''0'' && $dedi_mod[''value''][''109''] != ''''){\r\n	if ($mod[''test''] == "true") { echo "change unique id!!!!<br />"; }\r\n	$change_fields = (int) $dedi_mod[''value''][''109''];\r\n	$uniqe_pointer = (int) $dedi_mod[''value''][''100''] * 10 +102;\r\n	if($change_fields < 0){\r\n		for($i = $change_fields; $i <0 ; $i++){\r\n			if ($mod[''test''] == "true") { echo $uniqe_pointer . ''<br />'';}\r\n			$dedi_mod[''value''][$uniqe_pointer] = '''';\r\n			$uniqe_pointer = $uniqe_pointer-10;\r\n		}\r\n	}\r\n	if ($mod[''test''] == "true") { echo " ;unique pointer:".$uniqe_pointer."<br />"; }\r\n}\r\n\r\n// Anzahl der Spalten -> $dedi_mod[''value''][''100''] ist Zaehler\r\nif ($dedi_mod[''value''][''100''] == ''''){\r\n	 $dedi_mod[''value''][''100''] = ''8'';\r\n}\r\nif ($dedi_mod[''value''][''100''] <= ''0''){\r\n	 $dedi_mod[''value''][''100''] = ''1'';\r\n}\r\nif ($dedi_mod[''value''][''109''] != ''0''){\r\n	 $dedi_mod[''value''][''100''] = round($dedi_mod[''value''][''100'']+$dedi_mod[''value''][''109'']);\r\n}\r\n\r\n//$dedi_mod[''value''][''106''] ist uniqe id counter\r\nif ($dedi_mod[''value''][''106''] == ''''){\r\n	 $dedi_mod[''value''][''106''] = 1;\r\n}\r\n\r\n\r\n//mod var 100 is container counter\r\n$mip_form[''100''][''cat''] = ''hidden'';\r\n$mip_form[''100''][''cms_var''] = ''MOD_VAR[100]'';\r\n$mip_form[''100''][''cms_val''] = $dedi_mod[''value''][''100''];\r\n\r\n//Default Elemente\r\nif (($dedi_mod[''value''][110] == '''') && ($dedi_mod[''value''][''100''] >= 1)) $dedi_mod[''value''][110] = ''Titel'';\r\nif (($dedi_mod[''value''][111] == '''') && ($dedi_mod[''value''][''100''] >= 1)) $dedi_mod[''value''][111] = ''<h1>{text:1}</h1>'';\r\nif (($dedi_mod[''value''][120] == '''') && ($dedi_mod[''value''][''100''] >= 2)) $dedi_mod[''value''][120] = ''Untertitel'';\r\nif (($dedi_mod[''value''][121] == '''') && ($dedi_mod[''value''][''100''] >= 2)) $dedi_mod[''value''][121] = ''<h2>{text:1}</h2>'';\r\nif (($dedi_mod[''value''][130] == '''') && ($dedi_mod[''value''][''100''] >= 3)) $dedi_mod[''value''][130] = ''Untertitel / Text'';\r\nif (($dedi_mod[''value''][131] == '''') && ($dedi_mod[''value''][''100''] >= 3)) $dedi_mod[''value''][131] = ''<h2>{text:1}</h2>{textarea:1}'';\r\nif (($dedi_mod[''value''][140] == '''') && ($dedi_mod[''value''][''100''] >= 4)) $dedi_mod[''value''][140] = ''Text'';\r\nif (($dedi_mod[''value''][141] == '''') && ($dedi_mod[''value''][''100''] >= 4)) $dedi_mod[''value''][141] = ''{textarea:1}'';\r\nif (($dedi_mod[''value''][150] == '''') && ($dedi_mod[''value''][''100''] >= 5)) $dedi_mod[''value''][150] = ''Bild'';\r\nif (($dedi_mod[''value''][151] == '''') && ($dedi_mod[''value''][''100''] >= 5)) $dedi_mod[''value''][151] = ''{image:1}'';\r\nif (($dedi_mod[''value''][160] == '''') && ($dedi_mod[''value''][''100''] >= 6)) $dedi_mod[''value''][160] = ''File'';\r\nif (($dedi_mod[''value''][161] == '''') && ($dedi_mod[''value''][''100''] >= 6)) $dedi_mod[''value''][161] = ''<a href="{fileurl:1}" target="_blank">{filedesc:1}</a>{text:1} {filesize:1}<br>'';\r\nif (($dedi_mod[''value''][170] == '''') && ($dedi_mod[''value''][''100''] >= 7)) $dedi_mod[''value''][170] = ''Text_Bild'';\r\nif (($dedi_mod[''value''][171] == '''') && ($dedi_mod[''value''][''100''] >= 7)) $dedi_mod[''value''][171] = ''<span align="right" class="image">{image:1}</span>{textarea:1}'';\r\nif (($dedi_mod[''value''][180] == '''') && ($dedi_mod[''value''][''100''] >= 8)) $dedi_mod[''value''][180] = ''Trennlinie'';\r\nif (($dedi_mod[''value''][181] == '''') && ($dedi_mod[''value''][''100''] >= 8)) $dedi_mod[''value''][181] = ''<hr />'';\r\nif (($dedi_mod[''value''][190] == '''') && ($dedi_mod[''value''][''100''] >= 9)) $dedi_mod[''value''][190] = ''wysiwyg2'';\r\nif (($dedi_mod[''value''][191] == '''') && ($dedi_mod[''value''][''100''] >= 9)) $dedi_mod[''value''][191] = ''{wysiwyg2:1}'';\r\n\r\nmip_formsp($mip_form[''100'']);\r\n	\r\n	//$dedi_mod[''value''][''n+2''] is reserved for unique id\r\n	//if ($dedi_mod[''value''][''110''] == '''') $dedi_mod[''value''][''110''] = ''Text'';//Elementname\r\n	//if ($dedi_mod[''value''][''111''] == '''') $dedi_mod[''value''][''111''] = ''{text}'';//Template\r\n	// n+3 is on off button\r\n	\r\n	?>\r\n	<br />\r\n	<table cellspacing="0" cellpadding="0" border="0" width="640">\r\n	  <tr>\r\n	    <td width="100%">&nbsp;</td>\r\n	    <td>&nbsp;Name&nbsp;</td>\r\n	    <td>&nbsp;Elementgruppe&nbsp;</td>\r\n	  </tr>\r\n	<?php\r\n	// Konfiguration der einzelnen Spalten\r\n	for ($tmp_mod[''i''] = 1; $tmp_mod[''i''] <= $dedi_mod[''value''][''100'']; $tmp_mod[''i'']++) {\r\n		$y = round($tmp_mod[''i'']*10)+100;//ist name\r\n		$tmp_mod[''row''][''1''] = $y+1;//ist tpl\r\n		//make uniqe id -> $y+2\r\n		if($dedi_mod[''value''][$y+2] == ''''){\r\n			$dedi_mod[''value''][$y+2] = $dedi_mod[''value''][''106''];\r\n			$dedi_mod[''value''][''106'']++;\r\n		}\r\n		\r\n	?>\r\n	  <tr>\r\n	    <td valign="top" width="100%" nowrap>\r\n	      &nbsp;<?php echo $tmp_mod[''i'']; ?>. Elementgruppe&nbsp;\r\n	      <input name="MOD_VAR[<?php echo $y+2; ?>]" type="hidden" value="<?php echo $dedi_mod[''value''][$y+2];?>"><br />\r\n	      \r\n	      <select name="MOD_VAR[<?php echo $y+3; ?>]" size="1">\r\n	        <?php \r\n	        if ($dedi_mod[''value''][$y+3] == ''inactive''){ \r\n	        	echo "<option value=\\"active\\">Gruppe sichtbar</option>"; \r\n	        	echo "<option value=\\"inactive\\" selected>Gruppe unsichtbar</option>";\r\n	        } else{\r\n	        	echo "<option value=\\"active\\" selected>Gruppe sichtbar</option>"; \r\n	        	echo "<option value=\\"inactive\\">Gruppe unsichtbar</option>";	        	\r\n	        } \r\n	        ?>	  \r\n	      </select><br />\r\n	      \r\n	      <?php if($tmp_mod[''i''] > 1){ ?>\r\n	      <a href="#" onclick="move_content(''MOD_VAR[<?php echo $y; ?>]'', ''MOD_VAR[<?php echo $y+1; ?>]'',''MOD_VAR[<?php echo $y+2; ?>]'', ''MOD_VAR[<?php echo $y+3; ?>]'', ''MOD_VAR[<?php echo $y-10; ?>]'', ''MOD_VAR[<?php echo $y-9; ?>]'', ''MOD_VAR[<?php echo $y-8; ?>]'', ''MOD_VAR[<?php echo $y-7; ?>]'');return false;">[ Up ]</a>&nbsp;\r\n	      <?php } ?>\r\n	      <?php if($tmp_mod[''i''] < $dedi_mod[''value''][''100'']){ ?>\r\n	      <a href="#" onclick="move_content(''MOD_VAR[<?php echo $y; ?>]'', ''MOD_VAR[<?php echo $y+1; ?>]'',''MOD_VAR[<?php echo $y+2; ?>]'', ''MOD_VAR[<?php echo $y+3; ?>]'', ''MOD_VAR[<?php echo $y+10; ?>]'', ''MOD_VAR[<?php echo $y+11; ?>]'', ''MOD_VAR[<?php echo $y+12; ?>]'', ''MOD_VAR[<?php echo $y+13; ?>]'');return false;">[ Down ]</a>&nbsp;\r\n		  <?php } ?>\r\n	    </td>\r\n	    <td valign="top">\r\n	      &nbsp;<input name="MOD_VAR[<?php echo $y; ?>]" type="text" value="<?php echo $dedi_mod[''value''][$y];?>" size="20">&nbsp;\r\n	    </td>\r\n	    <td>\r\n	      &nbsp;<textarea name="MOD_VAR[<?php echo $tmp_mod[''row''][''1'']; ?>]" cols="45" rows="5" style="width:400"><?php echo $dedi_mod[''value''][$tmp_mod[''row''][''1'']];?></textarea>&nbsp;\r\n	    </td>\r\n	  </tr>\r\n	<?php\r\n	}//end for\r\n	?>\r\n	<!-- save unique id counter --> \r\n	<input name="MOD_VAR[106]" type="hidden" value="<?php echo $dedi_mod[''value''][''106''] ?>">\r\n	<script>\r\n	function move_content(fromx1, fromx2, fromx3, fromx4, to1, to2, to3, to4){\r\n		var title, tpl, uid, active;\r\n		\r\n		title = document.editform[fromx1].value;\r\n		tpl = document.editform[fromx2].value;\r\n		uid = document.editform[fromx3].value;\r\n		active = document.editform[fromx4].selectedIndex;\r\n			\r\n		document.editform[fromx1].value = document.editform[to1].value;\r\n		document.editform[fromx2].value = document.editform[to2].value;\r\n		document.editform[fromx3].value = document.editform[to3].value;\r\n		document.editform[fromx4].selectedIndex = document.editform[to4].selectedIndex;\r\n		\r\n		document.editform[to1].value = title;\r\n		document.editform[to2].value = tpl;\r\n		document.editform[to3].value = uid;\r\n		document.editform[to4].selectedIndex = active;	\r\n	}\r\n	\r\n	</script>\r\n	\r\n	  <tr>\r\n	    <td colspan="6" align="right"><select name="MOD_VAR[109]" size="1" onchange="document.editform.action.value=''change'';document.editform.anchor.value=''<?php echo $_container_name ?>'';document.editform.submit();">\r\n	      <option value="0" selected>Spalte erstellen - l&#246;schen</option>\r\n	      <?php if ($dedi_mod[''value''][''100''] >= 4) echo "<option value=\\"-3\\">-3</option>"; ?>\r\n	      <?php if ($dedi_mod[''value''][''100''] >= 3) echo "<option value=\\"-2\\">-2</option>"; ?>\r\n	      <?php if ($dedi_mod[''value''][''100''] >= 2) echo "<option value=\\"-1\\">-1</option>"; ?>\r\n	      <?php \r\n	      if ($dedi_mod[''value''][''100''] <= 60){\r\n		      echo ''<option value="1">+1</option>'';\r\n		      echo ''<option value="2">+2</option>'';\r\n		      echo ''<option value="3">+3</option>'';\r\n	      }\r\n	      ?>\r\n	    </select></td>\r\n	  </tr>\r\n	</table>\r\n	<?php\r\n\r\n\r\n\r\n// -------------------------\r\n\r\nmip_formsp($mip_form[''81'']);  // Beschreibung Titel\r\nmip_formsp($mip_form[''20'']); // Titel fuer {text:1}\r\nmip_formsp($mip_form[''21'']); // Titel fuer {textarea:1}\r\nmip_formsp($mip_form[''49'']); //BBCode fuer {textarea:1}\r\nmip_formsp($mip_form[''22'']); // Titel fuer {wysiwyg:1}\r\nmip_formsp($mip_form[''23'']); // Titel fuer {wysiwyg2:1}\r\nmip_formsp($mip_form[''24'']); // Titel fuer {image:1}\r\nmip_formsp($mip_form[''26'']); // Titel fuer {link:1}\r\nmip_formsp($mip_form[''25'']); // Titel fuer {file:2}\r\nmip_formsp($mip_form[''30'']); // Titel fuer {text:2}\r\nmip_formsp($mip_form[''31'']); // Titel fuer {textarea:2}\r\nmip_formsp($mip_form[''50'']); //BBCode fuer {textarea:2}\r\nmip_formsp($mip_form[''32'']); // Titel fuer {wysiwyg:2}\r\nmip_formsp($mip_form[''33'']); // Titel fuer {wysiwyg2:2}\r\nmip_formsp($mip_form[''34'']); // Titel fuer {image:2}\r\nmip_formsp($mip_form[''36'']); // Titel fuer {link:2}\r\nmip_formsp($mip_form[''35'']); // Titel fuer {file:3}\r\nmip_formsp($mip_form[''40'']); // Titel fuer {text:3}\r\nmip_formsp($mip_form[''41'']); // Titel fuer {textarea:3}\r\nmip_formsp($mip_form[''51'']); //BBCode fuer {textarea:3}\r\nmip_formsp($mip_form[''42'']); // Titel fuer {wysiwyg:3}\r\nmip_formsp($mip_form[''43'']); // Titel fuer {wysiwyg2:3}\r\nmip_formsp($mip_form[''44'']); // Titel fuer {image:3}\r\nmip_formsp($mip_form[''46'']); // Titel fuer {link:3}\r\nmip_formsp($mip_form[''45'']); // Titel fuer {file:3}\r\nmip_formsp($mip_form[''47'']); // Titel fuer {text:4}\r\nmip_formsp($mip_form[''48'']); // Titel fuer {text:5}\r\n\r\nmip_formsp($mip_form[''80'']);  // Beschreibung Navigation\r\nmip_formsp($mip_form[''5'']); // Ergebnisse pro Seite\r\nmip_formsp($mip_form[''10'']); // Template Nav\r\nmip_formsp($mip_form[''11'']); // text fuer weiter\r\nmip_formsp($mip_form[''12'']); // text fuer zurueck\r\n\r\nmip_formsp($mip_form[''82'']);  // Beschreibung Einschraenkungen\r\n//bild und wysiwyg2\r\nmip_formsp($mip_form[''15'']);//Dateitypen\r\nmip_formsp($mip_form[''16'']);//Ordner\r\nmip_formsp($mip_form[''17'']);//Unterordner anzeigen\r\n\r\n// wysiwyg2\r\nmip_formsp($mip_form[''3'']);//features\r\nmip_formsp($mip_form[''4'']);//auswaehlbare styles\r\nmip_formsp($mip_form[''18'']);//ordner dateilinks\r\nmip_formsp($mip_form[''19'']);//subfolder\r\nmip_formsp($mip_form[''6'']);//dateitypen\r\n\r\nmip_formsp($mip_form[''28'']);// styleclass {wysiwyg2:x}\r\n\r\n// Dateilink\r\nmip_formsp($mip_form[''27'']);//Target verstecken\r\n}\r\nunset($mip_form);\r\n//if ($mod[''test''] == "true") {\r\n//	echo "<pre>";\r\n//	print_r($dedi_mod);\r\n//	echo "</pre>";\r\n//}\r\n?>', '<DEDIPHP:CACHE>\r\n// Version 0.9.1\r\n// (c) 2005 by Reto Haldemann v/o Mistral\r\n\r\n//  zur Fehlersuche\r\n//if(isset($test))\r\n//{\r\n//    $mod[''test''] = "true";\r\n//}\r\n\r\n// ************************************************************************************************\r\n// Seite neu laden\r\nif (!function_exists(''clear_cache'')) {\r\n	function clear_cache () {\r\n		global $mod, $dedi_mod, $con_side, $cfg_dedi,$db, $dedi_db, $idcatside;\r\n\r\n		// Seitenkopien suchen\r\n		$sql = "SELECT idcatside\r\n                 	FROM ".$dedi_db[''side_lang'']." A\r\n                         LEFT JOIN ".$dedi_db[''cat_side'']." B USING(idside)\r\n                         WHERE A.idsidelang=''".$con_side[$idcatside][''idsidelang'']."''";\r\n		$db->query($sql);\r\n		while ($db->next_record()) $list[] = $db->f(''idcatside'');\r\n\r\n		// Status der Seite auf geaendert stellen\r\n		change_code_status($list, ''1'', ''idcatside'');\r\n	}\r\n}\r\n\r\n// Version 0.0.1\r\nif(! function_exists(flex2_get_edit_string)){\r\nfunction flex2_get_edit_string($type_name, $id)\r\n{\r\nswitch($type_name)\r\n{\r\n case ''text'':\r\n  $out = ''1-''.$id.'','';\r\n  break;\r\n case ''textarea'':\r\n  $out = ''3-''.$id.'','';\r\n  break;\r\n case ''wysiwyg'':\r\n  $out = ''2-''.$id.'','';\r\n  break;\r\n case ''wysiwyg2'':\r\n  $out = ''13-''.$id.'','';\r\n  break;\r\n case ''editimage'':\r\n  $out = ''4-''.$id.'',5-''.$id.'','';\r\n  break;\r\n case ''editlink'':\r\n  $out = ''6-''.$id.'',7-''.$id.'',8-''.$id.'','';\r\n  break;\r\n case ''editfile'':\r\n  $out = ''10-''.$id.'',11-''.$id.'',12-''.$id.'','';\r\n  break;  \r\n}\r\n\r\nreturn $out;\r\n}}\r\n\r\nif(! function_exists(flex2_get_typegroup)){\r\nfunction flex2_get_typegroup($type_name, $id)\r\n{\r\nswitch($type_name)\r\n{\r\n case ''text'':\r\n  $out = ''text[''.$id.'']''.'','';\r\n  break;\r\n case ''textarea'':\r\n  $out = ''textarea[''.$id.'']''.'','';\r\n  break;\r\n case ''wysiwyg'':\r\n  $out = ''wysiwyg[''.$id.'']''.'','';\r\n  break;\r\n case ''wysiwyg2'':\r\n  $out = ''wysiwyg2[''.$id.'']''.'','';\r\n  break;\r\n case ''editimage'':\r\n  $out = ''image[''.$id.'']''.'','';\r\n  break;\r\n case ''editlink'':\r\n  $out = ''link[''.$id.'']''.'','';\r\n  break;\r\n case ''editfile'':\r\n  $out = ''file[''.$id.'']''.'','';\r\n  break;  \r\n}\r\n\r\nreturn $out;\r\n}}\r\n\r\n\r\nif(! function_exists(flex2_get_val)){\r\nfunction flex2_get_val($value_name)\r\n{\r\n global $idcatside, $dedi_db, $db, $con_side, $dedi_mod;\r\n\r\n $sql = "SELECT\r\n    *\r\n   FROM\r\n    ".$dedi_db[''content''] ."\r\n   WHERE\r\n    idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n    AND container=''".$dedi_mod[''container''][''id'']."''\r\n    AND number=''".$dedi_mod[''modul''][''id'']."'' \r\n    AND idtype=''$value_name''";\r\n $db->query($sql);\r\n $db->next_record();\r\n\r\n return $db->f(''value'');\r\n}\r\n}\r\n\r\nif(! function_exists(flex2_set_val)){\r\nfunction flex2_set_val($value_name, $value, $offset)\r\n{\r\n global $idcatside, $dedi_db, $db, $con_side, $dedi_mod;\r\n //Schauen, ob es den Wert schon gibt\r\n if ($offset==0) {\r\n 	$offset=$dedi_mod[''modul''][''id''];\r\n }\r\n $sql = "SELECT\r\n    *\r\n   FROM\r\n    ".$dedi_db[''content''] ."\r\n   WHERE\r\n    idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n    AND container=''".$dedi_mod[''container''][''id'']."''\r\n    AND number=''".$offset."'' \r\n    AND idtype=''$value_name''";\r\n $db->query($sql);\r\n\r\n //Es gibt den Wert schon -> wert aktuallisieren\r\n if ($db->next_record()){\r\n  $sql = "UPDATE\r\n     ". $dedi_db[''content''] ."\r\n    SET\r\n     value=''$value''\r\n    WHERE\r\n     idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n     AND container=''".$dedi_mod[''container''][''id'']."''\r\n     AND number=''".$offset."'' \r\n     AND idtype=''$value_name''";\r\n }\r\n //Es gibt den Wert noch nicht, neu in tabelle einfuegen\r\n else{\r\n  $sql = "INSERT INTO\r\n     ". $dedi_db[''content''] ."\r\n     (idsidelang, container, number, idtype, value)\r\n    VALUES\r\n     (''".$con_side[$idcatside][''idsidelang'']."'',\r\n      ''".$dedi_mod[''container''][''id'']."'',\r\n      ''".$offset."'',\r\n      ''$value_name'', ''$value'')";\r\n }\r\n\r\n $db->query($sql);\r\n\r\n//Letzte Aenderung Datum aendern!\r\n$sql = "UPDATE ". $dedi_db[''side_lang'']. " SET lastmodified=''".time()."'' WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."'' ";\r\n				$db->query($sql);\r\n\r\n //Cache loeschen\r\n //Seite fuers frontend neu generieren, da sich ein Wert geaendert hat\r\n change_code_status($idcatside, 1, ''idcatside'');\r\n\r\n return "<br>Set_Val:".$value_name." -> ".$value." at ".$offset."</h3>"; \r\n\r\n}\r\n}\r\n\r\nif (!function_exists(''flex2_popup_menu'')) {\r\n	function flex2_popup_menu() {\r\n		global $modtemp, $dedi_mod, $con_side, $cfg_dedi, $idcatside;\r\n		if(! is_object($pop_menu)){\r\n			include_once($cfg_dedi[''dedi_path''].''inc/class.popupmenubuilder_js.php'');\r\n			$pop_menu = new popupmenubuilder_js();\r\n			$pop_menu->set_image($cfg_dedi[''dedi_html_path''].''tpl/standard/img/but_plus.gif'', 16, 11);\r\n		}\r\n\r\n		//generate menu\r\n		$pop_menu->add_title(''Element hinzufugen {entry}'');\r\n\r\n		$modtemp[''el_nr''] = $dedi_mod[''value''][''100''];\r\n\r\n		for ($modtemp[''i''] = 1; $modtemp[''i''] <= $modtemp[''el_nr'']; $modtemp[''i'']++) {\r\n			$modtemp[''el_title''] = $dedi_mod[''value''][round($modtemp[''i'']*10+100)];\r\n			$modtemp[''el_tpl''] = $dedi_mod[''value''][round($modtemp[''i'']*10+101)];\r\n			$modtemp[''el_unique_id''] = $dedi_mod[''value''][round($modtemp[''i'']*10+102)];\r\n			$modtemp[''el_activ''] = $dedi_mod[''value''][round($modtemp[''i'']*10+103)];\r\n			\r\n			if ($modtemp[''el_activ''] == ''active'') {\r\n				// index.php?idcatside=17&view=edit&action=new&entry=3&content=30.new.3-1,1-1\r\n				$pop_menu->add_entry(\r\n					$modtemp[''el_title''],\r\n					$con_side[$idcatside][''link''] .''&newflex2_''.$dedi_mod[''container''][''id''].''_''\r\n					.$dedi_mod[''modul''][''id''].''=insert&entry={entry}&flex2tpl=''.$modtemp[''el_unique_id''], \r\n					''_self'', $modtemp[''el_title'']);\r\n			}\r\n		}\r\n\r\n		return $pop_menu->get_menu_and_flush();\r\n}\r\n}\r\n\r\nif (!function_exists(''flex2_edit_menu'')) {\r\n	function flex2_edit_menu($title, $full_edit_link, $first, $last) {\r\n		global $dedi_mod,$con_side,$idcatside;\r\n        $flex2_title = $title;\r\n        $flex2_type_config = "advanced";\r\n        $flex2_full_edit_link = $full_edit_link;\r\n        $flex2_new = false;\r\n        $flex2_delete = true;\r\n        $flex2_up = !$first;\r\n        $flex2_down = !$last;\r\n        $flex2_ids = array(NULL);\r\n		$flex2_infos = array(\r\n                    ''container_number'' => $dedi_mod[''container''][''id''],\r\n                    ''pre_compiled'' => $flex2_full_edit_link,\r\n                    ''mod_repeat_id'' => $dedi_mod[''modul''][''id''],\r\n                    ''title'' => $flex2_title,\r\n                    ''base_url'' => $con_side[$idcatside][''link''],\r\n                    ''mode'' => $flex2_type_config\r\n				);\r\n		//menu erstellen\r\n		$layer_menu = _type_get_layer_menu($flex2_ids, $flex2_infos, $flex2_delete, $flex2_new, $flex2_up, $flex2_down);\r\n		return $layer_menu;\r\n	}\r\n}\r\n\r\n// **** END FUNCTION **************************************************************\r\n\r\nif ($mod[''test''] == "true") { echo "<hr><h2>Test Output Nr:".$dedi_mod[''modul''][''id'']."</h2>"; }\r\n\r\n// **** START PARAMETER **************************************************************\r\n\r\n// \r\n// Element hinzufuegene ausfuehren\r\nif (${''newflex2_''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''insert'') {\r\n	// Modul verschieben\r\n	if ($mod[''test''] == "true") { echo "<h3>New Element: ".$flex2tpl." at ".$entry."</h3>"; }\r\n	if (is_numeric($entry) ) {\r\n		$sql = "UPDATE $dedi_db[content] SET number=number+1 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."'' AND container=''".$dedi_mod[''container''][''id'']."'' AND number>''$entry''";\r\n		$db->query($sql);\r\n		$sql = "UPDATE $dedi_db[content_external] SET number=number+1 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."'' AND container=''".$dedi_mod[''container''][''id'']."'' AND number>''$entry''";\r\n		$db->query($sql);\r\n	}\r\n	if (is_numeric($flex2tpl)) {\r\n		echo flex2_set_val("flex2",$flex2tpl,$entry+1);\r\n	}\r\n\r\n	// Cache loeschen\r\n	clear_cache();\r\n	\r\n	// Seite neu laden\r\n	$entry++;\r\n	header (''Status: 302 Moved Temporarily'');\r\n	header (''Location:''.str_replace(''&amp;'', ''&'', $con_side[$idcatside][''link'']) ."&entry=$entry#flex2expander");\r\n	exit;\r\n\r\n}\r\n\r\n\r\n// **** END PARAMETER **************************************************************\r\n\r\n\r\n// neues Template?\r\nif(isset($action)) {\r\n	if ($action == "save") {\r\n		foreach ($con_content as $modtemp[''value'']) {\r\n			if (substr_count($modtemp[''value''],"new") >= 1) {\r\n				$modtemp[''con_config''] = explode (''.'', $modtemp[''value'']);\r\n				if ($mod[''test''] == "true") { echo "<br>value:";	print_r($modtemp[''value'']); }\r\n				if ($mod[''test''] == "true") { echo "<br>entry:".$entry; }\r\n				if (($modtemp[''con_config''][0]==$dedi_mod[''container''][''id'']) && (($entry+1)==$dedi_mod[''modul''][''id''])) {\r\n					$modtemp[''new_tpl_nr'']=substr($modtemp[''con_config''][1],3);\r\n					flex2_set_val("flex2",$modtemp[''new_tpl_nr''],0);\r\n					if ($mod[''test''] == "true") { echo "<br>new tpl Nr!".$modtemp[''new_tpl_nr'']; }\r\n				}\r\n			}\r\n		}\r\n	}\r\n}\r\n\r\n\r\n// **** spezial Tags definieren und ersetzen **************************************************************\r\n// funktioniert so nicht, da gb_pop nicht definiert ist.\r\n// $spezelements[''popup''] = "<a href=\\"{imageurl:1}\\" onclick=\\"return gb_pop({imagewidth:1}, {imageheight:1}, {imageurl:1}, ''{text:1}'')\\"  target=\\"_blank\\">{imagethumb:1}</a>";\r\n\r\n$spezelements[''popup''] = "<a href=\\"javascript:new_imagepopup(''{imageurl:1}'','''',''Fenster schliessen'','''',''{imagewidth:1}'',''{imageheight:1}'',''true'')\\">{imagethumb:1}</a>";\r\n\r\n// **** Tags definieren **************************************************************\r\n// filesize:1\r\n$elements[''filesize:1''] = <dedi:mod type="file" id=1 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:1''] != '''') {\r\n    if (is_file($elements[''filesize:1''])) {\r\n        $elements[''filesize:1''] = filesize($elements[''filesize:1'']);\r\n        if ($elements[''filesize:1''] > 1048576) $elements[''filesize:1''] = sprintf( "%01.2f", $elements[''filesize:1'']/1048576).'' MByte'';\r\n        else $elements[''filesize:1''] = ($elements[''filesize:1''] > 1024) ? sprintf( "%01.2f", $elements[''filesize:1'']/1024).'' KByte'': $elements[''filesize:1''].'' Byte'';\r\n    } else $elements[''filesize:1''] = '''';\r\n}\r\n// filesize:2\r\n$elements[''filesize:2''] = <dedi:mod type="file" id=2 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:2''] != '''') {\r\n    if (is_file($elements[''filesize:2''])) {\r\n        $elements[''filesize:2''] = filesize($elements[''filesize:2'']);\r\n        if ($elements[''filesize:2''] > 1048576) $elements[''filesize:2''] = sprintf( "%01.2f", $elements[''filesize:2'']/1048576).'' MByte'';\r\n        else $elements[''filesize:2''] = ($elements[''filesize:2''] > 1024) ? sprintf( "%01.1f", $elements[''filesize:2'']/1024).'' kByte'': $elements[''filesize:2''].'' Byte'';\r\n    } else $elements[''filesize:2''] = '''';\r\n}\r\n// filesize:3\r\n$elements[''filesize:3''] = <dedi:mod type="file" id=3 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:3''] != '''') {\r\n    if (is_file($elements[''filesize:3''])) {\r\n        $elements[''filesize:3''] = filesize($elements[''filesize:3'']);\r\n        if ($elements[''filesize:3''] > 1048576) $elements[''filesize:3''] = sprintf( "%01.2f", $elements[''filesize:3'']/1048576).'' MByte'';\r\n        else $elements[''filesize:3''] = ($elements[''filesize:3''] > 1024) ? sprintf( "%01.1f", $elements[''filesize:3'']/1024).'' kByte'': $elements[''filesize:3''].'' Byte'';\r\n    } else $elements[''filesize:3''] = '''';\r\n}\r\n\r\n// **** Tags definieren **************************************************************\r\n$elements[''file:1'']        = <dedi:mod type="file"  id="1" addslashes="true" menuoptions="false" />;\r\n$elements[''file:2'']        = <dedi:mod type="file"  id="2" addslashes="true" menuoptions="false" />;\r\n$elements[''file:3'']        = <dedi:mod type="file"  id="3" addslashes="true" menuoptions="false" />;\r\n$elements[''fileurl:1'']     = <dedi:mod type="file"  id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''fileurl:2'']     = <dedi:mod type="file"  id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''fileurl:3'']     = <dedi:mod type="file"  id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''filedesc:1'']    = <dedi:mod type="file"  id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''filedesc:2'']    = <dedi:mod type="file"  id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''filedesc:3'']    = <dedi:mod type="file"  id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n\r\n$elements[''link:1'']        = <dedi:mod type="link"  id="1" addslashes="true" menuoptions="false" />;\r\n$elements[''link:2'']        = <dedi:mod type="link"  id="2" addslashes="true" menuoptions="false" />;\r\n$elements[''link:3'']        = <dedi:mod type="link"  id="3" addslashes="true" menuoptions="false" />;\r\n$elements[''linkurl:1'']     = <dedi:mod type="link"  id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''linkurl:2'']     = <dedi:mod type="link"  id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''linkurl:3'']     = <dedi:mod type="link"  id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''linkdesc:1'']    = <dedi:mod type="link"  id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''linkdesc:2'']    = <dedi:mod type="link"  id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''linkdesc:3'']    = <dedi:mod type="link"  id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''linktarget:1'']  = <dedi:mod type="link"  id="1" addslashes="true" mode="target" menuoptions="false" />;\r\n$elements[''linktarget:2'']  = <dedi:mod type="link"  id="2" addslashes="true" mode="target" menuoptions="false" />;\r\n$elements[''linktarget:3'']  = <dedi:mod type="link"  id="3" addslashes="true" mode="target" menuoptions="false" />;\r\n\r\n$elements[''image:1'']       = <dedi:mod type="image" id="1" addslashes="true" menuoptions="false" />;\r\n$elements[''image:2'']       = <dedi:mod type="image" id="2" addslashes="true" menuoptions="false" />;\r\n$elements[''image:3'']       = <dedi:mod type="image" id="3" addslashes="true" menuoptions="false" />;\r\n$elements[''imageurl:1'']    = <dedi:mod type="image" id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''imageurl:2'']    = <dedi:mod type="image" id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''imageurl:3'']    = <dedi:mod type="image" id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''imagewidth:1'']  = <dedi:mod type="image" id="1" addslashes="true" mode="width" menuoptions="false" />;\r\n$elements[''imagewidth:2'']  = <dedi:mod type="image" id="2" addslashes="true" mode="width" menuoptions="false" />;\r\n$elements[''imagewidth:3'']  = <dedi:mod type="image" id="3" addslashes="true" mode="width" menuoptions="false" />;\r\n$elements[''imageheight:1''] = <dedi:mod type="image" id="1" addslashes="true" mode="height" menuoptions="false" />;\r\n$elements[''imageheight:2''] = <dedi:mod type="image" id="2" addslashes="true" mode="height" menuoptions="false" />;\r\n$elements[''imageheight:3''] = <dedi:mod type="image" id="3" addslashes="true" mode="height" menuoptions="false" />;\r\n$elements[''imagedesc:1'']   = <dedi:mod type="image" id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''imagedesc:2'']   = <dedi:mod type="image" id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''imagedesc:3'']   = <dedi:mod type="image" id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''imagethumb:1'']  = <dedi:mod type="image" id="1" addslashes="true" mode="thumb" menuoptions="false" />;\r\n$elements[''imagethumb:2'']  = <dedi:mod type="image" id="2" addslashes="true" mode="thumb" menuoptions="false" />;\r\n$elements[''imagethumb:3'']  = <dedi:mod type="image" id="3" addslashes="true" mode="thumb" menuoptions="false" />;\r\n//Gibt es mehrere Tags, bei denen type und id gleich sind, ist es wichtig, dass das letzt "gleiche" Element alle erweiterten\r\n//Konfigurationsvariablen enthaelt (z.B. folders, subfolders) . Den nur die Variablen des "letzten" Tags koennen im Formular\r\n//weiterverarbeitet werden. Andernfalls bleibt z.B. die Auswahl von bestimmten Dateitypen ohne Wirkung.\r\n\r\n$elements[''text:1'']        = <dedi:mod type="text"     id="1" title="MOD_VALUE[20]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:2'']        = <dedi:mod type="text"     id="2" title="MOD_VALUE[30]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:3'']        = <dedi:mod type="text"     id="3" title="MOD_VALUE[40]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:4'']        = <dedi:mod type="text"     id="4" title="MOD_VALUE[47]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:5'']        = <dedi:mod type="text"     id="5" title="MOD_VALUE[48]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:1'']    = <dedi:mod type="textarea" id="1" title="MOD_VALUE[21]" transform="MOD_VALUE[49]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:2'']    = <dedi:mod type="textarea" id="2" title="MOD_VALUE[31]" transform="MOD_VALUE[50]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:3'']    = <dedi:mod type="textarea" id="3" title="MOD_VALUE[41]" transform="MOD_VALUE[51]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:1'']     = <dedi:mod type="wysiwyg"  id="1" title="MOD_VALUE[22]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:2'']     = <dedi:mod type="wysiwyg"  id="2" title="MOD_VALUE[32]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:3'']     = <dedi:mod type="wysiwyg"  id="3" title="MOD_VALUE[42]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:1'']    = <dedi:mod type="wysiwyg2" id="1" title="MOD_VALUE[23]" features="MOD_VALUE[3]" styleclass="MOD_VALUE[28]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:2'']    = <dedi:mod type="wysiwyg2" id="2" title="MOD_VALUE[33]" features="MOD_VALUE[3]" styleclass="MOD_VALUE[28]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:3'']    = <dedi:mod type="wysiwyg2" id="3" title="MOD_VALUE[43]" features="MOD_VALUE[3]" styleclass="MOD_VALUE[28]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''editimage:1'']   = <dedi:mod type="image"    id="1" title="MOD_VALUE[24]" mode="editbutton" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''editimage:2'']   = <dedi:mod type="image"    id="2" title="MOD_VALUE[34]" mode="editbutton" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''editimage:3'']   = <dedi:mod type="image"    id="3" title="MOD_VALUE[44]" mode="editbutton" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''editlink:1'']    = <dedi:mod type="link"     id="1" title="MOD_VALUE[26]" mode="editbutton" addslashes="true" menuoptions="false" />;\r\n$elements[''editlink:2'']    = <dedi:mod type="link"     id="2" title="MOD_VALUE[36]" mode="editbutton" addslashes="true" menuoptions="false" />;\r\n$elements[''editlink:3'']    = <dedi:mod type="link"     id="3" title="MOD_VALUE[46]" mode="editbutton" addslashes="true" menuoptions="false" />;\r\n$elements[''editfile:1'']    = <dedi:mod type="file"     id="1" title="MOD_VALUE[25]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n$elements[''editfile:2'']    = <dedi:mod type="file"     id="2" title="MOD_VALUE[35]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n$elements[''editfile:3'']    = <dedi:mod type="file"     id="3" title="MOD_VALUE[45]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n\r\n\r\n// ****  Template **************************************************************\r\n$modv[''tpl_inner''] = ''MOD_VALUE[8]'';\r\nif (("MOD_VALUE[7]" == ''true'') && ($sess->name != ''dedi'')) {$modv[''tpl_inner''] = ''''; }\r\n\r\n//$modv[''tpl_title''] = "no unique key found";\r\n$modv[''tpl_title''] = "Kein Template";\r\n$modv[''tpl_activ''] = "active";\r\n$modtemp[''tpl_nr''] = flex2_get_val("flex2");\r\nif ($mod[''test''] == "true") echo "<br>tpl Nr:".$modtemp[''tpl_nr''];\r\nif ($modtemp[''tpl_nr''] != "") {\r\n	if ($mod[''test''] == "true") echo "<br>Search unique id";\r\n	for($i=112; array_key_exists($i, $dedi_mod[''value'']);$i=$i+10 ){\r\n		if ($mod[''test''] == "true") echo $i."->".$dedi_mod[''value''][$i].",";\r\n		if($modtemp[''tpl_nr''] == $dedi_mod[''value''][$i]) {\r\n			$modtemp[''tpl_key''] = $i;\r\n		}\r\n	}\r\n	if($modtemp[''tpl_key''] != 0){\r\n		$modv[''tpl_inner''] = $dedi_mod[''value''][$modtemp[''tpl_key'']-1 ];\r\n		$modv[''tpl_title''] = $dedi_mod[''value''][$modtemp[''tpl_key'']-2 ];\r\n		$modv[''tpl_activ''] = $dedi_mod[''value''][$modtemp[''tpl_key'']+1 ];\r\n	} else {\r\n		$modv[''tpl_title''] = "no unique key found";\r\n		if ($mod[''test''] == "true") echo "<br>no unique key found for ".$modtemp[''tpl_nr'']."; tpl_key ".$modtemp[''tpl_key''];\r\n	} \r\n	\r\n} else {\r\n	if ($dedi_mod[''modul''][''id''] == ''1'') {\r\n		$modv[''tpl_inner''] = '''';\r\n	} \r\n	//$modv[''tpl_title''] = "no unique key found";\r\n	if ($mod[''test''] == "true") echo "<br>no unique key found";\r\n}\r\n$modv[''tpl_nav''] = ''MOD_VALUE[10]'';\r\n\r\n// **** Allgemeine Tags definieren **************************************************************\r\n/*\r\n$sql = "SELECT B.username, B.name, B.surname, B.email, A.lastmodified FROM ".$dedi_db[''content'']." A, ".$dedi_db[''users'']." B WHERE A.idsidelang=".$con_side[$idcatside][''idsidelang'']." AND A.container=".$dedi_mod[''container''][''id'']." AND A.number=".$dedi_mod[''modul''][''id'']." AND A.author=B.user_id";\r\n$db->query($sql);\r\n$db->next_record();\r\n$elements1[''username''] = $db->f(''username'');\r\n$elements1[''name''] = $db->f(''name'');\r\n$elements1[''surname''] = $db->f(''surname'');\r\n$elements1[''email''] = $db->f(''email'');\r\n$elements1[''date''] = date(''d.m.Y'',$db->f(''lastmodified''));\r\n*/\r\n\r\n$elements1[''font1'']  = ''MOD_VALUE[1]'';\r\n$elements1[''font2'']  = ''MOD_VALUE[2]'';\r\n$elements1[''author''] = $con_side[$idcatside][''meta_author''];\r\n$elements1[''date'']   = date(''d.m.Y'',$con_side[$idcatside][''lastmodified'']);\r\n$elements1[''created_date''] = date(''d.m.Y'',$con_side[$idcatside][''created'']);\r\nif (strpos($modv[''tpl_inner''],''{username}'')!==FALSE || strpos($modv[''tpl_inner''],''{name}'')!==FALSE || strpos($modv[''tpl_inner''],''{surname}'')!==FALSE || strpos($modv[''tpl_inner''],''{email}'')!==FALSE) {\r\n	$sql = ''SELECT username, name, surname, email FROM ''.$dedi_db[''users''].'' WHERE user_id=''.$con_side[$idcatside][''author''];\r\n	$db->query($sql);\r\n	$db->next_record();\r\n	$elements1[''username''] = $db->f(''username'');\r\n	$elements1[''name''] = $db->f(''name'');\r\n	$elements1[''surname''] = $db->f(''surname'');\r\n	$elements1[''email''] = $db->f(''email'');\r\n}\r\n\r\n// **** Template mit den spez Elementen ersetzen\r\nforeach($spezelements AS $k => $v){\r\n$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n\r\nif($dedi_mod[''modul''][''id''] == $entry){\r\n	if ($mod[''test''] == "true") echo "<br>Anker ausgegeben";\r\n	$modv[''tpl_inner''] = ''<a name="flex2expander"><!-- expander --></a>''.$modv[''tpl_inner''];\r\n}\r\n\r\n// **** Editbutton einfuegen, wenn ein File-Element Image-Element vorhanden ist.\r\n$modv[''tpl_inner''] = preg_replace("/\\{file(\\S{0,9}):1\\}/" ,"{editfile:1}{file\\\\1:1}"  ,$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{file(\\S{0,9}):2\\}/" ,"{editfile:2}{file\\\\1:2}"  ,$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{file(\\S{0,9}):3\\}/" ,"{editfile:3}{file\\\\1:3}"  ,$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{image(\\S{0,9}):1\\}/","{editimage:1}{image\\\\1:1}",$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{image(\\S{0,9}):2\\}/","{editimage:2}{image\\\\1:2}",$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{image(\\S{0,9}):3\\}/","{editimage:3}{image\\\\1:3}",$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{link(\\S{0,9}):1\\}/" ,"{editlink:1}{link\\\\1:1}"  ,$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{link(\\S{0,9}):2\\}/" ,"{editlink:2}{link\\\\1:2}"  ,$modv[''tpl_inner''],1);\r\n$modv[''tpl_inner''] = preg_replace("/\\{link(\\S{0,9}):3\\}/" ,"{editlink:3}{link\\\\1:3}"  ,$modv[''tpl_inner''],1);\r\n\r\nif ($mod[''test''] == "true") echo "<br />tpl:".$modv[''tpl_inner''];\r\n\r\n// **** speicher ob es sich um das erste oder um das letzt Modul handelt\r\n$modv[''is_first'']  = ($dedi_mod[''modul''][''id''] == ''1'') ? true:false;\r\n$modv[''is_last'']   = (bool) $dedi_mod[''modul''][''lastentry''];\r\n// ID die wievielte Wiederholung des Modules es ist\r\n$modv[''repeat_id''] = $dedi_mod[''modul''][''id''];\r\n// Anz Eintraege pro Seite\r\n$modv[''max_items''] = MOD_VALUE[5];\r\n// Nummer des 1 Eintrags der auf diese Seite dargestellt werden soll (wird nicht verwendet ???)\r\n$modv[''page''] = (is_numeric($_REQUEST[''page''])) ? 1:$_REQUEST[''page''];\r\n\r\n// ****\r\n// Fuer alle Elemente: preg_match_all(''/\\{([^\\}]+)\\}/im'', $modv[''tpl_inner''], $test);\r\n// Fuer alle Elemente mit : und einer Zahl: preg_match_all(''/\\{(([^\\}]+):\\d)\\}/im'', $modv[''tpl_inner''], $test);\r\npreg_match_all(''/\\{(([^\\}]+):\\d)\\}/im'', $modv[''tpl_inner''], $modtemp[''tags'']);\r\n\r\n\r\n// **** Template der Elemente  **************************************************************\r\nif ($dedi_side[''edit''] || $dedi_side[''edit_all'']) {\r\n    // Menus nur beim ersten Aufruf generieren:\r\n    if ( !isset(${''flex2''.$dedi_mod[''container''][''id'']}) || $dedi_mod[''modul''][''id''] == 1) {\r\n    	if ($mod[''test''] == "true") { echo "<br>Menu bauen"; }\r\n    	${''flex2''.$dedi_mod[''container''][''id'']} = flex2_popup_menu();\r\n    	\r\n    } else {\r\n    	if ($mod[''test''] == "true") { echo "<br>Menu vorhanden"; }\r\n    \r\n    }\r\n    \r\n    \r\n    // ****  Link fuer "an 1. Position einfuegen" erstellen **************************************************************\r\n    $modtemp[''new_at_top''] = '''';\r\n    $typegroup_conf = '''';\r\n    foreach($modtemp[''tags''][1] AS $v){\r\n        $k = split(":",$v);\r\n        $modtemp[''new_at_top''] .= flex2_get_edit_string($k[0],$k[1]);\r\n        $typegroup_conf .= flex2_get_typegroup($k[0],$k[1]);\r\n    }\r\n    $modtemp[''new_at_top''] = substr($modtemp[''new_at_top''], 0, -1);\r\n    if ($mod[''test''] == "true") { echo "<br>new_at_top Edit_Link:".$modtemp[''new_at_top'']; }\r\n \r\n	if ($modv[''is_first'']) {\r\n    	$modv[''new_at_top''] = ''MOD_VALUE[13]'';\r\n    	$modv[''new_at_top''] = str_replace("{elements}", '''', $modv[''new_at_top'']);\r\n    	$modv[''new_at_top''] = str_replace("{title}", '''', $modv[''new_at_top'']);\r\n    	$modv[''new_at_top''] = str_replace("{edit}", ''<img src="cms/img/space.gif" border="0" height="14" width="18">'', $modv[''new_at_top'']);\r\n    	$modv[''new_at_top''] = str_replace("{insert}", str_replace(''{entry}'', 0 ,${''flex2''.$dedi_mod[''container''][''id'']}), $modv[''new_at_top'']);\r\n\r\n    	//if ($mod[''test''] == "true") { echo "<br>Edit_Top:".$modv[''new_at_top'']; }\r\n	}\r\n	if ($modtemp[''tpl_nr''] == '''' && $modv[''is_first'']) {\r\n    	if ($mod[''test''] == "true") { echo "<br>Kein Template und erster Eintrag "; }\r\n		// wenn noch kein Element vorhanden 	\r\n 		$mod[''typegroup''] = '''';\r\n	} else {\r\n	    $mod[''typegroup''] = ''MOD_VALUE[13]'';\r\n    	// Element Title\r\n    	if ("MOD_VALUE[14]" == ''true'') {\r\n    	    $mod[''typegroup''] = str_replace("{title}", ''<font face="Verdana, Arial, Helvetica" size="1">''.$modv[''tpl_title''].''</font>'', $mod[''typegroup'']);\r\n    	} else {\r\n    	    $mod[''typegroup''] = str_replace("{title}", '''', $mod[''typegroup'']);\r\n    	}\r\n    	// PopUp Element hinzufuegen \r\n    	$mod[''typegroup''] = str_replace("{edit}", flex2_edit_menu($modv[''tpl_title''], $modtemp[''new_at_top''], $modv[''is_first''], $modv[''is_last'']), $mod[''typegroup'']);\r\n    	$mod[''typegroup''] = str_replace("{insert}", str_replace(''{entry}'', $dedi_mod[''modul''][''id''] ,${''flex2''.$dedi_mod[''container''][''id'']}), $mod[''typegroup'']);\r\n    	// PopUp Element bearbeiten\r\n    	\r\n    	//if ($mod[''test''] == "true") { echo "<br>Edit:".$mod[''typegroup'']; }\r\n	}\r\n}\r\n\r\n// **** Template abarbeiten  **************************************************************\r\n\r\n// Template mit den DeDi-Tags ersetzen\r\nforeach($elements AS $k => $v){\r\n$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n\r\n// Template mit den allgemeinem Inhalt ersetzen\r\nforeach($elements1 AS $k => $v){\r\n$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n\r\n// NavTemplate mit den allgemeinem Inhalt ersetzen\r\nforeach($elements1 AS $k => $v){\r\n$modv[''tpl_nav''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_nav'']);\r\n}\r\nif ($sess->name == ''dedi'' && ($dedi_side[''edit''] || $dedi_side[''edit_all''])) {\r\n    $modv[''tpl_inner''] = str_replace("{elements}", $modv[''tpl_inner''], $mod[''typegroup'']);\r\n}\r\n\r\n// ****  **************************************************************\r\n//Alle Variablen, die nur innerhalb des gecachten PHPs sichtbar sind,\r\n//auch fuer dynamisches PHP zur Verfuegung stellen\r\necho ''<DEDIPHP>'';\r\nforeach($modv AS $k => $v){\r\necho ''$mvars["''.$k.''"] = "''. addslashes($v) .''";''."\\n";\r\n}\r\necho ''</DEDIPHP>'';\r\n\r\nif ($mod[''test''] == "true") { echo "<hr>"; }\r\nunset($modv, $modtemp, $elements, $elements1, $spezelements, $typegroup_conf, $k, $v);\r\n</DEDIPHP:CACHE>\r\n<DEDIPHP>\r\n// ****  **************************************************************\r\n// Fals eine Nummer fuer den ersten darzustellenden Eintrag uebergeben wurde dies in $page speichern\r\nif(isset($page)) {\r\n    $page = (! is_numeric($_REQUEST[''page''])) ? 1:$_REQUEST[''page''];\r\n} else {\r\n    $page = 1;\r\n}\r\n\r\n// Fals eine Nummer fuer die Anzahl darzustellenden Eintraege uebergeben wurde die Modulvorgabe ueberschreiben\r\nif(isset($items)) {\r\n    $mvars[''max_items''] = (! is_numeric($_REQUEST[''items''])) ? 1:$_REQUEST[''items''];\r\n}\r\n\r\n\r\n// Nur wenn die Wiederholung im Bereich ist der augegeben werden soll.\r\nif($dedi_mod[''modul''][''id''] >= $page\r\n&& ($dedi_mod[''modul''][''id''] < ($mvars[''max_items'']+$page)\r\n||  $mvars[''max_items''] == 0)) {\r\n\r\n    //Insert Element at top\r\n    echo stripslashes($mvars[''new_at_top'']);\r\n    \r\n    //Inhalt\r\n    echo stripslashes($mvars[''tpl_inner'']);\r\n	\r\n	// Navigation nur Ausgeben wenn noetig\r\n	if ($mvars[''max_items''] != 0) { \r\n		$mvars[''nav''] = false;\r\n    	// Navigation auf die anderen Seiten einfuegen\r\n    	$mvars[''tpl_nav''] = stripslashes($mvars[''tpl_nav'']);\r\n    	if($mvars[''is_last''] == true || $mvars[''repeat_id''] == ($mvars[''max_items'']+$page-1)) {\r\n        	if($page > 1) {\r\n            	if(($page-$mvars[''max_items'']) < 1)\r\n                	$last = 1;\r\n	            else\r\n    	            $last = $page-$mvars[''max_items''];\r\n            \r\n        	    //echo $mod[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&page=''.$last.''">Zur&#252;ck</a>'';\r\n            	$mvars[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;page=''.$last.''">MOD_VALUE[12]</a>'';\r\n    	        $mvars[''tpl_nav''] = str_replace(''{prev}'', $mvars[''repl_string''], $mvars[''tpl_nav'']);\r\n				$mvars[''nav''] = true;\r\n	        }\r\n    	    else \r\n        	    $mvars[''tpl_nav''] = str_replace(''{prev}'', '''', $mvars[''tpl_nav'']);\r\n        \r\n	        if($mvars[''is_last''] != true) {\r\n    	        $next = $page+$mvars[''max_items''];\r\n        	    \r\n            	//echo $mod[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&page=''.$next.''">Vor</a>'';\r\n	            $mvars[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;page=''.$next.''">MOD_VALUE[11]</a>'';\r\n    	        $mvars[''tpl_nav''] = str_replace(''{next}'', $mvars[''repl_string''], $mvars[''tpl_nav'']);\r\n				$mvars[''nav''] = true;\r\n	        } \r\n    	    else\r\n        	    $mvars[''tpl_nav''] = str_replace(''{next}'', '''', $mvars[''tpl_nav'']);\r\n       		\r\n	       if (	$mvars[''nav''] )\r\n 		        echo $mvars[''tpl_nav''];\r\n	    }\r\n	}\r\n}\r\n\r\nunset($mvars);\r\n</DEDIPHP>', '', 0, 1, 1, 1106778144, 1135709285, 'mod:7b1c741bb9e90ce7ada1ed43b57f70c7:e9f845a8', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (11, 'DeDi-Flex', '0.92', 'Contentliste', 'Dieses Modul bietet die Möglichkeit beim erstellen der Seite flexibel Elemente, oder Elementgruppen wie z.b. "Text links - Bild rechts" einzufügen.', '<?php\r\n// ----------------------------------------------------------------------------\r\n//configmode\r\n$mip_form[''999''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''999''][''cat''] = ''option'';\r\n$mip_form[''999''][''size''] = ''1'';\r\n$mip_form[''999''][''option_desc''][] = ''Normal'';\r\n$mip_form[''999''][''option_val''][] =  '''';\r\n$mip_form[''999''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''999''][''option_val''][] =  ''advanced'';\r\n$mip_form[''999''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''999''][''option_val''][] =  ''hidden'';\r\n$mip_form[''999''][''cms_var''] = ''MOD_VAR[999]'';\r\n$mip_form[''999''][''cms_val''] = $dedi_mod[''value''][''999''];\r\n$mip_form[''999''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''999'']);//configmode\r\n\r\n// Hier werden alle Nummern angegeben die in der Normal-Ansicht nicht erscheinen \r\n$mip_form[''hide_in_standard_mode''] = array(0,1,2,3,4,5);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''999''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''999''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple, advanced and all config (not hidden config)\r\nelse if($dedi_mod[''value''][''999''] == '''' || $dedi_mod[''value''][''999''] == ''advanced''){\r\n\r\n// ----------------------------------------------------------------------------\r\n\r\n// Normale Konfiguration \r\n\r\n\r\n// Anzahl der Spalten\r\nif ($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] <= ''0'') $dedi_mod[''value''][''0''] = ''8'';\r\nif ($dedi_mod[''value''][''9''] != ''0'') $dedi_mod[''value''][''0''] = round($dedi_mod[''value''][''0'']+$dedi_mod[''value''][''9'']);\r\n$mip_form[''0''][''cat''] = ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''].'' {font1}'';\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font''].'' {font2}'';\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''3''][''desc''] = $mod_lang[''gen_font''].'' {font3}'';\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''4''][''desc''] = $mod_lang[''gen_font''].'' {font4}'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''5''][''desc''] = $mod_lang[''gen_font''].'' {font5}'';\r\n$mip_form[''5''][''cat''] = ''app_css'';\r\n$mip_form[''5''][''output_cat''] = ''option'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''6''][''desc''] = ''Template-Beschriftung ausgeben'';\r\n$mip_form[''6''][''cat''] = ''chk'';\r\n$mip_form[''6''][''option_var''][''0''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''option_val''][''0''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''6''][''option_val_select''][''0''] = ''true'';\r\n\r\n$mip_form[''7''][''desc''] = ''Element auch an 1.Position einfügen'';\r\n$mip_form[''7''][''cat''] = ''chk'';\r\n$mip_form[''7''][''option_var''][''0''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''option_val''][''0''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''7''][''option_val_select''][''0''] = ''true'';\r\n\r\n$mip_form[''8''][''desc''] = ''Elemente auf jeder Zeile einfügen'';\r\n$mip_form[''8''][''cat''] = ''chk'';\r\n$mip_form[''8''][''option_var''][''0''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''option_val''][''0''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''8''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Ende der Konfiguration\r\n\r\n// ----------------------------------------------------------------------------\r\n// Ausgabe\r\n//if simple mode\r\nif($dedi_mod[''value''][''999''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''7'']);\r\nmip_formsp($mip_form[''8'']);\r\n\r\nif ($dedi_mod[''value''][10] == '''') $dedi_mod[''value''][10] = ''Titel'';\r\nif ($dedi_mod[''value''][11] == '''') $dedi_mod[''value''][11] = ''<h1>{text}</h1>'';\r\nif ($dedi_mod[''value''][20] == '''') $dedi_mod[''value''][20] = ''Untertitel'';\r\nif ($dedi_mod[''value''][21] == '''') $dedi_mod[''value''][21] = ''<h2>{text}</h2>'';\r\nif ($dedi_mod[''value''][30] == '''') $dedi_mod[''value''][30] = ''Text'';\r\nif ($dedi_mod[''value''][31] == '''') $dedi_mod[''value''][31] = ''{textarea}'';\r\nif ($dedi_mod[''value''][40] == '''') $dedi_mod[''value''][40] = ''Bild'';\r\nif ($dedi_mod[''value''][41] == '''') $dedi_mod[''value''][41] = ''{image}'';\r\nif ($dedi_mod[''value''][50] == '''') $dedi_mod[''value''][50] = ''WYSIWYG2'';\r\nif ($dedi_mod[''value''][51] == '''') $dedi_mod[''value''][51] = ''{wysiwyg2}'';\r\nif ($dedi_mod[''value''][60] == '''') $dedi_mod[''value''][60] = ''WYSIWYG'';\r\nif ($dedi_mod[''value''][61] == '''') $dedi_mod[''value''][61] = ''{wysiwyg}'';\r\nif ($dedi_mod[''value''][70] == '''') $dedi_mod[''value''][70] = ''Link'';\r\nif ($dedi_mod[''value''][71] == '''') $dedi_mod[''value''][71] = ''{link}'';\r\nif ($dedi_mod[''value''][80] == '''') $dedi_mod[''value''][80] = ''Bildpopup'';\r\nif ($dedi_mod[''value''][81] == '''') $dedi_mod[''value''][81] = ''<a href="javascript:new_imagepopup(\\''{imageurl}\\'',\\''\\'',\\''Fenster schliessen\\'',\\''\\'',\\''{imagewidth}\\'',\\''{imageheight}\\'',\\''true\\'')" onmouseover="on(\\''Bild anzeigen\\'');" onmouseout="off();">{imagethumb}</a>'';\r\n?>\r\n<br>\r\n<table cellspacing="0" cellpadding="0" border="0" width="640">\r\n  <tr>\r\n    <td width="100%">&nbsp;Name&nbsp;</td>\r\n    <td>&nbsp;Elementgruppe <br><small>{text}, {textarea}, {wysiwyg}, {wysiwyg2}, {sourceode}, {image}, {imageurl}, {imagethumb}, {imagewidth}, {imageheight}, {link}, {linkurl}, {linkdesc} ,{linktarget}, {editlink}, {fileurl}, {editfile}, {filedesc}, {filename}, {filesize}, {font1-5}</small>&nbsp;</td>\r\n  </tr>\r\n<?php\r\n// Konfiguration der einzelnen Spalten\r\nfor ($tmp_mod[''i''] = 1; $tmp_mod[''i''] <= $dedi_mod[''value''][''0'']; $tmp_mod[''i'']++) {\r\n    $y = round($tmp_mod[''i'']*10);\r\n    $tmp_mod[''row''][''1''] = $y+1;\r\n?>\r\n  <tr>\r\n    <td valign="top" width="100%" nowrap>&nbsp;<?php echo $tmp_mod[''i'']; ?>. Elementgruppe&nbsp;<br>\r\n   <input name="MOD_VAR[<?php echo $y; ?>]" type="text" value="<?php echo $dedi_mod[''value''][$y];?>" size="50">&nbsp;</td>\r\n    <td>&nbsp;<textarea name="MOD_VAR[<?php echo $tmp_mod[''row''][''1'']; ?>]" cols="45" rows="6" style="width:400"><?php echo $dedi_mod[''value''][$tmp_mod[''row''][''1'']];?></textarea>&nbsp;</td>\r\n  </tr>\r\n<?php\r\n}\r\n?>\r\n  <tr>\r\n    <td colspan="6" align="right"><select name="MOD_VAR[9]" size="1" onchange="document.editform.action.value=''change'';document.editform.submit();">\r\n      <option value="0" selected>Elementgruppe erstellen - löschen</option>\r\n      <?php if ($dedi_mod[''value''][''0''] >= ''4'') echo "<option value=\\"-3\\">-3</option>"; ?>\r\n      <?php if ($dedi_mod[''value''][''0''] >= ''3'') echo "<option value=\\"-2\\">-2</option>"; ?>\r\n      <?php if ($dedi_mod[''value''][''0''] >= ''2'') echo "<option value=\\"-1\\">-1</option>"; ?>\r\n      <option value="1">+1</option>\r\n      <option value="2">+2</option>\r\n      <option value="3">+3</option>\r\n    </select></td>\r\n  </tr>\r\n</table>\r\n<?php \r\n\r\n// ----------------------------------------------------------------------------\r\n}\r\n\r\nunset($mip_form, $tmp_mod, $y); \r\n?>', '<?PHP\r\n// ************************************************************************************************\r\n// Seite neu laden\r\nif (!function_exists(''clear_cache'')) {\r\n	function clear_cache () {\r\n		global $mod, $dedi_mod, $con_side, $cfg_dedi,$db, $dedi_db, $idcatside;\r\n\r\n		// Seitenkopien suchen\r\n		$sql = "SELECT idcatside\r\n                 	FROM ".$dedi_db[''side_lang'']." A\r\n                         LEFT JOIN ".$dedi_db[''cat_side'']." B USING(idside)\r\n                         WHERE A.idsidelang=''".$con_side[$idcatside][''idsidelang'']."''";\r\n		$db->query($sql);\r\n		while ($db->next_record()) $list[] = $db->f(''idcatside'');\r\n\r\n		// Status der Seite auf geändert stellen\r\n		change_code_status($list, ''1'', ''idcatside'');\r\n	}\r\n}\r\n\r\n// Element hinzufügen ausführen;\r\n// $element_nr entspricht $entry beim Löschen, definiert den Ort\r\n// $template_nr entspricht $entry beim hinzufügen\r\nif (!function_exists(''newElement'')) {\r\n	function newElement ($template_nr,$element_nr) {\r\n		global $mod, $dedi_mod, $con_side, $cfg_dedi, $dedi_db, $db, $idcatside;\r\n\r\n		// Template Reihenfolge auslesen\r\n		$sql = "SELECT *\r\n                 	FROM ".$dedi_db[''content_external'']."\r\n                         WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                         AND container=''".$dedi_mod[''container''][''id'']."''\r\n                         AND idtype=''flex_sort''";\r\n		$db->query($sql);\r\n		echo $db->f(''value'');\r\n\r\n		// wenn bereits Template vorhanden sind , das neue Template einfügen; ansonsten einen neune Eintrag\r\n		if ($db->next_record()) {\r\n			// Template an Position\r\n			$mod[''sort''] = explode('','', $db->f(''value''));\r\n			array_splice($mod[''sort''],$element_nr-1,0,$template_nr);\r\n			$mod[''sort''] = implode('','', $mod[''sort'']);\r\n			$sql = "UPDATE ".$dedi_db[''content_external'']."\r\n                         	SET value=''".$mod[''sort'']."''\r\n                                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                                 AND idtype=''flex_sort''";\r\n		} else {\r\n                 	$sql = "INSERT INTO ".$dedi_db[''content_external'']."\r\n                         	(idsidelang, container, idtype, value)\r\n                                 VALUES (''".$con_side[$idcatside][''idsidelang'']."'', ''".$dedi_mod[''container''][''id'']."'', ''flex_sort'', ''".$template_nr."'')";\r\n		}\r\n		$db->query($sql);\r\n\r\n		// Alle unter dem neuen Element nach unten schieben\r\n		// Container die weiter unten sind nach unten verschieben (typenumber=typenumber+100)\r\n		$mod[''sort''] = round($element_nr*100);\r\n		$sql = "UPDATE ".$dedi_db[''content'']."\r\n                 	SET typenumber=typenumber+100\r\n                         WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                         AND container=''".$dedi_mod[''container''][''id'']."''\r\n                         AND typenumber>''".$mod[''sort'']."''";\r\n		$db->query($sql);\r\n	}\r\n}\r\n\r\n// Element hinzufügene ausführen\r\nif (${''flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''new'') {\r\n	$sql = "SELECT *\r\n         	FROM ".$dedi_db[''content_external'']."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND idtype=''flex_sort''";\r\n	$db->query($sql);\r\n	if ($db->next_record()) {\r\n		$sql = "UPDATE ".$dedi_db[''content_external'']."\r\n                 	SET value=''".$db->f(''value'').'',''.$entry."''\r\n                         WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                         AND container=''".$dedi_mod[''container''][''id'']."''\r\n                         AND idtype=''flex_sort''";\r\n	} else {\r\n		$sql = "INSERT INTO ".$dedi_db[''content_external'']."\r\n                 	(idsidelang, container, idtype, value)\r\n                         VALUES (''".$con_side[$idcatside][''idsidelang'']."'', ''".$dedi_mod[''container''][''id'']."'', ''flex_sort'', ''".$entry."'')";\r\n         }\r\n         $db->query($sql);\r\n}\r\n\r\n// erstes Element hinzufügen\r\nif (${''flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''first'') {\r\n	newElement($entry,1);\r\n\r\n	// Cache löschen\r\n	clear_cache();\r\n\r\n	// Seite neu laden\r\n	header (''Status: 302 Moved Temporarily'');\r\n	header (''Location:''.str_replace(''&amp;'',''&'',$con_side[$idcatside][''link'']));\r\n	exit;\r\n}\r\n\r\n// Element nach unten verschieben\r\nif (${''flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''down'') {\r\n	$sql = "SELECT *\r\n         	FROM ".$dedi_db[''content_external'']."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND idtype=''flex_sort''";\r\n	$db->query($sql);\r\n	$db->next_record();\r\n	$mod[''sort''] = explode('','', $db->f(''value''));\r\n	$mod[''sort2''] = $mod[''sort''][$entry];\r\n	$mod[''sort''][$entry] = $mod[''sort''][$entry-1];\r\n	$mod[''sort''][$entry-1] = $mod[''sort2''];\r\n	$mod[''sort''] = implode('','', $mod[''sort'']);\r\n	$sql = "UPDATE ".$dedi_db[''content_external'']."\r\n         	SET value=''".$mod[''sort'']."''\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND idtype=''flex_sort''";\r\n	$db->query($sql);\r\n	$mod[''sort''] = round($entry*100);\r\n	$mod[''sort2''] = round($entry*100+100);\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber-".round($mod[''sort'']+100)."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN ".round($mod[''sort'']+100)." AND ".round($mod[''sort2'']+100)."";\r\n	$db->query($sql);\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber+100\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN ".$mod[''sort'']." AND ".$mod[''sort2'']."";\r\n	$db->query($sql);\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber+".$mod[''sort'']."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN 0 AND 100";\r\n	$db->query($sql);\r\n\r\n	// Cache löschen\r\n	clear_cache();\r\n\r\n	// Seite neu laden\r\n	header (''Status: 302 Moved Temporarily'');\r\n	header (''Location:''.str_replace(''&amp;'',''&'',$con_side[$idcatside][''link'']));\r\n	exit;\r\n}\r\n\r\n// Element nach oben verschieben\r\nif (${''flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''up'') {\r\n	$sql = "SELECT *\r\n         	FROM ".$dedi_db[''content_external'']."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND idtype=''flex_sort''";\r\n	$db->query($sql);\r\n	$db->next_record();\r\n	$mod[''sort''] = explode('','', $db->f(''value''));\r\n	$mod[''sort2''] = $mod[''sort''][$entry-1];\r\n	$mod[''sort''][$entry-1] = $mod[''sort''][$entry-2];\r\n	$mod[''sort''][$entry-2] = $mod[''sort2''];\r\n	$mod[''sort''] = implode('','', $mod[''sort'']);\r\n	$sql = "UPDATE ".$dedi_db[''content_external'']."\r\n         	SET value=''".$mod[''sort'']."''\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND idtype=''flex_sort''";\r\n	$db->query($sql);\r\n	$mod[''sort''] = round($entry*100-100);\r\n	$mod[''sort2''] = round($entry*100);\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber-".round($mod[''sort'']+100)."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n     \r\n            AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN ".round($mod[''sort'']+100)." AND ".round($mod[''sort2'']+100)."";\r\n	$db->query($sql);\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber+100\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN ".$mod[''sort'']." AND ".$mod[''sort2'']."";\r\n	$db->query($sql);\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber+".$mod[''sort'']."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN 0 AND 100";\r\n	$db->query($sql);\r\n\r\n	// Cache löschen\r\n	clear_cache();\r\n\r\n	// Seite neu laden\r\n	header (''Status: 302 Moved Temporarily'');\r\n	header (''Location:''.str_replace(''&amp;'',''&'',$con_side[$idcatside][''link'']));\r\n	exit;\r\n}\r\n\r\n// Element löschen\r\nif (${''flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''delete'') {\r\n	// Template reihenfolge auslesen\r\n	$sql = "SELECT *\r\n         	FROM ".$dedi_db[''content_external'']."\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND idtype=''flex_sort''";\r\n	$db->query($sql);\r\n	$db->next_record();\r\n\r\n	// Template löschen\r\n	$mod[''sort''] = explode('','', $db->f(''value''));\r\n	unset($mod[''sort''][$entry-1]);\r\n	$mod[''sort''] = implode('','', $mod[''sort'']);\r\n\r\n	//wenn noch Template vorhanden sind: Eintrag updaten ansonsten Eintrag löschen (in [content_external])\r\n	if (!empty($mod[''sort''])) {\r\n		$sql = "UPDATE ".$dedi_db[''content_external'']."\r\n                 	SET value=''".$mod[''sort'']."''\r\n                         WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                         AND container=''".$dedi_mod[''container''][''id'']."''\r\n                         AND idtype=''flex_sort''";\r\n	} else {\r\n		$sql = "DELETE FROM ".$dedi_db[''content_external'']."\r\n                 	WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                         AND container=''".$dedi_mod[''container''][''id'']."''\r\n                         AND idtype=''flex_sort''";\r\n	}\r\n	$db->query($sql);\r\n\r\n	// alte Container des zu löschenden Templates auch löschen (alle Container zwischen Nr*100 und Nr*100+100)\r\n	$mod[''sort''] = round($entry*100);\r\n	$mod[''sort2''] = round($entry*100+100);\r\n	$sql = "DELETE FROM ".$dedi_db[''content'']."\r\n         	WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber BETWEEN ".$mod[''sort'']." AND ".$mod[''sort2'']."";\r\n	$db->query($sql);\r\n\r\n	// Container die weiter unten sind nach oben verschieben (typenumber=typenumber-100)\r\n	$sql = "UPDATE ".$dedi_db[''content'']."\r\n         	SET typenumber=typenumber-100\r\n                 WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n                 AND container=''".$dedi_mod[''container''][''id'']."''\r\n                 AND typenumber > ''".$mod[''sort'']."''";\r\n	$db->query($sql);\r\n\r\n	// Cache löschen\r\n	clear_cache();\r\n\r\n	// Seite neu laden\r\n	header (''Status: 302 Moved Temporarily'');\r\n	header (''Location:''.str_replace(''&amp;'',''&'',$con_side[$idcatside][''link'']));\r\n	exit;\r\n}\r\n\r\n// neues Element an Position x einfügen\r\nif (${''flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''insert'') {\r\n	newElement($templ,$entry);\r\n\r\n	// Cache löschen\r\n	clear_cache();\r\n\r\n	// Seite neu laden\r\n	header (''Status: 302 Moved Temporarily'');\r\n	header (''Location:''.str_replace(''&amp;'',''&'',$con_side[$idcatside][''link'']));\r\n	exit;\r\n}\r\n\r\n// ************************************************************************************************\r\n// Ausgabe\r\n\r\nif (!function_exists(''popup_menu'')) {\r\n	function popup_menu($nr) {\r\n		global $mod, $dedi_mod,$dedi_side,$con_side, $cfg_dedi,$idcatside;\r\n\r\n		// Element hinzufügen\r\n		if ($dedi_mod[''modul''][''id''] == ''1'' && ($dedi_side[''edit''] || $dedi_side[''edit_all''])) {\r\n			echo "<a href=\\"javascript:void(0)\\" onMouseover=\\"showmenu(event,linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_''.$nr."''])\\" onMouseout=\\"delayhidemenu()\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_plus.gif\\" border=\\"0\\"></a><script language=\\"JavaScript1.2\\">\\n";\r\n			echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_''.$nr."'']=''<table width=\\"140\\" border=\\"0\\" cellpadding=\\"1\\" cellspacing=\\"0\\" bgcolor=\\"#5A7BAD\\"><tr><td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\"><tr><td class=\\"menutitle\\"><b><font size=\\"1\\">&nbsp;Element hinzufügen&nbsp;:".$nr."</font></b></td></tr></table><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"2\\" cellspacing=\\"0\\" bgcolor=\\"#FFFFFF\\">''\\n";\r\n			for ($mod[''i''] = 1; $mod[''i''] <= $dedi_mod[''value''][''0'']; $mod[''i'']++) {\r\n				$mod[''y''] = round($mod[''i'']*10);\r\n				echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_''.$nr."'']+=''<tr><td class=\\"menurow\\" onclick=\\"document.location.href=\\''".$con_side[$idcatside][''link''].''&flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."=insert&entry=".$nr."&templ=".$mod[''i'']."\\'' \\" onMouseOver=\\"on(\\''".htmlentities(dedi_addslashes($dedi_mod[''value''][$mod[''y'']]))."\\'');return true;\\" onMouseOut=\\"off();return true;\\">";\r\n				echo "<a href=\\"#\\" ><font face=\\"Verdana, Arial, Helvetica\\" size=\\"1\\">".htmlentities(dedi_addslashes($dedi_mod[''value''][$mod[''y'']]))."</font></a></td></tr>''\\n";\r\n			}\r\n			echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_''.$nr."'']+=''</table></td></tr></table>''\\n";\r\n			echo "</script>\\n";\r\n		}\r\n	}\r\n}\r\n\r\nif (("MOD_VALUE[7]" == ''true'') && ("MOD_VALUE[8]" != ''true'')) {\r\n	// Element am Anfang hinzufügen;\r\n	if ($dedi_mod[''modul''][''id''] == ''1'' && ($dedi_side[''edit''] || $dedi_side[''edit_all''])) {\r\n		echo "<div align=\\"right\\"><a href=\\"javascript:void(0)\\" onMouseover=\\"showmenu(event,linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_0''."''])\\" onMouseout=\\"delayhidemenu()\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_plus.gif\\" border=\\"0\\"></a><script language=\\"JavaScript1.2\\">\\n";\r\n		echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_0''."'']=''<table width=\\"140\\" border=\\"0\\" cellpadding=\\"1\\" cellspacing=\\"0\\" bgcolor=\\"#5A7BAD\\"><tr><td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\"><tr><td class=\\"menutitle\\"><b><font size=\\"1\\">&nbsp;Element hinzufügen&nbsp;:1</font></b></td></tr></table><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"2\\" cellspacing=\\"0\\" bgcolor=\\"#FFFFFF\\">''\\n";\r\n		for ($mod[''i''] = 1; $mod[''i''] <= $dedi_mod[''value''][''0'']; $mod[''i'']++) {\r\n			$mod[''y''] = round($mod[''i'']*10);\r\n			echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_0''."'']+=''<tr><td class=\\"menurow\\"><a href=\\"".$con_side[$idcatside][''link''].''&flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."=first&entry=".$mod[''i'']."\\" onMouseOver=\\"on(\\''".htmlentities(dedi_addslashes($dedi_mod[''value''][$mod[''y'']]))."\\'');return true;\\" onMouseOut=\\"off();return true;\\"><font face=\\"Verdana, Arial, Helvetica\\" size=\\"1\\">".htmlentities(dedi_addslashes($dedi_mod[''value''][$mod[''y'']]))."</font></a></td></tr>''\\n";\r\n		}\r\n		echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''_0''."'']+=''</table></td></tr></table>''\\n";\r\n		echo "</script>\\n</div>";\r\n	}\r\n}\r\n\r\n// auf alles auf einmal bearbeiten umschalten\r\nif ($dedi_side[''edit'']) {\r\n	$dedi_side[''edit_all''] = ''true'';\r\n	unset($dedi_side[''edit'']);\r\n}\r\n\r\n$sql = "SELECT * FROM ".$dedi_db[''content_external'']." WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."'' AND container=''".$dedi_mod[''container''][''id'']."'' AND idtype=''flex_sort''";\r\n$db->query($sql);\r\nif ($db->next_record()) {\r\n	$mod[''order''] = explode('','', $db->f(''value''));\r\n	if (is_array($mod[''order''])) {\r\n		$mod[''entry''] = 0;\r\n		$mod[''count''] = count($mod[''order'']);\r\n		foreach ($mod[''order''] as $key=>$val) {\r\n			$mod[''entry''] = $mod[''entry'']+1;\r\n\r\n			// Elementgruppe erstellen\r\n			$mod[''start''] = round(($key+1)*100+1);\r\n\r\n			// Schriftarten ersetzen\r\n			$mod[''output''] = str_replace("{font1}", "MOD_VALUE[1]", $dedi_mod[''value''][round($val*10+1)]);\r\n			$mod[''output''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''output'']);\r\n			$mod[''output''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''output'']);\r\n			$mod[''output''] = str_replace("{font4}", "MOD_VALUE[4]", $mod[''output'']);\r\n			$mod[''output''] = str_replace("{font5}", "MOD_VALUE[5]", $mod[''output'']);\r\n\r\n			// Elemente ersetzen\r\n			$mod[''elements''] = array(''text'',''textarea'',''wysiwyg'',''wysiwyg2'',''sourcecode'',''image'',''imagethumb'',''imageurl'',\r\n						''imagewidth'',''imageheight'',''link'',''linkurl'',''linktarget'',''linkdesc'',''editlink'',''fileurl'',''editfile'',''filedesc'',''filename'',''filesize'');\r\n			foreach ($mod[''elements''] as $mod[''element'']) $mod[$mod[''element'']] = (int) $mod[''start''];\r\n			while(preg_match("/\\{(".implode(''|'',$mod[''elements'']).")\\}/",$mod[''output''],$match)){\r\n				switch($match[1]) {\r\n					case "text":\r\n						$mod[''tmp''] = <dedi:mod type="text" id="$mod[''text'']" addslashes="true">;\r\n						$mod[''text'']++;\r\n						break;\r\n					case "textarea":\r\n						$test = ''textarea'';\r\n						$mod[''tmp''] = <dedi:mod type="textarea" id="$mod[''textarea'']" title="$test" addslashes="true">;\r\n						$mod[''textarea'']++;\r\n						break;\r\n					case "wysiwyg":\r\n						$mod[''tmp''] = <dedi:mod type="wysiwyg" id="$mod[''wysiwyg'']" addslashes="true">;\r\n						$mod[''wysiwyg'']++;\r\n						break;\r\n					case "wysiwyg2":\r\n						$mod[''tmp''] = <dedi:mod type="wysiwyg2" id="$mod[''wysiwyg2'']" addslashes="true">;\r\n						$mod[''wysiwyg2'']++;\r\n						break;\r\n					case "sourcecode":\r\n						$mod[''tmp''] = <dedi:mod type="sourcecode" id="$mod[''sourcecode'']" addslashes="true">;\r\n						$mod[''sourcecode'']++;\r\n						break;\r\n					case "image":\r\n						$mod[''tmp''] = <dedi:mod type="image" id="$mod[''image'']" addslashes="true">;\r\n						$mod[''image'']++;\r\n						break;\r\n					case "imagethumb":\r\n						$mod[''tmp''] = <dedi:mod type="image" id="$mod[''imagethumb'']" mode="thumb" addslashes="true">;\r\n						$mod[''imagethumb'']++;\r\n						break;\r\n					case "imageurl":\r\n						$mod[''tmp''] = <dedi:mod type="image" id="$mod[''imageurl'']" mode="url" addslashes="true">;\r\n						$mod[''imageurl'']++;\r\n						break;\r\n					case "imagewidth":\r\n						$mod[''tmp''] = <dedi:mod type="image" id="$mod[''imagewidth'']" mode="width" addslashes="true">;\r\n						$mod[''imagewidth'']++;\r\n						break;\r\n					case "imageheight":\r\n						$mod[''tmp''] = <dedi:mod type="image" id="$mod[''imageheight'']" mode="height" addslashes="true">;\r\n						$mod[''imageheight'']++;\r\n						break;\r\n					case "link":\r\n						$mod[''tmp''] = <dedi:mod type="link" id="$mod[''link'']" addslashes="true">;\r\n						$mod[''link'']++;\r\n						break;\r\n					case "linkurl":\r\n						$mod[''tmp''] = <dedi:mod type="link" id="$mod[''linkurl'']" mode="url" addslashes="true">;\r\n						$mod[''linkurl'']++;\r\n						break;\r\n					case "linkdesc":\r\n						$mod[''tmp''] = <dedi:mod type="link" id="$mod[''linkdesc'']" mode="desc" addslashes="true">;\r\n						$mod[''linkdesc'']++;\r\n						break;\r\n					case "linktarget":\r\n						$mod[''tmp''] = <dedi:mod type="link" id="$mod[''linktarget'']" mode="target" addslashes="true">;\r\n						$mod[''linktarget'']++;\r\n						break;\r\n					case "editlink":\r\n						$mod[''tmp''] = <dedi:mod type="link" id="$mod[''editlink'']" mode="editbutton" addslashes="true">;\r\n						$mod[''editlink'']++;\r\n						break;\r\n					case "fileurl":\r\n						$mod[''tmp''] = <dedi:mod type="file" id="$mod[''fileurl'']" mode="url" addslashes="true">;\r\n						$mod[''fileurl'']++;\r\n						break;\r\n					case "editfile":\r\n						$mod[''tmp''] = <dedi:mod type="file" id="$mod[''editfile'']" mode="editbutton" addslashes="true">;\r\n						$mod[''editfile'']++;\r\n						break;\r\n					case "filedesc":\r\n						$mod[''tmp''] = <dedi:mod type="file" id="$mod[''filedesc'']" mode="desc" addslashes="true">;\r\n						$mod[''filedesc'']++;\r\n						break;\r\n					case "filename":\r\n						$mod[''tmp''] = <dedi:mod type="file" id="$mod[''filename'']" mode="url" addslashes="true">;\r\n						$mod[''tmp''] = substr(strrchr($mod[''tmp''], ''/''), 1);\r\n						$mod[''filename'']++;\r\n						break;\r\n					case "filesize":\r\n						$mod[''tmp''] = <dedi:mod type="file" id="$mod[''filesize'']" mode="path" addslashes="true">;\r\n						if (is_file($mod[''tmp''])) {\r\n							$mod[''tmp''] = filesize($mod[''tmp'']);\r\n							if ($mod[''tmp''] > 1048576) $mod[''tmp''] = sprintf( "%01.2f", $mod[''tmp'']/1048576).'' mByte'';\r\n							else $mod[''tmp''] = ($mod[''tmp''] > 1024) ? sprintf( "%01.2f", $mod[''tmp'']/1024).'' kByte'': $mod[''tmp''].'' Byte'';\r\n						} else $mod[''tmp''] = '''';\r\n						$mod[''filesize'']++;\r\n						break;\r\n				}\r\n				$mod[''output''] = preg_replace("/".$match[0]."/",$mod[''tmp''],$mod[''output''],1);\r\n			}\r\n\r\n			// Steuerungsausgabe\r\n			if ($dedi_mod[''modul''][''id''] == ''1'' && ($dedi_side[''edit''] || $dedi_side[''edit_all''])) {\r\n				echo ''<div align="right">'';\r\n				if ("MOD_VALUE[6]" == ''true'') echo ''<font face="Verdana, Arial, Helvetica" size="1">''.$dedi_mod["value"][$val*10].''</font> '';\r\n				if ($mod[''entry''] != $mod[''count'']) echo "<a href=\\"".$con_side[$idcatside][''link''].''&flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."=down&entry=".$mod[''entry'']."\\" onMouseOver=\\"on(''nach unten verschieben'');return true;\\" onMouseOut=\\"off();return true;\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_onentrybottom.gif\\" width=\\"11\\" height=\\"11\\" border=\\"0\\" alt=\\"nach unten verschieben\\" title=\\"nach unten verschieben\\"></a>&nbsp;";\r\n				else  echo "<img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_offentrybottom.gif\\" border=\\"0\\" width=\\"11\\" height=\\"11\\">&nbsp;";\r\n				if ($mod[''entry''] != 1) echo "<a href=\\"".$con_side[$idcatside][''link''].''&flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."=up&entry=".$mod[''entry'']."\\" onMouseOver=\\"on(''nach oben verschieben'');return true;\\" onMouseOut=\\"off();return true;\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_onentrytop.gif\\" border=\\"0\\" width=\\"11\\" height=\\"11\\" alt=\\"nach oben verschieben\\" title=\\"nach oben verschieben\\"></a>&nbsp;";\r\n				else echo "<img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_offentrytop.gif\\" border=\\"0\\" width=\\"11\\" height=\\"11\\">&nbsp;";\r\n				$mod[''editpath''] = <dedi:mod type="edit_container" mode="editurl" addslashes="true">;\r\n				if ($mod[''editpath''] != '''') echo "<a href=\\"".$mod[''editpath'']."\\" onMouseOver=\\"on(''bearbeiten'');return true;\\" onMouseOut=\\"off();return true;\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_onedit.gif\\" border=\\"0\\" width=\\"22\\" height=\\"13\\" alt=\\"bearbeiten\\" title=\\"bearbeiten\\"></a>&nbsp;";\r\n				else echo "<img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_offedit.gif\\" border=\\"0\\" width=\\"22\\" height=\\"13\\">&nbsp;";\r\n				echo "<a href=\\"".$con_side[$idcatside][''link''].''&flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."=delete&entry=".$mod[''entry'']."\\" onMouseOver=\\"on(''Eintrag löschen'');return true;\\" onMouseOut=\\"off();return true;\\" onclick=\\"return delete_confirm()\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_trash.gif\\" border=\\"0\\" width=\\"13\\" height=\\"13\\" alt=\\"Eintrag löschen\\" title=\\"Eintrag löschen\\"></a>&nbsp;";\r\n				if ("MOD_VALUE[8]" == ''true'') popup_menu($mod[''entry'']);\r\n				echo "</div>";\r\n			}\r\n			echo $mod[''output''];\r\n			unset($dedi_edittype[$dedi_mod[''container''][''id'']]);\r\n			unset($mod[''editpath'']);\r\n		}\r\n	}\r\n}\r\n\r\n// Element am Ende hinzufügen\r\nif ($dedi_mod[''modul''][''id''] == ''1'' && ($dedi_side[''edit''] || $dedi_side[''edit_all''])) {\r\n	echo "<div align=\\"right\\"><a href=\\"javascript:void(0)\\" onMouseover=\\"showmenu(event,linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."''])\\" onMouseout=\\"delayhidemenu()\\"><img src=\\"".$cfg_dedi[''dedi_html_path'']."tpl/standard/img/but_plus.gif\\" border=\\"0\\"></a><script language=\\"JavaScript1.2\\">\\n";\r\n	echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."'']=''<table width=\\"140\\" border=\\"0\\" cellpadding=\\"1\\" cellspacing=\\"0\\" bgcolor=\\"#5A7BAD\\"><tr><td><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"0\\" cellspacing=\\"0\\"><tr><td class=\\"menutitle\\"><b><font size=\\"1\\">&nbsp;Element hinzufügen&nbsp;</font></b></td></tr></table><table width=\\"100%\\" border=\\"0\\" cellpadding=\\"2\\" cellspacing=\\"0\\" bgcolor=\\"#FFFFFF\\">''\\n";\r\n	for ($mod[''i''] = 1; $mod[''i''] <= $dedi_mod[''value''][''0'']; $mod[''i'']++) {\r\n		$mod[''y''] = round($mod[''i'']*10);\r\n		echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."'']+=''<tr><td class=\\"menurow\\"><a href=\\"".$con_side[$idcatside][''link''].''&flex''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."=new&entry=".$mod[''i'']."\\" onMouseOver=\\"on(\\''".htmlentities(dedi_addslashes($dedi_mod[''value''][$mod[''y'']]))."\\'');return true;\\" onMouseOut=\\"off();return true;\\"><font face=\\"Verdana, Arial, Helvetica\\" size=\\"1\\">".htmlentities(dedi_addslashes($dedi_mod[''value''][$mod[''y'']]))."</font></a></td></tr>''\\n";\r\n	}\r\n	echo "linkset[''flex".$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']."'']+=''</table></td></tr></table>''\\n";\r\n	echo "</script>\\n</div>";\r\n}\r\nunset($mod);\r\n\r\nif ($dedi_side[''edit_all'']) {\r\n	$dedi_side[''edit''] = ''true'';\r\n	unset($dedi_side[''edit_all'']);\r\n}\r\n?>', '', 0, 1, 1, 1098044658, 1135558824, 'mod:27c2c0f9459f80a760b14dcc3ea917a8:5210c37b', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (31, 'Downloadmanager', '1.0', 'Contentliste', 'Zum erstellen von Downloadlisten. \r\nKleiner bug fixed(beim suchen im titel oder beschreibung werden jetzt Ordnereinschränkungen beibehalten). grüße cilohaidem\r\n', '<?php\r\n// defaultwerte setzen\r\nif ($dedi_mod[''value''][''0''] == '''') $dedi_mod[''value''][''0''] = ''simple_mode'';\r\nif ($dedi_mod[''value''][''3''] == '''') $dedi_mod[''value''][''3''] = ''0'';\r\n$mip_form[''4''][''cms_val_default''] = ''0'';\r\n$mip_form[''10''][''cms_val_default''] = ''50'';\r\n$mip_form[''11''][''cms_val_default''] = ''<a href ="{url}">Weiter</a>'';\r\n$mip_form[''12''][''cms_val_default''] = ''Weiter'';\r\n$mip_form[''13''][''cms_val_default''] = ''<a href ="{url}">Zurück</a>'';\r\n$mip_form[''14''][''cms_val_default''] = ''Zurück'';\r\n$mip_form[''15''][''cms_val_default''] = '' <a href ="{url}">{number}</a> '';\r\n$mip_form[''16''][''cms_val_default''] = '' {number} '';\r\nif ($dedi_mod[''value''][''20''] == '''') $dedi_mod[''value''][''20''] = ''upl.filename,upl.titel,filetype.filetype,upl.filesize,created,lastmodified,directory.dirname.upl.filename,directory.dirname.upl.titel,directory.dirname.filetype.filetype'';\r\n$mip_form[''21''][''cms_val_default''] = ''ASC'';\r\n$mip_form[''22''][''cms_val_default''] = ''upl.filename'';\r\n$mip_form[''30''][''cms_val_default''] = ''      <tr onMouseOver="this.style[\\''background\\'']=\\''#F7F7F7\\'';" onMouseOut="this.style[\\''background\\'']=\\''#FFFFFF\\'';" bgcolor="#FFFFFF">\r\n        <td class="Verdana-12px" align="right">{number}.</td>\r\n        <td class="Verdana-12px"><img src="{filepic}" border="0"></td>\r\n        <td width="100%"><a href="{url}" class="Verdana-12px" onMouseOver="on(\\''{filename} downloaden\\'');return true;" onMouseOut="off();return true;" target="_blank">{filename}</a></td>\r\n        <td class="Verdana-12px" align="right">{filesize}&nbsp;</td>\r\n        <td class="Verdana-12px">{filesize2}&nbsp;</td>\r\n        <td class="Verdana-12px" nowrap>&nbsp;&nbsp;{lastmodifieddate} {lastmodifiedtime}</td>\r\n      </tr>\r\n'';\r\n$mip_form[''31''][''cms_val_default''] = ''  <tr>\r\n    <td colspan="7" style="border-bottom: 1px dashed #D9D9D9"><img src="cms/img/space.gif" width="1" height="1"></td>\r\n  </tr>'';\r\n$mip_form[''32''][''cms_val_default''] = ''<table cellspacing="0" cellpadding="0" border="0" width="100%">\r\n  <tr>\r\n    <td class="Verdana-12px" width="100%">&nbsp;{navi_backward}{navi}{navi_forward}&nbsp;</td>\r\n    {form}\r\n    <td align="right">{search}&nbsp;</td>\r\n    <td align="right">{sort}</td>\r\n    <td align="right">{ascdesc}</td>\r\n    <td align="right">{submit}</td>\r\n    {/form}\r\n  </tr>\r\n  <tr>\r\n    <td colspan="5" style="border-bottom: 1px dashed #D9D9D9"><img src="cms/img/space.gif" width="1" height="1"></td>\r\n  </tr>\r\n  <tr>\r\n    <td colspan="5"><table cellspacing="0" cellpadding="0" border="0">\r\n{files}\r\n    </table></td>\r\n  </tr>\r\n  <tr>\r\n    <td colspan="4" style="border-bottom: 1px dashed #D9D9D9"><img src="cms/img/space.gif" width="1" height="1"></td>\r\n  </tr>\r\n  <tr>\r\n    <td class="Verdana-12px" colspan="4" width="100%">&nbsp;{navi_backward}{navi}{navi_forward}&nbsp;</td>\r\n  </tr>\r\n</table>'';\r\n$mip_form[''36''][''cms_val_default''] = ''go'';\r\n\r\n// Modus konfigurieren\r\n$mip_form[''0''][''desc''] = ''Konfigurationsmodus: '';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''option_desc''][''0''] = ''einfach'';\r\n$mip_form[''0''][''option_desc''][''1''] = ''erweitert'';\r\n$mip_form[''0''][''option_val''][''0''] = ''simple_mode'';\r\n$mip_form[''0''][''option_val''][''1''] = ''advanced_mode'';\r\n$mip_form[''0''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''0'']);\r\n\r\n// Verzeichnisse\r\necho ''<table cellspacing="0" cellpadding="0" border="0" width="100%">'';\r\necho ''  <tr>'';\r\necho ''    <td valign="top" width="450">Welche Verzeichnisse sollen nach Dateien durchsucht werden?</td>'';\r\necho ''    <td width="190"><select name="MOD_VAR[1][]" size="5" multiple>'';\r\n$sql = "SELECT iddirectory, dirname FROM ".$dedi_db[''directory'']." WHERE idclient=''$client'' AND dirname NOT LIKE(''cms/%'') ORDER BY dirname";\r\n$db->query($sql);\r\n$dedi_mod[''value''][''1''] = explode('','', $dedi_mod[''value''][''1'']);\r\nif (in_array(''0'', $dedi_mod[''value''][''1'']) || $dedi_mod[''value''][''1''][''0''] == '''') echo ''      <option value="0" selected>alle Verzeichnisse</option>'';\r\nelse echo ''      <option value="0">alle Verzeichnisse</option>'';\r\nwhile ($db->next_record()) {\r\n         if (in_array($db->f(''iddirectory''), $dedi_mod[''value''][''1''])) echo ''      <option value="''.$db->f(''iddirectory'').''" selected>''.htmlentities($db->f(''dirname'')).''</option>'';\r\n         else echo ''      <option value="''.$db->f(''iddirectory'').''">''.htmlentities($db->f(''dirname'')).''</option>'';\r\n}\r\necho ''    </select></td>'';\r\necho ''  </tr>'';\r\necho ''</table>'';\r\n\r\n// individuelle Verzeichnisauswahl\r\n$mip_form[''5''][''cat''] = ''txt'';\r\n$mip_form[''5''][''type''] = ''long'';\r\n$mip_form[''5''][''desc''] = ''individuelle Verzeichnisauswahl: <small>Templatevariablen: {iduser}, {idcat}, {idside}, {year}, {month}, {day}<br>z.B. "jahr_{year}/monat_{month}/tag_{day}/" heute wäre es der Ordner: "jahr_''.date(''Y'').''/monat_''.date(''m'').''/day_''.date(''d'').''/"</small>'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\nmip_formsp($mip_form[''5'']);\r\n\r\n// Dateitypen\r\necho ''<table cellspacing="0" cellpadding="0" border="0" width="100%">'';\r\necho ''  <tr>'';\r\necho ''    <td valign="top" width="450">Auf welche Dateitypen soll die Suche begrenzt werden?</td>'';\r\necho ''    <td width="190"><select name="MOD_VAR[2][]" size="5" multiple>'';\r\n$sql = "SELECT idfiletype, filetype FROM ".$dedi_db[''filetype'']." ORDER BY filetype";\r\n$db->query($sql);\r\n$dedi_mod[''value''][''2''] = explode('','', $dedi_mod[''value''][''2'']);\r\nif (in_array(''0'', $dedi_mod[''value''][''2'']) || $dedi_mod[''value''][''2''][''0''] == '''') echo ''      <option value="0" selected>alle Dateitypen</option>'';\r\nelse echo ''      <option value="0">alle Dateitypen</option>'';\r\nwhile ($db->next_record()) {\r\n         if (in_array($db->f(''idfiletype''), $dedi_mod[''value''][''2''])) echo ''      <option value="''.$db->f(''idfiletype'').''" selected>''.htmlentities($db->f(''filetype'')).''</option>'';\r\n         else echo ''      <option value="''.$db->f(''idfiletype'').''">''.htmlentities($db->f(''filetype'')).''</option>'';\r\n}\r\necho ''    </select></td>'';\r\necho ''  </tr>'';\r\necho ''</table>'';\r\n\r\n// Advanced-Mode\r\nif ($dedi_mod[''value''][''0''] == ''advanced_mode'') {\r\n         echo ''<hr>'';\r\n\r\n	// Usergruppen\r\n	echo ''<table cellspacing="0" cellpadding="0" border="0" width="100%">'';\r\n	echo ''  <tr>'';\r\n	echo ''    <td valign="top" width="450">Welche Usergruppen dürfen downloaden?</td>'';\r\n	echo ''    <td width="190"><select name="MOD_VAR[3][]" size="5" multiple>'';\r\n	$sql = "SELECT idgroup, name FROM ".$dedi_db[''groups'']." WHERE is_active=''1'' AND is_sys_admin=''0'' ORDER BY name";\r\n	$db->query($sql);\r\n	$dedi_mod[''value''][''3''] = explode('','', $dedi_mod[''value''][''3'']);\r\n	if (in_array(''0'', $dedi_mod[''value''][''3'']) || $dedi_mod[''value''][''3''][''0''] == '''') echo ''      <option value="0" selected>alle User</option>'';\r\n	else echo ''      <option value="0">alle User</option>'';\r\n	while ($db->next_record()) {\r\n		if (in_array($db->f(''idgroup''), $dedi_mod[''value''][''3''])) echo ''      <option value="''.$db->f(''idgroup'').''" selected>''.htmlentities($db->f(''name'')).''</option>'';\r\n		else echo ''      <option value="''.$db->f(''idgroup'').''">''.htmlentities($db->f(''name'')).''</option>'';\r\n	}\r\n	echo ''    </select></td>'';\r\n	echo ''  </tr>'';\r\n	echo ''</table>'';\r\n\r\n         // Maximale Dateigröße\r\n         $mip_form[''4''][''cat''] = ''txt'';\r\n         $mip_form[''4''][''desc''] = ''Maximale Dateigröße in Kb? <small>(0 = unbeschränkt)</small>'';\r\n         $mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n         $mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n         mip_formsp($mip_form[''4'']);\r\n         echo "<br><b>Navigation:</b><br><br>";\r\n\r\n         // Anzahl der Einträge\r\n         $mip_form[''10''][''cat''] = ''option'';\r\n         $mip_form[''10''][''desc''] = ''Anzahl Einträge pro Seite'';\r\n         $mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n         $mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n         $mip_form[''10''][''option_desc''][''0''] = ''5'';\r\n         $mip_form[''10''][''option_val''][''0''] = ''5'';\r\n         $mip_form[''10''][''option_desc''][''1''] = ''10'';\r\n         $mip_form[''10''][''option_val''][''1''] = ''10'';\r\n         $mip_form[''10''][''option_desc''][''2''] = ''15'';\r\n         $mip_form[''10''][''option_val''][''2''] = ''15'';\r\n         $mip_form[''10''][''option_desc''][''3''] = ''20'';\r\n         $mip_form[''10''][''option_val''][''3''] = ''20'';\r\n         $mip_form[''10''][''option_desc''][''4''] = ''25'';\r\n         $mip_form[''10''][''option_val''][''4''] = ''25'';\r\n         $mip_form[''10''][''option_desc''][''5''] = ''50'';\r\n         $mip_form[''10''][''option_val''][''5''] = ''50'';\r\n         $mip_form[''10''][''option_desc''][''6''] = ''100'';\r\n         $mip_form[''10''][''option_val''][''6''] = ''100'';\r\n         $mip_form[''10''][''option_desc''][''7''] = ''alle'';\r\n         $mip_form[''10''][''option_val''][''7''] = ''0'';\r\n         mip_formsp($mip_form[''10'']);\r\n\r\n         // Navigation template vorwärts aktiv\r\n         $mip_form[''11''][''cat''] = ''txtarea'';\r\n         $mip_form[''11''][''type''] = ''long'';\r\n         $mip_form[''11''][''rows''] = ''1'';\r\n         $mip_form[''11''][''desc''] = ''Button vorwärts aktiviert<br><small>Mögliche Templatevariablen: {url}</small>'';\r\n         $mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n         $mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n         mip_formsp($mip_form[''11'']);\r\n\r\n         // Navigation template vorwärts deaktiviert\r\n         $mip_form[''12''][''cat''] = ''txtarea'';\r\n         $mip_form[''12''][''type''] = ''long'';\r\n         $mip_form[''12''][''rows''] = ''1'';\r\n         $mip_form[''12''][''desc''] = ''Button vorwärts deaktiviert'';\r\n         $mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n         $mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n         mip_formsp($mip_form[''12'']);\r\n\r\n         // Navigation template rückwärts aktiv\r\n         $mip_form[''13''][''cat''] = ''txtarea'';\r\n         $mip_form[''13''][''type''] = ''long'';\r\n         $mip_form[''13''][''rows''] = ''1'';\r\n         $mip_form[''13''][''desc''] = ''Button rückwärts aktiviert<br><small>Mögliche Templatevariablen: {url}</small>'';\r\n         $mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n         $mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n         mip_formsp($mip_form[''13'']);\r\n\r\n         // Navigation template rückwärts deaktiviert\r\n         $mip_form[''14''][''cat''] = ''txtarea'';\r\n         $mip_form[''14''][''type''] = ''long'';\r\n         $mip_form[''14''][''rows''] = ''1'';\r\n         $mip_form[''14''][''desc''] = ''Button rückwärts deaktiviert'';\r\n         $mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n         $mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n         mip_formsp($mip_form[''14'']);\r\n\r\n         // Navigation template numerisch aktiv\r\n         $mip_form[''15''][''cat''] = ''txtarea'';\r\n         $mip_form[''15''][''type''] = ''long'';\r\n         $mip_form[''15''][''rows''] = ''1'';\r\n         $mip_form[''15''][''desc''] = ''Button numerisch aktiviert<br><small>Mögliche Templatevariablen: {url}, {number}</small>'';\r\n         $mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n         $mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n         mip_formsp($mip_form[''15'']);\r\n\r\n         // Navigation template numerisch deaktiviert\r\n         $mip_form[''16''][''cat''] = ''txtarea'';\r\n         $mip_form[''16''][''type''] = ''long'';\r\n         $mip_form[''16''][''rows''] = ''1'';\r\n         $mip_form[''16''][''desc''] = ''Button numerisch deaktiviert<br><small>Mögliche Templatevariablen: {number}</small>'';\r\n         $mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n         $mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n         mip_formsp($mip_form[''16'']);\r\n         echo "<br><b>Sortierung:</b><br><br>";\r\n\r\n\r\n         // vordefinierte Suche\r\n         $mip_form[''27''][''cat''] = ''txt'';\r\n         $mip_form[''27''][''desc''] = ''vordefinierte Suche:'';\r\n         $mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n         $mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n         mip_formsp($mip_form[''27'']);\r\n\r\n         // vordefinierte Sortierung\r\n         $mip_form[''22''][''cat''] = ''option'';\r\n         $mip_form[''22''][''desc''] = ''vordefinierte Sortierung:'';\r\n         $mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n         $mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n         $mip_form[''22''][''option_desc''][''0''] = ''Dateiname'';\r\n         $mip_form[''22''][''option_val''][''0''] = ''upl.filename'';\r\n         $mip_form[''22''][''option_desc''][''1''] = ''Titel'';\r\n         $mip_form[''22''][''option_val''][''1''] = ''upl.titel'';\r\n         $mip_form[''22''][''option_desc''][''2''] = ''Dateityp'';\r\n         $mip_form[''22''][''option_val''][''2''] = ''filetype.filetype'';\r\n         $mip_form[''22''][''option_desc''][''3''] = ''Dateigröße'';\r\n         $mip_form[''22''][''option_val''][''3''] = ''upl.filesize'';\r\n         $mip_form[''22''][''option_desc''][''4''] = ''Erstellungszeit'';\r\n         $mip_form[''22''][''option_val''][''4''] = ''created'';\r\n         $mip_form[''22''][''option_desc''][''5''] = ''letzte Änderung'';\r\n         $mip_form[''22''][''option_val''][''5''] = ''lastmodified'';\r\n         $mip_form[''22''][''option_desc''][''6''] = ''Verzeichnis/Dateiname'';\r\n         $mip_form[''22''][''option_val''][''6''] = ''directory.dirname,upl.filename'';\r\n         $mip_form[''22''][''option_desc''][''7''] = ''Verzeichnis/Titel'';\r\n         $mip_form[''22''][''option_val''][''7''] = ''directory.dirname,upl.titel'';\r\n         $mip_form[''22''][''option_desc''][''8''] = ''Verzeichnis/Dateityp'';\r\n         $mip_form[''22''][''option_val''][''8''] = ''directory.dirname,filetype.filetype'';\r\n         mip_formsp($mip_form[''22'']);\r\n\r\n         // aufsteigend-absteigend\r\n         $mip_form[''21''][''cat''] = ''option'';\r\n         $mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n         $mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n         $mip_form[''21''][''option_desc''][''0''] = ''aufsteigend'';\r\n         $mip_form[''21''][''option_val''][''0''] = ''ASC'';\r\n         $mip_form[''21''][''option_desc''][''1''] = ''absteigend'';\r\n         $mip_form[''21''][''option_val''][''1''] = ''DESC'';\r\n         mip_formsp($mip_form[''21'']);\r\n\r\n         // Sortierungsmöglichkeiten\r\n         echo ''<table cellspacing="0" cellpadding="0" border="0" width="100%">'';\r\n         echo ''  <tr>'';\r\n         echo ''    <td valign="top" width="450">Welche Sortiermöglichkeiten sollen dem User zur Verfügung stehen?</td>'';\r\n         echo ''    <td width="190"><select name="MOD_VAR[20][]" size="5" multiple>'';\r\n         $sql = "SELECT idgroup, name FROM ".$dedi_db[''groups'']." WHERE is_active=''1'' AND is_sys_admin=''0'' ORDER BY name";\r\n         $db->query($sql);\r\n         $dedi_mod[''value''][''20''] = explode('','', $dedi_mod[''value''][''20'']);\r\n         if (in_array(''upl.filename'', $dedi_mod[''value''][''20''])) echo ''      <option value="upl.filename" selected>Dateiname</option>'';\r\n         else echo ''      <option value="upl.filename">Dateiname</option>'';\r\n         if (in_array(''upl.titel'', $dedi_mod[''value''][''20''])) echo ''      <option value="upl.titel" selected>Titel</option>'';\r\n         else echo ''      <option value="upl.titel">Titel</option>'';\r\n         if (in_array(''filetype.filetype'', $dedi_mod[''value''][''20''])) echo ''      <option value="filetype.filetype" selected>Dateityp</option>'';\r\n         else echo ''      <option value="filetype.filetype">Dateityp</option>'';\r\n         if (in_array(''upl.filesize'', $dedi_mod[''value''][''20''])) echo ''      <option value="upl.filesize" selected>Dateigröße</option>'';\r\n         else echo ''      <option value="upl.filesize">Dateigröße</option>'';\r\n         if (in_array(''created'', $dedi_mod[''value''][''20''])) echo ''      <option value="created" selected>Erstellungszeit</option>'';\r\n         else echo ''      <option value="created">Erstellungszeit</option>'';\r\n         if (in_array(''lastmodified'', $dedi_mod[''value''][''20''])) echo ''      <option value="lastmodified" selected>letzte Änderung</option>'';\r\n         else echo ''      <option value="lastmodified">letzte Änderung</option>'';\r\n         if (in_array(''directory.dirname.upl.filename'', $dedi_mod[''value''][''20''])) echo ''      <option value="directory.dirname.upl.filename" selected>Verzeichnis/Dateiname</option>'';\r\n         else echo ''      <option value="directory.dirname.upl.filename">Verzeichnis/Dateiname</option>'';\r\n         if (in_array(''directory.dirname.upl.titel'', $dedi_mod[''value''][''20''])) echo ''      <option value="directory.dirname.upl.titel" selected>Verzeichnis/Titel</option>'';\r\n         else echo ''      <option value="directory.dirname.upl.titel">Verzeichnis/Titel</option>'';\r\n         if (in_array(''directory.dirname.filetype.filetype'', $dedi_mod[''value''][''20''])) echo ''      <option value="directory.dirname.filetype.filetype" selected>Verzeichnis/Dateityp</option>'';\r\n         else echo ''      <option value="directory.dirname.filetype.filetype">Verzeichnis/Dateityp</option>'';\r\n         echo ''    </select></td>'';\r\n         echo ''  </tr>'';\r\n         echo ''</table>'';\r\n         echo "<br><b>Layout:</b><br><br>";\r\n\r\n	// Sortierbox\r\n	$mip_form[''23''][''desc''] = ''Sortierbox'';\r\n	$mip_form[''23''][''cat''] = ''app_css'';\r\n	$mip_form[''23''][''output_cat''] = ''option'';\r\n	$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n         mip_formsp($mip_form[''23'']);\r\n\r\n	// aufsteigend / absteigend Sortierbox\r\n	$mip_form[''24''][''desc''] = ''aufsteigend / absteigend Sortierbox'';\r\n	$mip_form[''24''][''cat''] = ''app_css'';\r\n	$mip_form[''24''][''output_cat''] = ''option'';\r\n	$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n	$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n         mip_formsp($mip_form[''24'']);\r\n\r\n	// Sucheingabefeld\r\n	$mip_form[''25''][''desc''] = ''Sucheingabefeld'';\r\n	$mip_form[''25''][''cat''] = ''app_css'';\r\n	$mip_form[''25''][''output_cat''] = ''option'';\r\n	$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n	$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n         mip_formsp($mip_form[''25'']);\r\n\r\n	// Sucheingabe - Sendebutton\r\n	$mip_form[''26''][''desc''] = ''Sucheingabe - Sendebutton'';\r\n	$mip_form[''26''][''cat''] = ''app_css'';\r\n	$mip_form[''26''][''output_cat''] = ''option'';\r\n	$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n	$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n         mip_formsp($mip_form[''26'']);\r\n\r\n	// font1\r\n	$mip_form[''33''][''desc''] = ''Schriftart {font1}'';\r\n	$mip_form[''33''][''cat''] = ''app_css'';\r\n	$mip_form[''33''][''output_cat''] = ''option'';\r\n	$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n	$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n         mip_formsp($mip_form[''33'']);\r\n\r\n	// font2\r\n	$mip_form[''34''][''desc''] = ''Schriftart {font2}'';\r\n	$mip_form[''34''][''cat''] = ''app_css'';\r\n	$mip_form[''34''][''output_cat''] = ''option'';\r\n	$mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n	$mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n         mip_formsp($mip_form[''34'']);\r\n\r\n	// font3\r\n	$mip_form[''35''][''desc''] = ''Schriftart {font3}'';\r\n	$mip_form[''35''][''cat''] = ''app_css'';\r\n	$mip_form[''35''][''output_cat''] = ''option'';\r\n	$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n	$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n         mip_formsp($mip_form[''35'']);\r\n         echo "<br><b>Templates:</b><br><br>";\r\n\r\n         // Name für Formular Sendebutton\r\n         $mip_form[''36''][''cat''] = ''txt'';\r\n         $mip_form[''36''][''desc''] = ''Name für Formular Sendebutton:'';\r\n         $mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n         $mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n         mip_formsp($mip_form[''36'']);\r\n\r\n         // Datei\r\n         $mip_form[''30''][''cat''] = ''txtarea'';\r\n         $mip_form[''30''][''type''] = ''long'';\r\n         $mip_form[''30''][''rows''] = ''7'';\r\n         $mip_form[''30''][''desc''] = ''Layout einer Datei<br><small>Mögliche Templatevariablen: {number}, {dirname}, {filename}, {titel}, {description}, {filesize}, {filesize2}, {url}, {filepic}, {mimetype}, {lastmodifieddate}, {lastmodifiedtime}, {createddate}, {createdtime}, {font1}, {font2}, {font3}</small>'';\r\n         $mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n         $mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n         mip_formsp($mip_form[''30'']);\r\n\r\n         // zwischen den Dateien\r\n         $mip_form[''31''][''cat''] = ''txtarea'';\r\n         $mip_form[''31''][''type''] = ''long'';\r\n         $mip_form[''31''][''rows''] = ''7'';\r\n         $mip_form[''31''][''desc''] = ''Layout zwischen den Dateien<br><small>Mögliche Templatevariablen: {font1}, {font2}, {font3}</small>'';\r\n         $mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n         $mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n         mip_formsp($mip_form[''31'']);\r\n\r\n         // Verbindungstemplate\r\n         $mip_form[''32''][''cat''] = ''txtarea'';\r\n         $mip_form[''32''][''type''] = ''long'';\r\n         $mip_form[''32''][''rows''] = ''7'';\r\n         $mip_form[''32''][''desc''] = ''Verbindungs - Template<br><small>Mögliche Templatevariablen: {navi_backward}, {navi}, {navi_forward}, {files}, {form}, {search}, {sort}, {ascdesc}, {submit}, {/form}, {font1}, {font2}, {font3}</small>'';\r\n         $mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n         $mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n         mip_formsp($mip_form[''32'']);\r\n// Simple-Mode\r\n} else {\r\n	// Usergruppen\r\n         $mip_form[''3''][''cat''] = ''hidden'';\r\n         $mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n         $mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n         mip_formsp($mip_form[''3'']);\r\n\r\n         // Maximale Dateigröße\r\n         $mip_form[''4''][''cat''] = ''hidden'';\r\n         $mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n         $mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n         mip_formsp($mip_form[''4'']);\r\n\r\n         // Anzahl der Einträge\r\n         $mip_form[''10''][''cat''] = ''hidden'';\r\n         $mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n         $mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n         mip_formsp($mip_form[''10'']);\r\n\r\n         // Navigation template vorwärts aktiv\r\n         $mip_form[''11''][''cat''] = ''hidden'';\r\n         $mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n         $mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n         mip_formsp($mip_form[''11'']);\r\n\r\n         // Navigation template vorwärts deaktiviert\r\n         $mip_form[''12''][''cat''] = ''hidden'';\r\n         $mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n         $mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n         mip_formsp($mip_form[''12'']);\r\n\r\n         // Navigation template rückwärts aktiv\r\n         $mip_form[''13''][''cat''] = ''hidden'';\r\n         $mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n         $mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n         mip_formsp($mip_form[''13'']);\r\n\r\n         // Navigation template rückwärts deaktiviert\r\n         $mip_form[''14''][''cat''] = ''hidden'';\r\n         $mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n         $mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n         mip_formsp($mip_form[''14'']);\r\n\r\n         // Navigation template numerisch aktiv\r\n         $mip_form[''15''][''cat''] = ''hidden'';\r\n         $mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n         $mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n         mip_formsp($mip_form[''15'']);\r\n\r\n         // Navigation template numerisch deaktiviert\r\n         $mip_form[''16''][''cat''] = ''hidden'';\r\n         $mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n         $mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n         mip_formsp($mip_form[''16'']);\r\n\r\n         // Sortierungsmöglichkeiten\r\n         $mip_form[''20''][''cat''] = ''hidden'';\r\n         $mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n         $mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n         mip_formsp($mip_form[''20'']);\r\n\r\n         //aufsteigend-absteigend\r\n         $mip_form[''21''][''cat''] = ''hidden'';\r\n         $mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n         $mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n         mip_formsp($mip_form[''21'']);\r\n\r\n         // vordefinierte Sortierung\r\n         $mip_form[''22''][''cat''] = ''hidden'';\r\n         $mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n         $mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n         mip_formsp($mip_form[''22'']);\r\n\r\n         // Sortierbox\r\n         $mip_form[''23''][''cat''] = ''hidden'';\r\n         $mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n         $mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n         mip_formsp($mip_form[''23'']);\r\n\r\n	// aufsteigend / absteigend Sortierbox\r\n         $mip_form[''24''][''cat''] = ''hidden'';\r\n         $mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n         $mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n         mip_formsp($mip_form[''24'']);\r\n\r\n	// Sucheingabefeld\r\n         $mip_form[''25''][''cat''] = ''hidden'';\r\n         $mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n         $mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n         mip_formsp($mip_form[''25'']);\r\n\r\n	// Sucheingabe - Sendebutton\r\n         $mip_form[''26''][''cat''] = ''hidden'';\r\n         $mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n         $mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n         mip_formsp($mip_form[''26'']);\r\n\r\n         // vordefinierte Suche\r\n         $mip_form[''27''][''cat''] = ''hidden'';\r\n         $mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n         $mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n         mip_formsp($mip_form[''27'']);\r\n\r\n         // Sucheingabe\r\n         $mip_form[''30''][''cat''] = ''hidden'';\r\n         $mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n         $mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n         mip_formsp($mip_form[''30'']);\r\n\r\n         // Datei\r\n         $mip_form[''31''][''cat''] = ''hidden'';\r\n         $mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n         $mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n         mip_formsp($mip_form[''31'']);\r\n\r\n         // Verbindungstemplate\r\n         $mip_form[''32''][''cat''] = ''hidden'';\r\n         $mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n         $mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n         mip_formsp($mip_form[''32'']);\r\n\r\n         // font1\r\n         $mip_form[''33''][''cat''] = ''hidden'';\r\n         $mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n         $mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n         mip_formsp($mip_form[''33'']);\r\n\r\n         // font2\r\n         $mip_form[''34''][''cat''] = ''hidden'';\r\n         $mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n         $mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n         mip_formsp($mip_form[''34'']);\r\n\r\n         // font3\r\n         $mip_form[''35''][''cat''] = ''hidden'';\r\n         $mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n         $mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n         mip_formsp($mip_form[''35'']);\r\n\r\n         // Name für Formular Sendebutton\r\n         $mip_form[''36''][''cat''] = ''hidden'';\r\n         $mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n         $mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n         mip_formsp($mip_form[''36'']);\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n	<?PHP\r\n	// Darf User sehen?\r\n         if ($dedi_mod[''value''][''1''] != '''' && $dedi_mod[''value''][''2''] != '''' && $dedi_mod[''value''][''3''] != '''') {\r\n		$mod[''in_usergroup''] = explode('','', $dedi_mod[''value''][''3'']);\r\n         	if (!in_array(''0'', $mod[''in_usergroup''])) {\r\n         ?>\r\n			if ($auth->auth[''uid''] != ''nobody'') {\r\n				$sql  = "SELECT * FROM ".$dedi_db[''users'']." A\r\n					LEFT JOIN ".$dedi_db[''users_groups'']." B USING(user_id)\r\n					LEFT JOIN ".$dedi_db[''groups'']." C USING(idgroup)\r\n					WHERE A.user_id = ".$auth->auth[''uid'']."\r\n					AND (C.idgroup IN (MOD_VALUE[3]) OR C.is_sys_admin = ''1'')";\r\n					$db->query($sql);\r\n					if ($db->affected_rows()) {\r\n	<?PHP } ?>\r\n	// SQL erstellen\r\n	$mod[''get_fields''] = ''dirname, titel, filename, filesize, filetypepict, mimetype, UNIX_TIMESTAMP(upl.lastmodified) AS lastmodified, UNIX_TIMESTAMP(upl.created) AS created, upl.description AS description'';\r\n	<?PHP\r\n         // welches Verzeichnis?\r\n	if ($dedi_mod[''value''][''5''] != '''') {\r\n         ?>\r\n		$mod[''in_directory''] = str_replace(''{iduser}'', $auth->auth[''uid''], "MOD_VALUE[5]");\r\n		$mod[''in_directory''] = str_replace(''{idcat}'', $idcat, $mod[''in_directory'']);\r\n		$mod[''in_directory''] = str_replace(''{idside}'', $idside, $mod[''in_directory'']);\r\n		$mod[''in_directory''] = str_replace(''{year}'', date(''Y''), $mod[''in_directory'']);\r\n		$mod[''in_directory''] = str_replace(''{month}'', date(''m''), $mod[''in_directory'']);\r\n		$mod[''in_directory''] = str_replace(''{day}'', date(''d''), $mod[''in_directory'']);\r\n		$mod[''in_directory''] = ''directory.dirname = "''.$mod[''in_directory''].''" AND '';\r\n	<?PHP\r\n         } else {\r\n		$mod[''in_directory''] = explode('','', $dedi_mod[''value''][''1'']);\r\n		if (!in_array(''0'', $mod[''in_directory''])) echo ''$mod[\\''in_directory\\''] = \\''upl.iddirectory IN(''.$dedi_mod[''value''][''1''].'') AND \\'';'';\r\n	}\r\n\r\n         // Suche auf Dateigröße beschränken?\r\n	if ($dedi_mod[''value''][''4''] != ''0'') $mod[''in_filesize''] = ''upl.filesize <= ''.round($dedi_mod[''value''][''4'']*1024).'' AND '';\r\n\r\n	// ASC / DESC\r\n         ?>\r\n	// Suche\r\n	${$dedi_mod[''key''].''search''} = (${$dedi_mod[''key''].''search''} != '''') ? ${$dedi_mod[''key''].''search''} : "MOD_VALUE[27]";\r\n	if (${$dedi_mod[''key''].''search''} != '''') {\r\n         	$mod[''search''] = str_replace(''*'', ''%'', ${$dedi_mod[''key''].''search''});\r\n         	$mod[''search''] = str_replace('' '', ''%'', ${$dedi_mod[''key''].''search''});\r\n		set_magic_quotes_gpc($mod[''search'']);\r\n                 $mod[''search''] = ''(filename LIKE(\\''%''.$mod[''search''].''%\\'') OR titel LIKE(\\''%''.$mod[''search''].''%\\'') OR upl.description LIKE(\\''%''.$mod[''search''].''%\\'')) AND '';\r\n		remove_magic_quotes_gpc(${$dedi_mod[''key''].''search''});\r\n                 ${$dedi_mod[''key''].''search''} = htmlentities(${$dedi_mod[''key''].''search''});\r\n         }\r\n	$sql = ''FROM ''.$dedi_db[''directory''].'' directory LEFT JOIN ''.$dedi_db[''upl''].'' upl USING(iddirectory) LEFT JOIN ''.$dedi_db[''filetype''].'' filetype USING(idfiletype)\r\n		WHERE ''.$mod[''in_directory''].''<?PHP echo $mod[''in_filesize'']; ?>''.$mod[''search''].''dirname NOT LIKE(\\''cms/%\\'') AND filename != \\''\\'''';\r\n         \r\n	// Navigationstemplate\r\n	$mod[''navi_forward_on''] = "MOD_VALUE[11]";\r\n	$mod[''navi_forward_off''] = "MOD_VALUE[12]";\r\n	$mod[''navi_backward_on''] = "MOD_VALUE[13]";\r\n	$mod[''navi_backward_off''] = "MOD_VALUE[14]";\r\n	$mod[''navi_numeric_on''] = "MOD_VALUE[15]";\r\n	$mod[''navi_numeric_off''] = "MOD_VALUE[16]";\r\n\r\n	// Startposition festlegen\r\n	$mod[''navi_position''] = (is_numeric(${$dedi_mod[''key''].''pos''}) && ${$dedi_mod[''key''].''pos''} > 0) ? ${$dedi_mod[''key''].''pos''} : 0;\r\n\r\n	// Einträge zählen\r\n	$db->query(''SELECT filename ''.$sql);\r\n\r\n	//Anzahl aller möglichen Artikel\r\n	$mod[''num_rows''] = $db->num_rows();\r\n\r\n	// Seitennavigation bauen\r\n	$mod[''base_url''] = $con_side[$idcatside][''link''].''&''.$dedi_mod[''key''].''search=''.${$dedi_mod[''key''].''search''}.''&''.$dedi_mod[''key''].''sort=''.${$dedi_mod[''key''].''sort''}.''&''.$dedi_mod[''key''].''ascdesc=''.${$dedi_mod[''key''].''ascdesc''}.''&''.$dedi_mod[''key''].''pos='';\r\n	if ("MOD_VALUE[10]" > ''0'' && "MOD_VALUE[10]" < $mod[''num_rows'']) {\r\n		if (($mod[''new_pos''] = $mod[''navi_position''] - MOD_VALUE[10]) >= 0) $mod[''final_navi_backward''] = str_replace(''{url}'', $mod[''base_url''].$mod[''new_pos''], $mod[''navi_backward_on'']);\r\n		else $mod[''final_navi_backward''] = str_replace(''{url}'', $mod[''base_url''].$mod[''new_pos''], $mod[''navi_backward_off'']);\r\n		if (($mod[''new_pos''] = $mod[''navi_position''] + MOD_VALUE[10]) < $mod[''num_rows'']) $mod[''final_navi_forward''] = str_replace(''{url}'', $mod[''base_url''].$mod[''new_pos''], $mod[''navi_forward_on'']);\r\n		else $mod[''final_navi_forward''] = str_replace(''{url}'', $mod[''base_url''].$mod[''new_pos''], $mod[''navi_forward_off'']);\r\n\r\n		// Navigation nur anzeigen, wenn es mehr Artikel gibt, als auf der Seite dargestellt werden sollen\r\n		$mod[''count''] = 1;\r\n		for ($mod[''i'']=0; $mod[''i'']<$mod[''num_rows'']; $mod[''i''] = $mod[''i''] + MOD_VALUE[10]) {\r\n			if ($mod[''i''] == $mod[''navi_position'']) $mod[''final_navi''] .= str_replace(''{number}'', $mod[''count''], $mod[''navi_numeric_off'']);\r\n			else {\r\n				$mod[''navi_temp''] = str_replace(''{number}'', $mod[''count''], $mod[''navi_numeric_on'']);\r\n				$mod[''final_navi''] .= str_replace(''{url}'', $mod[''base_url''].$mod[''i''], $mod[''navi_temp'']);\r\n			}\r\n			$mod[''count'']++;\r\n		}\r\n	}\r\n\r\n	// Sortierung\r\n	$mod[''order_by''] = ("MOD_VALUE[20]" != '''' && ${$dedi_mod[''key''].''sort''}) ? ${$dedi_mod[''key''].''sort''} : "MOD_VALUE[22]";\r\n	if ("MOD_VALUE[20]" != '''' && !${$dedi_mod[''key''].''ascdesc''}) ${$dedi_mod[''key''].''ascdesc''} = "MOD_VALUE[21]";\r\n	if (("MOD_VALUE[20]" != '''' && ${$dedi_mod[''key''].''ascdesc''} == ''DESC'') || ("MOD_VALUE[20]" == '''' && "MOD_VALUE[21]" == "DESC")) $mod[''order_by''] = str_replace('','', '' DESC,'', $mod[''order_by'']).'' DESC'';\r\n\r\n	// Einträge in Array schreiben\r\n	if (MOD_VALUE[10] != ''0'') $mod[''limit''] = '' LIMIT ''.$mod[''navi_position''].'', MOD_VALUE[10]'';\r\n	$db->query(''SELECT ''.$mod[''get_fields''].'' ''.$sql.'' ORDER BY ''.$mod[''order_by''].$mod[''limit'']);\r\n\r\n	$mod[''i''] = ''0'';\r\n	while ($db->next_record()) {\r\n		$mod[''entry''][$mod[''i'']][''dirname''] = htmlentities($db->f(''dirname''));\r\n		$mod[''entry''][$mod[''i'']][''titel''] = htmlentities($db->f(''titel''));\r\n		$mod[''entry''][$mod[''i'']][''filename''] = htmlentities($db->f(''filename''));\r\n		if ($db->f(''filesize'') > 1048576) {\r\n                 	$mod[''entry''][$mod[''i'']][''filesize''] = sprintf( "%01.2f", $db->f(''filesize'')/1048576);\r\n                 	$mod[''entry''][$mod[''i'']][''filesize2''] = ''mByte'';\r\n                 } else {\r\n                 	$mod[''entry''][$mod[''i'']][''filesize''] = ($db->f(''filesize'') > 1024) ? sprintf( "%01.2f", $db->f(''filesize'')/1024): $db->f(''filesize'');\r\n                 	$mod[''entry''][$mod[''i'']][''filesize2''] = ($db->f(''filesize'') > 1024) ? ''kByte'': ''Byte'';\r\n		}\r\n		$mod[''entry''][$mod[''i'']][''filetypepict''] = $cfg_dedi[''dedi_html_path''].''tpl/''.$cfg_dedi[''skin''].''/img/file_icons/''.htmlentities($db->f(''filetypepict''));\r\n		$mod[''entry''][$mod[''i'']][''mimetype''] = htmlentities($db->f(''mimetype''));\r\n		$mod[''entry''][$mod[''i'']][''lastmodified''] = htmlentities($db->f(''lastmodified''));\r\n		$mod[''entry''][$mod[''i'']][''created''] = htmlentities($db->f(''created''));\r\n		$mod[''entry''][$mod[''i'']][''description''] = htmlentities($db->f(''description''));\r\n		$mod[''i'']++;\r\n         }\r\n\r\n	// Suchbox\r\n	$mod[''final_form''] = ''<form method="post" action="''.$con_side[$idcatside][''link''].''">'';\r\n	$mod[''final_search''] = ''<input type="text" name="''.$dedi_mod[''key''].''search" value="''.${$dedi_mod[''key''].''search''}.''"<?PHP if ($dedi_mod[''value''][''25''] != '''') echo '' class=''.$dedi_mod[''value''][''25'']; ?>>'';\r\n\r\n	if ("MOD_VALUE[20]" != '''') {\r\n		// Sortierbox\r\n		$mod[''final_sort''] = ''<select name="''.$dedi_mod[''key''].''sort" size="1"<?PHP if ($dedi_mod[''value''][''23''] != '''') echo '' class=''.$dedi_mod[''value''][''23'']; ?>>'';\r\n		$mod[''sort''] = explode('','', "MOD_VALUE[20]");\r\n		if (in_array(''upl.filename'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''upl.filename'') $mod[''final_sort''] .= ''<option value="upl.filename">Dateiname</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="upl.filename" selected>Dateiname</option>'';\r\n		}\r\n		if (in_array(''upl.titel'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''upl.titel'') $mod[''final_sort''] .= ''<option value="upl.titel">Titel</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="upl.titel" selected>Titel</option>'';\r\n		}\r\n		if (in_array(''filetype.filetype'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''filetype.filetype'') $mod[''final_sort''] .= ''<option value="filetype.filetype">Dateityp</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="filetype.filetype" selected>Dateityp</option>'';\r\n		}\r\n		if (in_array(''upl.filesize'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''upl.filesize'') $mod[''final_sort''] .= ''<option value="upl.filesize">Dateigröße</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="upl.filesize" selected>Dateigröße</option>'';\r\n		}\r\n		if (in_array(''created'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''created'') $mod[''final_sort''] .= ''<option value="created">Erstellungszeit</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="created" selected>Erstellungszeit</option>'';\r\n		}\r\n		if (in_array(''lastmodified'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''lastmodified'') $mod[''final_sort''] .= ''<option value="lastmodified">letzte Änderung</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="lastmodified" selected>letzte Änderung</option>'';\r\n		}\r\n		if (in_array(''directory.dirname.upl.filename'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''directory.dirname,upl.filename'') $mod[''final_sort''] .= ''<option value="directory.dirname,upl.filename">Verzeichnis/Dateiname</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="directory.dirname,upl.filename" selected>Verzeichnis/Dateiname</option>'';\r\n		}\r\n		if (in_array(''directory.dirname.upl.titel'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''directory.dirname,upl.titel'') $mod[''final_sort''] .= ''<option value="directory.dirname,upl.titel">Verzeichnis/Titel</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="directory.dirname,upl.titel" selected>Verzeichnis/Titel</option>'';\r\n		}\r\n		if (in_array(''directory.dirname.filetype.filetype'', $mod[''sort''])) {\r\n			if (${$dedi_mod[''key''].''sort''} != ''directory.dirname,filetype.filetype'') $mod[''final_sort''] .= ''<option value="directory.dirname,filetype.filetype">Verzeichnis/Dateityp</option>'';\r\n			else $mod[''final_sort''] .= ''<option value="directory.dirname,filetype.filetype" selected>Verzeichnis/Dateityp</option>'';\r\n		}\r\n		$mod[''final_sort''] .= ''</select>'';\r\n\r\n		// ASC/DESC-Template\r\n		$mod[''final_ascdesc''] = ''<select name="''.$dedi_mod[''key''].''ascdesc" size="1"<?PHP if ($dedi_mod[''value''][''24''] != '''') echo '' class=''.$dedi_mod[''value''][''24'']; ?>>'';\r\n		if (${$dedi_mod[''key''].''ascdesc''} == ''DESC'') {\r\n			$mod[''final_ascdesc''] .= ''<option value="ASC">aufsteigend</option>'';\r\n			$mod[''final_ascdesc''] .= ''<option value="DESC" selected>absteigend</option>'';\r\n                 } else {\r\n			$mod[''final_ascdesc''] .= ''<option value="ASC" selected>aufsteigend</option>'';\r\n			$mod[''final_ascdesc''] .= ''<option value="DESC">absteigend</option>'';\r\n                 }\r\n		$mod[''final_ascdesc''] .= ''</select>'';\r\n         }\r\n\r\n	// Layout zwischen den Dateien\r\n	$mod[''file_between''] = str_replace(''{font1}'', "MOD_VALUE[33]", "MOD_VALUE[31]");\r\n	$mod[''file_between''] = str_replace(''{font2}'', "MOD_VALUE[34]", $mod[''file_between'']);\r\n	$mod[''file_between''] = str_replace(''{font3}'', "MOD_VALUE[35]", $mod[''file_between'']);\r\n\r\n	// Dateitemplate\r\n	$mod[''entries''] = count($mod[''entry''])-1;\r\n         for ($mod[''i'']=''0''; $mod[''i'']<=$mod[''entries'']; $mod[''i'']++) {\r\n		$mod[''file''] = str_replace(''{dirname}'', $mod[''entry''][$mod[''i'']][''dirname''], "MOD_VALUE[30]");\r\n		$mod[''file''] = str_replace(''{filename}'', $mod[''entry''][$mod[''i'']][''filename''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{titel}'', $mod[''entry''][$mod[''i'']][''titel''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{description}'', $mod[''entry''][$mod[''i'']][''description''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{filesize}'', $mod[''entry''][$mod[''i'']][''filesize''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{filesize2}'', $mod[''entry''][$mod[''i'']][''filesize2''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{url}'', $cfg_client[''upl_htmlpath''].$mod[''entry''][$mod[''i'']][''dirname''].$mod[''entry''][$mod[''i'']][''filename''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{filepic}'', $mod[''entry''][$mod[''i'']][''filetypepict''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{mimetype}'', $mod[''entry''][$mod[''i'']][''mimetype''], $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{lastmodifieddate}'', date($cfg_dedi[''FormatDate''], $mod[''entry''][$mod[''i'']][''lastmodified'']), $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{lastmodifiedtime}'', date($cfg_dedi[''FormatTime''], $mod[''entry''][$mod[''i'']][''lastmodified'']), $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{createddate}'', date($cfg_dedi[''FormatDate''], $mod[''entry''][$mod[''i'']][''created'']), $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{createdtime}'', date($cfg_dedi[''FormatTime''], $mod[''entry''][$mod[''i'']][''created'']), $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{font1}'', "MOD_VALUE[33]", $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{font2}'', "MOD_VALUE[34]", $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{font3}'', "MOD_VALUE[35]", $mod[''file'']);\r\n		$mod[''file''] = str_replace(''{number}'', $mod[''i'']+${$dedi_mod[''key''].''pos''}+1, $mod[''file'']);\r\n		if ($mod[''i'']!=$mod[''entries'']) $mod[''file''] = $mod[''file''].$mod[''file_between''];\r\n		$mod[''final_files''] .= $mod[''file''];\r\n         }\r\n\r\n	// Verbindungs-Template generieren\r\n	$mod[''final_submit''] = ''<input type="submit" value="<?PHP if ($dedi_mod[''value''][''36''] != '''') echo $dedi_mod[''value''][''36'']; else echo ''go''; ?>"<?PHP if ($dedi_mod[''value''][''26''] != '''') echo '' class=''.$dedi_mod[''value''][''26'']; ?>>'';\r\n	$mod[''final_form2''] = ''</form>'';\r\n	$mod[''final_temp''] = str_replace(''{files}'', $mod[''final_files''], "MOD_VALUE[32]");\r\n	$mod[''final_temp''] = str_replace(''{form}'', $mod[''final_form''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{search}'', $mod[''final_search''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{sort}'', $mod[''final_sort''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{ascdesc}'', $mod[''final_ascdesc''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{submit}'', $mod[''final_submit''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{/form}'', $mod[''final_form2''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{font1}'', "MOD_VALUE[33]", $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{font2}'', "MOD_VALUE[34]", $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{font3}'', "MOD_VALUE[35]", $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{navi}'', $mod[''final_navi''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{navi_forward}'', $mod[''final_navi_forward''], $mod[''final_temp'']);\r\n	$mod[''final_temp''] = str_replace(''{navi_backward}'', $mod[''final_navi_backward''], $mod[''final_temp'']);\r\n	eval('' ?>''.$mod[''final_temp'']);\r\n	<?PHP\r\n	         if (!in_array(''0'', $mod[''in_usergroup''])) echo ''}'';\r\n         } ?>\r\n<?PHP unset($mod); ?>\r\nunset($mod);\r\n</DEDIPHP>', '', 0, 1, 1, 1085745163, 1132967030, 'mod:780aa6bd248fff9fa388da2160424a9b:fe3d7d3b', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (14, 'Copyright', '1.0', 'Sonstiges', 'Zur Anzeige von Copyrightinformationen.', '<?php\r\n// Schriftart (CSS-Parser)\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''class_only'';\r\n\r\n// Name (text)\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''type''] = '''';\r\n$mip_form[''1''][''desc''] = ''Dein Name:'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = '''';\r\n\r\n// URL für Anzeige (text)\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Name der Homepage (Kurztitel):'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = $SERVER_NAME;\r\n\r\n// URL (text)\r\n$mip_form[''3''][''cat''] = ''txt'';\r\n$mip_form[''3''][''type''] = '''';\r\n$mip_form[''3''][''desc''] = ''URL der Homepage:'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = $SERVER_NAME;\r\n\r\n// Startjahr (text)\r\n$mip_form[''4''][''cat''] = ''txt'';\r\n$mip_form[''4''][''type''] = '''';\r\n$mip_form[''4''][''desc''] = ''Startjahr:'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''cms_val_default''] = date("Y",time());\r\n\r\n// Link anzeigen (text)\r\n$mip_form[''5''][''desc''] = ''Link anzeigen?'';\r\n$mip_form[''5''][''cat''] = ''chk'';\r\n$mip_form[''5''][''option_var''][''0''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''option_val''][''0''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''5''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Ausgabe\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\n\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n$newyear = time();\r\n$endyear = date(''Y'',$newyear);\r\nif ("MOD_VALUE[4]" != $endyear) $years = "MOD_VALUE[4]-";\r\n$years .= $endyear;\r\necho "<span class=\\"MOD_VALUE[0]\\">&copy;&nbsp;".$years."&nbsp;by&nbsp;MOD_VALUE[1]";\r\nif ("MOD_VALUE[5]" == ''true'') echo "&nbsp;-&nbsp;<a href=\\"MOD_VALUE[3]\\">MOD_VALUE[2]</a>";\r\necho "</span>\\n";\r\n</DEDIPHP>', '', 0, 1, 1, 1066927900, 1132969232, 'mod:2ae41fa6dbd644a6846389ad14167167:8186025e', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (29, 'Webgrab', '1.4.0', 'Content Syndication', 'Abgreifen des Contents von anderen Webseiten, oder als Browser im Browser verwendbar.', '<?php\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = ''long'';\r\n$mip_form[''0''][''desc''] = ''Startseite'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''http://www.der-dirigent.de'';\r\n\r\n$mip_form[''1''][''cat''] = ''txtarea'';\r\n$mip_form[''1''][''type''] = ''long'';\r\n$mip_form[''1''][''desc''] = ''Webgrab-Config'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = "\r\n\\$location[0][''value''] = ''http://www.example.com/'';\r\n\r\n\\$location[0][''search''][0] = ''das hier...'';\r\n\\$location[0][''replace''][0] = ''...ersetzen mit dem hier'';\r\n\r\n\\$location[0][''search_block_start''][0] =  ''<html>'';\r\n\\$location[0][''search_block_stop''][0] = ''</html>'';\r\n\\$location[0][''replace_block_line''][0] = ''würde alles was zwischen &lt;html&gt; und &lt;/html&gt; steht mit diesem Text ersetzen'';\r\n";\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n$webgrab_no_path = ''MOD_VALUE[0]'';\r\nMOD_VALUE[1]\r\nif ($view == ''edit'') echo ''MOD_VALUE[0] funktioniert nur in der Vorschau und im Frontend.'';\r\nelse include_once($dedi_path.''inc/mod.webgrab.php'');\r\n</DEDIPHP>', '', 0, 1, 1, 1068591826, 1132966902, 'mod:58e94315809d808b1e89bb5ad5a7b6aa:3b1e4c65', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (30, 'Iframe', '0.1', 'Content Syndication', 'Abgreifen des Contents von anderen Webseiten, oder als Browser im Browser verwendbar.', '<?php\r\n//Webseite\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = ''long'';\r\n$mip_form[''0''][''desc''] = ''Startseite'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''http://orgel.kicks-ass.net/xtcommerce/'';\r\n\r\n//Höhe\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''type''] = ''long'';\r\n$mip_form[''1''][''desc''] = ''Länge'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''100%'';\r\n\r\n//Breite\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = ''long'';\r\n$mip_form[''2''][''desc''] = ''Höhe'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''600'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nunset($mip_form);\r\n?>', '<iframe src="MOD_VALUE[0]" width="MOD_VALUE[1]" height="MOD_VALUE[2]" name="webgrab"frameborder="0">\r\n<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen:\r\nSie k&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis\r\naufrufen: <a href="MOD_VALUE[0]">SELFHTML</a></p>\r\n</iframe>\r\n', '', 0, 1, 1, 1079086947, 1132966959, 'mod:0d12af53fd4f88442e60cdbe2aa77a00:900a25b1', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (16, 'Popup (automatisch)', '1.01', 'Content', '', '<?PHP\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname (Hovermenü):'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Popupbild'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Feldbeschreibung Titel\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''type''] = '''';\r\n$mip_form[''1''][''desc''] = ''Feldbeschreibung Titel:'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''Url der Seite (http://www.......)'';\r\n$mip_form[''1''][''tab''] = ''0'';\r\n\r\n//Feldbeschreibung Bild\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Feldbeschreibung Bild:'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''Bildauswahl'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n//Style Beschreibung\r\n$mip_form[''3''][''desc''] = ''Stylesheet für Thumbnailbild:'';\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''flag''] = ''class_only'';\r\n\r\n//Style {font1}\r\n$mip_form[''4''][''desc''] = ''Weiteres Stylesheet {font}:'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n\r\n//Thumbnail Höhe\r\n$mip_form[''5''][''cat''] = ''txt'';\r\n$mip_form[''5''][''type''] = '''';\r\n$mip_form[''5''][''desc''] = ''Thumbnail Breite (in Pixel):'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''150'';\r\n$mip_form[''5''][''tab''] = ''0'';\r\n\r\n//Thumbnail Weite\r\n$mip_form[''6''][''cat''] = ''txt'';\r\n$mip_form[''6''][''type''] = '''';\r\n$mip_form[''6''][''desc''] = ''Thumbnail Höhe (in Pixel):'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = '''';\r\n$mip_form[''6''][''tab''] = ''0'';\r\n\r\n//Aspectratio\r\n$mip_form[''7''][''cat''] = ''option'';\r\n$mip_form[''7''][''desc''] = ''Proportionen erhalten:'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''7''][''option_val''][''0''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''7''][''option_val''][''1''] = ''false'';\r\n$mip_form[''7''][''tab''] = ''0'';\r\n\r\n//Dateitypen\r\n$mip_form[''8''][''desc''] = ''Dateitypen:'';\r\n$mip_form[''8''][''cat''] = ''option'';\r\n$mip_form[''8''][''flag''] = ''multiple'';\r\n$mip_form[''8''][''size''] = ''5'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''true'';\r\n$mip_form[''8''][''option_desc''][''0''] = ''Alle verfügbaren Webgrafiken'';\r\n$mip_form[''8''][''option_val''][''0''] = ''true'';\r\n$mip_form[''8''][''option_desc''][''1''] = ''*.gif'';\r\n$mip_form[''8''][''option_val''][''1''] = ''gif'';\r\n$mip_form[''8''][''option_desc''][''2''] = ''*.jpg'';\r\n$mip_form[''8''][''option_val''][''2''] = ''jpg'';\r\n$mip_form[''8''][''option_desc''][''3''] = ''*.jpeg'';\r\n$mip_form[''8''][''option_val''][''3''] = ''jpeg'';\r\n$mip_form[''8''][''option_desc''][''4''] = ''*.png'';\r\n$mip_form[''8''][''option_val''][''4''] = ''png'';\r\n\r\n//Ordner\r\n$mip_form[''9''][''desc''] = ''Ordner: '';\r\n$mip_form[''9''][''cat''] = ''app_directory'';\r\n$mip_form[''9''][''output_cat''] = ''option'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''flag''] = ''multiple'';\r\n$mip_form[''9''][''cms_val_default''] = ''true'';\r\n$mip_form[''9''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen:'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''false'';\r\n$mip_form[''10''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''10''][''option_val''][''0''] = ''true'';\r\n$mip_form[''10''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''10''][''option_val''][''1''] = ''false'';\r\n$mip_form[''10''][''tab''] = ''0'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''11''][''cat''] = ''radio'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Bearbeitungsmenü:<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b>\r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der\r\nContent nicht editierbar.</small>'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''true'';\r\n$mip_form[''11''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''11''][''option_val''][''0''] = ''true'';\r\n$mip_form[''11''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''11''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''11''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''11''][''option_val''][''2''] = ''false'';\r\n$mip_form[''11''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''12''][''desc''] = ''Template:'';\r\n$mip_form[''12''][''cat''] = ''txtarea'';\r\n$mip_form[''12''][''rows''] = ''6'';\r\n$mip_form[''12''][''type''] = ''long'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''{popup}{editbutton}'';\r\n\r\nmip_formsp($mip_form[''0'']);//formularfeldname\r\nmip_formsp($mip_form[''1'']);//feldbeschreibung textüberschrift\r\nmip_formsp($mip_form[''2'']);//feldbeschreibung bild\r\nmip_formsp($mip_form[''3'']);//style thumbnail\r\nmip_formsp($mip_form[''4'']);//style font1\r\nmip_formsp($mip_form[''5'']);//bild breite\r\nmip_formsp($mip_form[''6'']);//bild höhe\r\nmip_formsp($mip_form[''7'']);//aspectratio\r\nmip_formsp($mip_form[''8'']);//dateitypen\r\nmip_formsp($mip_form[''9'']);//ordner\r\nmip_formsp($mip_form[''10'']);//unterordner\r\nmip_formsp($mip_form[''11'']);//menü\r\nmip_formsp($mip_form[''12'']);//template\r\necho '' <small><b>Legende:</b><br>\r\nKomplettes Popup: {popup}, Bearbeitungsbutton {editbutton}, Stylesheet für Thumbnail: {thumb_style},<br>\r\nTitel: {title}, Bildbeschreibung {desc}, Weiterer Style {font}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br>\r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n//2003 by Björn Brockmann\r\n$myPopup[''thumb_url''] = <dedi:mod type="image" id="1" mode="url" width="MOD_VALUE[5]" height="MOD_VALUE[6]" aspectratio="MOD_VALUE[7]" autoresize="true" menuoptions="false" addslashes="true" />;\r\n$myPopup[''thumb_amplitude''] = <dedi:mod type="image" id="1" mode="amplitude" width="MOD_VALUE[5]" height="MOD_VALUE[6]" aspectratio="MOD_VALUE[7]" autoresize="true" menuoptions="false" addslashes="true" />;\r\n$myPopup[''thumb_style''] = (  "MOD_VALUE[3]" == "") ? '''' : ''class="MOD_VALUE[3]"'';\r\n$myPopup[''thumb_image''] = ''<img src="''. $myPopup[''thumb_url''] .''" ''. $myPopup[''thumb_amplitude''] .'' ''. $myPopup[''thumb_style''] .'' alt="" />'';\r\n$myPopup[''popup_url''] = <dedi:mod type="image" id="1" mode="url" menuoptions="false" addslashes="true" />;\r\n$myPopup[''popup_width''] = <dedi:mod type="image" id="1" mode="width" menuoptions="false" addslashes="true" />;\r\n$myPopup[''popup_height''] = <dedi:mod type="image" id="1" mode="height" menuoptions="false" addslashes="true" />;\r\n$myPopup[''popup_desc''] = <dedi:mod type="image" id="1" mode="desc" menuoptions="false" title="MOD_VALUE[2]"  filetypes = "MOD_VALUE[8]" folders = "MOD_VALUE[9]" subfolders ="MOD_VALUE[10]" addslashes="true" />;\r\n$myPopup[''text_title''] = <dedi:mod type="text" id="1"  menuoptions="false" title="MOD_VALUE[1]" addslashes="true" />;\r\n$myPopup[''editbutton''] = <dedi:mod type="typegroup" elements="text[1],image[1]" title="MOD_VALUE[0]" menuoptions ="MOD_VALUE[11]" addslashes="true" />;\r\n$js_function_call = " onclick=\\"return gb_pop(''". $myPopup[''popup_width''] ."'', ''". $myPopup[''popup_height''] ."'', ''" . $myPopup[''popup_url''] . "'', ''". rawurlencode($myPopup[''text_title'']) ."'')\\" ";\r\nif ( empty($myPopup[''thumb_url'']) )      $myPopup[''popup''] = '''';\r\nelse $myPopup[''popup''] = ''\r\n<a href="''. $myPopup[''popup_url''] .''" ''. $js_function_call .''>''. $myPopup[''thumb_image''] .''</a>\r\n'';\r\n$myPopup[''font1''] = "MOD_VALUE[4]";\r\n\r\n$myTplVars[''thumb_url''] = ''{thumb_url}'';\r\n$myTplVars[''thumb_amplitude''] = ''{thumb_amplitude}'';\r\n$myTplVars[''thumb_style''] = ''{style}'';\r\n$myTplVars[''thumb_image''] = ''{thumb_image}'';\r\n$myTplVars[''popup_url''] = ''{popup_url}'';\r\n$myTplVars[''popup_width''] = ''{popup_width}'';\r\n$myTplVars[''popup_height''] = ''{popup_height}'';\r\n$myTplVars[''popup_desc''] = ''{popup_desc}'';\r\n$myTplVars[''text_title''] = ''{title}'';\r\n$myTplVars[''editbutton''] = ''{editbutton}'';\r\n$myTplVars[''popup''] = ''{popup}'';\r\n$myTplVars[''font1''] = ''{font1}'';\r\n\r\n$myTpl = "MOD_VALUE[12]";\r\n\r\n\r\nif($gb_pop_is_throwed_out != true){\r\n	//stellt sicher, dass die JS- Funktion bei mehrfacher Verwendung nur einmal ausgegeben wird\r\n	$gb_pop_is_throwed_out = true;\r\n	?>\r\n	<script type="text/javascript">\r\n     //<![CDATA[\r\nvar pic_popup = null\r\n\r\n	function gb_pop(b, h, url, windowtitle)\r\n	{\r\n		var tpop_bildschirmx = screen.availWidth;\r\n		var tpop_bildschirmy = screen.availHeight;\r\n\r\n		var tpop_breite = b;\r\n		var tpop_hoehe = h;\r\n\r\n		var tpop_startx = Math.round(tpop_bildschirmx / 2) - (tpop_breite / 2);\r\n		var tpop_starty = Math.round(tpop_bildschirmy / 2) - (tpop_hoehe / 2);\r\n\r\n        if (pic_popup != null && !pic_popup.closed)\r\n                pic_popup.close()\r\n\r\n		pic_popup = window.open('''', '''', "width="+ b + ", height=" + h\r\n					+ ", status=no, toolbar=no, menubar=no, resizable=yes, scrollbars=no, screenX=" + tpop_startx\r\n					+ ", left=" + tpop_startx + ", screenY=" + tpop_starty + ", top=" + tpop_starty + " ");\r\n\r\n		pic_popup.focus();\r\n		pic_popup.document.writeln(''<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'');\r\n		pic_popup.document.writeln(''<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"><head>'');\r\n		pic_popup.document.writeln(''<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />'');\r\n		pic_popup.document.writeln(''<title>''+ decodeURI(windowtitle) + ''</title></head>'');\r\n		pic_popup.document.writeln(''<body style="overflow:hidden; margin:0;">'');\r\n		pic_popup.document.writeln(''<div style="margin:0;">'');\r\n		pic_popup.document.writeln(''<a href="#" onclick="self.close()"><img src="''+ url +''" style="margin:0px; border:0 none;" alt="" /></a>'');\r\n		pic_popup.document.writeln(''</div></body></html>'');\r\n		pic_popup.document.close();\r\n		return false;\r\n	}\r\n      //]]>\r\n	</script>\r\n	<?PHP\r\n}//end if\r\n\r\n$myTpl = str_replace($myTplVars, $myPopup, $myTpl);\r\neval(''?>''.$myTpl);\r\nunset($myTpl, $myTplVars, $myPopup);\r\n?>', '', 0, 1, 1, 1089656896, 1132943160, 'mod:db17bed012e476a339fbc150009096c9:c1585a63', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (17, 'Popup (manuell)', '1.0', 'Content', '', '<?PHP\r\n//Formularname\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Formularfeldname (Hovermenü)'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Popupbild'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Feldbeschreibung Titel\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''type''] = '''';\r\n$mip_form[''1''][''desc''] = ''Feldbeschreibung Titel'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''Titel (Im Popupfenster als Titel)'';\r\n$mip_form[''1''][''tab''] = ''0'';\r\n\r\n//Feldbeschreibung Thumbnailbild\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Feldbeschreibung Thumbnailbild'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''Thumbnail'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n//Feldbeschreibung Popupbild\r\n$mip_form[''3''][''cat''] = ''txt'';\r\n$mip_form[''3''][''type''] = '''';\r\n$mip_form[''3''][''desc''] = ''Feldbeschreibung Popupbild'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''Popupbild'';\r\n$mip_form[''3''][''tab''] = ''0'';\r\n\r\n//Style Beschreibung\r\n$mip_form[''4''][''desc''] = ''Stylesheet für Thumbnailbild'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n\r\n//Style Beschreibung\r\n$mip_form[''5''][''desc''] = ''Stylesheet {font1}'';\r\n$mip_form[''5''][''cat''] = ''app_css'';\r\n$mip_form[''5''][''output_cat''] = ''option'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''flag''] = ''class_only'';\r\n\r\n//Style Beschreibung\r\n$mip_form[''6''][''desc''] = ''Stylesheet {font2}'';\r\n$mip_form[''6''][''cat''] = ''app_css'';\r\n$mip_form[''6''][''output_cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''flag''] = ''class_only'';\r\n\r\n//Dateitypen\r\n$mip_form[''7''][''desc''] = ''Dateitypen'';\r\n$mip_form[''7''][''cat''] = ''option'';\r\n$mip_form[''7''][''flag''] = ''multiple'';\r\n$mip_form[''7''][''size''] = ''5'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''0''] = ''Alle verfügbaren Webgrafiken'';\r\n$mip_form[''7''][''option_val''][''0''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''1''] = ''*.gif'';\r\n$mip_form[''7''][''option_val''][''1''] = ''gif'';\r\n$mip_form[''7''][''option_desc''][''2''] = ''*.jpg'';\r\n$mip_form[''7''][''option_val''][''2''] = ''jpg'';\r\n$mip_form[''7''][''option_desc''][''3''] = ''*.jpeg'';\r\n$mip_form[''7''][''option_val''][''3''] = ''jpeg'';\r\n$mip_form[''7''][''option_desc''][''4''] = ''*.png'';\r\n$mip_form[''7''][''option_val''][''4''] = ''png'';\r\n\r\n//Ordner\r\n$mip_form[''8''][''desc''] = ''Ordner: '';\r\n$mip_form[''8''][''cat''] = ''app_directory'';\r\n$mip_form[''8''][''output_cat''] = ''option'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''flag''] = ''multiple'';\r\n$mip_form[''8''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''9''][''cat''] = ''option'';\r\n$mip_form[''9''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''false'';\r\n$mip_form[''9''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''9''][''option_val''][''0''] = ''true'';\r\n$mip_form[''9''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''9''][''option_val''][''1''] = ''false'';\r\n$mip_form[''9''][''tab''] = ''0'';\r\n\r\n//Erweitertes Bearbeitungsmenü\r\n$mip_form[''10''][''cat''] = ''radio'';\r\n$mip_form[''10''][''type''] = '''';\r\n$mip_form[''10''][''desc''] = ''Bearbeitungsmenü<br>\r\n<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> \r\nbietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der \r\nContent nicht editierbar.</small>'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''true'';\r\n$mip_form[''10''][''option_desc''][''0''] = ''Normales Menü'';\r\n$mip_form[''10''][''option_val''][''0''] = ''true'';\r\n$mip_form[''10''][''option_desc''][''1''] = ''Erweitertes Menü'';\r\n$mip_form[''10''][''option_val''][''1''] = ''advanced'';\r\n$mip_form[''10''][''option_desc''][''2''] = ''Kein Menü'';\r\n$mip_form[''10''][''option_val''][''2''] = ''false'';\r\n$mip_form[''10''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''11''][''desc''] = ''Template'';\r\n$mip_form[''11''][''cat''] = ''txtarea'';\r\n$mip_form[''11''][''rows''] = ''6'';\r\n$mip_form[''11''][''type''] = ''long'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''{popup}{editbutton}'';\r\n\r\nmip_formsp($mip_form[''0'']);//formularfeldname\r\nmip_formsp($mip_form[''1'']);//feldbeschreibung textüberschrift\r\nmip_formsp($mip_form[''2'']);//feldbeschreibung thumbnail\r\nmip_formsp($mip_form[''3'']);//feldbeschreibung ordner\r\nmip_formsp($mip_form[''4'']);//style thumbnail\r\nmip_formsp($mip_form[''5'']);//style font1\r\nmip_formsp($mip_form[''6'']);//style font2\r\nmip_formsp($mip_form[''7'']);//dateitypen\r\nmip_formsp($mip_form[''8'']);//ordner\r\nmip_formsp($mip_form[''9'']);//unterordner\r\nmip_formsp($mip_form[''10'']);//menü\r\nmip_formsp($mip_form[''11'']);//template\r\necho '' <small><b>Legende:</b><br> \r\nKomplettes Popup: {popup}, Bearbeitungsbutton {editbutton}, Stylesheet für Thumbnail: {thumb_style},<br>\r\nTitel: {title}, Thumbnailbeschreibung {thumb_desc}, Popupbeschreibung: {popup_desc}, Weitere Styles {font1}, {font2}<br>\r\nPhp-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br>\r\nÄnderung auf der Seite gegeben hat"; ?&gt;<br>\r\n&lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br>\r\n</small>'';\r\nunset($mip_form);\r\n\r\n?>', '<?PHP\r\n//2003 by Björn Brockmann\r\n$myPopup[''thumb_url''] = <dedi:mod type="image" id="1" mode="url" menuoptions="false" addslashes="true" />;\r\n$myPopup[''thumb_amplitude''] = <dedi:mod type="image" id="1" mode="amplitude" menuoptions="false" addslashes="true" />;\r\n$myPopup[''thumb_desc''] = <dedi:mod type="image" id="1" mode="desc" menuoptions="false" title="MOD_VALUE[2]"  filetypes = "MOD_VALUE[7]" folders = "MOD_VALUE[8]" subfolders ="MOD_VALUE[9]" addslashes="true" />;\r\n$myPopup[''thumb_style''] = (  "MOD_VALUE[4]" == "") ? '''' : ''class="MOD_VALUE[4]"'';\r\n$myPopup[''thumb_image''] = ''<img src="''. $myPopup[''thumb_url''] .''" ''. $myPopup[''thumb_amplitude''] .'' ''. $myPopup[''thumb_style''] .'' border="0">'';\r\n$myPopup[''popup_url''] = <dedi:mod type="image" id="2" mode="url" menuoptions="false" addslashes="true" />;\r\n$myPopup[''popup_width''] = <dedi:mod type="image" id="2" mode="width" menuoptions="false" addslashes="true" />;\r\n$myPopup[''popup_height''] = <dedi:mod type="image" id="2" mode="height" menuoptions="false" addslashes="true" />;\r\n$myPopup[''popup_desc''] = <dedi:mod type="image" id="2" mode="desc" menuoptions="false"  filetypes = "MOD_VALUE[7]" folders = "MOD_VALUE[8]" subfolders ="MOD_VALUE[9]" title="MOD_VALUE[3]" addslashes="true" />;\r\n$myPopup[''text_title''] = <dedi:mod type="text" id="1"  menuoptions="false" title="MOD_VALUE[1]" addslashes="true" />;\r\n$myPopup[''editbutton''] = <dedi:mod type="typegroup" elements="text[1],image[1],image[2]" title="MOD_VALUE[0]" menuoptions ="MOD_VALUE[10]" addslashes="true" />;\r\n$js_function_call = " onclick=\\"return gb_pop(''". $myPopup[''popup_width''] ."'', ''". $myPopup[''popup_height''] ."'', ''" . $myPopup[''popup_url''] . "'', ''". rawurlencode($myPopup[''text_title'']) ."'')\\" ";\r\nif ( empty($myPopup[''thumb_url'']) )      $myPopup[''popup''] = '''';\r\nelse if ( empty($myPopup[''popup_url'']) ) $myPopup[''popup''] = $myPopup[''thumb_image''];\r\nelse $myPopup[''popup''] = ''<a href="''. $myPopup[''popup_url''] .''"  ''. $js_function_call .'' target="_blank">''. $myPopup[''thumb_image''] .''</a>'';\r\n$myPopup[''font1''] = "MOD_VALUE[5]";\r\n$myPopup[''font2''] = "MOD_VALUE[6]";\r\n\r\n$myTplVars[''thumb_url''] = ''{thumb_url}'';\r\n$myTplVars[''thumb_amplitude''] = ''{thumb_amplitude}'';\r\n$myTplVars[''thumb_desc''] = ''{thumb_desc}'';\r\n$myTplVars[''thumb_style''] = ''{thumb_style}'';\r\n$myTplVars[''thumb_image''] = ''{thumb_image}'';\r\n$myTplVars[''popup_url''] = ''{popup_url}'';\r\n$myTplVars[''popup_width''] = ''{popup_width}'';\r\n$myTplVars[''popup_height''] = ''{popup_height}'';\r\n$myTplVars[''popup_desc''] = ''{popup_desc}'';\r\n$myTplVars[''text_title''] = ''{title}'';\r\n$myTplVars[''editbutton''] = ''{editbutton}'';\r\n$myTplVars[''popup''] = ''{popup}'';\r\n$myTplVars[''font1''] = ''{font1}'';\r\n$myTplVars[''font2''] = ''{font2}'';\r\n\r\n$myTpl = "MOD_VALUE[11]";\r\n\r\n\r\nif($gb_pop_is_throwed_out != true){\r\n	//stellt sicher, dass die JS- Funktion bei mehrfacher Verwendung nur einmal ausgegeben wird\r\n	$gb_pop_is_throwed_out = true; \r\n	?>\r\n	<script language="javascript">\r\n	function gb_pop(b, h, url, windowtitle)\r\n	{\r\n		var tpop_bildschirmx = screen.availWidth;\r\n		var tpop_bildschirmy = screen.availHeight;\r\n\r\n		var tpop_breite = b;\r\n		var tpop_hoehe = h;\r\n\r\n		var tpop_startx = Math.round(tpop_bildschirmx / 2) - (tpop_breite / 2);\r\n		var tpop_starty = Math.round(tpop_bildschirmy / 2) - (tpop_hoehe / 2);\r\n\r\n		pic_popup = window.open('''', '''', "width="+ b + ", height=" + h\r\n					+ ", status=no, toolbar=no, menubar=no, resizable=yes, scrollbars=no, screenX=" + tpop_startx\r\n					+ ", left=" + tpop_startx + ", screenY=" + tpop_starty + ", top=" + tpop_starty + " ");\r\n\r\n		pic_popup.focus();\r\n		pic_popup.document.writeln(''<html><head><title>''+ decodeURI(windowtitle) + ''</title></head>'');\r\n		pic_popup.document.writeln(''<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">'')\r\n		pic_popup.document.writeln(''<a href="#" onclick="self.close()"><img src="''+ url +''" border="0" align="center" valign="center" style="margin:0px;"></a>'')\r\n		pic_popup.document.writeln(''</body></html>'');\r\n		pic_popup.document.close();\r\n\r\n		return false;\r\n	}\r\n	</script>\r\n	<?PHP\r\n}//end if\r\n\r\n$myTpl = str_replace($myTplVars, $myPopup, $myTpl);\r\neval(''?>''.$myTpl); \r\nunset($myTpl, $myTplVars, $myPopup);\r\n?>', '', 0, 1, 1, 1074385878, 1132967341, 'mod:36ecf070e7153a7b4cbc6190f38a549a:363fe03b', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (18, 'WYSIWYG2 mit Bildresize', '1.0', 'Content', 'Alle Bilder, die "popup" im alt-TAG stehen haben, werden resized und durch eine Popup-Funktion ersetzt. Der Bildtitel, der im Dateimanager angegeben wurde wird im Popupfenster angezeigt.', '', '<?PHP\r\n// Bearbeitungsmodus?\r\nif ($dedi_side[''edit'']) {\r\n         echo <dedi:mod type="wysiwyg2" id="1" addslashes="true">;\r\n} else {\r\n	$mod[''output''] = <dedi:mod type="wysiwyg2" id="1" addslashes="true">;\r\n\r\n	// Bild resizen\r\n	if (!function_exists(''make_watermark_image'')) {\r\n		function make_watermark_image($image, $watermarkfile, $new_image, $x, $y, $transition) {\r\n			global $cfg_dedi, $cfg_client;\r\n\r\n			require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n			$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n			$dedi_image->load($image);\r\n			if ($x != $dedi_image->img_x || $y != $dedi_image->img_y) $dedi_image->resize($x, $y);\r\n			$watermark = imagecreatefromstring(base64_decode($watermarkfile));\r\n                         $watermark_width = imagesx($watermark);\r\n                         $watermark_height = imagesy($watermark);\r\n                         $watermark_x = $x-($watermark_width+5);\r\n			$watermark_y = $y-($watermark_height+5);\r\n			imagecopymerge($dedi_image->imageHandle, $watermark, $watermark_x, $watermark_y, 0, 0, $watermark_width, $watermark_height, $transition);\r\n			$dedi_image->save($new_image);\r\n			$dedi_image->free();\r\n			unset($dedi_image);\r\n		}\r\n	}\r\n\r\n	// Bilddaten filtern\r\n	preg_match_all("/<img[^>]*? alt=[\\"\\'']?popup[\\"\\'']?[^>]*?>/i", $mod[''output''], $mod[''matches1'']);\r\n	$mod[''tag_count''] = 0;\r\n	if (is_array($mod[''matches1''][0])) {\r\n		foreach($mod[''matches1''][0] as $mod[''imagetag'']){\r\n			preg_match_all(''/(height|src|width)=["\\'']?(.*?)["\\'']?[ >]/i'',$mod[''imagetag''],$mod[''matches2''],PREG_SET_ORDER);\r\n			foreach($mod[''matches2''] as $mod[''match'']) $mod[''images''][$mod[''tag_count'']][$mod[''match''][1]] = $mod[''match''][2];\r\n			$mod[''images''][$mod[''tag_count'']][''tag''] = $mod[''imagetag''];\r\n			$mod[''tag_count'']++;\r\n		}\r\n	}\r\n\r\n	// Bilder generieren\r\n	$mod[''folder''] = str_replace($cfg_client[''htmlpath''], '''', $cfg_client[''upl_htmlpath'']);\r\n	if (is_array($mod[''images''])) {\r\n		foreach($mod[''images''] as $mod[''image'']) {\r\n			// Bildpfad relativieren\r\n			$mod[''image''][''subfolder''] = str_replace($cfg_client[''upl_htmlpath''], '''', $mod[''image''][''src'']);\r\n\r\n                		// Bild in Bildpfad und Bildendung teilen\r\n			$mod[''image''][''filename''] = substr(strrchr($mod[''image''][''subfolder''], ''/''), 1);\r\n			$mod[''image''][''subfolder''] = str_replace($mod[''image''][''filename''], '''', str_replace($mod[''folder''], '''', $mod[''image''][''subfolder'']));\r\n\r\n               		// Originalbild suchen\r\n			$sql = "SELECT pictwidth, pictheight, titel, B.description, filetype\r\n				FROM ".$dedi_db[''directory'']." A\r\n				LEFT JOIN ".$dedi_db[''upl'']." B USING(iddirectory)\r\n                                 LEFT JOIN ".$dedi_db[''filetype'']." C USING(idfiletype)\r\n				WHERE dirname=''".$mod[''image''][''subfolder'']."'' AND filename=''".$mod[''image''][''filename'']."'' LIMIT 0, 1";\r\n			$db->query($sql);\r\n			if ($db->next_record()) {\r\n				// Dateiendung entfernen\r\n				$mod[''image''][''name''] = str_replace(''.''.$db->f(''filetype''), '''', $mod[''image''][''filename'']);\r\n\r\n				// neue Dateinamen\r\n				$mod[''image''][''file''] = $mod[''folder''].$mod[''image''][''subfolder''].$mod[''image''][''filename''];\r\n				$mod[''image''][''file_resize''] = $mod[''folder''].$mod[''image''][''subfolder''].$mod[''image''][''name''].$cfg_client[''thumbext''].''_''.$mod[''image''][''width''].''x''.$mod[''image''][''height''].''.''.$db->f(''filetype'');\r\n				$mod[''image''][''file_popup''] = $mod[''folder''].$mod[''image''][''subfolder''].$mod[''image''][''name''].$cfg_client[''thumbext''].''_''.$db->f(''pictwidth'').''x''.$db->f(''pictheight'').''.''.$db->f(''filetype'');\r\n\r\n				// verkleinertes Bild generieren?\r\n				if (!@file_exists($cfg_client[''path''].$mod[''image''][''file_resize''])) {\r\n	                         	make_watermark_image($cfg_client[''path''].$mod[''image''][''file''], ''iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAMAAABFNRROAAAAB3RJTUUH1AgDFTAwhMx3cgAAAAlwSFlzAAAewgAAHsIBbtB1PgAAAARnQU1BAACxjwv8YQUAAAAJUExURf///wAAAPf397b+3M0AAAABdFJOUwBA5thmAAAAPElEQVR42mWOQRIAIAgCWf//6LSJtImTO4gopQBZEBHmmktcwrQtbFIZKsvnvbm+yezryhzoD05iUG5oAT1KAKIf0BVOAAAAAElFTkSuQmCC'', $cfg_client[''path''].$mod[''image''][''file_resize''], $mod[''image''][''width''], $mod[''image''][''height''], 80);\r\n				}\r\n\r\n				// Popupbild generieren?\r\n				if (!@file_exists($cfg_client[''path''].$mod[''image''][''file_popup''])) {\r\n	                         	make_watermark_image($cfg_client[''path''].$mod[''image''][''file''], ''iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAMAAABFNRROAAAAB3RJTUUH1AgECQgO2tm0jwAAAAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAMAUExURf///wAAAPf39wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMn6z+cAAAABdFJOUwBA5thmAAAAOUlEQVR42nWO0QoAMAgCvf7/o5dsURDzyaPMpBSgEkREsb3FpoKLOIOzrNnvCrOvK9PQH7zEoNzQAT7yAKaZKZ1UAAAAAElFTkSuQmCC'', $cfg_client[''path''].$mod[''image''][''file_popup''], $db->f(''pictwidth''), $db->f(''pictheight''), 80);\r\n				}\r\n\r\n				// Bild durch neues Bild ersetzen\r\n				$mod[''output''] = str_replace($mod[''image''][''tag''], ''<a href="javascript:new_imagepopup(\\''''.$mod[''image''][''file_popup''].''\\'',\\''''.htmlspecialchars($db->f(''titel'')).''\\'',\\''Fenster schliessen\\'',\\''\\'',\\''''.$db->f(''pictwidth'').''\\'',\\''''.$db->f(''pictheight'').''\\'',\\''true\\'')" onMouseOver="on(\\''Klicken Sie hier für eine Detailansicht\\'');return true;" onMouseOut="off();return true;"><img src="''.$mod[''image''][''file_resize''].''" width="''.$mod[''image''][''width''].''" height="''.$mod[''image''][''height''].''" alt="Klicken Sie hier für eine Detailansicht"></a>'', $mod[''output'']);\r\n                         }\r\n		}\r\n	}\r\n	echo $mod[''output''];\r\n}\r\n?>', '', 0, 1, 1, 1091618748, 1132943208, 'mod:ec8108dc93a26f333113812467b71188:ca0ad905', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (19, 'Bildertabelle mit Link', '1.0', 'Contentliste', '', '<?PHP\r\n//valref\r\n// 0 typegroup title\r\n// 1 image title\r\n// 2 link title\r\n// 3 link style\r\n// 4 image desc style\r\n// 5 image filetypes\r\n// 6 image folders\r\n// 7 image with subfolders\r\n// 8 tpl row\r\n// 9 tpl td\r\n//10 configmode\r\n//11 tpl union\r\n//12 count td\r\n//13 tpl td empty\r\n\r\n\r\n//configmode\r\n$mip_form[''10''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''size''] = ''1'';\r\n$mip_form[''10''][''option_desc''][] = ''Normal'';\r\n$mip_form[''10''][''option_val''][] =  '''';\r\n$mip_form[''10''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''10''][''option_val''][] =  ''advanced'';\r\n$mip_form[''10''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''10''][''option_val''][] =  ''hidden'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''10'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0,1,2,5,6,7,8,9,11,13);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''10''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''10''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''10''] == '''' || $dedi_mod[''value''][''10''] == ''advanced''){\r\n\r\n\r\n//Formularname typegroup\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Beschriftung Bearbeitungsmenü'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Bildertabelle'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n//Formularname bild\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''type''] = '''';\r\n$mip_form[''1''][''desc''] = ''Beschriftung Bildbearbeitungsformular'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''BILD AUSWÄHLEN'';\r\n$mip_form[''1''][''tab''] = ''0'';\r\n\r\n//Formularname Link\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Beschriftung Linkbearbeitungsformular'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''LINK AUSWÄHLEN'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n//Style Link\r\n$mip_form[''3''][''desc''] = ''Stylesheet für Link'';\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''flag''] = ''class_only'';\r\n\r\n//Style Beschreibung\r\n$mip_form[''4''][''desc''] = ''Stylesheet für Bildbeschreibung '';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n\r\n//Dateitypen\r\n$mip_form[''5''][''desc''] = ''Dateitypen'';\r\n$mip_form[''5''][''cat''] = ''option'';\r\n$mip_form[''5''][''flag''] = ''multiple'';\r\n$mip_form[''5''][''size''] = ''5'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''true'';\r\n$mip_form[''5''][''option_desc''][''0''] = ''Alle verfügbaren Webgrafiken'';\r\n$mip_form[''5''][''option_val''][''0''] = ''true'';\r\n$mip_form[''5''][''option_desc''][''1''] = ''*.gif'';\r\n$mip_form[''5''][''option_val''][''1''] = ''gif'';\r\n$mip_form[''5''][''option_desc''][''2''] = ''*.jpg'';\r\n$mip_form[''5''][''option_val''][''2''] = ''jpg'';\r\n$mip_form[''5''][''option_desc''][''3''] = ''*.jpeg'';\r\n$mip_form[''5''][''option_val''][''3''] = ''jpeg'';\r\n$mip_form[''5''][''option_desc''][''4''] = ''*.png'';\r\n$mip_form[''5''][''option_val''][''4''] = ''png'';\r\n\r\n//Ordner\r\n$mip_form[''6''][''desc''] = ''Ordner: '';\r\n$mip_form[''6''][''cat''] = ''app_directory'';\r\n$mip_form[''6''][''output_cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''flag''] = ''multiple'';\r\n$mip_form[''6''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''7''][''cat''] = ''option'';\r\n$mip_form[''7''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''false'';\r\n$mip_form[''7''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''7''][''option_val''][''0''] = ''true'';\r\n$mip_form[''7''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''7''][''option_val''][''1''] = ''false'';\r\n$mip_form[''7''][''tab''] = ''0'';\r\n\r\n// Template row\r\n$mip_form[''8''][''desc''] = ''Template Tabellenreihe<br>\r\n<small>Mögliche Templatevariablen: {td_content}</small>'';\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''rows''] = ''6'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''<tr>{td_content}</tr>'';\r\n\r\n// Template td\r\n$mip_form[''9''][''desc''] = ''Template Tabellenzelle<br>\r\n<small>Mögliche Templatevariablen: {image_style}, {image_desc}, {image}, {image_thumb}, {link_url}, {link_desc},<br>\r\n{link_target}, {link_style}, {link}, {editbutton}</small>'';\r\n$mip_form[''9''][''cat''] = ''txtarea'';\r\n$mip_form[''9''][''rows''] = ''6'';\r\n$mip_form[''9''][''type''] = ''long'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''<td>{image_thumb}<br>{editbutton}{link}</td>'';\r\n\r\n// Template td empty\r\n$mip_form[''13''][''desc''] = ''Template Tabellenzelle, wenn kein Bild ausgewählt ist<br>\r\n<small>Mögliche Templatevariablen: {editbutton}</small>'';\r\n$mip_form[''13''][''cat''] = ''txtarea'';\r\n$mip_form[''13''][''rows''] = ''6'';\r\n$mip_form[''13''][''type''] = ''long'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''cms_val_default''] = ''<td>{editbutton}</td>'';\r\n\r\n// Template union\r\n$mip_form[''11''][''desc''] = ''Verbindungstemplate<br>\r\n<small>Mögliche Templatevariablen: {table_content}</small>'';\r\n$mip_form[''11''][''cat''] = ''txtarea'';\r\n$mip_form[''11''][''rows''] = ''6'';\r\n$mip_form[''11''][''type''] = ''long'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''<table>{table_content}</table>'';\r\n\r\n// count\r\n$mip_form[''12''][''desc''] = ''Tabellenzellen in einer Reihe'';\r\n$mip_form[''12''][''cat''] = ''option'';\r\n$mip_form[''12''][''size''] = ''1'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = 3;\r\n$mip_form[''12''][''option_val''][''0''] = 1;\r\n$mip_form[''12''][''option_val''][''1''] = 2;\r\n$mip_form[''12''][''option_val''][''2''] = 3;\r\n$mip_form[''12''][''option_val''][''3''] = 4;\r\n$mip_form[''12''][''option_val''][''4''] = 5;\r\n$mip_form[''12''][''option_val''][''5''] = 6;\r\n$mip_form[''12''][''option_val''][''6''] = 7;\r\n$mip_form[''12''][''option_val''][''7''] = 8;\r\n$mip_form[''12''][''option_val''][''8''] = 9;\r\n$mip_form[''12''][''option_val''][''9''] = 10;\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''10''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\nmip_formsp($mip_form[''0'']);//typegroup title\r\nmip_formsp($mip_form[''1'']);//image title\r\nmip_formsp($mip_form[''2'']);//link title\r\nmip_formsp($mip_form[''3'']);//link style\r\nmip_formsp($mip_form[''4'']);//image desc style\r\nmip_formsp($mip_form[''12'']);//count td\r\nmip_formsp($mip_form[''5'']);//image filetypes\r\nmip_formsp($mip_form[''6'']);//image folders\r\nmip_formsp($mip_form[''7'']);//image with subfolders\r\nmip_formsp($mip_form[''9'']);//tpl td\r\nmip_formsp($mip_form[''13'']);//tpl td empty\r\nmip_formsp($mip_form[''8'']);//tpl row\r\nmip_formsp($mip_form[''11'']);//tpl union\r\n\r\n}\r\nunset($mip_form);\r\n\r\n?>', '<DEDIPHP:CACHE>\r\n//valref\r\n// 0 typegroup title\r\n// 1 image title\r\n// 2 link title\r\n// 3 link style\r\n// 4 image desc style\r\n// 5 image filetypes\r\n// 6 image folders\r\n// 7 image with subfolders\r\n// 8 tpl row\r\n// 9 tpl td\r\n//13 tpl td empty\r\n//11 tpl union\r\n//12 count td\r\n\r\n$rawdata[''image_style''] = "MOD_VALUE[4]";\r\n$rawdata[''image_desc''] = <dedi:mod type="image" id="1" mode="desc" addslashes="true" />;\r\n$rawdata[''image_desc''] = (  "MOD_VALUE[4]" == "") ? $myImage[''desc''] : ''<span class="MOD_VALUE[4]">''. $myImage[''desc''] .''</span>'';\r\n$rawdata[''image''] = <dedi:mod type="image" id="1" title="MOD_VALUE[0]"  filetypes = "MOD_VALUE[5]" folders = "MOD_VALUE[6]" subfolders ="MOD_VALUE[7]" menuoptions ="false" addslashes="true" />;\r\n$rawdata[''image_thumb''] = <dedi:mod type="image" mode="thumb" id="1" title="MOD_VALUE[0]"  filetypes = "MOD_VALUE[5]" folders = "MOD_VALUE[6]" subfolders ="MOD_VALUE[7]" menuoptions ="false" addslashes="true" />;\r\n$rawdata[''link_url''] = <dedi:mod type="link" id="1" mode="url" addslashes="true" />;\r\n$rawdata[''link_desc''] = <dedi:mod type="link" id="1" mode="desc"  addslashes="true" />;\r\n$rawdata[''link_target''] = <dedi:mod type="link" id="1" mode="target" addslashes="true" />;\r\n$rawdata[''link_style''] = "MOD_VALUE[1]";\r\n$rawdata[''link''] = <dedi:mod type="link" id="1" mode="textlink" styleclass="MOD_VALUE[3]" title="MOD_VALUE[2]" menuoptions="false" addslashes="true" />;\r\n$rawdata[''editbutton''] = <dedi:mod type="typegroup" elements="image[1],link[1]"  title="MOD_VALUE[0]" menuoptions="advanced" addslashes="true" />;\r\n$rawdata[''tpl_row''] = "MOD_VALUE[8]";\r\n$rawdata[''tpl_td''] = "MOD_VALUE[9]";\r\n$rawdata[''tpl_td_empty''] = "MOD_VALUE[13]";\r\n$rawdata[''tpl_union''] = "MOD_VALUE[11]";\r\n$rawdata[''td_count''] = (int) "MOD_VALUE[12]";\r\n\r\n//repeat id\r\n$mod[''repeat_id''] = (int) $dedi_mod[''modul''][''id''];\r\n\r\n$tpl_vars = array(''image_style'', ''image_desc'', ''image'', ''image_thumb'', ''link_url'', ''link_desc'', ''link_target'', \r\n					''link_style'', ''link'', ''editbutton'');\r\n\r\n//Template für Zelle\r\nif($rawdata[''image''] != ''''){\r\n	$mytpl[''temp''] = $rawdata[''tpl_td''];\r\n	foreach($tpl_vars AS $v){\r\n		$mytpl[''temp''] = str_replace(''{''.$v.''}'', $rawdata[$v], $mytpl[''temp'']);\r\n	}\r\n	$mytpl[''td''][ $mod[''repeat_id''] ] .= $mytpl[''temp''];\r\n}\r\n//Wenn Zelle leer\r\nelse{\r\n	$mytpl[''td''][ $mod[''repeat_id''] ] .= str_replace(''{editbutton}'', $rawdata[''editbutton''], $rawdata[''tpl_td_empty'']);\r\n}\r\n\r\n\r\n//is last parse all\r\nif($dedi_mod[''modul''][''lastentry'']){\r\n\r\n	//Leere Zellen hinzufügen\r\n	$mod[''scount''] = $mod[''repeat_id''];\r\n	while(! is_int($mod[''scount'']/$rawdata[''td_count'']) ){\r\n		$mytpl[''td''][ $mod[''scount''] ] .= str_replace(''{editbutton}'', '''',$rawdata[''tpl_td_empty'']);\r\n		$mod[''scount'']++;\r\n	}\r\n	//Tabellenreihen erstellen\r\n	$mod[''count''] = 0;\r\n	$mytpl[''td_final''] = '''';\r\n	foreach($mytpl[''td''] AS $v){\r\n		$mod[''count'']++;\r\n		$mytpl[''td_final''] .= $v;\r\n		if($mod[''count''] == $rawdata[''td_count'']){\r\n			$mytpl[''tr_final''] .= str_replace(''{td_content}'', $mytpl[''td_final''], $rawdata[''tpl_row'']);\r\n			$mytpl[''td_final''] = '''';\r\n			$mod[''count''] = 0;\r\n		}\r\n	}\r\n	if($mod[''count''] != 1){\r\n		$mytpl[''tr_final''] .= str_replace(''{td_content}'', $mytpl[''td_final''], $rawdata[''tpl_row'']);\r\n	}\r\n\r\n	$mytpl[''final''] = str_replace(''{table_content}'', $mytpl[''tr_final''], $rawdata[''tpl_union'']);\r\n	\r\n	eval(''?>''.$mytpl[''final'']); \r\n	unset($mytpl, $tpl_vars, $rawdata, $mod);\r\n}\r\n</DEDIPHP:CACHE>', '', 0, 1, 1, 1066927900, 1132943255, 'mod:215849917a7eaab1ea1c8751c28f3d6b:6ad7b131', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (20, 'Categorywalker', '1.06', 'Contentliste', 'Der Categorywalker ist ein sehr mächtiges Werkzeug auf Ihrer DeDi Website.\r\nEin Grundlegendes Verständnis für DeDi bzw. für den Aufbau von Layouts und die Benutzung\r\nvon Content-Containern ist Voraussetzung um das Modul entsprechend zu nutzen.\r\nWie bei den meisten Modulen, benutz auch der Categorywalker Templates für die Frontendausgabe.\r\nHier ist es zwingend erforderlich entsprechende Html-Grundkenntnisse mitzubringen.\r\n\r\nDer Categorywalker wurde um die Funktion bbcode zu parsen erweitert. \r\nEs kann in der Modulkonfiguration gewählt werden, ob bbcode geparst werden soll oder nicht, und welche Features und Art der Absatzbehandlung verwendet werden soll.\r\nInklusive mod-rewrite Unterstützung der Navigation von MaZderMind.', '<?php\r\n// build by STam 22.09.2004\r\n// build by hk-cons 15.09.2004\r\n// Version 1.01\r\n// ---------------------------------------------------------------\r\n// Anfang MipForms Config\r\n// Simple Config Mode\r\n$simple_mode = $dedi_mod[''value''][''39''] == 1 ? true : false;\r\n// Ordner\r\nif (!$simple_mode) {\r\n	$mip_form[''0''][''desc''] = "Strukturpunkt:<br><small>Geben Sie die Kategorie/Ordner an, welche durchsucht werden sollen.</small>";\r\n	$mip_form[''0''][''cat''] = ''app_cat'';\r\n	$mip_form[''0''][''output_cat''] = ''option'';\r\n	$mip_form[''0''][''type''] = ''long'';\r\n	$mip_form[''0''][''cms_val_default''] = ''root'';\r\n	$mip_form[''0''][''size''] = ''5'';\r\n} else {\r\n	$mip_form[''0''][''cat''] = ''hidden'';\r\n	$mip_form[''0''][''cms_val_default''] = ''this'';\r\n}\r\n$mip_form[''0''][''cms_var''] = "MOD_VAR[0]";\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n// CMS_Container\r\n$_sql[''count''] = ''cont'';\r\n$_sql[$_sql[''count'']][''query''] = $sql = "SELECT DISTINCT container FROM $dedi_db[content]"; // SELECT DISTINCT container FROM content\r\n$_sql[$_sql[''count'']][''id''] = $db->query($sql);\r\nwhile ($db->next_record()) {\r\n	$_tmp[''zb_cont''] .= $_tmp[''cont_sep''] . $db->f(''container'');\r\n	$_tmp[''cont_sep''] = '','';\r\n}\r\nif (!$_tmp[''zb_cont'']) {\r\n	$_tmp[''zb_cont''] = ''1,2,3'';\r\n	$_tmp[''zb_text''] = ''Beispiel:'';\r\n} else $_tmp[''zb_text''] = ''Vorhanden:'';\r\nif (!$simple_mode) {\r\n	$mip_form[''1''][''cat''] = ''txt'';\r\n	$mip_form[''1''][''desc''] = ''mehrere Container mit Kommata separieren!  <small>('' . $_tmp[''zb_text''] . $_tmp[''zb_cont''] . '')</small>'';\r\n	$mip_form[''1''][''tab''] = ''0'';\r\n} else {\r\n	$mip_form[''1''][''cat''] = ''hidden'';\r\n}\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = $_tmp[''zb_cont''];\r\n// Rekursion aktiviert/ deaktiviert\r\nif (!$simple_mode) {\r\n	$mip_form[''3''][''cat''] = ''option'';\r\n	$mip_form[''3''][''type''] = '''';\r\n	$mip_form[''3''][''desc''] = ''Einstellungen Rekursion:<br>\r\n                         <small>bei Deaktivierung ist das Modul auf die ausgew&auml;hlte Kategorie/Ordner beschr&auml;nkt!<br />\r\n                         Nur ausgew. Ordnerstrang alle Ordner des Rootordners</small>'';\r\n	$mip_form[''3''][''option_desc''][''0''] = ''Rekursion aktiviert'';\r\n	$mip_form[''3''][''option_val''][''0''] = ''1'';\r\n	$mip_form[''3''][''option_desc''][''1''] = ''Rekursion deaktiviert'';\r\n	$mip_form[''3''][''option_val''][''1''] = ''0'';\r\n	$mip_form[''3''][''option_desc''][''2''] = ''Nur ausgew. Ordnerstrang'';\r\n	$mip_form[''3''][''option_val''][''2''] = ''2'';\r\n	$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n	$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n	$mip_form[''3''][''tab''] = ''0'';\r\n	$mip_form[''52''][''cat''] = ''txt'';\r\n	$mip_form[''52''][''type''] = ''''; \r\n	$mip_form[''52''][''desc''] = ''Create-Datum'';\r\n	$mip_form[''52''][''cms_var''] = "MOD_VAR[52]";\r\n	$mip_form[''52''][''cms_val''] = $dedi_mod[''value''][''52'']; \r\n	$mip_form[''52''][''cms_val_default''] = '''';\r\n	$mip_form[''52''][''tab''] = ''0'';\r\n	$mip_form[''53''][''cat''] = ''txt'';\r\n	$mip_form[''53''][''type''] = ''''; \r\n	$mip_form[''53''][''desc''] = ''Modify_Datum'';\r\n	$mip_form[''53''][''cms_var''] = "MOD_VAR[53]";\r\n	$mip_form[''53''][''cms_val''] = $dedi_mod[''value''][''53'']; \r\n	$mip_form[''53''][''cms_val_default''] = '''';\r\n	$mip_form[''53''][''tab''] = ''0'';\r\n} else {\r\n	$mip_form[''3''][''cat''] = ''hidden'';\r\n	$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n	$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n	$mip_form[''3''][''cms_val_default''] = ''1'';\r\n	$mip_form[''52''][''cat''] = ''hidden'';\r\n	$mip_form[''52''][''cms_var''] = ''MOD_VAR[52]'';\r\n	$mip_form[''52''][''cms_val''] = $dedi_mod[''value''][''52''];\r\n	$mip_form[''52''][''cms_val_default''] = '''';\r\n	$mip_form[''53''][''cat''] = ''hidden'';\r\n	$mip_form[''53''][''cms_var''] = ''MOD_VAR[53]'';\r\n	$mip_form[''53''][''cms_val''] = $dedi_mod[''value''][''53''];\r\n	$mip_form[''53''][''cms_val_default''] = '''';\r\n}\r\n/**\r\n * // Hidden Version\r\n * $mip_form[''4''][''cat''] = ''hidden'';\r\n * $mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n * $mip_form[''4''][''cms_val''] = $dedi_mod[''info''][''version''];\r\n * $mip_form[''4''][''tab''] = ''0'';\r\n */\r\nif (!$simple_mode) {\r\n	// mit Startseite\r\n	$mip_form[''2''][''cat''] = ''desc'';\r\n	$mip_form[''2''][''type''] = ''chk'';\r\n	$mip_form[''2''][''desc''] = ''Startseite wird angezeigt!'';\r\n	$mip_form[''2''][''chk_var''] = ''MOD_VAR[2]'';\r\n	$mip_form[''2''][''chk_val''] = $dedi_mod[''value''][''2''];\r\n	$mip_form[''2''][''chk_val_default''] = ''1'';\r\n	$mip_form[''2''][''tab''] = ''0'';\r\n	// offline Seiten\r\n    $mip_form[''5''][''cat''] = ''option'';\r\n    $mip_form[''5''][''type''] = '''';\r\n    $mip_form[''5''][''desc''] = ''Offline-Seiten:'';\r\n    $mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n    $mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n    $mip_form[''5''][''cms_val_default''] = ''1'';\r\n    $mip_form[''5''][''option_desc''][''0''] = ''Offline-Seiten'';\r\n    $mip_form[''5''][''option_val''][''0''] = ''0'';\r\n    $mip_form[''5''][''option_desc''][''1''] = ''Online-Seiten'';\r\n    $mip_form[''5''][''option_val''][''1''] = ''1'';\r\n    $mip_form[''5''][''option_desc''][''2''] = ''Zeitgesteuert'';\r\n    $mip_form[''5''][''option_val''][''2''] = ''2'';\r\n	// offline Strukturpunkte\r\n	$mip_form[''6''][''cat''] = ''desc'';\r\n	$mip_form[''6''][''type''] = ''chk'';\r\n	$mip_form[''6''][''desc''] = ''Offline geschaltete Strukturpunkte werden angezeigt!'';\r\n	$mip_form[''6''][''chk_var''] = ''MOD_VAR[6]'';\r\n	$mip_form[''6''][''chk_val''] = $dedi_mod[''value''][''6''];\r\n	// Custom Content ausschließen\r\n	$mip_form[''34''][''cat''] = ''desc'';\r\n	$mip_form[''34''][''type''] = ''chk'';\r\n	$mip_form[''34''][''desc''] = ''Custom Content wird angezeigt! <small>(Custom Content ist nicht in der DeDi:Type definiert!)</small>'';\r\n	$mip_form[''34''][''chk_var''] = ''MOD_VAR[34]'';\r\n	$mip_form[''34''][''chk_val''] = $dedi_mod[''value''][''34''];\r\n	/**\r\n	 * // geschützte Strukturpunkte\r\n	 * $mip_form[''7''][''cat''] = ''desc'';\r\n	 * $mip_form[''7''][''type''] = ''chk'';\r\n	 * $mip_form[''7''][''desc''] = ''Gesch&uuml;tzte Strukturpunkte werden angezeigt!'';\r\n	 * $mip_form[''7''][''chk_var''] = ''MOD_VAR[7]'';\r\n	 * $mip_form[''7''][''chk_val''] = $dedi_mod[''value''][''7''];\r\n	 */\r\n} else {\r\n	$mip_form[''2''][''cat''] = ''hidden'';\r\n	$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n	$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n	$mip_form[''2''][''tab''] = ''0'';\r\n	$mip_form[''2''][''cms_val_default''] = ''1'';\r\n}\r\n// Sortieren nach\r\n$mip_form[''8''][''cat''] = ''option'';\r\n$mip_form[''8''][''type''] = '''';\r\n$mip_form[''8''][''desc''] = ''Seiten sortieren nach:'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = '''';\r\n$mip_form[''8''][''option_desc''][''0''] = ''Standard (wie backend)'';\r\n$mip_form[''8''][''option_val''][''0''] = ''CATART.sortindex'';\r\n$mip_form[''8''][''option_desc''][''1''] = ''Seitentitel'';\r\n$mip_form[''8''][''option_val''][''1''] = ''ARTLANG.title'';\r\n$mip_form[''8''][''option_desc''][''2''] = ''Zusammenfassung'';\r\n$mip_form[''8''][''option_val''][''2''] = ''ARTLANG.summary'';\r\n$mip_form[''8''][''option_desc''][''3''] = ''Erstellungsdatum'';\r\n$mip_form[''8''][''option_val''][''3''] = ''ARTLANG.created'';\r\n$mip_form[''8''][''option_desc''][''4''] = ''&Auml;nderungsdatum'';\r\n$mip_form[''8''][''option_val''][''4''] = ''ARTLANG.lastmodified'';\r\n$mip_form[''8''][''option_desc''][''5''] = ''Author'';\r\n$mip_form[''8''][''option_val''][''5''] = ''ARTLANG.author'';\r\n$mip_form[''8''][''option_desc''][''6''] = ''SideId'';\r\n$mip_form[''8''][''option_val''][''6''] = ''ARTLANG.idside'';\r\n// Sortieren aufsteigend/ absteigend\r\n$mip_form[''9''][''cat''] = ''radio'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = '''';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''ASC'';\r\n$mip_form[''9''][''option_desc''][''0''] = ''aufsteigend'';\r\n$mip_form[''9''][''option_val''][''0''] = ''ASC'';\r\n$mip_form[''9''][''option_desc''][''1''] = ''absteigend'';\r\n$mip_form[''9''][''option_val''][''1''] = ''DESC'';\r\n$mip_form[''9''][''tab''] = ''0'';\r\n// Navigation aktiviert/ deaktiviert\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''type''] = '''';\r\n$mip_form[''10''][''desc''] = ''Einstellungen Navigation:'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''option_desc''][''0''] = ''Navigation aktiviert'';\r\n$mip_form[''10''][''option_val''][''0''] = ''1'';\r\n$mip_form[''10''][''option_desc''][''1''] = ''Navigation deaktiviert'';\r\n$mip_form[''10''][''option_val''][''1''] = ''0'';\r\n$mip_form[''10''][''tab''] = ''0'';\r\n// Navigation template vorwärts aktiv\r\n$mip_form[''11''][''cat''] = ''txtarea'';\r\n$mip_form[''11''][''type''] = ''long'';\r\n$mip_form[''11''][''rows''] = ''1'';\r\n$mip_form[''11''][''desc''] = ''Button vorw&auml;rts aktiviert<br><small><u>M&ouml;gliche Templatevariable:</u> {url}</small>'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''&nbsp;<a href ="{url}">&gt;&gt;</a>'';\r\n$mip_form[''11''][''tab''] = ''0'';\r\n// Navigation template vorwärts deaktiviert\r\n$mip_form[''12''][''cat''] = ''txtarea'';\r\n$mip_form[''12''][''type''] = ''long'';\r\n$mip_form[''12''][''rows''] = ''1'';\r\n$mip_form[''12''][''desc''] = ''Button vorw&auml;rts deaktiviert'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''&nbsp;&gt;&gt;'';\r\n$mip_form[''12''][''tab''] = ''0'';\r\n// Navigation template rückwärts aktiv\r\n$mip_form[''13''][''cat''] = ''txtarea'';\r\n$mip_form[''13''][''type''] = ''long'';\r\n$mip_form[''13''][''rows''] = ''1'';\r\n$mip_form[''13''][''desc''] = ''Button r&uuml;ckw&auml;rts aktiviert<br><small><u>M&ouml;gliche Templatevariable:</u>&nbsp;{url}</small>'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''cms_val_default''] = ''<a href ="{url}">&lt;&lt;</a>&nbsp;|'';\r\n$mip_form[''13''][''tab''] = ''0'';\r\n// Navigation template rückwärts deaktiviert\r\n$mip_form[''14''][''cat''] = ''txtarea'';\r\n$mip_form[''14''][''type''] = ''long'';\r\n$mip_form[''14''][''rows''] = ''1'';\r\n$mip_form[''14''][''desc''] = ''Button r&uuml;ckw&auml;rts deaktiviert'';\r\n$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''cms_val_default''] = ''&lt;&lt;&nbsp;|'';\r\n$mip_form[''14''][''tab''] = ''0'';\r\n// Navigation template numerisch aktiv\r\n$mip_form[''15''][''cat''] = ''txtarea'';\r\n$mip_form[''15''][''type''] = ''long'';\r\n$mip_form[''15''][''rows''] = ''1'';\r\n$mip_form[''15''][''desc''] = ''Button numerisch aktiviert<br><small><u>M&ouml;gliche Templatevariablen:</u>&nbsp;{url}, {number}</small>'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''cms_val_default''] = ''&nbsp;<a href ="{url}">{number}</a>&nbsp;|'';\r\n$mip_form[''15''][''tab''] = ''0'';\r\n// Navigation template numerisch deaktiviert\r\n$mip_form[''16''][''cat''] = ''txtarea'';\r\n$mip_form[''16''][''type''] = ''long'';\r\n$mip_form[''16''][''rows''] = ''1'';\r\n$mip_form[''16''][''desc''] = ''Button numerisch deaktiviert<br><small><u>M&ouml;gliche Templatevariable:</u>&nbsp;{number}</small>'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''cms_val_default''] = ''&nbsp;{number}&nbsp;|'';\r\n$mip_form[''16''][''tab''] = ''0'';\r\n// Topartikel aktiviert/ deaktiviert\r\n$mip_form[''17''][''cat''] = ''option'';\r\n$mip_form[''17''][''type''] = '''';\r\n$mip_form[''17''][''desc''] = ''Einstellungen Topartikel:'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''option_desc''][''0''] = ''Topartikel deaktiviert'';\r\n$mip_form[''17''][''option_val''][''0''] = ''0'';\r\n$mip_form[''17''][''option_desc''][''1''] = ''Topartike aktiviert'';\r\n$mip_form[''17''][''option_val''][''1''] = ''1'';\r\n$mip_form[''17''][''tab''] = ''0'';\r\n// Topartikel seperat\r\n$mip_form[''18''][''cat''] = ''desc'';\r\n$mip_form[''18''][''type''] = ''chk'';\r\n$mip_form[''18''][''desc''] = ''Topartikel seperat'';\r\n$mip_form[''18''][''chk_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''chk_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''tab''] = ''0'';\r\n// Topartikel immer\r\n$mip_form[''48''][''cat''] = ''desc'';\r\n$mip_form[''48''][''type''] = ''chk'';\r\n$mip_form[''48''][''desc''] = ''Topartikel always'';\r\n$mip_form[''48''][''chk_var''] = ''MOD_VAR[48]'';\r\n$mip_form[''48''][''chk_val''] = $dedi_mod[''value''][''48''];\r\n$mip_form[''48''][''tab''] = ''0'';\r\n$_tmp[''Tempvars''] = ''<b><i>Content-Vars:</i></b>&nbsp;{text [cut(text|br|html):xy]}, {text:x [cut(text|br|html):xy]}, {textarea [cut(text|br|html):xy]}, {textarea:x [cut(text|br|html):xy]},<br>\r\n                          {wysiwyg [cut(text|br|html):xy]}, {wysiwyg:x [cut(text|br|html):xy]}, {wysiwyg2 [cut(text|br|html):xy]}, {wysiwyg2:x [cut(text|br|html):xy]},<br>\r\n                          {img[ thumb]/[ url]/[ name]/[ height]/[ width]/[ aspect]/[ mime]/[ type]/[ id]/[ titel]/[ description]},<br>\r\n                          {img:x[ thumb]/[ url]/[ name]/[ height]/[ width]/[ aspect]/[ mime]/[ type]/[ id]/[ titel]/[ description]},<br>\r\n                          {img_descr [cut(text|br|html):xy]}, {img_descr:x [cut(text|br|html):xy]}, {link}, {link:x}, {link_descr [cut(text|br|html):xy]},<br>\r\n                          {link_descr:x [cut(text|br|html):xy]}, {link_target}, {link_target:x},<br>\r\n                          {file[ url]/[ name]/[ id]/[ titel]/[ description]}, {file:x[ url]/[ name]/[ id]/[ titel]/[ description]}, {file_descr [cut(text|br|html):xy]},<br>\r\n                          {file_descr:x [cut(text|br|html):xy]}, {file_target}, {file_target:x},<br>\r\n                          {sourcecode [cut(text|br|html):xy]}, {sourcecode:x [cut(text|br|html):xy]},<br>\r\n                          <b><i>Fonts:</i></b>&nbsp;{font1}, {font2}, {font3}, {font4}, {font5} werden immer als <i>Class</i> eingebunden.<br>\r\n                          <b><i>Site-Vars:</i></b>&nbsp;{url_to_artikel}&nbsp;{url_to_cat}&nbsp;{author_nick}, {author_nname}, {author_vname}, {author_email},<br>\r\n                          {created_date}, {created_time}, {last_modified_date}, {last_modified_time}, {summary}, {description}, {title},<br>\r\n                          {idcatside}, {idside}, {idcat}, {idsidelang}, {idlang}<br>\r\n                          <b><i>Scripttags:</i></b>&nbsp;{[!|not]exist yyy:x}...{else}...{/[!|not]exist}, {loop[:max] yyy}/{/loop}, {each yyy  [cut(text|br|html):xy][ thumb]/[ url]/[ name]}'';\r\n$_tmp[''Legend_s''] = ''<br><u>Legende:</u> <b>{text}</b> -> ist der 1. Text, {text:<b>x</b>} -> <i>x</i> (void:integer) bezeichnet den x-ten Text!</small>'';\r\n$_tmp[''Legend_b''] = ''<br><u>Legende:</u><br>\r\n                                  <b>{text}</b> -> ist der 1. Text, {text:<b>x</b>} -> <i>x</i> (void:integer) bezeichnet den x-ten Text!<br>\r\n                                  {[!|not]exist <b>yyy</b>[:<i>x</i>]}/{/[!|not]exist} -> Beschreibt eine Variablenabfrage f&uuml;r <i>yyy:x</i><br>\r\n                                  man kann somit im Template sicherstellen das ein Layout wie "{exist text:3}[b]{text:3}[/b][br]{/exist}"<br>\r\n                                  nicht ausgef&uuml;hrt wird, wenn die Variable nicht existiert oder leer ist!<br>\r\n                                  Auch eine <i>nicht</i>-Abfrage ist möglich zB: "{!exist text:3}[b]{text:3}[/b][br]{/!exist}"<br>\r\n                                  und eine <i>alternative</i> Anweisung wie "{exist text:3}[b]{text:3}[/b][br]{else}[b]{textarea:2}[/b][br]{/exist}"<br>\r\n                                  ist möglich!<br>\r\n                                  {loop[:max] <b>yyy</b>}/{/loop} -> Beschreibt eine Schleife um den Contenttype <i>yyy</i><br>\r\n                                  man kann somit im Template ein Layout wie "[ul]{loop text}[li][b]{text}[/b][/li]{/loop}[/ul]"<br>\r\n                                  mehrfach durchlaufen und alle Inhalte von zB: {text} wiedergeben! Innerhalb des Loop kann über <br>\r\n                                  <b>:loop</b> auf den Loop-Counter  zurückgegriffen werden, zB: "[ul]{loop text}[li][b]{text}{img:1}{textarea:loop}[/b][/li]{/loop}[/ul]".\r\n                                  Ein optionales "[ul]{loop<b>:3</b> text}..." beendet den Loop vorzeitig bei 3 durchl&auml;ufen.<br>\r\n                                  {each <b>yyy</b>} -> Ist die kurzform von "{loop text}{text}{/loop}"<br>\r\n                                  es wird nur eine Schleife um den Contenttype <i>yyy</i>durchlaufen ohne Layout-Inhalte!<br>\r\n                                  <b>Cuttexte:</b> das Attribut [cut(text|br|html):xy] ist eine optionale Einstellung (ohne die eckigen [...] Klammern) um den Text auf xy Zeichen zu k&uuml;rzen!\r\n                                  z.B.: {text:1 cuttext:100} - Damit kann man Teaser erzeugen die 100 Zeichen lang sind Minus das Letzte (&uuml;berh&auml;ngige) Wort aus dem erstem Textfeld einer Seite.<br>\r\n                                  <i>cuttext</i> - reiner Text als Ergebnis, <i>cutbr</i> - Text mit Zeilenumbr&uuml;chen, <i>cuthtml</i> - kompletter Html-Code mit Broken-Tag ersetzung!<br>\r\n                                  <b>File/Image:</b><i>[ thumb]/[ url]/[ name]/[ height]/[ width]/[ aspect]/[ mime]/[ type]/[ id]<br>\r\n                                  <u>Attribute:</u></i> - <i>thumb</i> - zeigt nur das Thumbnail an (wenn kein Thumbnail da ist wird ein Rezize-Image &uuml;ber Html ausgef&uuml;hrt, zB: bei Gifs !!!),\r\n                                  <i>url</i> - &uuml;bergibt den Pfad,&nbsp;<i>name</i> - &uuml;bergibt den Namen.&nbsp;<i>height</i> - &uuml;bergibt die Image-H&ouml;he.&nbsp;<i>width</i> - &uuml;bergibt die Image-Weite.<br>\r\n                                  &nbsp;<i>aspect</i> - &uuml;bergibt den String \\''height="xx" width="yy"\\''.&nbsp;<i>mime/type</i> - &uuml;bergibt den Image-Mime/Type.&nbsp;<i>name</i> - &uuml;bergibt den Namen.<br>\r\n                                  &nbsp;<i>id</i> - &uuml;bergibt die UploadID des Filemanager.\r\n                                  <b>Die Legende gilt f&uuml;r alle Templates!</b> F&uuml;r weitere Erkl&auml;rung konsultieren Sie Bitte die Dokumentation!</small>'';\r\n$mip_form[''19''][''cat''] = ''desc'';\r\n$mip_form[''19''][''desc''] = '' <small>(Topartikel wird nicht in content1, content2  -loop angezeigt)</small>'';\r\n$mip_form[''19''][''tab''] = ''1'';\r\n// Topartikel Cuttemplate\r\n$mip_form[''45''][''cat''] = ''txtarea'';\r\n$mip_form[''45''][''type''] = ''long'';\r\n$mip_form[''45''][''rows''] = ''1'';\r\n$mip_form[''45''][''desc''] = ''Template Cut-Top<br><small><u>M&ouml;gliche Templatevariablen:</u>&nbsp wie Content-Template<br>\r\n                          Das Template ersetzt den Rest des Cutstring!'';\r\n$mip_form[''45''][''cms_var''] = ''MOD_VAR[45]'';\r\n$mip_form[''45''][''cms_val''] = $dedi_mod[''value''][''45''];\r\n$mip_form[''45''][''cms_val_default''] = "&nbsp;...";\r\n$mip_form[''45''][''tab''] = ''0'';\r\n// Topartikel template\r\n$mip_form[''20''][''cat''] = ''txtarea'';\r\n$mip_form[''20''][''type''] = ''long'';\r\n$mip_form[''20''][''rows''] = ''7'';\r\n$mip_form[''20''][''desc''] = ''Template Top-Artikel<br><small><u>M&ouml;gliche Templatevariablen:</u><br>'' . $_tmp[''Tempvars''] . $_tmp[''Legend_b''];\r\n$mip_form[''20''][''cms_var''] = ''MOD_VAR[19]'';\r\n$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n$mip_form[''20''][''cms_val_default''] = "<div style=\\"border-width:1px;border-style:dotted;\\">\r\n<b>{text}</b><br><br>{textarea}<br>\r\n<p>&nbsp;...<a href=\\"{url_to_artikel}\\">weiterlesen</a>\r\n</div><br><br>";\r\n$mip_form[''20''][''tab''] = ''0'';\r\n// Anker aktiviert/ deaktiviert\r\n$mip_form[''21''][''cat''] = ''option'';\r\n$mip_form[''21''][''type''] = '''';\r\nif (!$simple_mode) $_an_text = ''(Top-Artikel, Content1 und Content2) '';\r\n$mip_form[''21''][''desc''] = ''Einstellungen Anker:<br><small>wird nur bei min. 2 Artikel '' . $_an_text . ''angezeigt!</small>'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''21''][''option_desc''][''0''] = ''Anker aktiviert'';\r\n$mip_form[''21''][''option_val''][''0''] = ''1'';\r\n$mip_form[''21''][''option_desc''][''1''] = ''Anker deaktiviert'';\r\n$mip_form[''21''][''option_val''][''1''] = ''0'';\r\n$mip_form[''21''][''tab''] = ''0'';\r\n// Ankername beziehen aus\r\n$mip_form[''22''][''cat''] = ''option'';\r\n$mip_form[''22''][''type''] = '''';\r\n$mip_form[''22''][''desc''] = ''Ankername beziehen aus'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''22''][''option_desc''][''0''] = ''Seitentitel'';\r\n$mip_form[''22''][''option_val''][''0''] = ''title'';\r\n$mip_form[''22''][''option_desc''][''1''] = ''1. Textfeld'';\r\n$mip_form[''22''][''option_val''][''1''] = ''text'';\r\n$mip_form[''22''][''option_desc''][''2''] = ''1. Textarea'';\r\n$mip_form[''22''][''option_val''][''2''] = ''textarea'';\r\n$mip_form[''22''][''option_desc''][''3''] = ''Kurzbeschreibung'';\r\n$mip_form[''22''][''option_val''][''3''] = ''description'';\r\n$mip_form[''22''][''tab''] = ''0'';\r\n// Anker template\r\n$mip_form[''23''][''cat''] = ''txtarea'';\r\n$mip_form[''23''][''type''] = ''long'';\r\n$mip_form[''23''][''rows''] = ''1'';\r\n$mip_form[''23''][''desc''] = ''Template Anker<br><small><u>M&ouml;gliche Templatevariable:</u>&nbsp;{anchor_url}, {anchor_desc}</small>'';\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''23''][''cms_val_default''] = "<a href=\\"{anchor_url}\\">{anchor_desc}</a><br>";\r\n$mip_form[''23''][''tab''] = ''0'';\r\n// Content1 aktiviert/ deaktiviert\r\nif (!$simple_mode) {\r\n	$mip_form[''24''][''cat''] = ''option'';\r\n	$mip_form[''24''][''type''] = '''';\r\n	$mip_form[''24''][''desc''] = ''Einstellungen Content1 Schleife:'';\r\n	$mip_form[''24''][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n	$mip_form[''24''][''option_desc''][''0''] = ''Content1 aktiviert'';\r\n	$mip_form[''24''][''option_val''][''0''] = ''1'';\r\n	$mip_form[''24''][''option_desc''][''1''] = ''Content1 deaktiviert'';\r\n	$mip_form[''24''][''option_val''][''1''] = ''0'';\r\n	$mip_form[''24''][''tab''] = ''0'';\r\n} else {\r\n	$mip_form[''24''][''cat''] = ''hidden'';\r\n	$mip_form[''24''][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n	$mip_form[''24''][''cms_val_default''] = ''1'';\r\n	$mip_form[''24''][''tab''] = ''0'';\r\n}\r\n// Content1 anzahl artikel\r\n$mip_form[''25''][''cat''] = ''option'';\r\n$mip_form[''25''][''type''] = '''';\r\n$mip_form[''25''][''desc''] = ''Anzahl Artikel'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''24''];\r\nfor($i = 0; $i < 25;$i++) {\r\n	$mip_form[''25''][''option_val''][$i] = $i + 1;\r\n}\r\n$mip_form[''25''][''option_desc''][''25''] = ''alle'';\r\n$mip_form[''25''][''option_val''][''25''] = ''0'';\r\n$mip_form[''25''][''tab''] = ''0'';\r\nif (!$simple_mode) $_tmp[''con_num''] = ''1'';\r\n// Content1 Cuttemplate\r\nif (!$simple_mode) {\r\n    $mip_form[''46''][''cat''] = ''txtarea'';\r\n} else {\r\n	$mip_form[''46''][''cat''] = ''hidden'';\r\n}\r\n$mip_form[''46''][''type''] = ''long'';\r\n$mip_form[''46''][''rows''] = ''1'';\r\n$mip_form[''46''][''desc''] = ''Template Cut-Content'' . $_tmp[''con_num''] . ''<br><small><u>M&ouml;gliche Templatevariablen:</u>&nbsp wie Content-Template<br>\r\n                          Das Template ersetzt den Rest des Cutstring!'';\r\n$mip_form[''46''][''cms_var''] = ''MOD_VAR[46]'';\r\n$mip_form[''46''][''cms_val''] = $dedi_mod[''value''][''46''];\r\n$mip_form[''46''][''cms_val_default''] = "&nbsp;...";\r\n$mip_form[''46''][''tab''] = ''0'';\r\n// Content1 template\r\n$mip_form[''26''][''cat''] = ''txtarea'';\r\n$mip_form[''26''][''type''] = ''long'';\r\n$mip_form[''26''][''rows''] = ''7'';\r\n$mip_form[''26''][''desc''] = ''Template Content'' . $_tmp[''con_num''] . ''<br><small><u>M&ouml;gliche Templatevariablen:</u><br>'' . $_tmp[''Tempvars''];\r\nif (!$siple_mode) $mip_form[''26''][''desc''] .= $_tmp[''Legend_s'']; else $mip_form[''26''][''desc''] .= $_tmp[''Legend_b''];\r\n$mip_form[''26''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''26''][''cms_val_default''] = "<b>{text}</b><br><br>{textarea}<br>\r\n<p>&nbsp;...<a href=\\"{url_to_artikel}\\">weiterlesen</a>\r\n<br><br>";\r\n$mip_form[''26''][''tab''] = ''0'';\r\n// Content2 aktiviert/ deaktiviert\r\n$mip_form[''27''][''cat''] = ''option'';\r\n$mip_form[''27''][''type''] = '''';\r\n$mip_form[''27''][''desc''] = ''Einstellungen Content2 Schleife:'';\r\n$mip_form[''27''][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n$mip_form[''27''][''option_desc''][''0''] = ''Content2 deaktiviert'';\r\n$mip_form[''27''][''option_val''][''0''] = ''0'';\r\n$mip_form[''27''][''option_desc''][''1''] = ''Content2 aktiviert'';\r\n$mip_form[''27''][''option_val''][''1''] = ''1'';\r\n$mip_form[''27''][''tab''] = ''0'';\r\n// Content2 anzahl artikel\r\n$mip_form[''28''][''cat''] = ''option'';\r\n$mip_form[''28''][''type''] = '''';\r\n$mip_form[''28''][''desc''] = ''Anzahl Artikel'';\r\n$mip_form[''28''][''cms_var''] = ''MOD_VAR[27]'';\r\n$mip_form[''28''][''cms_val''] = $dedi_mod[''value''][''27''];\r\nfor($i = 0; $i < 25;$i++) {\r\n	$mip_form[''28''][''option_val''][$i] = $i + 1;\r\n}\r\n$mip_form[''28''][''option_desc''][''25''] = ''alle'';\r\n$mip_form[''28''][''option_val''][''25''] = ''0'';\r\n$mip_form[''28''][''tab''] = ''0'';\r\n// Content2 Cuttemplate\r\n$mip_form[''47''][''cat''] = ''txtarea'';\r\n$mip_form[''47''][''type''] = ''long'';\r\n$mip_form[''47''][''rows''] = ''1'';\r\n$mip_form[''47''][''desc''] = ''Template Cut-Content2<br><small><u>M&ouml;gliche Templatevariablen:</u>&nbspwie Content-Template<br>\r\n                          Das Template ersetzt den Rest des Cutstring!'';\r\n$mip_form[''47''][''cms_var''] = ''MOD_VAR[47]'';\r\n$mip_form[''47''][''cms_val''] = $dedi_mod[''value''][''47''];\r\n$mip_form[''47''][''cms_val_default''] = "&nbsp;...";\r\n$mip_form[''47''][''tab''] = ''0'';\r\n// Content2 template\r\n$mip_form[''29''][''cat''] = ''txtarea'';\r\n$mip_form[''29''][''type''] = ''long'';\r\n$mip_form[''29''][''rows''] = ''7'';\r\n$mip_form[''29''][''desc''] = ''Template Content2<br><small><u>M&ouml;gliche Templatevariablen:</u><br>'' . $_tmp[''Tempvars''] . $_tmp[''Legend_s''];\r\n$mip_form[''29''][''cms_var''] = ''MOD_VAR[28]'';\r\n$mip_form[''29''][''cms_val''] = $dedi_mod[''value''][''28''];\r\n$mip_form[''29''][''cms_val_default''] = "\r\n<p>&nbsp;...<a href=\\"{url_to_artikel}\\">weiterlesen</a>\r\n<br><br>";\r\n$mip_form[''29''][''tab''] = ''0'';\r\n// Verbindungs template\r\n$mip_form[''30''][''cat''] = ''txtarea'';\r\n$mip_form[''30''][''type''] = ''long'';\r\n$mip_form[''30''][''rows''] = ''7'';\r\nif (!$simple_mode) $_ver_var = ''{top_articel}, {content1}, {content2}'';\r\nelse $_ver_var = ''{content}'';\r\n$mip_form[''30''][''desc''] = ''Verbindungs- Template<br><small><u>M&ouml;gliche Templatevariablen:</u>&nbsp;{navi_backward}, {navi},<br>\r\n{navi_forward}, {anchors}, '' . $_ver_var . ''<br>\r\n{font1}, {font2}, {font3}, {font4}, {font5}'';\r\n$mip_form[''30''][''cms_var''] = ''MOD_VAR[29]'';\r\n$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''29''];\r\nif (!$simple_mode) $_ver_temp = ''{top_articel}\r\n{content1}\r\n{content2}'';\r\nelse $_ver_temp = ''{content}'';\r\n$mip_form[''30''][''cms_val_default''] = "<center>{navi_backward} {navi} {navi_forward}</center>\r\n<hr>\r\n{anchors}\r\n" . $_ver_temp . "\r\n<hr>\r\n<center>{navi_backward} {navi} {navi_forward}</center>";\r\n$mip_form[''30''][''tab''] = ''0'';\r\n// Suchen aktiviert/ deaktiviert\r\n$mip_form[''31''][''cat''] = ''option'';\r\n$mip_form[''31''][''type''] = '''';\r\n$mip_form[''31''][''desc''] = ''Einstellungen Begrenzung/Suchmuster:<br>\r\n                         <small>Das Suchmuster ist begrenzt auf die Meta-Informationen!</small>'';\r\n$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n$mip_form[''31''][''option_desc''][''0''] = ''Suchen deaktiviert'';\r\n$mip_form[''31''][''option_val''][''0''] = ''0'';\r\n$mip_form[''31''][''option_desc''][''1''] = ''Suchen aktiviert'';\r\n$mip_form[''31''][''option_val''][''1''] = ''1'';\r\n$mip_form[''31''][''tab''] = ''0'';\r\n// Suchen Anzahl Treffer\r\n$mip_form[''32''][''cat''] = ''option'';\r\n$mip_form[''32''][''type''] = '''';\r\n$mip_form[''32''][''desc''] = ''Anzeige begrenzen: <small>z.B. f&uuml;r Top-Listen <i>ala</i> "Top10-News"</small>'';\r\n$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n$mip_form[''32''][''option_val''][''0''] = ''0'';\r\n$mip_form[''32''][''option_desc''][''0''] = ''unbegrenzt'';\r\nfor($i = 1; $i < 10;$i++) {\r\n	$mip_form[''32''][''option_val''][$i] = $i;\r\n}\r\nfor($i = 1; $i <= 10;$i++) {\r\n	$mip_form[''32''][''option_val''][($i + 9)] = $i * 10;\r\n}\r\n$mip_form[''32''][''cms_val_default''] = ''0'';\r\n$mip_form[''32''][''tab''] = ''0'';\r\n// Suchmuster\r\n$mip_form[''33''][''cat''] = ''txtarea'';\r\n$mip_form[''33''][''type''] = ''long'';\r\n$mip_form[''33''][''rows''] = ''1'';\r\n$mip_form[''33''][''desc''] = ''Suchmuster<br>\r\n<small><u>M&ouml;gliche Verkn&uuml;pfungen:</u><br>\r\nSteuercodes: <i>(NUMMERISCH)STRING</i> (+)AND, (|)OR, (-/!)NOT, (\\''foo bar\\'')PHRASE, (=)LIKE, (!=)UNLIKE, (>)BIGGER, (<)SMALLER, (<>)NONEQUAL, ([d]d.[m]m.[yy]yy)NOW oder TIMESTAMP<br>\r\nSuchfelder: <i>(SCHL&Uuml;SSEL)SPALTE</i> (KEY)META_KEYWORDS, (DESC)META_DESCRIPTION, (TITEL)SIDE_TITLE, (AUTHOR)SIDE_AUTHOR<br>\r\n(CREATED)SIDE_DATE, (MODIFY)SIDE_MODIFY_DATE, (SUMMARY)SIDE_SUMMARY, (IS_START)SIDE_IS_START, (IDCATSIDE)SIDE_IDCATSIDE, (IDCAT)SIDE_IDCAT, (IDSIDE)SIDE_IDSIDE</small>'';\r\n$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n$mip_form[''33''][''cms_val_default''] = "TITEL LIKE foo OR TITEL LIKE bar";\r\n$mip_form[''33''][''tab''] = ''0'';\r\n//Fehlermeldung\r\n$mip_form[''54''][''cat''] = ''txt'';\r\n$mip_form[''54''][''desc''] = ''Externe Datei zur Auswertung von Suchkriterien'';\r\n$mip_form[''54''][''cms_var''] = ''MOD_VAR[54]'';\r\n$mip_form[''54''][''cms_val''] = $dedi_mod[''value''][''54''];\r\n$mip_form[''54''][''tab''] = ''0'';\r\n//Fehlermeldung\r\n$mip_form[''50''][''cat''] = ''txt'';\r\n$mip_form[''50''][''desc''] = ''Fehlermeldung bei nicht erfolgreicher Suche'';\r\n$mip_form[''50''][''cms_var''] = ''MOD_VAR[50]'';\r\n$mip_form[''50''][''cms_val''] = $dedi_mod[''value''][''50''];\r\n$mip_form[''50''][''tab''] = ''0'';\r\n// Schriftart Fehlermeldung {font6}\r\n$mip_form[''49''][''desc''] = $mod_lang[''gen_font''] . " für Fehlermeldung {font6}:";\r\n$mip_form[''49''][''cat''] = ''app_css'';\r\n$mip_form[''49''][''output_cat''] = ''option'';\r\n$mip_form[''49''][''cms_var''] = ''MOD_VAR[49]'';\r\n$mip_form[''49''][''cms_val''] = $dedi_mod[''value''][''49''];\r\n$mip_form[''49''][''flag''] = ''class_only'';\r\n// Navigation Präfix\r\n$mip_form[''35''][''cat''] = ''txtarea'';\r\n$mip_form[''35''][''type''] = ''long'';\r\n$mip_form[''35''][''rows''] = ''1'';\r\n$mip_form[''35''][''desc''] = ''Navigation Pr&auml;fix: <small>wird am Anfang der Navigation angezeigt</small><br><small><u>M&ouml;gliche Templatevariable:</u>&nbsp;{id}</small>'';\r\n$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n$mip_form[''35''][''cms_val_default''] = ''Seite:&nbsp;{id}&nbsp;'';\r\n$mip_form[''35''][''tab''] = ''0'';\r\n// Navigation Suffix\r\n$mip_form[''36''][''cat''] = ''txtarea'';\r\n$mip_form[''36''][''type''] = ''long'';\r\n$mip_form[''36''][''rows''] = ''1'';\r\n$mip_form[''36''][''desc''] = ''Navigation Suffix: <small>wird am Ende der Navigation angezeigt</small><br><small><u>M&ouml;gliche Templatevariable:</u>&nbsp;{id}</small>'';\r\n$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n$mip_form[''36''][''cms_val_default''] = '''';\r\n$mip_form[''36''][''tab''] = ''0'';\r\n// Navigation immer\r\n$mip_form[''37''][''cat''] = ''option'';\r\n$mip_form[''37''][''type''] = '''';\r\n$mip_form[''37''][''desc''] = ''Navigation <i>immer</i> anzeigen:<br>\r\n                         <small>bei nur <u>einer</u> Ergebnis-Seite wird trotzdem die Navigation engezeigt!</small>'';\r\n$mip_form[''37''][''cms_var''] = ''MOD_VAR[37]'';\r\n$mip_form[''37''][''cms_val''] = $dedi_mod[''value''][''37''];\r\n$mip_form[''37''][''option_desc''][''0''] = ''nur Ergebnis anzeigen'';\r\n$mip_form[''37''][''option_val''][''0''] = ''0'';\r\n$mip_form[''37''][''option_desc''][''1''] = ''Immer anzeigen'';\r\n$mip_form[''37''][''option_val''][''1''] = ''1'';\r\n$mip_form[''37''][''tab''] = ''0'';\r\n// Navigation floaten\r\n$mip_form[''38''][''cat''] = ''option'';\r\n$mip_form[''38''][''type''] = '''';\r\n$mip_form[''38''][''desc''] = ''Navigation <i>floating</i>: <small>die Navigation zeigt nur eine Anzahl von Seiten an,<br>\r\n                           und die gew&auml;hlte Seite bleibt in der Mitte der Navigation!</small>'';\r\n$mip_form[''38''][''cms_var''] = ''MOD_VAR[38]'';\r\n$mip_form[''38''][''cms_val''] = $dedi_mod[''value''][''38''];\r\n$mip_form[''38''][''option_val''][''0''] = ''0'';\r\n$mip_form[''38''][''option_desc''][''0''] = ''floating aus'';\r\nfor($i = 1; $i <= 25;$i++) {\r\n	$mip_form[''38''][''option_val''][$i] = $i;\r\n}\r\n$mip_form[''38''][''cms_val_default''] = ''0'';\r\n$mip_form[''38''][''tab''] = ''0'';\r\n// Schriftart {font1}\r\n$mip_form[''40''][''desc''] = $mod_lang[''gen_font''] . " {font1}:";\r\n$mip_form[''40''][''cat''] = ''app_css'';\r\n$mip_form[''40''][''output_cat''] = ''option'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''flag''] = ''class_only'';\r\n// Schriftart {font2}\r\n$mip_form[''41''][''desc''] = $mod_lang[''gen_font''] . " {font2}:";\r\n$mip_form[''41''][''cat''] = ''app_css'';\r\n$mip_form[''41''][''output_cat''] = ''option'';\r\n$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n$mip_form[''41''][''flag''] = ''class_only'';\r\n// Schriftart {font3}\r\n$mip_form[''42''][''desc''] = $mod_lang[''gen_font''] . " {font3}:";\r\n$mip_form[''42''][''cat''] = ''app_css'';\r\n$mip_form[''42''][''output_cat''] = ''option'';\r\n$mip_form[''42''][''cms_var''] = ''MOD_VAR[42]'';\r\n$mip_form[''42''][''cms_val''] = $dedi_mod[''value''][''42''];\r\n$mip_form[''42''][''flag''] = ''class_only'';\r\n// Schriftart {font4}\r\n$mip_form[''43''][''desc''] = $mod_lang[''gen_font''] . " {font4}:";\r\n$mip_form[''43''][''cat''] = ''app_css'';\r\n$mip_form[''43''][''output_cat''] = ''option'';\r\n$mip_form[''43''][''cms_var''] = ''MOD_VAR[43]'';\r\n$mip_form[''43''][''cms_val''] = $dedi_mod[''value''][''43''];\r\n$mip_form[''43''][''flag''] = ''class_only'';\r\n// Schriftart {font5}\r\n$mip_form[''44''][''desc''] = $mod_lang[''gen_font''] . " {font5}:";\r\n$mip_form[''44''][''cat''] = ''app_css'';\r\n$mip_form[''44''][''output_cat''] = ''option'';\r\n$mip_form[''44''][''cms_var''] = ''MOD_VAR[44]'';\r\n$mip_form[''44''][''cms_val''] = $dedi_mod[''value''][''44''];\r\n$mip_form[''44''][''flag''] = ''class_only'';\r\n// Debug-Modus\r\n$mip_form[''51''][''cat''] = ''option'';\r\n$mip_form[''51''][''type''] = '''';\r\n$mip_form[''51''][''desc''] = ''Debug-Modus'';\r\n$mip_form[''51''][''cms_var''] = ''MOD_VAR[51]'';\r\n$mip_form[''51''][''cms_val''] = $dedi_mod[''value''][''51''];\r\n$mip_form[''51''][''option_val''][''0''] = ''0'';\r\n$mip_form[''51''][''option_desc''][''0''] = ''Debug aus'';\r\n$mip_form[''51''][''option_val''][''1''] = ''1'';\r\n$mip_form[''51''][''option_desc''][''1''] = ''Debug an'';\r\n\r\n// BBCODE-Modus\r\n$mip_form[''99''][''cat''] = ''desc'';\r\n$mip_form[''99''][''type''] = ''chk'';\r\n$mip_form[''99''][''desc''] = ''bbcode parsen!'';\r\n$mip_form[''99''][''chk_var''] = ''MOD_VAR[99]'';\r\n$mip_form[''99''][''chk_val''] = $dedi_mod[''value''][''99''];\r\n$mip_form[''99''][''tab''] = ''0'';\r\n//###########################\r\n//bbCode erweitert\r\n$mip_form[''994''][''cat''] = ''option'';\r\n$mip_form[''994''][''desc''] = ''bbCode ein- oder ausschalten<br>'';\r\n$mip_form[''994''][''cms_var''] = ''MOD_VAR[994]'';\r\n$mip_form[''994''][''cms_val''] = $dedi_mod[''value''][''994''];\r\n$mip_form[''994''][''cms_val_default''] = ''bbcode'';\r\n$mip_form[''994''][''option_desc''][''0''] = ''Ein'';\r\n$mip_form[''994''][''option_val''][''0''] = ''bbcode'';\r\n$mip_form[''994''][''option_desc''][''1''] = ''Aus'';\r\n$mip_form[''994''][''option_val''][''1''] = '''';\r\n$mip_form[''994''][''tab''] = ''0'';\r\n\r\n\r\n//Absatzformatierung umschalten\r\n\r\n$mip_form[''995''][''cat''] = ''option'';\r\n$mip_form[''995''][''desc''] = ''Zeilenschaltung in &lt;p&gt; oder in &lt;br&gt; umwandeln lassen<br>'';\r\n$mip_form[''995''][''cms_var''] = ''MOD_VAR[995]'';\r\n$mip_form[''995''][''cms_val''] = $dedi_mod[''value''][''995''];\r\n$mip_form[''995''][''cms_val_default''] = ''p'';\r\n$mip_form[''995''][''option_desc''][''0''] = ''&lt;p&gt;'';\r\n$mip_form[''995''][''option_val''][''0''] = ''p'';\r\n$mip_form[''995''][''option_desc''][''1''] = ''&lt;br&gt;'';\r\n$mip_form[''995''][''option_val''][''1''] = ''br'';\r\n$mip_form[''995''][''tab''] = ''0'';\r\n\r\n//Features auswählen\r\n$mip_form[''996''][''desc''] = ''Feature-Liste<br>'';\r\n$mip_form[''996''][''cat''] = ''option'';\r\n$mip_form[''996''][''flag''] = ''multiple'';\r\n$mip_form[''996''][''size''] = ''5'';\r\n$mip_form[''996''][''cms_var''] = ''MOD_VAR[996]'';\r\n$mip_form[''996''][''cms_val''] = $dedi_mod[''value''][''996''];\r\n$mip_form[''996''][''cms_val_default''] = ''true'';\r\n$mip_form[''996''][''option_desc''][''0''] = ''Alle Features aktiv'';\r\n$mip_form[''996''][''option_val''][''0''] = ''true'';\r\n$mip_form[''996''][''option_desc''][''1''] = ''bold'';\r\n$mip_form[''996''][''option_val''][''1''] = ''bold'';\r\n$mip_form[''996''][''option_desc''][''2''] = ''italic'';\r\n$mip_form[''996''][''option_val''][''2''] = ''italic'';\r\n$mip_form[''996''][''option_desc''][''3''] = ''underline'';\r\n$mip_form[''996''][''option_val''][''3''] = ''underline'';\r\n$mip_form[''996''][''option_desc''][''4''] = ''strike'';\r\n$mip_form[''996''][''option_val''][''4''] = ''strike'';\r\n$mip_form[''996''][''option_desc''][''5''] = ''sub'';\r\n$mip_form[''996''][''option_val''][''5''] = ''sub'';\r\n$mip_form[''996''][''option_desc''][''6''] = ''sup'';\r\n$mip_form[''996''][''option_val''][''6''] = ''sup'';\r\n$mip_form[''996''][''option_desc''][''7''] = ''size'';\r\n$mip_form[''996''][''option_val''][''7''] = ''size'';\r\n$mip_form[''996''][''option_desc''][''8''] = ''font'';\r\n$mip_form[''996''][''option_val''][''8''] = ''font'';\r\n$mip_form[''996''][''option_desc''][''9''] = ''class'';\r\n$mip_form[''996''][''option_val''][''9''] = ''class'';\r\n$mip_form[''996''][''option_desc''][''10''] = ''backcol'';\r\n$mip_form[''996''][''option_val''][''10''] = ''backcol'';\r\n$mip_form[''996''][''option_desc''][''11''] = ''forecol'';\r\n$mip_form[''996''][''option_val''][''11''] = ''forecol'';\r\n$mip_form[''996''][''option_desc''][''12''] = ''img'';\r\n$mip_form[''996''][''option_val''][''12''] = ''img'';\r\n$mip_form[''996''][''option_desc''][''13''] = ''abbr'';\r\n$mip_form[''996''][''option_val''][''13''] = ''abbr'';\r\n$mip_form[''996''][''option_desc''][''14''] = ''acronym'';\r\n$mip_form[''996''][''option_val''][''14''] = ''acronym'';\r\n$mip_form[''996''][''option_desc''][''15''] = ''email'';\r\n$mip_form[''996''][''option_val''][''15''] = ''email'';\r\n$mip_form[''996''][''option_desc''][''16''] = ''link'';\r\n$mip_form[''996''][''option_val''][''16''] = ''link'';\r\n$mip_form[''996''][''option_desc''][''17''] = ''br'';\r\n$mip_form[''996''][''option_val''][''17''] = ''br'';\r\n$mip_form[''996''][''option_desc''][''18''] = ''hr'';\r\n$mip_form[''996''][''option_val''][''18''] = ''hr'';\r\n$mip_form[''996''][''option_desc''][''19''] = ''anchor'';\r\n$mip_form[''996''][''option_val''][''19''] = ''anchor'';\r\n$mip_form[''996''][''option_desc''][''20''] = ''filelink'';\r\n$mip_form[''996''][''option_val''][''20''] = ''filelink'';\r\n$mip_form[''996''][''option_desc''][''21''] = ''list'';\r\n$mip_form[''996''][''option_val''][''21''] = ''list'';\r\n$mip_form[''996''][''option_desc''][''22''] = ''footnote'';\r\n$mip_form[''996''][''option_val''][''22''] = ''footnote'';\r\n$mip_form[''996''][''option_desc''][''23''] = ''code'';\r\n$mip_form[''996''][''option_val''][''23''] = ''code'';\r\n$mip_form[''996''][''option_desc''][''24''] = ''source'';\r\n$mip_form[''996''][''option_val''][''24''] = ''source'';\r\n$mip_form[''996''][''option_desc''][''25''] = ''table'';\r\n$mip_form[''996''][''option_val''][''25''] = ''table'';\r\n$mip_form[''996''][''option_desc''][''26''] = ''stylebox'';\r\n$mip_form[''996''][''option_val''][''26''] = ''stylebox'';\r\n$mip_form[''996''][''option_desc''][''27''] = ''charmap'';\r\n$mip_form[''996''][''option_val''][''27''] = ''charmap'';\r\n\r\n// Switch2SimpleMode\r\nif ($area == ''tpl_edit'') {\r\n	$tmp_form = ''<table width="640" cellpadding="0" cellspacing="0"><tr>\r\n                 <td valign="top" width="450">Einstellungen Modus:<br>\r\n                 <small>hier kann in den \\''SimpleMode\\'' gewechselt werden!</small></td>\r\n                 <td width="190"><select name="MOD_VAR[39]" size="1" onchange="document.editform.action.value=\\''change\\'';document.editform.submit();">\r\n                 <option '';\r\n	if (!$simple_mode) $tmp_form .= ''selected '';\r\n	$tmp_form .= ''value="0">SimpleMode deaktiviert</option>\r\n                 <option '';\r\n	if ($simple_mode) $tmp_form .= ''selected '';\r\n	$tmp_form .= ''value="1">SimpleMode aktiviert</option>\r\n                 </select></td></tr>\r\n                 </table><br>'';\r\n}\r\n$mip_form[''39''][''cat''] = ''hidden'';\r\n$mip_form[''39''][''cms_var''] = ''MOD_VAR[39]'';\r\n$mip_form[''39''][''cms_val''] = $dedi_mod[''value''][''39''];\r\n$mip_form[''39''][''tab''] = ''0'';\r\n// Ende MipForms Config\r\n// Display MipForms\r\n/**\r\n * mip_formsp($mip_form[''4'']);  // Hidden Version\r\n */\r\nif ($area == ''tpl_edit'') echo $tmp_form; else mip_formsp($mip_form[''39'']);\r\n#mip_formsp($mip_form[''39'']); // Switch2SimpleMode\r\nif ($simple_mode) {\r\n	if ($dedi_mod[''value''][''0''] != ''root'' && $dedi_mod[''value''][''0''] != ''this'' && $dedi_mod[''value''][''0''] != '''') {\r\n        $_sql[''count''] = ''cat'';\r\n        $_sql[$_sql[''count'']][''query''] = $sql = "SELECT name FROM $dedi_db[cat_lang] WHERE idcat = ''" . $dedi_mod[''value''][''0''] . "''"; // SELECT DISTINCT container FROM content\r\n        $_sql[$_sql[''count'']][''id''] = $db->query($sql);\r\n        $db->next_record();\r\n        $_sql[$_sql[''count'']][''name''] = $_cat_name = '' <i>'' . $db->f(''name'') . ''</i>'';\r\n    } elseif ($dedi_mod[''value''][''0''] == ''root'') $_cat_name = '' <i>Root</i>'';\r\n    echo''<b>Simple-Mode:</b><br><small>In diesem Modus arbeitet der Categorywalker <u>nur</u> in der eingesetzten Category/Ordner''. $_cat_name . ''.<br>\r\n                       Die Recursion ist <i>'';\r\n	if ($dedi_mod[''value''][''3''] == ''1'' || !isset($dedi_mod[''value''][''3''])) echo ''aktiviert'';\r\n	else echo ''deaktiviert'';\r\n	echo''</i> und es stehen alle CMS-Container dieser Categorie/Ordner zur verf&uuml;gung!</small>'';\r\n}\r\nif ($simple_mode || $area == ''tpl_edit'') echo "<hr>";\r\nmip_formsp($mip_form[''0'']); // Ordner\r\nmip_formsp($mip_form[''3'']); // Recursion\r\nif (!$simple_mode) {\r\n	echo "<hr>";\r\n	echo ''CMS-Container:<br><small>Geben Sie die Container an, welche durchsucht werden sollen.</small><p>'';\r\n}\r\nmip_formsp($mip_form[''1'']); // CMS_Container\r\nif (!$simple_mode) echo "<hr>";\r\necho ''Einstellungen CSS:<br><small>Hier k&ouml;nnen Sie das Layout mit CSS-Styles ver&auml;ndern.</small><p>'';\r\nmip_formsp($mip_form[''40'']); // CSS {font1}\r\nmip_formsp($mip_form[''41'']); // CSS {font2}\r\nmip_formsp($mip_form[''42'']); // CSS {font3}\r\nmip_formsp($mip_form[''43'']); // CSS {font4}\r\nmip_formsp($mip_form[''44'']); // CSS {font5}\r\nif (!$simple_mode) {\r\n	echo "<hr>";\r\n	echo ''Extras/Sicherheit:<br><small>Geben Sie an, ob kritische Strukturpunkte eingeblendet werden sollen.</small><p>'';\r\n	mip_formsp($mip_form[''2'']); // Startseite anzeigen\r\n	mip_formsp($mip_form[''5'']); // offline Seiten\r\n	mip_formsp($mip_form[''6'']); // offline Strukturpunkte\r\n	echo "<hr>";\r\n	echo ''Zeitliche Begrenzung des Artikels:<br><small>Ablauf in Tagen, nichts bedeutet unbegrenzt.<br>create geht vor modify</small><p>'';\r\n	mip_formsp($mip_form[''52'']); // Create-Datum\r\n	mip_formsp($mip_form[''53'']); // Modify-Datum\r\n	echo "<hr>";\r\n	/**\r\n	 * mip_formsp($mip_form[''7'']);  // geschützte Strukturpunkte\r\n	 */\r\n	mip_formsp($mip_form[''34'']); // Custom Content ausschließen\r\n	echo ''<hr>'';\r\n	mip_formsp($mip_form[''31'']); // Suche aktiviert/ deaktiviert\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''32'']); // Suche Trefferanzahl\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''33'']); // Suchmuster\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''54'']); // Externe Datei\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''50'']); // Fehlermeldung\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''49'']); // CSS Fehlermeldung\r\n} else mip_formsp($mip_form[''2'']); // Startseite anzeigen\r\necho ''<hr>'';\r\nmip_formsp($mip_form[''8'']); // Sortieren nach\r\nmip_formsp($mip_form[''9'']); // Sortieren aufsteigend/ absteigend\r\necho ''<hr>'';\r\nmip_formsp($mip_form[''10'']); // Navigation aktiviert/ deaktiviert\r\necho ''<br>'';\r\nmip_formsp($mip_form[''37'']); // Navigation immer\r\necho ''<br>'';\r\nmip_formsp($mip_form[''38'']); // Navigation floaten\r\necho ''<br>'';\r\nmip_formsp($mip_form[''35'']); // Navigation Präfix\r\nmip_formsp($mip_form[''11'']); // Navigation template vorwärts aktiviert\r\nmip_formsp($mip_form[''12'']); // Navigation template vorwärts deaktiviert\r\nmip_formsp($mip_form[''13'']); // Navigation template rückwärts aktiviert\r\nmip_formsp($mip_form[''14'']); // Navigation template rückwärts deaktiviert\r\nmip_formsp($mip_form[''15'']); // Navigation template numerisch aktiviert\r\nmip_formsp($mip_form[''16'']); // Navigation template numerisch deaktiviert\r\nmip_formsp($mip_form[''36'']); // Navigation Suffix\r\necho ''<hr>'';\r\nif (!$simple_mode) {\r\n	mip_formsp($mip_form[''17'']); // Topartikel aktiviert/ deaktiviert\r\n	echo ''<br>'';\r\n	#mip_formsp($mip_form[''48'']); // Topartikel always\r\n	mip_formsp($mip_form[''18'']); // Topartikel seperat\r\n	mip_formsp($mip_form[''19'']); // Topartikel desc\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''45'']); // Topartikel Cut\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''20'']); // Topartikel template\r\n	echo ''<hr>'';\r\n} else echo ''Einstellungen Content:<br>'';\r\nmip_formsp($mip_form[''24'']); // Content1 aktiviert/ deaktiviert\r\necho ''<br>'';\r\nmip_formsp($mip_form[''25'']); // Content1 Artikelanzahl\r\necho ''<br>'';\r\nmip_formsp($mip_form[''46'']); // Content1 Cut\r\necho ''<br>'';\r\nmip_formsp($mip_form[''26'']); // Content1 template\r\necho ''<hr>'';\r\nif (!$simple_mode) {\r\n	mip_formsp($mip_form[''27'']); // Content2 aktiviert/ deaktiviert\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''28'']); // Content2 Artikelanzahl\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''47'']); // Content2 Cut\r\n	echo ''<br>'';\r\n	mip_formsp($mip_form[''29'']); // Content2 template\r\n	echo ''<hr>'';\r\n}\r\nmip_formsp($mip_form[''21'']); // Anker aktiviert/ deaktiviert\r\necho ''<br>'';\r\nmip_formsp($mip_form[''22'']); // Ankername beziehen aus\r\necho ''<br>'';\r\nmip_formsp($mip_form[''23'']); // Anker template\r\necho ''<hr>'';\r\nmip_formsp($mip_form[''30'']); // Verbindungstemplate\r\necho ''<hr>'';\r\nmip_formsp($mip_form[''51'']); // Debugging\r\necho ''<br>'';\r\nmip_formsp($mip_form[''99'']); // bbcode\r\n//mip_formsp($mip_form[''994'']); //bcode erweitert\r\nmip_formsp($mip_form[''995'']); //bcode erweitert\r\nmip_formsp($mip_form[''996'']); //bcode erweitert\r\n// make clean\r\nunset($mip_form, $simple_mode, $tmp_form, $_tmp);\r\n?>', '<DEDIPHP>\r\n// build by STam 30.09.2004\r\n// build by hk-cons 15.09.2004\r\n// Version 1.03\r\n// bbcode enabled by kalesco 07.02.2006\r\n// mod-rewrite by MaZderMind\r\n// Version 1.06\r\n// ---------------------------------------------------------------\r\n\r\n// vorbereitung für bbcodeparsen \r\n	include_once($dedi_path.''inc/fnc.type.php'');\r\n  $bbcode_class = new StringParser_BBCode();\r\n\r\n  $type_config[''features''] = MOD_VALUE[996];\r\n  $type_config[''htmltags'']=''strip''; \r\n  $type_config[''paragraphs''] = MOD_VALUE[995];\r\n\r\n  type_init_bbcode_class($bbcode_class, $type_config);\r\n     \r\n// Funktionen\r\nif ( !function_exists( ''DediMod_get_broken_tags'' ) ) {\r\n    function DediMod_get_broken_tags( $text )\r\n    {\r\n        $SPANNING_TAGS = "a|abbr|address|applet|b|blockquote|bdo|big|body|button|caption|center|cite|code|colgroup|dd|del|dfn|dir|div|dl|dt|em|font|fieldset|form|frameset|h[1-6]{1,1}|head|html|i|iframe|ins|kbd|label|legend|map|menu|noframes|noscript|ol|object|optgroup|option|pre|q|s|samp|script|select|small|strong|span|strike|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var";\r\n        $NON_SPANNING_TAGS = "area|base|basefont|br|col|frame|hr|img|input|isindex|li|link|meta|p|param";\r\n        $result = $text;\r\n        $matches = array();\r\n        $return_value = '''';\r\n        $j = 0; // failsafe counter\r\n        do {\r\n            preg_match_all( "/<($SPANNING_TAGS)\\b[^>]*>/sim", $result, $matches );\r\n            $match_found = false; \r\n            // echo ''<b>TAGS-In:</b>''; print_r($matches);\r\n            for ( $i = 0; $i < count( $matches[0] ); $i++ ) {\r\n                $tag = $matches[1][$i];\r\n                $matches2 = array();\r\n                preg_match_all( "/(<$tag\\b[^>]*>(<($NON_SPANNING_TAGS)\\b[^>]*>|[^<>])*<\\/$tag>)/sim", $result, $matches2 ); \r\n                // echo ''<b>TAGS-OUT:</b>''; print_r($matches2);\r\n                for ( $k = 0; $k < count( $matches2[0] ); $k++ ) {\r\n                    $result = str_replace( $matches2[1][$k], "", $result );\r\n                } \r\n                if ( count( $matches2[0] ) > 0 ) {\r\n                    $match_found = true;\r\n                } \r\n            } \r\n            $j++;\r\n        } while ( $match_found );\r\n        preg_match_all( "/<($SPANNING_TAGS)\\b[^>]*>/sim", $result, $matches3 ); \r\n        // echo ''<b>TAGS-Loss:</b>''; print_r($matches3);\r\n        if ( count( $matches3[0] ) > 0 ) {\r\n            for ( $i = 0; $i < count( $matches3[0] ); $i++ ) {\r\n                $tag = $matches3[1][$i];\r\n                $return_value = "</$tag>" . $return_value;\r\n            } \r\n        } \r\n        return $return_value;\r\n    } \r\n} \r\nif ( !function_exists( ''DediMod_flip_uml2text'' ) ) {\r\n    function DediMod_flip_uml2text ( $post, $flip = false )\r\n    {\r\n        $mod = Array( ''&auml;'' => "ä",\r\n            ''&uuml;'' => "ü",\r\n            ''&ouml;'' => "ö",\r\n            ''&Auml;'' => "Ä",\r\n            ''&auml;'' => "ä",\r\n            ''&Uuml;'' => "Ü",\r\n            ''&Ouml;'' => "Ö",\r\n            ''&szlig;'' => "ß",\r\n            ''&#252;'' => "ü",\r\n            ''&#246;'' => "ö",\r\n            ''&#196;'' => "Ä",\r\n            ''&#228;'' => "ä",\r\n            ''&#220;'' => "Ü",\r\n            ''&#214;'' => "Ö",\r\n            ''&#223;'' => "ß" );\r\n        if ( $flip == 1 ) $mod = array_flip( $mod );\r\n        $post = strtr( $post, $mod );\r\n        return $post;\r\n    }\r\n}\r\nif ( !function_exists( ''DediMod_format_str'' ) ) {\r\n    function DediMod_format_str( $str, $nl = false, $flip = false )\r\n    {\r\n        global $SID;\r\n        $search = array ( "''<script[^>]*?>.*?</script>''si",\r\n            "''<[\\/\\!]*?[^<>]*?>''si",\r\n            "''&(quot|#34);''i",\r\n            "''&(amp|#38);''i",\r\n            "''&(lt|#60);''i",\r\n            "''&(gt|#62);''i",\r\n            "''&(nbsp|#160);''i",\r\n            "''&(copy|#169);''i",\r\n            "''&#(\\d+);''e" );\r\n        $replace = array ( " ",\r\n            " ",\r\n            "\\"",\r\n            "&",\r\n            "<",\r\n            ">",\r\n            " ",\r\n            chr( 169 ),\r\n            "chr(\\\\1)" );\r\n        $str = trim( $str );\r\n        $str = preg_replace ( $search, $replace, $str );\r\n        if ( $nl ) $str = str_replace( "\\n", "", $str );\r\n        else $str = nl2br( $str );\r\n        $str = DediMod_flip_uml2text( $str, $flip );\r\n        $str = addslashes( $str );\r\n        return trim( $str );\r\n    } \r\n} \r\nif ( !function_exists( ''DediMod_Get_Path'' ) ) {\r\n    function DediMod_Get_Path( $node )\r\n    {\r\n        global $walker;\r\n        $row = $walker[''tmp''][''parent''][$node];\r\n        $path = array();\r\n        if ( $node[''parent''] ) {\r\n            $path[$row[''parent'']] = $row[''parent''];\r\n            $path = array_merge( DediMod_Get_Path( $row[''parent''] ), $path );\r\n        } \r\n        return $path;\r\n    } \r\n} \r\n\r\nif ( !function_exists( ''DediMod_Str2Date'' ) ) {\r\n    function DediMod_Str2Date( $in )\r\n    {\r\n        $date_time_array = getdate ( time() );\r\n        $akt_year = ( int ) substr( $date_time_array["year"], 2, 2 );\r\n        $t = trim( $t ); //saeubern\r\n        $t = explode( ".", $in ); //splitten mit .\r\n        if ( count( $t ) != 3 ) $t = explode( "/", $in ); //splitten mit /\r\n        if ( count( $t ) != 3 ) $t = explode( "-", $in ); //splitten mit -\r\n        if ( count( $t ) != 3 ) $t = explode( " ", $in ); //splitten mit '' ''\r\n        if ( count( $t ) != 3 ) return -4; //kein Datum\r\n        if ( !is_numeric( $t[0] ) ) return -1; //kein Tag\r\n        if ( !is_numeric( $t[1] ) ) return -2; //kein Monat\r\n        if ( !is_numeric( $t[2] ) ) return -3; //kein Jahr\r\n        if ( intval( $t[2] ) <= $akt_year and $t[2] >= 0 ) $t[2] = $t[2] + 2000; //bei zB Jahr = 01 + 2000 = 2001\r\n        if ( intval( $t[2] ) > $akt_year and $t[2] <= 99 ) $t[2] = $t[2] + 1900; //bei zB Jahr = 74 + 1900 = 1974\r\n        if ( intval( $t[2] ) < 1902 || $t[2] > 2037 ) return -3; //falscher Bereich\r\n        if ( checkdate ( $t[1], $t[0], $t[2] ) != true ) return -4; //kein echtes Datum\r\n        return mktime ( 0, 0, 0, $t[1], $t[0], $t[2] );\r\n    } \r\n} \r\nif ( !function_exists( ''DediMod_MakeRealSql'' ) ) {\r\n    function DediMod_MakeRealSql( $in )\r\n    {\r\n        $s_search = array ( "/(\\(+|\\+)/",\r\n            "/[\\s?]KEY[\\s+]/",\r\n            "/[\\s?]DESC[\\s+]/",\r\n            "/[\\s?]TITEL[\\s+]/",\r\n            "/[\\s?]AUTHOR[\\s+]/",\r\n            "/[\\s?]CREATED[\\s+]/",\r\n            "/[\\s?]MODIFY[\\s+]/",\r\n            "/[\\s?]SUMMARY[\\s+]/",\r\n            "/[\\s?]IS_START[\\s+]/",\r\n            "/[\\s?]IDCATSIDE[\\s+]/",\r\n            "/[\\s?]IDSIDE[\\s+]/",\r\n            "/[\\s?]IDCAT[\\s+]/",\r\n            "/[\\s+]NOW[\\s+]/",\r\n            "/[\\s+]TIMESTAMP[\\s+]/",\r\n            "/[\\s+](\\d{1,2}\\.\\d{1,2}\\.)(\\d{4}|\\d{2})[\\s+]/",\r\n            "/[\\s+]AND[\\s+]/",\r\n            "/[\\s+]OR[\\s+]/",\r\n            "/[\\s+]NOT[\\s+]/",\r\n            "/[\\s+]\\+[\\s+]/",\r\n            "/[\\s+]\\|[\\s+]/",\r\n            "/[\\s+]-[\\s+]/",\r\n            "/[\\s+]!=[\\s+]/",\r\n            "/[\\s+]BIGGER[\\s+]/",\r\n            "/[\\s+]SMALLER[\\s+]/",\r\n            "/[\\s+]NONEQUAL[\\s+]/",\r\n            "/[\\s+]<>[\\s+]/",\r\n            "/[\\s+]<[\\s+]/",\r\n            "/[\\s+]>[\\s+]/",\r\n            "/[\\s+]LIKE[\\s+]/",\r\n            "/[\\s+]UNLIKE[\\s+]/",\r\n            "/[\\s+]EQUAL[\\s+]/",\r\n            "/[\\s+]=[\\s+]/",\r\n            "/[\\s+]('')([^'']+\\w+)(?(1)'')[\\s+]/",\r\n            "/[\\s+](\\w+)[\\s+]/",\r\n            "/[\\s+][^~|''?]+(\\w+)+[^~|''?][\\s+]/" );\r\n        $s_replace = array ( " ~~*~~ \\${1} ~~*~~ ",\r\n            " ~~*~~ARTLANG.meta_keywords~~*~~ ",\r\n            " ~~*~~ARTLANG.meta_description~~*~~ ",\r\n            " ~~*~~ARTLANG.title~~*~~ ",\r\n            " ~~*~~ARTLANG.author~~*~~ ",\r\n            " ~~*~~ARTLANG.created~~*~~ ",\r\n            " ~~*~~ARTLANG.lastmodified~~*~~ ",\r\n            " ~~*~~ARTLANG.summary~~*~~ ",\r\n            " ~~*~~CATART.is_start~~*~~ ",\r\n            " ~~*~~CATART.idcatside~~*~~ ",\r\n            " ~~*~~CATART.idside~~*~~ ",\r\n            " ~~*~~CATART.idcat~~*~~ ",\r\n            " ~~*~~NOW()~~*~~ ",\r\n            " ~~*~~UNIX_TIMESTAMP()~~*~~ ",\r\n            " ~~*~~\\${1}\\${2}~~*~~ ",\r\n            " ~~*~~AND~~*~~ ",\r\n            " ~~*~~OR~~*~~ ",\r\n            " ~~*~~NOT~~*~~ ",\r\n            " ~~*~~+~~*~~ ",\r\n            " ~~*~~|~~*~~ ",\r\n            " ~~*~~-~~*~~ ",\r\n            " ~~*~~!=~~*~~ ",\r\n            " ~~*~~>~~*~~ ",\r\n            " ~~*~~<~~*~~ ",\r\n            " ~~*~~<>~~*~~ ",\r\n            " ~~*~~<>~~*~~ ",\r\n            " ~~*~~<~~*~~ ",\r\n            " ~~*~~>~~*~~ ",\r\n            " ~~*~~LIKE~~*~~ ",\r\n            " ~~*~~NOT~~*~~ ~~*~~LIKE~~*~~ ",\r\n            " ~~*~~=~~*~~ ",\r\n            " ~~*~~=~~*~~ ",\r\n            " ~~*~~''\\${2}''~~*~~ ",\r\n            " ~~*~~''%\\${1}%''~~*~~ ",\r\n            "" );\r\n        if ( trim( $in ) != '''' ) {\r\n            $s_query = ''~~*~~ '' . stripslashes( trim( $in ) ) . '' ~~*~~'';\r\n            $s_query = preg_replace ( $s_search, $s_replace, $s_query );\r\n            $s_query = trim( str_replace( "~~*~~", '''', $s_query ) ) . '' '';\r\n            while ( preg_match( "/(\\d{1,2}\\.\\d{1,2}\\.)(\\d{4}|\\d{2})/", $s_query, $match ) ) {\r\n                $var = DediMod_Str2Date( $match[0] ) >= 1 ? DediMod_Str2Date( $match[0] ) : $var;\r\n                $s_query = str_replace( $match[0], " ''" . $var . "'' ", $s_query );\r\n            } \r\n        } \r\n        return $s_query;\r\n    } \r\n} \r\nif ( !function_exists( ''DediMod_TemplateEngine'' ) ) {\r\n    function DediMod_TemplateEngine( $final, $content )\r\n    { \r\n        // Debug\r\n        global $walker; \r\n        // interpretation of  of {each xxx[ cut(text|br|html)]/[ thumb:true]/[ url:true]/[ name:true]/[ hight:true]/[ width:true]/[ aspect:true]/[ mime:true]/[ type:true]/[ titel:true]/[ description:true]}\r\n        while ( preg_match( ''/\\{each ([^\\}]+)\\}/im'', $final, $match ) ) {\r\n            $walker[''engine''][''each''][''in''] = $var = $match[1];\r\n            $vars = explode( '' '', $var, 2 );\r\n            list( $name, $num ) = explode( '':'', $vars[0], 2 );\r\n            $teaser = explode( '':'', $vars[1], 2 );\r\n            if ( $teaser[0] == ''cuttext'' && $teaser[1] >= 1 ) $lenght = '' cuttext:'' . $teaser[1];\r\n            elseif ( $teaser[0] == ''cutbr'' && $teaser[1] >= 1 ) $lenght = '' cutbr:'' . $teaser[1];\r\n            elseif ( $teaser[0] == ''cuthtml'' && $teaser[1] >= 1 ) $lenght = '' cuthtml:'' . $teaser[1]; \r\n            // add custom image Infos\r\n            elseif ( $teaser[0] == ''thumb'' ) $lenght = '' thumb'';\r\n            elseif ( $teaser[0] == ''hight'' ) $lenght = '' height'';\r\n            elseif ( $teaser[0] == ''width'' ) $lenght = '' width'';\r\n            elseif ( $teaser[0] == ''aspect'' ) $lenght = '' aspect'';\r\n            elseif ( $teaser[0] == ''mime'' ) $lenght = '' mime'';\r\n            elseif ( $teaser[0] == ''type'' ) $lenght = '' type''; \r\n            // add file Infos\r\n            elseif ( $teaser[0] == ''url'' ) $lenght = '' url'';\r\n            elseif ( $teaser[0] == ''name'' ) $lenght = '' name'';\r\n            elseif ( $teaser[0] == ''id'' ) $lenght = '' id'';\r\n            elseif ( $teaser[0] == ''titel'' ) $lenght = '' titel'';\r\n            elseif ( $teaser[0] == ''description'' ) $lenght = '' description'';\r\n            $each_out = "{loop " . $name . "}{" . $name . $lenght . "}{/loop}";\r\n            $walker[''engine''][''each''][''out''] = $final = str_replace( $match[0], $each_out, $final );\r\n            unset( $var, $vars, $name, $num, $each_out, $teaser, $lenght );\r\n        } \r\n        // interpretation of {loop[:max] xxx}/{/loop}\r\n        while ( preg_match( ''/\\{loop([^\\s]*) ([^\\}]+)\\}/im'', $final, $match ) ) {\r\n            $name = $match[2];\r\n            $vars = $match[1];\r\n            list( $_null, $count ) = explode( '':'', $vars, 2 );\r\n            $num = 1;\r\n            if ( $content[$name][''count''] >= 1 ) {\r\n                $first_stop = strstr( $final, $match[0] );\r\n                $stop_lenght = strlen( strstr( $first_stop, ''{/loop}'' ) ) != strlen( ''{/loop}'' ) ? strlen( ''{/loop}'' ) - strlen( strstr( $first_stop, ''{/loop}'' ) ) : strlen( $first_stop );\r\n                $strip_out = $loop_temp = substr( $first_stop, 0, $stop_lenght );\r\n                $loop_temp = str_replace( $match[0], '''', $loop_temp );\r\n                $loop_temp = str_replace( ''{/loop}'', '''', $loop_temp );\r\n                $loop_count = ( $count >= 1 && $count <= $content[$name][''count''] ) ? $count : $content[$name][''count''];\r\n                for ( $y = 1;$y <= $loop_count;$y++ ) {\r\n                    $test = $loop_var[$name] .= preg_replace( "/\\{$name ([^\\}]*)\\}/im", "\\{$name:$y \\${1}}", $loop_temp );\r\n                    $loop_var[$name] = str_replace( '':loop'', '':'' . $y , $loop_var[$name] );\r\n                } \r\n                $match[0] = $strip_out;\r\n                $loop_out = $loop_var[$name];\r\n            } \r\n            $final = str_replace( $match[0], $loop_out, $final );\r\n            unset( $name, $num, $first_stop, $strip_out, $loop_temp, $loop_out, $y, $loop_var, $count, $_null, $loop_count, $stop_lenght );\r\n        } \r\n        // interpretation of {[!|not]exist ***[:x,y,z]}/{/[!|not]exist}, simple ''if [not] x then ... else ...''\r\n        while ( preg_match( ''/\\{([!|not]?)exist ([^\\}]+)\\}(.*[^\\{]+)\\{\\/\\1exist\\}/Uim'', $final, $match ) ) {\r\n            $walker[''engine''][''exist''][''in''] = $var = $match[2]; // 0=all;1=!|not;2=var;3=cycle\r\n            $vars = explode( '' '', $var, 2 );\r\n            $cvar = ( $match[1] == ''!'' or $match[1] == ''not'' ) ? false : true;\r\n            list( $name, $num ) = explode( ":", $vars[0], 2 );\r\n            if ( !$num ) $num = 1;\r\n            if ( strpos( $num, '','' ) === false ) $num = ( int ) $num;\r\n            else { // target absulute Content\r\n                list( $cont, $tag, $rep ) = explode( '','', $num, 3 );\r\n                if ( $rep == '''' ) $rep = 1;\r\n                $walker[''engine''][$name][''absid''] = array_flip( $content[$name][''absid''] );\r\n                $num = isset( $walker[''engine''][$name][''absid'']["$cont,$tag,$rep"] ) ? ( $walker[''engine''][$name][''absid'']["$cont,$tag,$rep"] + 1 ) : '''';\r\n            } // find nothing\r\n            list( $true, $else ) = explode( "{else}", $match[3], 2 );\r\n            if ( $content[$name][( $num-1 )] == $cvar ) {\r\n                $final = str_replace( $match[0], $true, $final ); // true\r\n            } else {\r\n                $final = str_replace( $match[0], $else, $final ); // else\r\n            } \r\n            $walker[''engine''][''exist''][''out''] = $final;\r\n            unset( $var, $vars, $name, $num, $first_stop, $last_stop, $cvars, $cont, $tag, $rep, $else, $true );\r\n        } \r\n        // interpretation of {***[:x][ cut(text|br|html):xy]/[ thumb:true]/[ name:true]}\r\n        while ( preg_match( ''/\\{([^\\}]+)\\}/im'', $final, $match ) ) {\r\n            $walker[''engine''][''content''][''in''] = $var = $match[1];\r\n            $vars = explode( '' '', $var, 2 );\r\n            list( $name, $num ) = explode( '':'', $vars[0], 2 );\r\n            list( $teaser, $lenght ) = explode( '':'', $vars[1], 2 );\r\n            if ( !$num ) $num = 1;\r\n            if ( strpos( $num, '','' ) === false ) $num = ( int ) $num;\r\n            else { // target absulute Content\r\n                list( $cont, $tag, $rep ) = explode( '','', $num, 3 );\r\n                if ( $rep == '''' ) $rep = 1;\r\n                $walker[''engine''][$name][''absid''] = array_flip( $content[$name][''absid''] );\r\n                $num = isset( $walker[''engine''][$name][''absid'']["$cont,$tag,$rep"] ) ? ( $walker[''engine''][$name][''absid'']["$cont,$tag,$rep"] + 1 ) : '''';\r\n            } \r\n            if ( !empty( $content[$name][( $num-1 )] ) && $lenght >= 1 && $teaser == ''cuttext'' ) {\r\n                $walker[''engine''][''cuttext''][''in''] = $content[$name][( $num-1 )]; \r\n                // Complete Html StripeCut\r\n                if ( strlen( DediMod_format_str( $content[$name][( $num-1 )], 1 ) ) > $lenght ) {\r\n                    $walker[''engine''][''cuttext''][''cutstring''] = $cutstring = substr( DediMod_format_str( $content[$name][( $num-1 )], 1 ), 0, $lenght );\r\n                    if ( strpos( $cutstring, '' '' ) === false ) $cutstring .= '' '';\r\n                    $walker[''engine''][''cuttext''][''chars_in''] = $chars_in = @preg_split( "/[\\s,]+|\\W+|\\w+$/m", $cutstring, -1, PREG_SPLIT_NO_EMPTY );\r\n                    if ( count( $chars_in ) > 1 ) $_reverse = 1;\r\n                    for ( $last_char = 0; $last_char < ( count( $chars_in ) - $_reverse ); $last_char++ ) if ( $chars_in[$last_char] != '''' ) {\r\n                        $chars .= $qu . ''('' . $chars_in[$last_char] . '')'';\r\n                        $qu = ''.+'';\r\n                    } \r\n                    $walker[''engine''][''cuttext''][''chars''] = $chars;\r\n                    @preg_match( "/(?sm)^.*$chars\\b/U", DediMod_flip_uml2text( $content[$name][( $num-1 )] ), $matches );\r\n                    $walker[''engine''][''cuttext''][''type_out''] = $type_out = DediMod_format_str( $matches[0], 1 );\r\n                } else $type_out = DediMod_format_str( $content[$name][( $num-1 )], 1 );\r\n                $walker[''engine''][''cuttext''][''out''] = $type_out = trim( DediMod_flip_uml2text( $type_out, 1 ) ) . "<!--cut-->"; # set Cut End-String\r\n            } elseif ( !empty( $content[$name][( $num-1 )] ) && $lenght >= 1 && $teaser == ''cutbr'' ) {\r\n                $walker[''engine''][''cutbr''][''in''] = $content[$name][( $num-1 )]; \r\n                // Complete Html StripeCut less <br />\r\n                if ( strlen( DediMod_format_str( $content[$name][( $num-1 )], 1 ) ) > $lenght ) {\r\n                    $walker[''engine''][''cutbr''][''cutstring''] = $cutstring = substr( DediMod_format_str( $content[$name][( $num-1 )], 1 ), 0, $lenght );\r\n                    if ( strpos( $cutstring, '' '' ) === false ) $cutstring .= '' '';\r\n                    $walker[''engine''][''cutbr''][''chars_in''] = $chars_in = @preg_split( "/[\\s,]+|\\W+|\\w+$/m", $cutstring, -1, PREG_SPLIT_NO_EMPTY );\r\n                    if ( count( $chars_in ) > 1 ) $_reverse = 1;\r\n                    for ( $last_char = 0; $last_char < ( count( $chars_in ) - $_reverse ); $last_char++ ) if ( $chars_in[$last_char] != '''' ) {\r\n                        $chars .= $qu . ''('' . $chars_in[$last_char] . '')'';\r\n                        $qu = ''.+'';\r\n                    } \r\n                    $walker[''engine''][''cutbr''][''chars''] = $chars;\r\n                    @preg_match( "/(?sm)^.*$chars\\b/U", DediMod_flip_uml2text( $content[$name][( $num-1 )] ), $matches );\r\n                    $walker[''engine''][''cutbr''][''type_out''] = $type_out = DediMod_format_str( $matches[0] );\r\n                } else $type_out = DediMod_format_str( $content[$name][( $num-1 )] );\r\n                $walker[''engine''][''cutbr''][''out''] = $type_out = trim( DediMod_flip_uml2text( $type_out, 1 ) ) . "<!--cut-->"; # set Cut End-String\r\n            } elseif ( !empty( $content[$name][( $num-1 )] ) && $lenght >= 1 && $teaser == ''cuthtml'' ) {\r\n                $walker[''engine''][''cuthtml''][''in''] = $content[$name][( $num-1 )]; \r\n                // Normal Cut whith Html\r\n                if ( strlen( DediMod_format_str( $content[$name][( $num-1 )], 1 ) ) > $lenght ) {\r\n                    $walker[''engine''][''cuthtml''][''cutstring''] = $cutstring = substr( DediMod_format_str( $content[$name][( $num-1 )], 1 ), 0, $lenght );\r\n                    if ( strpos( $cutstring, '' '' ) === false ) $cutstring .= '' '';\r\n                    $walker[''engine''][''cuthtml''][''chars_in''] = $chars_in = @preg_split( "/[\\s,]+|\\W+|\\w+$/m", $cutstring, -1, PREG_SPLIT_NO_EMPTY );\r\n                    if ( count( $chars_in ) > 1 ) $_reverse = 1;\r\n                    for ( $last_char = 0; $last_char < ( count( $chars_in ) - $_reverse ); $last_char++ ) if ( $chars_in[$last_char] != '''' ) {\r\n                        $chars .= $qu . ''('' . $chars_in[$last_char] . '')'';\r\n                        $qu = ''.+'';\r\n                    } \r\n                    $walker[''engine''][''cuthtml''][''chars''] = $chars;\r\n                    @preg_match( "/(?sm)^.*$chars\\b/U", DediMod_flip_uml2text( $content[$name][( $num-1 )] ), $matches );\r\n                    $walker[''engine''][''cuthtml''][''type_out''] = $type_out = $matches[0] . DediMod_get_broken_tags( $matches[0] );\r\n                } else $type_out = $content[$name][( $num-1 )] . DediMod_get_broken_tags( $content[$name][( $num-1 )] );\r\n                $walker[''engine''][''cuthtml''][''out''] = $type_out = trim( DediMod_flip_uml2text( $type_out, 1 ) ) . "<!--cut-->"; # set Cut End-String\r\n            } elseif ( !empty( $content[$name][''thumb''][( $num-1 )] ) && $teaser == ''thumb'' ) {\r\n                $type_out = $content[$name][''thumb''][( $num-1 )];\r\n            } elseif ( !empty( $content[$name][''url''][( $num-1 )] ) && $teaser == ''url'' ) {\r\n                $type_out = $content[$name][''url''][( $num-1 )];\r\n            } elseif ( !empty( $content[$name][''info''][( $num-1 )] ) && $teaser == ''height'' ) {\r\n                $type_out = $content[$name][''info''][( $num-1 )][1];\r\n            } elseif ( !empty( $content[$name][''info''][( $num-1 )] ) && $teaser == ''width'' ) {\r\n                $type_out = $content[$name][''info''][( $num-1 )][0];\r\n            } elseif ( !empty( $content[$name][''info''][( $num-1 )] ) && $teaser == ''mime'' ) {\r\n                $type_out = $content[$name][''info''][( $num-1 )][''mime''];\r\n            } elseif ( !empty( $content[$name][''info''][( $num-1 )] ) && $teaser == ''aspect'' ) {\r\n                $type_out = $content[$name][''info''][( $num-1 )][3];\r\n            } elseif ( !empty( $content[$name][''info''][( $num-1 )] ) && $teaser == ''type'' ) {\r\n                $type_out = $content[$name][''info''][( $num-1 )][''type''];\r\n            } elseif ( !empty( $content[$name][''name''][( $num-1 )] ) && $teaser == ''name'' ) {\r\n                $type_out = $content[$name][''name''][( $num-1 )];\r\n            } elseif ( !empty( $content[$name][''id''][( $num-1 )] ) && $teaser == ''id'' ) {\r\n                $type_out = $content[$name][''id''][( $num-1 )];\r\n            } elseif ( !empty( $content[$name][''titel''][( $num-1 )] ) && $teaser == ''titel'' ) {\r\n                $type_out = $content[$name][''titel''][( $num-1 )];\r\n            } elseif ( !empty( $content[$name][''description''][( $num-1 )] ) && $teaser == ''description'' ) {\r\n                $type_out = $content[$name][''description''][( $num-1 )];\r\n            } elseif ( is_array( $content[$name] ) ) {\r\n                $type_out = $content[$name][( $num-1 )];\r\n            } else {\r\n                $type_out = $content[$name];\r\n            } \r\n            $walker[''engine''][''content''][''out''] = $final = str_replace( $match[0], $type_out, $final );\r\n            unset( $var, $vars, $name, $num, $teaser, $lenght, $type_out, $cutstring, $chars_in, $last_char, $chars, $matches, $qu, $cont, $tag, $rep );\r\n        } \r\n        return stripslashes( $final );\r\n    } \r\n} \r\n// ---------------------------------------------------------------\r\n// CONFIG GENERAL\r\n// ---------------------------------------------------------------\r\n// Id der Ordner\r\n$walker[''cat''] = "MOD_VALUE[0]";\r\nif ( $walker[''cat''] == ''root'' ) {\r\n    $walker[''cat''] = ''0'';\r\n    $walker[''query''][''root_query''] = ''>'';\r\n} elseif ( $walker[''cat''] == ''this'' ) $walker[''cat''] = $idcat;\r\n// Id des cms_container\r\n$walker[''tmp''][''val_cms_cont''] = "MOD_VALUE[1]";\r\n$walker[''tmp''][''pos_cms_cont''] = strpos( $walker[''tmp''][''val_cms_cont''], "," );\r\nif ( $walker[''tmp''][''pos_cms_cont''] === false ) {\r\n    $walker[''query''][''cms_container''] = "''" . ( int ) $walker[''tmp''][''val_cms_cont''] . "''";\r\n} else {\r\n    $ex_cms_cont = explode( '','', str_replace( '' '', '''', $walker[''tmp''][''val_cms_cont''] ) );\r\n    foreach ( $ex_cms_cont as $tmp_cms_cont ) {\r\n        $walker[''query''][''cms_container''] .= "$tmp_seperator''" . ( int ) $tmp_cms_cont . "''";\r\n        $tmp_seperator = '', '';\r\n    } \r\n    unset( $ex_cms_cont, $tmp_cms_cont, $tmp_seperator );\r\n} \r\n// Globals\r\n$walker[''query''][''lang''] = $lang;\r\n$walker[''query''][''client''] = $client;\r\n// 0 -> Rekursion deaktiviert, 1 -> Rekursion aktiviert\r\n$walker[''cat_recursiv''] = ( "MOD_VALUE[3]" == ''1'' ) ? 1: 0;\r\n/**\r\n * // Walker Version\r\n * $walker[''walker_version''] = "MOD_VALUE[4]";\r\n */\r\n// 0 -> auch offline Artikel, 1 -> nur online artikel\r\n$walker[''only_onlines''] = ( "MOD_VALUE[5]" == ''1'' ) ? 0: 1;\r\n// 0-> ohne startartikel, 1 -> mit startartikel\r\n$walker[''with_start''] = ( "MOD_VALUE[2]" == ''1'' ) ? 1: 0;\r\n// sortindex, title, summary, created, lastmodified, author\r\n$walker[''order_by''] = "MOD_VALUE[8]";\r\n// ASC -> aufsteigend, DESC -> absteigend\r\n$walker[''order''] = "MOD_VALUE[9]";\r\n// 0 -> offline Ordner werden nicht angezeigt, 1 -> offline Ordner werden angezeigt\r\n$walker[''ignore_cat_visible''] = ( "MOD_VALUE[6]" == ''1'' ) ? 1: 0;\r\n// 0 -> geschuetzte Ordner werden nicht angezeigt, 1 -> geschuetzte Ordner werden angezeigt\r\n$walker[''ignore_cat_public''] = ( "MOD_VALUE[7]" == ''1'' ) ? 1: 0;\r\n// 0 -> Custom Content wird nicht angezeigt, 1 -> Custom Content wird angezeigt\r\n$walker[''ignore_custom''] = ( "MOD_VALUE[34]" == ''1'' ) ? 1: 0;\r\n// 0 -> Seitennavigation deaktiviert, 1 -> Seitennavigation aktiviert\r\n$walker[''articel_per_side_navi''] = "MOD_VALUE[10]";\r\n// 0 -> Ankertemplate deaktiviert, 1 -> Ankertemplate aktiviert\r\n$walker[''anchor_tpl_enabled''] = "MOD_VALUE[20]";\r\n// Beschreibung beziehen aus side_title, head, text, wysiwyg\r\n$walker[''anchor_txt''] = "MOD_VALUE[21]";\r\n// Anker ausgeben\r\n$walker[''do_anchor''] = ("MOD_VALUE[60]" == ''1'') ? 1 : 0;\r\n// Ankertemplate {anchor_url}, {anchor_desc}\r\n$walker[''anchor_tpl''] = "MOD_VALUE[22]";\r\n// 0 -> Topstorytemplate deaktiviert, 1 -> Topstorytemplate aktiviert\r\n$walker[''topstory_tpl_enabled''] = ( "MOD_VALUE[17]" != '''' ) ? "MOD_VALUE[17]": ''0'';\r\n// 0 -> Topstory auf jeder Seite sichtbar, 1 -> Topstory nicht auf jeder Seite sichtbar\r\n$walker[''topstory_always''] = ( "MOD_VALUE[48]" == ''1'' ) ? 1: 0;\r\n// 0 -> Topstory auch in anderen Templates sichtbar, 1 -> Topstory nicht in anderen Templates sichtbar\r\n$walker[''topstory_separate''] = ( "MOD_VALUE[18]" == ''1'' ) ? 1: 0;\r\n// 0 -> Contenttemplate1 deaktiviert, 1 -> Contenttemplate1 aktiviert\r\n$walker[''content1_tpl_enabled''] = ( "MOD_VALUE[23]" != '''' ) ? "MOD_VALUE[23]": ''0'';\r\n// 0 -> alle Artikel im Template von content1 anzeigen, 1 ... n -> Die ersten n Artikel anzeigen\r\n$walker[''articel_content1''] = ( "MOD_VALUE[24]" != '''' ) ? "MOD_VALUE[24]": ''1'';\r\n// 0 -> Contenttemplate2 deaktiviert, 1 -> Contenttemplate1 aktiviert\r\n$walker[''content2_tpl_enabled''] = ( "MOD_VALUE[26]" != '''' ) ? "MOD_VALUE[26]": ''0'';\r\n// 0 -> alle Artikel im Template von content2 anzeigen, 1 ... n -> Die ersten n Artikel anzeigen\r\n$walker[''articel_content2''] = ( "MOD_VALUE[27]" != '''' ) ? "MOD_VALUE[27]": ''1'';\r\n// 0 ->Content Suche deaktiviert, 1 -> Content Suche aktiviert\r\n$walker[''search_articel''] = ( "MOD_VALUE[31]" == ''1'' ) ? 1: 0;\r\n// Suchbegrenzung\r\n$walker[''search_deep''] = "MOD_VALUE[32]";\r\n// Suchbemuster\r\n$walker[''search_query''] = "MOD_VALUE[33]";\r\n// Fehlermeldung Suche\r\n$walker[''search_error''] = "MOD_VALUE[50]";\r\n// Begrenzung Anzeigezeit ausgehend von create\r\n$walker[''create''] = "MOD_VALUE[52]";\r\n// Begrenzung Anzeigezeit ausgehend von create\r\n$walker[''modify''] = "MOD_VALUE[53]";\r\n// Exteren Suchdatei\r\n$walker[''search_file''] = "MOD_VALUE[54]";\r\n// Auswertung des Suchmusters\r\nif ( is_file( $walker[''search_file''] ) ) include ( $walker[''search_file''] );\r\n// ---------------------------------------------------------------\r\n// TEMPLATES\r\n// ---------------------------------------------------------------\r\n// Navigationstemplate\r\n// Zurueckbutton. Templatevariablen: {url}\r\n$walker[''navi_always''] = ( "MOD_VALUE[37]" == ''1'' ) ? 1: 0;\r\n$walker[''navi_floating''] = "MOD_VALUE[38]";\r\n$walker[''navi_praefix''] = "MOD_VALUE[35]";\r\n$walker[''navi_forward_on''] = "MOD_VALUE[11]";\r\n$walker[''navi_forward_off''] = "MOD_VALUE[12]";\r\n// Vorbutton. Templatevariablen: {url}\r\n$walker[''navi_backward_on''] = "MOD_VALUE[13]";\r\n$walker[''navi_backward_off''] = "MOD_VALUE[14]";\r\n// Numerische Navigation. Templatevariablen: {url}, {number}\r\n$walker[''navi_numeric_on''] = "MOD_VALUE[15]";\r\n$walker[''navi_numeric_off''] = "MOD_VALUE[16]";\r\n$walker[''navi_suffix''] = "MOD_VALUE[36]";\r\n// Templates fuer top-artikel, content1, content2\r\n$walker[''top_articel''][''tpl''] = "MOD_VALUE[19]";\r\n$walker[''content1''][''tpl''] = "MOD_VALUE[25]";\r\n$walker[''content2''][''tpl''] = "MOD_VALUE[28]";\r\n// Templates fuer die Cutstrings\r\n$walker[''top_articel''][''cuttpl''] = "MOD_VALUE[45]";\r\n$walker[''content1''][''cuttpl''] = "MOD_VALUE[46]";\r\n$walker[''content2''][''cuttpl''] = "MOD_VALUE[47]";\r\n// Template Fonts\r\n$walker[''font1''] = "MOD_VALUE[40]";\r\n$walker[''font2''] = "MOD_VALUE[41]";\r\n$walker[''font3''] = "MOD_VALUE[42]";\r\n$walker[''font4''] = "MOD_VALUE[43]";\r\n$walker[''font5''] = "MOD_VALUE[44]";\r\n$walker[''font6''] = "MOD_VALUE[49]";\r\n// Main Template\r\n$walker[''main_tpl''] = "MOD_VALUE[29]";\r\n// ---------------------------------------------------------------\r\n// Images\r\n// ---------------------------------------------------------------\r\n// image thumb extensions\r\n$walker[''thumb_ex''] = $cfg_client[''thumbext''] != '''' ? $cfg_client[''thumbext''] : ''_dedi_thumb'';\r\n$walker[''thumb_size''] = $cfg_client[''thumb_size''] != '''' ? $cfg_client[''thumb_size''] : 100;\r\n$walker[''thumb_aspectratio''] = $cfg_client[''thumb_aspectratio''] != '''' ? $cfg_client[''thumb_aspectratio''] : 1;\r\n// ---------------------------------------------------------------\r\n// Arrays\r\n// ---------------------------------------------------------------\r\n// fixed DeDi:type\r\n$walker[''dedi_type_arr''] = array( 1 => ''text'',\r\n    2 => ''wysiwyg'',\r\n    3 => ''textarea'',\r\n    4 => ''img'',\r\n    5 => ''img_descr'',\r\n    6 => ''link'',\r\n    7 => ''link_descr'',\r\n    8 => ''link_target'',\r\n    9 => ''sourcecode'',\r\n    10 => ''file'',\r\n    11 => ''file_descr'',\r\n    12 => ''file_target'',\r\n    13 => ''wysiwyg2'',\r\n    14 => ''option'',\r\n    15 => ''hidden'' );\r\n// fixed Image:type\r\n$walker[''file_type_img''] = array( "gif" => "1",\r\n    "jpg" => "2",\r\n    "jpeg" => "2",\r\n    "png" => "3",\r\n    "swf" => "4",\r\n    "psd" => "5",\r\n    "bmp" => "6" );\r\n// ---------------------------------------------------------------\r\n// MODUL\r\n// ---------------------------------------------------------------\r\n// navi position pos -- Startposition festlegen\r\n$walker[''navi_position''] = ( is_numeric( $pos ) && $pos >= 1 && $walker[''articel_per_side_navi''] >= 1 ) ? $pos : 1;\r\n// run baby, run\r\n// build cat query\r\n// only onlines\r\nif ( $walker[''only_onlines''] == ''2'' ) $walker[''query''][''only_onlines''] = " AND (ARTLANG.online = 2 AND (UNIX_TIMESTAMP(NOW()) BETWEEN ARTLANG.start AND ARTLANG.end))";\r\nelseif ( $walker[''only_onlines''] == ''0'' ) $walker[''query''][''only_onlines''] = " AND (ARTLANG.online = ''1'' OR (ARTLANG.online = 2 AND (UNIX_TIMESTAMP(NOW()) BETWEEN ARTLANG.start AND ARTLANG.end)))";\r\nelse $walker[''query''][''only_onlines''] = " AND ARTLANG.online = ''0''";\r\n// with startarticle\r\nif ( $walker[''with_start''] != ''1'' ) $walker[''query''][''with_start''] = " AND CATART.is_start != ''1''";\r\n// ignore cat is offline\r\nif ( $walker[''ignore_cat_visible''] != ''1'' ) $walker[''query''][''ignore_cat_visible''] = " AND CATLANG.visible = ''1''";\r\n/**\r\n * // ignore cat is protected\r\n * if ($walker[''ignore_cat_public''] != ''1'') $walker[''query''][''ignore_cat_public''] = " AND CATLANG.public = ''1''";\r\n */\r\n// ignore custom is protected\r\nif ( $walker[''ignore_custom''] != ''1'' ) $walker[''query''][''ignore_custom''] = " AND CONTENT.idtype >= ''1''";\r\nif ( $walker[''search_articel''] ) {\r\n    if ( $walker[''search_deep''] >= 1 ) $walker[''query''][''search_limit''] = '' LIMIT 0,'' . ( int ) $walker[''search_deep''];\r\n    if ( trim( $walker[''search_query''] ) != '''' ) {\r\n        $walker[''query''][''search''] = '' AND '';\r\n        $walker[''query''][''search''] .= DediMod_MakeRealSql( $walker[''search_query''] );\r\n        $walker[''query''][''search''] .= '' '';\r\n    } \r\n} else $walker[''test''][''search''] = DediMod_MakeRealSql( $walker[''search_query''] );\r\nif ( $walker[''cat_recursiv''] == ''1'' && !( isset( $walker[''query''][''root_query''] ) ) ) {\r\n    $_sql[''count''] = ''recursion'';\r\n    $_sql[$_sql[''count'']][''query''] = $walker[''tmp''][''sql''] = "SELECT	A.name, B.idcat, B.parent, B.sortindex , B.rootparent\r\n				FROM " . $dedi_db[''cat_lang''] . " A, " . $dedi_db[''cat''] . " B\r\n				WHERE A.idcat = B.idcat\r\n				AND	A.idlang = ''" . $walker[''query''][''lang''] . "''\r\n				AND	B.idclient = ''" . $walker[''query''][''client''] . "''\r\n				ORDER BY B.parent, B.sortindex";\r\n\r\n    $_sql[$_sql[''count'']][''id''] = $db->query( $walker[''tmp''][''sql''], 1, ''frontend_tree'' );\r\n    while ( $db->next_record() ) {\r\n        $walker[''tmp''][''parent''][''seperator''] = '' '';\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''idcat''] = $db->f( ''idcat'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''name''] = $db->f( ''name'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''root''] = $db->f( ''rootparent'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''index''] = $db->f( ''sortindex'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''parent''] = $db->f( ''parent'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''parent'' )][''count'']++;\r\n        $_sql[$_sql[''count'']][''result''][] = $walker[''tmp''][''parent''][$db->f( ''idcat'' )];\r\n    }\r\n    $db->free();    \r\n    foreach ( $walker[''tmp''][''parent''] as $_tmp ) {\r\n        $walker[''tmp''][''parent''][$_tmp[''idcat'']][''up''] = DediMod_Get_Path( $_tmp[''idcat''] );\r\n        foreach ( $walker[''tmp''][''parent''][$_tmp[''idcat'']][''up''] as $_child ) {\r\n            $walker[''tmp''][''parent''][$_child][''child''] .= $walker[''tmp''][''parent''][$_child][''c''] . "''" . $_tmp[''idcat''] . "''";\r\n            $walker[''tmp''][''parent''][$_child][''c''] = '', '';\r\n            $walker[''tmp''][''parent''][$_tmp[''idcat'']][''pfad''] .= $walker[''tmp''][''parent''][$_tmp[''idcat'']][''p''] . "''" . $_child . "''";\r\n            $walker[''tmp''][''parent''][$_tmp[''idcat'']][''p''] = '', '';\r\n        } \r\n    } \r\n    unset( $_tmp, $_child );\r\n    $walker[''tmp''][''parent''][$walker[''cat'']][''child''] = $walker[''tmp''][''parent''][$walker[''cat'']][''child''] != '''' ? ", " . $walker[''tmp''][''parent''][$walker[''cat'']][''child''] : '''';\r\n    $walker[''cat_query''] = "IN(''" . $walker[''cat''] . "''" . $walker[''tmp''][''parent''][$walker[''cat'']][''child''] . ")";\r\n} elseif ( $walker[''cat_recursiv''] == ''2'' ) {\r\n    $_sql[''count''] = ''rootstrang'';\r\n    $_sql[$_sql[''count'']][''query''] = $walker[''tmp''][''sql''] = "select rootparent from " . $dedi_db[''cat''] . " where idcat = ''" . $walker[''cat''] . "''";\r\n    $_sql[$_sql[''count'']][''id''] = $db->query( $walker[''tmp''][''sql''], 1, ''frontend_tree'' );\r\n    $db->next_record();\r\n    $walker[''rootparent''] = $db->f( ''rootparent'' );\r\n    $_sql[''count''] = ''recursion'';\r\n    $_sql[$_sql[''count'']][''query''] = $walker[''tmp''][''sql''] = "SELECT	A.name, B.idcat, B.parent, B.sortindex , B.rootparent\r\n				FROM " . $dedi_db[''cat_lang''] . " A, " . $dedi_db[''cat''] . " B\r\n				WHERE A.idcat = B.idcat\r\n				AND	A.idlang = ''" . $walker[''query''][''lang''] . "''\r\n				AND	B.idclient = ''" . $walker[''query''][''client''] . "''\r\n				AND B.rootparent = ''" . $walker[''rootparent''] . "''\r\n				ORDER BY B.parent, B.sortindex";\r\n\r\n    $_sql[$_sql[''count'']][''id''] = $db->query( $walker[''tmp''][''sql''], 1, ''frontend_tree'' );\r\n    while ( $db->next_record() ) {\r\n        $walker[''tmp''][''parent''][''seperator''] = '' '';\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''idcat''] = $db->f( ''idcat'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''name''] = $db->f( ''name'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''root''] = $db->f( ''rootparent'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''index''] = $db->f( ''sortindex'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''idcat'' )][''parent''] = $db->f( ''parent'' );\r\n        $walker[''tmp''][''parent''][$db->f( ''parent'' )][''count'']++;\r\n        $_sql[$_sql[''count'']][''result''][] = $walker[''tmp''][''parent''][$db->f( ''idcat'' )];\r\n    }\r\n    $db->free();    \r\n    foreach ( $walker[''tmp''][''parent''] as $_tmp ) {\r\n        $walker[''tmp''][''parent''][$_tmp[''idcat'']][''up''] = DediMod_Get_Path( $_tmp[''idcat''] );\r\n        foreach ( $walker[''tmp''][''parent''][$_tmp[''idcat'']][''up''] as $_child ) {\r\n            if ( $walker[''tmp''][''parent''][''idcat''] == 0 ) {\r\n                $walker[''tmp''][''parent''][$_child][''child''] .= $walker[''tmp''][''parent''][$_child][''c''] . "''" . $_tmp[''idcat''] . "''";\r\n                $walker[''tmp''][''parent''][$_child][''c''] = '', '';\r\n                $walker[''tmp''][''parent''][$_tmp[''idcat'']][''pfad''] .= $walker[''tmp''][''parent''][$_tmp[''idcat'']][''p''] . "''" . $_child . "''";\r\n                $walker[''tmp''][''parent''][$_tmp[''idcat'']][''p''] = '', '';\r\n            } \r\n        } \r\n    } \r\n    unset( $_tmp, $_child );\r\n    $walker[''tmp''][''parent''][$walker[''rootparent'']][''child''] = $walker[''tmp''][''parent''][$walker[''rootparent'']][''child''] != '''' ? ", " . $walker[''tmp''][''parent''][$walker[''rootparent'']][''child''] : '''';\r\n    $walker[''cat_query''] = "IN(''" . $walker[''rootparent''] . "''" . $walker[''tmp''][''parent''][$walker[''rootparent'']][''child''] . ")";\r\n} else {\r\n    $walker[''cat_query''] = $walker[''query''][''root_query''] . "= ''" . $walker[''cat''] . "'' ";\r\n} \r\nif ( $walker[''create''] ) $walker[''query''][''create''] = " AND to_days(now())-to_days(from_unixtime(ARTLANG.created))<=" . $walker[''create''] . " ";\r\nelseif ( $walker[''modify''] ) $walker[''query''][''create''] = " AND to_days(now())-to_days(from_unixtime(ARTLANG.lastmodified))<=" . $walker[''modify''] . " ";\r\n// count all Table Rows\r\n$_sql[''count''] = ''num'';\r\n$_sql[$_sql[''count'']][''query''] = $walker[''tmp''][''sql''] = "SELECT CATART.*\r\n     FROM " . $dedi_db[''cat_side''] . " CATART LEFT JOIN " . $dedi_db[''side_lang''] . " ARTLANG USING(idside) LEFT JOIN " . $dedi_db[''content''] . " CONTENT USING(idsidelang), " . $dedi_db[''cat_lang''] . " CATLANG\r\n     WHERE\r\n	 CONTENT.container IN(" . $walker[''query''][''cms_container''] . ")\r\n     " . $walker[''query''][''ignore_custom''] . "\r\n	   " . $walker[''query''][''search''] . "\r\n     " . $walker[''query''][''with_start''] . "\r\n	 AND CATART.idcat " . $walker[''cat_query''] . "\r\n     AND ARTLANG.idlang = ''" . $walker[''query''][''lang''] . "''\r\n     " . $walker[''query''][''only_onlines''] . "\r\n     " . $walker[''query''][''create''] . "\r\n	 AND CATLANG.idcat " . $walker[''cat_query''] . "\r\n     " . $walker[''query''][''ignore_cat_visible''] . "\r\n	 GROUP BY CATART.idcatside\r\n	 ORDER BY " . $walker[''order_by''] . " " . $walker[''order''] . $walker[''query''][''search_limit''];\r\n$_sql[$_sql[''count'']][''oldmode''] = $db->get_fetch_mode();\r\n$db->set_fetch_mode( ''DB_FETCH_ASSOC'' );\r\n$_sql[$_sql[''count'']][''id''] = $db->query( $walker[''tmp''][''sql'']);\r\n// Anzahl aller moeglichen Artikel\r\n$_sql[$_sql[''count'']][''result''] = $walker[''side_score''] = $db->num_rows();\r\n$db->set_fetch_mode( $_sql[$_sql[''count'']][''oldmode''] );\r\n$db->free();\r\n// Ausrechnen, wieviele Artikel insgesamt angezeigt werden sollen\r\n// 0 -> alle Artikel anzeigen, 1 ... n -> Die ersten n Artikel anzeigen\r\nif ( $walker[''topstory_separate''] == ''1'' && $walker[''topstory_tpl_enabled''] == ''1'' ) $walker[''side_score'']--;\r\nif ( $walker[''articel_content1''] == ''0'' || $walker[''articel_content2''] == ''0'' ) {\r\n    if ( $walker[''content2_tpl_enabled''] != ''1'' ) $walker[''articel_per_side''] = ( int ) $walker[''articel_content1''];\r\n    elseif ( $walker[''content1_tpl_enabled''] != ''1'' ) $walker[''articel_per_side''] = ( int ) $walker[''articel_content2''];\r\n    else $walker[''articel_per_side''] = 0;\r\n} elseif ( $walker[''content2_tpl_enabled''] != ''1'' ) $walker[''articel_per_side''] = ( int ) $walker[''articel_content1''];\r\nelseif ( $walker[''content1_tpl_enabled''] != ''1'' ) $walker[''articel_per_side''] = ( int ) $walker[''articel_content2''];\r\nelse $walker[''articel_per_side''] = ( int ) $walker[''articel_content1''] + ( int ) $walker[''articel_content2''];\r\nif ( !$walker[''articel_per_side''] ) $walker[''articel_per_side''] = $walker[''side_score''];\r\n// make Topstory\r\nif ( $walker[''topstory_tpl_enabled''] == 1 && $walker[''navi_position''] == 1 ) $walker[''articel_plus_topstory''] = 1;\r\nif ( $walker[''topstory_tpl_enabled''] == 1 && $walker[''navi_position''] > 1 && $walker[''topstory_separate''] ) $walker[''articel_cache_topstory''] = 1;\r\n// Anzahl der Seiten korrigieren, falls es weniger Seiten in der Datenbank gibt, als angezeigt werden sollen\r\n$walker[''articel_per_side''] = ( $walker[''articel_per_side''] > $walker[''side_score''] ) ? $walker[''side_score'']: $walker[''articel_per_side''];\r\n// Anzahl der Seiten korrigieren, falls alle Seiten angezeigt werden sollen\r\n$walker[''articel_per_side''] = ( $walker[''articel_per_side''] == 0 ) ? $walker[''side_score'']: $walker[''articel_per_side''];\r\n// Naviposition korrigieren falls die Anforderung hoeher ist als die gesammte Anzahl an Artikeln\r\nif ( $walker[''side_score''] == 0 || $walker[''articel_per_side_navi''] == 0 ) $walker[''navi_position''] = ''1'';\r\nelse while ( ( $walker[''navi_position''] * $walker[''articel_per_side''] ) > ( ceil( $walker[''side_score''] / $walker[''articel_per_side''] ) * $walker[''articel_per_side''] ) ) $walker[''navi_position'']--;\r\n// make articlelimit for more performance, if needed\r\nif ( $walker[''articel_per_side''] > 0 ) $walker[''query''][''limit''] = '' LIMIT '' . ( $walker[''navi_position''] * $walker[''articel_per_side''] - $walker[''articel_per_side''] + $walker[''articel_cache_topstory''] ) . '','' . ( $walker[''articel_per_side''] + $walker[''articel_plus_topstory''] );\r\n// set Floating if needed\r\nif ( !$walker[''navi_floating''] ) $walker[''navi_floating''] = $walker[''side_score''];\r\n// execute cat query\r\n$_sql[''count''] = ''sort'';\r\n$_sql[$_sql[''count'']][''query''] = $walker[''tmp''][''sql''] = "SELECT CATART.*, ARTLANG.idsidelang, ARTLANG.idside, ARTLANG.idlang, ARTLANG.title, ARTLANG.created, ARTLANG.lastmodified, ARTLANG.summary, ARTLANG.meta_description, ARTLANG.author, USER.username AS nick, USER.name AS vname, USER.surname AS nname, USER.email\r\n     FROM " . $dedi_db[''cat_side''] . " CATART LEFT JOIN " . $dedi_db[''side_lang''] . " ARTLANG USING(idside) LEFT JOIN " . $dedi_db[''content''] . " CONTENT USING(idsidelang), " . $dedi_db[''cat_lang''] . " CATLANG, " . $dedi_db[''users''] . " USER\r\n     WHERE\r\n	 CONTENT.container IN(" . $walker[''query''][''cms_container''] . ")\r\n     " . $walker[''query''][''ignore_custom''] . "\r\n	   " . $walker[''query''][''search''] . "\r\n     " . $walker[''query''][''with_start''] . "\r\n	 AND CATART.idcat " . $walker[''cat_query''] . "\r\n     AND ARTLANG.idlang = ''" . $walker[''query''][''lang''] . "''\r\n     " . $walker[''query''][''only_onlines''] . "\r\n     " . $walker[''query''][''create''] . "\r\n	 AND USER.user_id = ARTLANG.author\r\n     AND CATLANG.idcat " . $walker[''cat_query''] . "\r\n     " . $walker[''query''][''ignore_cat_visible''] . "\r\n	 GROUP BY CATART.idcatside ORDER BY " . $walker[''order_by''] . " " . $walker[''order''] . $walker[''query''][''limit''];\r\n$_sql[$_sql[''count'']][''oldmode''] = $db->get_fetch_mode();\r\n$db->set_fetch_mode( ''DB_FETCH_ASSOC'' );\r\n$_sql[$_sql[''count'']][''id''] = $db->query( $walker[''tmp''][''sql''] );\r\n// Anfragen fuer Sidecontent\r\n$db_content = &new DB_dedi;\r\n$db_content->init_cache();\r\nfor( $i = 0; $db->next_record(); $i++ ) {\r\n    $walker_content[$i][''idcatside''] = $db->f( ''idcatside'' );\r\n    $walker_content[$i][''idside''] = $db->f( ''idside'' );\r\n    $walker_content[$i][''idcat''] = $db->f( ''idcat'' );\r\n    $walker_content[$i][''idsidelang''] = $db->f( ''idsidelang'' );\r\n    $walker_content[$i][''idlang''] = $db->f( ''idlang'' );\r\n    $walker_content[$i][''title''] = $db->f( ''title'' );\r\n    $walker_content[$i][''side_created''] = $db->f( ''created'' );\r\n    $walker_content[$i][''side_lastmodified''] = $db->f( ''lastmodified'' );\r\n    $walker_content[$i][''summary''] = $db->f( ''summary'' );\r\n    $walker_content[$i][''description''] = $db->f( ''meta_description'' );\r\n    $walker_content[$i][''author_nick''] = $db->f( ''nick'' );\r\n    $walker_content[$i][''author_vname''] = $db->f( ''vname'' );\r\n    $walker_content[$i][''author_nname''] = $db->f( ''nname'' );\r\n    $walker_content[$i][''author_email''] = $db->f( ''email'' );\r\n    $walker_content[$i][''side_author''] = $db->f( ''author'' );\r\n    $walker_content[$i][''side_is_start''] = $db->f( ''is_start'' );\r\n    $walker_content[$i][''url_to_artikel''] = $con_side[$db->f( ''idcatside'' )][''link''];\r\n    $walker_content[$i][''url_to_cat''] = $con_tree[$db->f( ''idcat'' )][''link''];\r\n    $_sql[$_sql[''count'']][''result''][$i] = $walker_content[$i];\r\n    // lets grab the sidecontent\r\n    $_sql[$_sql[''count'']][''grab''][''query''] = $walker[''tmp''][''sql''] = "SELECT  CONTENT.idcontent , CONTENT.idsidelang , CONTENT.container , CONTENT.number , CONTENT.idtype , CONTENT.typenumber , CONTENT.value , CONTENT.online , CONTENT.`version` , CONTENT.author , CONTENT.created , CONTENT.lastmodified , UPLOAD.idupl , UPLOAD.idclient , UPLOAD.titel , UPLOAD.filename , UPLOAD.iddirectory , UPLOAD.idfiletype , UPLOAD.pictwidth , UPLOAD.pictheight , UPLOAD.pictcolors , UPLOAD.pictthumbwidth , UPLOAD.pictthumbheight , UPLOAD.filesize , UPLOAD.used , UPLOAD.`status` , UPLOAD.description , UPLOAD.author AS upl_author , UPLOAD.lastmodified AS upl_lastmodified , UPLOAD.created AS upl_created ,  FILETYPE.filetype ,  FILEDIR.dirname\r\n    FROM " . $dedi_db[''content''] . " AS CONTENT\r\n    LEFT JOIN " . $dedi_db[''upl''] . " AS UPLOAD ON ( ( CONTENT.value = UPLOAD.idupl ) AND ( UPLOAD.idclient = ''" . $walker[''query''][''client''] . "'' ) )\r\n    LEFT JOIN " . $dedi_db[''filetype''] . " AS FILETYPE ON ( UPLOAD.idfiletype = FILETYPE.idfiletype )\r\n    LEFT JOIN " . $dedi_db[''directory''] . " AS FILEDIR ON ( UPLOAD.iddirectory = FILEDIR.iddirectory )\r\n    WHERE\r\n	( idsidelang = ''" . $walker_content[$i][''idsidelang''] . "'' ) AND ( container IN ( " . $walker[''query''][''cms_container''] . " ) )\r\n    ORDER BY CONTENT.container , CONTENT.typenumber , CONTENT.number";\r\n    $_sql[$_sql[''count'']][''oldmode''] = $db_content->get_fetch_mode();\r\n    $db_content->set_fetch_mode( ''DB_FETCH_ASSOC'' );\r\n    $_sql[$_sql[''count'']][''id''] = $db_content->query( $walker[''tmp''][''sql''], 1, ''frontend_content'' );\r\n    while ( $db_content->next_record() ) {\r\n        $_sql[$_sql[''count'']][''grab''][$i][''idtype''][] = $walker[''tmp''][''content_type''] = $db_content->f( ''idtype'' );\r\n        $_sql[$_sql[''count'']][''grab''][$i][''typenumber''][] = $walker[''tmp''][''my_id''] = $db_content->f( ''typenumber'' );\r\n        $_sql[$_sql[''count'']][''grab''][$i][''content''][] = $db_content->f( ''value'' ); \r\n        // order content from dedi_type\r\n        if ( !$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count''] ) $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count''] = 0; \r\n        // add Content values\r\n        $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''contid''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''container'' );\r\n        $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''tagid''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''typenumber'' );\r\n        $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''reapid''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''number'' );\r\n        $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''absid''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''container'' ) . '','' . $db_content->f( ''typenumber'' ) . '','' . $db_content->f( ''number'' );\r\n        switch ( $walker[''tmp''][''content_type''] ) {\r\n            // cms_text\r\n            case 1: \r\n            // cms_hidden\r\n            case 15: \r\n            // cms_option\r\n            case 14: \r\n            // cms_textarea\r\n            case 3:\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''value'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = nl2br( $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = str_replace( ''<br />'', ''<br>'', $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] );\r\n                \r\n                if ( "MOD_VALUE[99]" == 1 ) {\r\n                	// parse bbcode\r\n                	$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $bbcode_class -> parse($walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']]);\r\n                }\r\n                \r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break; \r\n            // cms_link\r\n            case 6:\r\n                $walker[''tmp''][''url''] = $db_content->f( ''value'' );\r\n                if ( $walker[''tmp''][''url''] == ''0'' ) $walker[''tmp''][''url''] = '''';\r\n                //elseif ( is_numeric( $walker[''tmp''][''url''] ) ) $walker[''tmp''][''url''] = $sess->url ( $cfg_client[''contentfile''] . ''?idcatside='' . $walker[''tmp''][''url''] );\r\n                elseif ( is_numeric( $walker[''tmp''][''url''] ) ) $walker[''tmp''][''url''] = ''http://dedilink/idcatside='' . $walker[''tmp''][''url''];\r\n                elseif ( substr( $walker[''tmp''][''url''], 0, 7 ) != ''http://'' ) $walker[''tmp''][''url''] = ''http://'' . $walker[''tmp''][''url''];\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $walker[''tmp''][''url''];\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break; \r\n            // cms_sourcecode\r\n            case 9:\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''value'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = nl2br( $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = str_replace( ''<br />'', ''<br>'', $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = "<pre>" . $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] . "</pre>";\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break; \r\n            // cms_file\r\n            case 10:\r\n                $walker[''tmp''][''file''] = $cfg_client[''upl_htmlpath''] . $db_content->f( ''dirname'' ) . $db_content->f( ''filename'' );\r\n                $walker[''tmp''][''file_desc''] = $db_content->f( ''description'' );\r\n                $walker[''tmp''][''file_target''] = ''target="_blank"''; // _self; _blank\r\n                $walker[''tmp''][''file_css''] = '''';\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = ''<a href="'' . $walker[''tmp''][''file''] . ''" '' . $walker[''tmp''][''file_css''] . ''  '' . $walker[''tmp''][''file_target''] . '' onMouseover="on(\\'''' . $walker[''tmp''][''file_desc''] . ''\\'')" onMouseout="off()">'' . $walker[''tmp''][''file_desc''] . ''</a>'';\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''url''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $walker[''tmp''][''file''];\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''name''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''filename'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''id''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''idupl'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''titel''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''titel'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''description''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''description'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break; \r\n            // cms_img\r\n            case 4:\r\n                $walker[''tmp''][''img''] = $db_content->f( ''dirname'' ) . $db_content->f( ''filename'' );\r\n                $walker[''tmp''][''img_ex''] = explode( ''.'', $db_content->f( ''filename'' ) );\r\n                $walker[''tmp''][''img_info''] = @getimagesize( $cfg_client[''upl_path''] . $walker[''tmp''][''img''] );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = sprintf( "<img src=\\"" . $cfg_client[''upl_htmlpath''] . $walker[''tmp''][''img''] . "\\"%s%s%s border=\\"0\\">", ( $walker[''tmp''][''img_descr''] != '''' ) ? " alt=\\"" . $walker[''tmp''][''img_descr''] . "\\" title=\\"" . $walker[''tmp''][''img_descr''] . "\\"" : '''', ( $walker[''tmp''][''img_info''][0] ) ? " width=\\"" . $walker[''tmp''][''img_info''][0] . "\\"" : '''', ( $walker[''tmp''][''img_info''][1] ) ? " height=\\"" . $walker[''tmp''][''img_info''][1] . "\\"" : '''' ); \r\n                // Auto. Thumbs\r\n                if ( file_exists( $cfg_client[''upl_path''] . $db_content->f( ''dirname'' ) . $walker[''tmp''][''img_ex''][count( $walker[''tmp''][''img_ex''] )-2] . $walker[''thumb_ex''] . ''.'' . $walker[''tmp''][''img_ex''][count( $walker[''tmp''][''img_ex''] )-1] ) ) {\r\n                    $walker[''tmp''][''img_thumb''] = $db_content->f( ''dirname'' ) . $walker[''tmp''][''img_ex''][count( $walker[''tmp''][''img_ex''] )-2] . $walker[''thumb_ex''] . ''.'' . $walker[''tmp''][''img_ex''][count( $walker[''tmp''][''img_ex''] )-1];\r\n                    $walker[''tmp''][''img_thumb_info''] = @getimagesize( $cfg_client[''upl_path''] . $walker[''tmp''][''img_thumb''] );\r\n                    $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''thumb''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = sprintf( "<img src=\\"" . $cfg_client[''upl_htmlpath''] . $walker[''tmp''][''img_thumb''] . "\\"%s%s%s border=\\"0\\">", ( $walker[''tmp''][''img_descr''] != '''' ) ? " alt=\\"" . $walker[''tmp''][''img_descr''] . "\\" title=\\"" . $walker[''tmp''][''img_descr''] . "\\"" : '''', ( $walker[''tmp''][''img_thumb_info''][0] ) ? " width=\\"" . $walker[''tmp''][''img_thumb_info''][0] . "\\"" : '''', ( $walker[''tmp''][''img_thumb_info''][1] ) ? " height=\\"" . $walker[''tmp''][''img_thumb_info''][1] . "\\"" : '''' );\r\n                } else {\r\n                    $walker[''tmp''][''img_thumb_info''] = $walker[''tmp''][''img_info''];\r\n                    if ( $walker[''thumb_size''] < $walker[''tmp''][''img_info''][0] || $walker[''thumb_size''] < $walker[''tmp''][''img_info''][1] ) {\r\n                        if ( $walker[''thumb_aspectratio''] > 0 ) {\r\n                            if ( $walker[''tmp''][''img_info''][0] >= $walker[''tmp''][''img_info''][1] ) {\r\n                                $walker[''tmp''][''img_thumb_info''][''0''] = $walker[''thumb_size''];\r\n                                $walker[''tmp''][''img_thumb_info''][''1''] = floor ( $walker[''thumb_size''] * $walker[''tmp''][''img_info''][1] / $walker[''tmp''][''img_info''][0] );\r\n                            } else {\r\n                                $walker[''tmp''][''img_thumb_info''][''1''] = $walker[''thumb_size''];\r\n                                $walker[''tmp''][''img_thumb_info''][''0''] = floor ( $walker[''thumb_size''] * $walker[''tmp''][''img_info''][0] / $walker[''tmp''][''img_info''][1] );\r\n                            } \r\n                        } else {\r\n                            $walker[''tmp''][''img_thumb_info''][''1''] = $walker[''thumb_size''];\r\n                            $walker[''tmp''][''img_thumb_info''][''0''] = $walker[''thumb_size''];\r\n                        } \r\n                    } else {\r\n                        $walker[''tmp''][''img_thumb_info''][''1''] = $walker[''tmp''][''img_info''][1];\r\n                        $walker[''tmp''][''img_thumb_info''][''0''] = $walker[''tmp''][''img_info''][0];\r\n                    } \r\n                    $walker[''tmp''][''img_thumb_info''][''3''] = ''width="'' . $walker[''tmp''][''img_thumb_info''][''0''] . ''" height="'' . $walker[''tmp''][''img_thumb_info''][''1''] . ''"'';\r\n                    $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''thumb''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = sprintf( "<img src=\\"" . $cfg_client[''upl_htmlpath''] . $walker[''tmp''][''img''] . "\\"%s%s%s border=\\"0\\">", ( $walker[''tmp''][''img_descr''] != '''' ) ? " alt=\\"" . $walker[''tmp''][''img_descr''] . "\\" title=\\"" . $walker[''tmp''][''img_descr''] . "\\"" : '''', ( $walker[''tmp''][''img_thumb_info''][0] ) ? " width=\\"" . $walker[''tmp''][''img_thumb_info''][0] . "\\"" : '''', ( $walker[''tmp''][''img_thumb_info''][1] ) ? " height=\\"" . $walker[''tmp''][''img_thumb_info''][1] . "\\"" : '''' );\r\n                } \r\n                if ( $walker[''tmp''][''img_info''][2] == '''' ) $walker[''tmp''][''img_info''] = $walker[''file_type_img''][''.'' . $walker[''tmp''][''img_ex''][count( $walker[''tmp''][''img_ex''] )-1]];\r\n                $walker[''tmp''][''file_type_img''] = array_flip( $walker[''file_type_img''] );\r\n                $walker[''tmp''][''img_info''][''type''] = $walker[''tmp''][''file_type_img''][$walker[''tmp''][''img_info''][2]];\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''info''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $walker[''tmp''][''img_info''];\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''url''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $cfg_client[''upl_htmlpath''] . $walker[''tmp''][''img''];\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''name''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''filename'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''id''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''idupl'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''titel''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''titel'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''description''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''description'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break; \r\n            // cms_filedescr\r\n            case 11: \r\n            // cms_filetarget\r\n            case 12: \r\n            // cms_imgdescr\r\n            case 5: \r\n            // cms_wysiwyg\r\n            case 2: \r\n            // cms_wysiwyg2\r\n            case 13: \r\n            // cms_linktarget\r\n            case 7: \r\n            // cms_linkdescr\r\n            case 8:\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''value'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break; \r\n            // cms default\r\n            default: \r\n                // add. custom content Type\r\n                if ( is_string( $walker[''tmp''][''content_type''] ) && !( $walker[''tmp''][''int_content_type''] = ( int ) $walker[''tmp''][''content_type''] ) ) {\r\n                    if ( $walker[''ignore_custom''] ) {\r\n                        // some misc entrys ala old spaw & guestbook\r\n                        // custom Content\r\n                        $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''value'' );\r\n                        $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                    } \r\n                } else\r\n                    $walker_content[$i][''no_resource''][$walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']] = $db_content->f( ''value'' );\r\n                $walker_content[$i][$walker[''dedi_type_arr''][$walker[''tmp''][''content_type'']]][''count'']++;\r\n                break;\r\n        } \r\n        unset( $walker[''tmp''] );\r\n    } \r\n    $db_content->set_fetch_mode( $_sql[$_sql[''count'']][''oldmode''] );\r\n    $db_content->free();\r\n}\r\nunset( $i );\r\n$db->set_fetch_mode( $_sql[$_sql[''count'']][''oldmode''] );\r\n$db->free();\r\n// make Sidenavi\r\n//$walker[''fl_navi''][''base_url''] = $sess->url( $cfg_client[''contentfile''] . ''?idcatside='' . $idcatside );\r\n$walker[''fl_navi''][''base_url''] = ''http://dedilink/idcatside='' . $idcatside;\r\nif ( $walker[''side_score''] > $walker[''articel_per_side''] ) {\r\n    $walker[''fl_navi''][''offset''] = $walker[''navi_position''] > ( $walker[''navi_floating''] / 2 ) ? ceil( $walker[''navi_position''] - ( $walker[''navi_floating''] / 2 ) ) : 0;\r\n    $walker[''fl_navi''][''count''] = $walker[''fl_navi''][''offset''] == 0 ? $walker[''fl_navi''][''offset''] : 1;\r\n    $walker[''fl_navi''][''back''] = $walker[''fl_navi''][''tmp''] = ceil( $walker[''side_score''] / $walker[''articel_per_side''] );\r\n    while ( $walker[''fl_navi''][''offset''] >= ( $walker[''fl_navi''][''tmp''] - ( $walker[''navi_floating''] - 2 ) ) ) $walker[''fl_navi''][''offset''] = $walker[''fl_navi''][''offset''] - 1;\r\n    for( $walker[''fl_navi''][''nummer''] = ( 0 + $walker[''fl_navi''][''offset''] ); $walker[''fl_navi''][''nummer''] <= 3 + $walker[''fl_navi''][''tmp''] + $walker[''navi_floating'']; $walker[''fl_navi''][''nummer'']++, $walker[''fl_navi''][''tmp'']--, $walker[''fl_navi''][''count'']++ ) {\r\n        if ( $walker[''fl_navi''][''count''] == ( $walker[''navi_floating''] + 1 ) ) {\r\n            $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] = str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position''] + 1 ), $walker[''navi_forward_on''] );\r\n            break;\r\n        } \r\n        if ( ( $walker[''fl_navi''][''nummer''] ) != $walker[''navi_position''] ) {\r\n            if ( $walker[''fl_navi''][''nummer''] == $walker[''fl_navi''][''offset''] || $walker[''fl_navi''][''nummer''] == 1 ) {\r\n                $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] = str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position'']-1 ), $walker[''navi_backward_on''] );\r\n            } \r\n            if ( $walker[''fl_navi''][''nummer''] <= $walker[''fl_navi''][''back''] ) {\r\n                $walker[''fl_navi''][''this''] = str_replace( ''{number}'', $walker[''fl_navi''][''nummer''], $walker[''navi_numeric_on''] );\r\n                $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] .= str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . $walker[''fl_navi''][''nummer''], $walker[''fl_navi''][''this''] );\r\n            } \r\n        } else {\r\n            if ( ( $walker[''navi_position''] == 1 && $walker[''navi_floating''] != 1 ) || $walker[''navi_position''] == 1 && $walker[''fl_navi''][''nummer''] == 1 ) {\r\n                $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] = str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position'']-1 ), $walker[''navi_backward_off''] );\r\n            } elseif ( $walker[''navi_floating''] == 1 ) {\r\n                $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] = str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position'']-1 ), $walker[''navi_backward_on''] );\r\n            } \r\n            $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] .= str_replace( ''{number}'', $walker[''fl_navi''][''nummer''], $walker[''navi_numeric_off''] );\r\n            if ( $walker[''fl_navi''][''nummer''] == $walker[''fl_navi''][''back''] ) {\r\n                $walker[''fl_navi''][''link''][$walker[''fl_navi''][''nummer'']] .= str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position''] + 1 ), $walker[''navi_forward_off''] );\r\n                break;\r\n            } \r\n        } \r\n    } \r\n    for( $walker[''fl_navi''][''tmp''] = 1;$walker[''fl_navi''][''tmp''] <= $walker[''fl_navi''][''nummer''];$walker[''fl_navi''][''tmp'']++ ) {\r\n        $walker[''fl_navi''][''links''] = $walker[''fl_navi''][''links''] . $walker[''fl_navi''][''link''][$walker[''fl_navi''][''tmp'']];\r\n    } \r\n} elseif ( $walker[''navi_always''] ) {\r\n    $walker[''fl_navi''][''links''] .= str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position'']-1 ), $walker[''navi_backward_off''] );\r\n    $walker[''fl_navi''][''links''] .= str_replace( ''{number}'', $walker[''navi_position''], $walker[''navi_numeric_off''] );\r\n    $walker[''fl_navi''][''links''] .= str_replace( ''{url}'', $walker[''fl_navi''][''base_url''] . ''&amp;pos='' . ( $walker[''navi_position''] + 1 ), $walker[''navi_forward_off''] );\r\n} \r\n$walker[''final_praefix''] = str_replace( ''{id}'', $walker[''navi_position''], $walker[''navi_praefix''] );\r\n$walker[''final_suffix''] = str_replace( ''{id}'', $walker[''navi_position''], $walker[''navi_suffix''] );\r\nif ( isset( $walker[''fl_navi''][''links''] ) && $walker[''articel_per_side_navi''] ) $walker[''final''][''navi''] = $walker[''final_praefix''] . $walker[''fl_navi''][''links''] . $walker[''final_suffix''];\r\n// make content\r\n$walker[''final''][''content1''] = '''';\r\n$walker[''final''][''content2''] = '''';\r\n$walker[''final''][''top_articel''] = '''';\r\n$walker[''final''][''anchors''] = '''';\r\nfor ( $i = 0; $i < ( $walker[''articel_per_side''] + $walker[''articel_plus_topstory''] ); $i++ ) {\r\n    // Template\r\n    $walker[''tmp''][''is_topstory''] = ( $walker[''topstory_tpl_enabled''] == 1 && !$walker[''tmp''][''top_throwed''] && $walker[''navi_position''] == 1 ) ? true : false; \r\n    // Template auswaehlen fuer topstory, content1, content2 und ueberpruefen ob Template aktiv\r\n    if ( $walker[''tmp''][''is_topstory''] ) {\r\n        $walker[''tmp''][''my_tpl''] = ''top_articel'';\r\n        $walker[''tmp''][''top_throwed''] = 1;\r\n    } elseif ( ( $walker[''articel_content1''] == 0 || ( ( $walker[''articel_content1''] + $walker[''articel_plus_topstory''] ) > $i ) ) && $walker[''content1_tpl_enabled''] == 1 ) {\r\n        $walker[''tmp''][''my_tpl''] = ''content1'';\r\n        if ( ( ( $walker[''articel_content1''] -1 ) >= 1 ) && $walker[''do_anchor''] ) $walker[''final''][$walker[''tmp''][''my_tpl'']] .= ''<a name ="#lc'' . $walker_content[$i][''idcatside''] . ''"></a>'';\r\n    } elseif ( $walker[''content2_tpl_enabled''] == 1 ) {\r\n        $walker[''tmp''][''my_tpl''] = ''content2'';\r\n        if ( ( ( $walker[''articel_content2''] -1 ) >= 1 ) && $walker[''do_anchor''] ) $walker[''final''][$walker[''tmp''][''my_tpl'']] .= ''<a name ="#lc'' . $walker_content[$i][''idcatside''] . ''"></a>'';\r\n    } \r\n    // es ist kein Template aktiv\r\n    else continue; \r\n    // Abbrechen, wenn es keine Seiten mehr zum ausgeben gibt, aber das Maximum von $walker[''articel_per_side'']\r\n    // noch nicht erreicht ist.\r\n    if ( !isset( $walker_content[$i][''idcatside''] ) ) break; \r\n    // Anchor replace\r\n    if ( $walker[''anchor_tpl_enabled''] == 1 && ! $walker[''tmp''][''is_topstory''] && $walker[''articel_per_side''] != 1 ) {\r\n        switch ( $walker[''anchor_txt''] ) {\r\n            case ''title'':\r\n            case ''description'':\r\n                $walker[''tmp''][''anchors''] = str_replace( ''{anchor_desc}'', $walker_content[$i][$walker[''anchor_txt'']], $walker[''anchor_tpl''] ) . "\\n";\r\n                break;\r\n            case ''text'':\r\n            case ''textarea'':\r\n                $walker[''tmp''][''anchors''] = str_replace( ''{anchor_desc}'', $walker_content[$i][$walker[''anchor_txt'']][0], $walker[''anchor_tpl''] ) . "\\n";\r\n                break;\r\n        } \r\n        $walker[''final''][''anchors''] .= str_replace( ''{anchor_url}'', ''#lc'' . $walker_content[$i][''idcatside''], $walker[''tmp''][''anchors''] ) . "\\n";\r\n    } \r\n    // Spezial update Contentvars\r\n    $walker_content[$i][''created_date''] = date( $cfg_dedi[''FormatDate''], $walker_content[$i][''side_created''] );\r\n    $walker_content[$i][''created_time''] = date( $cfg_dedi[''FormatTime''], $walker_content[$i][''side_created''] );\r\n    $walker_content[$i][''last_modified_date''] = date( $cfg_dedi[''FormatDate''], $walker_content[$i][''side_lastmodified''] );\r\n    $walker_content[$i][''last_modified_time''] = date( $cfg_dedi[''FormatTime''], $walker_content[$i][''side_lastmodified''] );\r\n    $walker_content[$i][''font1''] = $walker[''font1''];\r\n    $walker_content[$i][''font2''] = $walker[''font2''];\r\n    $walker_content[$i][''font3''] = $walker[''font3''];\r\n    $walker_content[$i][''font4''] = $walker[''font4''];\r\n    $walker_content[$i][''font5''] = $walker[''font5''];\r\n    $walker_content[$i][''font6''] = $walker[''font6'']; \r\n    // Meta replace\r\n    $walker[''final''][''temp''] = $walker[$walker[''tmp''][''my_tpl'']][''tpl''];\r\n    $walker[''final''][''temp''] = DediMod_TemplateEngine( $walker[''final''][''temp''], $walker_content[$i] );\r\n    $walker[''final''][''temp''] = str_replace( ''<!--cut-->'', $walker[$walker[''tmp''][''my_tpl'']][''cuttpl''] , $walker[''final''][''temp''] ); \r\n    // make Template Final\r\n    $walker[''final''][''temp''] = DediMod_TemplateEngine( $walker[''final''][''temp''], $walker_content[$i] );\r\n    $walker[''final''][$walker[''tmp''][''my_tpl'']] .= $walker[''final''][''temp''];\r\n    if ( $walker[''topstory_tpl_enabled''] == 1 && $walker[''tmp''][''top_throwed''] == 1 && $walker[''topstory_separate''] == ''0'' && $walker[''navi_position''] == 1 ) {\r\n        $i--;\r\n        $walker[''tmp''][''top_throwed''] = 2;\r\n    } \r\n    if ( $walker[''tmp''][''top_throwed''] == 2 && !$walker[''tmp''][is_topstory] ) $i++;\r\n} \r\nunset( $i );\r\n// Main Template\r\n// {navi}, {navi_backward}, {navi_forward}, {anchors}, {top_articel}, {content1}, {content2}\r\n// Spezial update\r\n\r\n\r\n\r\n$walker[''final''][''content''] = $walker[''final''][''content1''];\r\n$walker[''final''][''font1''] = $walker[''font1''];\r\n$walker[''final''][''font2''] = $walker[''font2''];\r\n$walker[''final''][''font3''] = $walker[''font3''];\r\n$walker[''final''][''font4''] = $walker[''font4''];\r\n$walker[''final''][''font5''] = $walker[''font5''];\r\n// make main Template\r\n$walker[''final''][''temp''] = $walker[''main_tpl''];\r\n$walker[''final''][''temp''] = DediMod_TemplateEngine( $walker[''final''][''temp''], $walker[''final''] );\r\n// Keine Seiten da\r\nif ( !$walker[''side_score''] || $walker[''side_score''] == 0 ) {\r\n    $walker[''search_error''] = "<div class=\\"" . $walker[''font6''] . "\\">" . $walker[''search_error''] . "</div>";\r\n    $walker[''final''][''output''] = eval( ''?>'' . $walker[''search_error''] );\r\n} else\r\n    // strip bbcode\r\n    $walker[''final''][''temp''] = preg_replace(''/\\[\\/?(b|i|u|s|size|font|class|sub|sup|forecol|backcol|img|abbr|acronym|hr|br|email|anchor|link|filelink|list|\\*|footnote|code|source|table|row|tr|cell|td|head|th)(=.*?| .*?)?\\]/is'', '''', $walker[''final''][''temp'']);\r\n    // eval content\r\n    $walker[''final''][''output''] = eval( ''?>'' . $walker[''final''][''temp''] );\r\n// Debug On\r\nif ( "MOD_VALUE[51]" == 1 ) {\r\n    if ( is_array($walker_content) ) ksort( $walker_content );\r\n    if ( is_array($walker) ) ksort( $walker );\r\n    if ( is_array($_sql) ) ksort( $_sql );\r\n    echo "<pre>";\r\n    echo "<p><b>Walker-Content:</b><br>";\r\n    print_r( $walker_content );\r\n    echo "<p><b>Walker:</b><br>";\r\n    print_r( $walker );\r\n    echo "<p><b>SQLs:</b><br>";\r\n    print_r( $_sql );\r\n    echo "</pre>";\r\n} \r\nunset( $walker, $walker_content, $db_content, $db_solve_ids, $_sql );\r\n</DEDIPHP>', '', 0, 1, 1, 1081364244, 1149815462, 'mod:9cea6c56aa7b6294ad3b3e44a1ad7ac4:e6ead067', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (23, 'Glossar', '1.0', 'Contentliste', 'Stellt eine Glossarliste (A-Z) zur Verfügung', '<?php\r\n// (c) 2004 by Björn Brockmann -> bjoern@project-gooseberry.de\r\n// needs PHP 4.2+\r\n\r\n//include "C:/Programme/Apache Group/Apache/htdocs/dedi_dev/cvs-dev/moddev/glossarIN.php";\r\n?>\r\n<?php\r\n//val ref\r\n//0-9 system reserved\r\n//9 configmode\r\n//\r\n//10-99 common config vars\r\n//10 startauswahl ([a-z],all, other)\r\n//11 Begriffe pro seite\r\n//12 tpl eintrag frontend\r\n//13 tpl eintrag backend\r\n//14 tpl eintrag trenner\r\n//15 tpl nav a-z\r\n//16 tpl nav a-z ausgewählt\r\n//17 tpl nav a-z trenner\r\n//18 lang alle\r\n//19 lang andere\r\n//20 tpl nav weiter ausgewählt\r\n//21 tpl nav weiter\r\n//22 tpl nav zurück ausgewählt\r\n//23 tpl nav zurück\r\n//24 tpl nav num ausgewählt\r\n//25 tpl nav num\r\n//26 tpl nav trenner\r\n//27 tpl neuer eintrag\r\n//28 tpl eintrag bearbeiten\r\n//29 tpl eintrag löschen\r\n//30 tpl verbindung frontend\r\n//31 tpl verbindung backend\r\n//32 tpl formular\r\n//33 style formular label\r\n//34 style formular textfeld\r\n//35 style formular textarea\r\n//36 style formular select\r\n//37 style formular abort\r\n//38 style formular submit\r\n//39 gruppen einträge löschen\r\n//40 tpl keine einträge vorhanden\r\n\r\n$mip_form[''10''][''desc''] = ''Startauswahl/ Standardansicht'';\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''size''] = ''1'';\r\n$mip_form[''10''][''option_desc''][] = ''Alle'';\r\n$mip_form[''10''][''option_val''][] =  ''all'';\r\n$mip_form[''10''][''option_desc''][] = ''Andere'';\r\n$mip_form[''10''][''option_val''][] =  ''other'';\r\n$tmp = array(''A'',''B'',''C'',''D'',''E'',''F'',''G'',''H'',''I'',''J'',''K'',''L'',''M'',''N'',''O'',''P'',''Q'',''R'',''S'',''T'',''U'',''V'',''W'',''X'',''Y'',''Z'');\r\nforeach($tmp AS $v){\r\n	$mip_form[''10''][''option_desc''][] = $v;\r\n	$mip_form[''10''][''option_val''][] =  $v;\r\n}\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n\r\n$mip_form[''11''][''desc''] = ''Begriffe pro Seite'';\r\n$mip_form[''11''][''cat''] = ''option'';\r\n$mip_form[''11''][''size''] = ''1'';\r\n$tmp = array(''1'',''2'',''3'',''4'',''5'',''6'',''7'',''8'',''9'',''10'',''15'',''20'',''25'',''30'',''50'',''100'',''500'',''1000'');\r\nforeach($tmp AS $v){\r\n	$mip_form[''11''][''option_desc''][] = $v;\r\n	$mip_form[''11''][''option_val''][] =  $v;\r\n}\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''10'';\r\n\r\n$mip_form[''desc''][''cat''] = ''desc'';\r\n$mip_form[''desc''][''type''] = '''';\r\n$mip_form[''desc''][''desc''] = ''<br /><b>Templates</b>'';\r\n$mip_form[''desc''][''tab''] = ''0'';	\r\n\r\n$mip_form[''12''][''desc''] = ''Glosaareintrag - Darstellung Frontend<br>\r\n	<small>Mögliche Templatevariablen: {title}, {entry}</small>'';\r\n$mip_form[''12''][''cat''] = ''txtarea'';\r\n$mip_form[''12''][''rows''] = ''5'';\r\n$mip_form[''12''][''type''] = ''long'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n//{idglossar} {title} {identry} {entry} {idcatside} {online} {idlang} \r\n//{buttonedit} {buttondelete} {onlineinfo}\r\n$mip_form[''12''][''cms_val_default''] = ''<tr align="left" valign="top">\r\n  <td width="160">{title}</td>\r\n  <td>{entry}</td>\r\n</tr>\r\n'';\r\n\r\n$mip_form[''13''][''desc''] = ''Glosaareintrag - Darstellung Backend<br>\r\n<small>Mögliche Templatevariablen: {title}, {entry}, {buttonedit}, {buttondelete}, {onlineinfo}</small>'';\r\n$mip_form[''13''][''cat''] = ''txtarea'';\r\n$mip_form[''13''][''rows''] = ''5'';\r\n$mip_form[''13''][''type''] = ''long'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n//{idglossar} {title} {identry} {entry} {idcatside} {online} {idlang} \r\n//{buttonedit} {buttondelete} {onlineinfo}\r\n$mip_form[''13''][''cms_val_default''] = ''<tr align="left" valign="top">\r\n  <td width="160">{title}</td>\r\n  <td>{entry}</td>\r\n  <td align="right">\r\n    <table width="14"  border="0" cellspacing="0" cellpadding="0">\r\n     <tr>\r\n       <td align="center" valign="top">Eintrag ist {onlineinfo}</td>\r\n     </tr>\r\n     <tr>\r\n       <td align="center" valign="top">{buttonedit}</a></td>\r\n     </tr>\r\n     <tr>\r\n       <td align="center" valign="top">{buttondelete}</td>\r\n     </tr>\r\n    </table>\r\n  </td>\r\n</tr>\r\n'';\r\n\r\n$mip_form[''14''][''desc''] = ''Glosaareintrag - Trenner zwischen einzelnen Einträgen'';\r\n$mip_form[''14''][''cat''] = ''txtarea'';\r\n$mip_form[''14''][''rows''] = ''2'';\r\n$mip_form[''14''][''type''] = ''long'';\r\n$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''cms_val_default''] = '' '';\r\n\r\n$mip_form[''15''][''desc''] = ''Navigation A-Z<br />\r\n<small>Mögliche Templatevariablen: {link}, {linkname}</small>'';\r\n$mip_form[''15''][''cat''] = ''txtarea'';\r\n$mip_form[''15''][''rows''] = ''1'';\r\n$mip_form[''15''][''type''] = ''long'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''cms_val_default''] = ''<a href="{link}">&nbsp;{linkname}&nbsp;</a>'';\r\n\r\n$mip_form[''16''][''desc''] = ''Navigation A-Z, wenn der Menüpunkt ausgewählt ist<br />\r\n<small>Mögliche Templatevariablen: {link}, {linkname}</small>'';\r\n$mip_form[''16''][''cat''] = ''txtarea'';\r\n$mip_form[''16''][''rows''] = ''1'';\r\n$mip_form[''16''][''type''] = ''long'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''cms_val_default''] = ''<a href="{link}">&raquo;{linkname}&laquo;</a>'';\r\n\r\n$mip_form[''17''][''desc''] = ''Navigation A-Z, Trenner zwischen einzelnen Menüpunkten'';\r\n$mip_form[''17''][''cat''] = ''txtarea'';\r\n$mip_form[''17''][''rows''] = ''1'';\r\n$mip_form[''17''][''type''] = ''long'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''cms_val_default''] = ''&nbsp;'';\r\n\r\n$mip_form[''18''][''desc''] = ''Navigation A-Z, Sprachstring für "alle"'';\r\n$mip_form[''18''][''cat''] = ''txt'';\r\n$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''cms_val_default''] = ''alle'';\r\n\r\n$mip_form[''19''][''desc''] = ''Navigation A-Z, Sprachstring für "andere"'';\r\n$mip_form[''19''][''cat''] = ''txt'';\r\n$mip_form[''19''][''rows''] = ''1'';\r\n$mip_form[''19''][''cms_var''] = ''MOD_VAR[19]'';\r\n$mip_form[''19''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n$mip_form[''19''][''cms_val_default''] = ''andere'';\r\n\r\n$mip_form[''20''][''desc''] = ''Navigation weiter, aktiv<br />\r\n<small>Mögliche Templatevariablen: {link}</small>'';\r\n$mip_form[''20''][''cat''] = ''txtarea'';\r\n$mip_form[''20''][''rows''] = ''1'';\r\n$mip_form[''20''][''type''] = ''long'';\r\n$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''20''][''cms_val_default''] = ''<a href="{link}">&raquo;</a>'';\r\n\r\n$mip_form[''21''][''desc''] = ''Navigation weiter, inaktiv'';\r\n$mip_form[''21''][''cat''] = ''txtarea'';\r\n$mip_form[''21''][''rows''] = ''1'';\r\n$mip_form[''21''][''type''] = ''long'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''21''][''cms_val_default''] = ''&raquo;'';\r\n\r\n$mip_form[''22''][''desc''] = ''Navigation zurück, aktiv<br />\r\n<small>Mögliche Templatevariablen: {link}</small>'';\r\n$mip_form[''22''][''cat''] = ''txtarea'';\r\n$mip_form[''22''][''rows''] = ''1'';\r\n$mip_form[''22''][''type''] = ''long'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''22''][''cms_val_default''] = ''<a href="{link}">&laquo;</a>'';\r\n\r\n$mip_form[''23''][''desc''] = ''Navigation zurück, inaktiv'';\r\n$mip_form[''23''][''cat''] = ''txtarea'';\r\n$mip_form[''23''][''rows''] = ''1'';\r\n$mip_form[''23''][''type''] = ''long'';\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n$mip_form[''23''][''cms_val_default''] = ''&laquo;'';\r\n\r\n$mip_form[''24''][''desc''] = ''Navigation numerisch<br />\r\n<small>Mögliche Templatevariablen: {link}, {number}</small>'';\r\n$mip_form[''24''][''cat''] = ''txtarea'';\r\n$mip_form[''24''][''rows''] = ''1'';\r\n$mip_form[''24''][''type''] = ''long'';\r\n$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n$mip_form[''24''][''cms_val_default''] = ''<a href="{link}">{number}</a>'';\r\n\r\n$mip_form[''25''][''desc''] = ''Navigation numerisch, wenn der Menüpunkt ausgewählt ist<br />\r\n<small>Mögliche Templatevariablen: {link}, {number}</small>'';\r\n$mip_form[''25''][''cat''] = ''txtarea'';\r\n$mip_form[''25''][''rows''] = ''1'';\r\n$mip_form[''25''][''type''] = ''long'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''25''][''cms_val_default''] = ''<a href="{link}">[{number}]</a>'';\r\n\r\n$mip_form[''26''][''desc''] = ''Navigation [weiter, zurück, numerisch] Trenner'';\r\n$mip_form[''26''][''cat''] = ''txtarea'';\r\n$mip_form[''26''][''rows''] = ''1'';\r\n$mip_form[''26''][''type''] = ''long'';\r\n$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n$mip_form[''26''][''cms_val_default''] = ''&nbsp;'';\r\n\r\n$mip_form[''27''][''desc''] = ''Neuen Eintrag erstellen<br />\r\n<small>Mögliche Templatevariablen: {link}</small>'';\r\n$mip_form[''27''][''cat''] = ''txtarea'';\r\n$mip_form[''27''][''rows''] = ''1'';\r\n$mip_form[''27''][''type''] = ''long'';\r\n$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n$mip_form[''27''][''cms_val_default''] = ''<a href="{link}">Neuer Eintrag</a>'';\r\n\r\n$mip_form[''28''][''desc''] = ''Eintrag bearbeiten<br />\r\n<small>Mögliche Templatevariablen: {link}</small>'';\r\n$mip_form[''28''][''cat''] = ''txtarea'';\r\n$mip_form[''28''][''rows''] = ''1'';\r\n$mip_form[''28''][''type''] = ''long'';\r\n$mip_form[''28''][''cms_var''] = ''MOD_VAR[28]'';\r\n$mip_form[''28''][''cms_val''] = $dedi_mod[''value''][''28''];\r\n$mip_form[''28''][''cms_val_default''] = ''<a href="{link}">Bearbeiten</a>'';\r\n\r\n$mip_form[''29''][''desc''] = ''Eintrag löschen<br />\r\n<small>Mögliche Templatevariablen: {link}</small>'';\r\n$mip_form[''29''][''cat''] = ''txtarea'';\r\n$mip_form[''29''][''rows''] = ''1'';\r\n$mip_form[''29''][''type''] = ''long'';\r\n$mip_form[''29''][''cms_var''] = ''MOD_VAR[29]'';\r\n$mip_form[''29''][''cms_val''] = $dedi_mod[''value''][''29''];\r\n$mip_form[''29''][''cms_val_default''] = ''<a href="{link}" onclick="return confirm(\\''Eintrag wirklich löschen?\\'')">Löschen</a>'';\r\n\r\n$mip_form[''30''][''desc''] = ''Verbindungstemplate, Darstellung Frontend<br />\r\n<small>Mögliche Templatevariablen: {optionbox}, {nav}, {entries}, {countonline}</small>'';\r\n$mip_form[''30''][''cat''] = ''txtarea'';\r\n$mip_form[''30''][''rows''] = ''5'';\r\n$mip_form[''30''][''type''] = ''long'';\r\n$mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n$mip_form[''30''][''cms_val_default''] = ''<table width="100%"  border="0" cellspacing="0" cellpadding="0">\r\n  <tr>\r\n    <td align="center" valign="top"><small>{optionbox}</small></td>\r\n  </tr>\r\n</table>\r\n\r\n<table width="100%"  border="0" cellspacing="0" cellpadding="5">\r\n{entries}\r\n</table>\r\n<table width="100%"  border="0" cellspacing="0" cellpadding="10">\r\n  <tr>\r\n    <td align="center" valign="top"><small>{nav}</small></td>\r\n  </tr>\r\n</table>\r\n'';\r\n\r\n$mip_form[''31''][''desc''] = ''Verbindungstemplate, Darstellung Backend<br />\r\n<small>Mögliche Templatevariablen: {optionbox}, {new}, {nav}, {entries}, {countall}, {countonline}, {countoffline}</small>'';\r\n$mip_form[''31''][''cat''] = ''txtarea'';\r\n$mip_form[''31''][''rows''] = ''5'';\r\n$mip_form[''31''][''type''] = ''long'';\r\n$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n$mip_form[''31''][''cms_val_default''] = ''<table width="100%"  border="0" cellspacing="5" cellpadding="0">\r\n  <tr align="left">\r\n    <td width="50%" valign="top"><small><strong>Gesamt</strong>: {countall} | <strong>Online</strong>: {countonline} | <strong>Offline</strong>:{countoffline}</small></td>\r\n    <td width="50%" align="right" valign="top">{new}</td>\r\n  </tr>\r\n</table>\r\n<table width="100%"  border="0" cellspacing="0" cellpadding="0">\r\n  <tr>\r\n    <td align="center" valign="top"><small>{optionbox}</small></td>\r\n  </tr>\r\n</table>\r\n<table width="100%"  border="0" cellspacing="0" cellpadding="5">\r\n{entries}\r\n</table>\r\n<table width="100%"  border="0" cellspacing="0" cellpadding="10">\r\n  <tr>\r\n    <td align="center" valign="top"><small>{nav}</small></td>\r\n  </tr>\r\n</table>\r\n'';\r\n\r\n$mip_form[''32''][''desc''] = ''Formulartemplate neuer Eintrag/ Eintrag bearbeiten<br />\r\n<small>Mögliche Templatevariablen: {form}</small>'';\r\n$mip_form[''32''][''cat''] = ''txtarea'';\r\n$mip_form[''32''][''rows''] = ''3'';\r\n$mip_form[''32''][''type''] = ''long'';\r\n$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n$mip_form[''32''][''cms_val_default''] = ''<div align="center">{form}</div>'';\r\n\r\n$mip_form[''33''][''desc''] = ''Styleklasse Formular Label'';\r\n$mip_form[''33''][''cat''] = ''app_css'';\r\n$mip_form[''33''][''output_cat''] = ''option'';\r\n$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n$mip_form[''33''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''34''][''desc''] = ''Styleklasse Formular Titel'';\r\n$mip_form[''34''][''cat''] = ''app_css'';\r\n$mip_form[''34''][''output_cat''] = ''option'';\r\n$mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n$mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n$mip_form[''34''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''35''][''desc''] = ''Styleklasse Formular Beschreibung'';\r\n$mip_form[''35''][''cat''] = ''app_css'';\r\n$mip_form[''35''][''output_cat''] = ''option'';\r\n$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n$mip_form[''35''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''36''][''desc''] = ''Styleklasse Formular Online/ Offline'';\r\n$mip_form[''36''][''cat''] = ''app_css'';\r\n$mip_form[''36''][''output_cat''] = ''option'';\r\n$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n$mip_form[''36''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''37''][''desc''] = ''Styleklasse Formular Button Abbrechen'';\r\n$mip_form[''37''][''cat''] = ''app_css'';\r\n$mip_form[''37''][''output_cat''] = ''option'';\r\n$mip_form[''37''][''cms_var''] = ''MOD_VAR[37]'';\r\n$mip_form[''37''][''cms_val''] = $dedi_mod[''value''][''37''];\r\n$mip_form[''37''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''38''][''desc''] = ''Styleklasse Button OK'';\r\n$mip_form[''38''][''cat''] = ''app_css'';\r\n$mip_form[''38''][''output_cat''] = ''option'';\r\n$mip_form[''38''][''cms_var''] = ''MOD_VAR[38]'';\r\n$mip_form[''38''][''cms_val''] = $dedi_mod[''value''][''38''];\r\n$mip_form[''38''][''flag''] = ''class_only'';\r\n\r\n$mip_form[''39''][''desc''] = ''Gruppen, mit eingeschränkten Bearbeitungsrecht<br />\r\n<small>Diese Gruppen dürfen keine Einträge löschen</small>'';\r\n$mip_form[''39''][''cat''] = ''app_group'';\r\n$mip_form[''39''][''output_cat''] = ''option'';\r\n$mip_form[''39''][''cms_var''] = ''MOD_VAR[39]'';\r\n$mip_form[''39''][''cms_val''] = $dedi_mod[''value''][''39''];\r\n$mip_form[''39''][''flag''] = ''multiple'';\r\n$mip_form[''39''][''size''] = ''5'';\r\n$mip_form[''39''][''without_all_groups''] = true;\r\n\r\n$mip_form[''40''][''desc''] = ''Glossareintrag, wenn kein Eintrag vorhanden ist'';\r\n$mip_form[''40''][''cat''] = ''txtarea'';\r\n$mip_form[''40''][''rows''] = ''2'';\r\n$mip_form[''40''][''type''] = ''long'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''cms_val_default''] = ''<div align="center">Keine Einträge vorhanden</div>'';\r\n\r\n\r\n//configmode\r\n$mip_form[''9''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''9''][''cat''] = ''option'';\r\n$mip_form[''9''][''size''] = ''1'';\r\n$mip_form[''9''][''option_desc''][] = ''Normal'';\r\n$mip_form[''9''][''option_val''][] =  '''';\r\n$mip_form[''9''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''9''][''option_val''][] =  ''advanced'';\r\n$mip_form[''9''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''9''][''option_val''][] =  ''hidden'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''9'']);//configmode\r\n$hide_in_standard_mode = array(12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40, ''desc'');\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''9''] == ''''){\r\n   foreach ($hide_in_standard_mode  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n}\r\n//if hidden config\r\nelseif($dedi_mod[''value''][''9''] == ''hidden''){\r\n	foreach($dedi_mod[''value''] AS $ke=>$va){\r\n		if($ke != ''9''){\r\n			?>\r\n			<input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n			<?php\r\n		}\r\n	}\r\n}\r\n\r\nif($dedi_mod[''value''][''9''] != ''hidden''){\r\n	mip_formsp($mip_form[''10'']);//startauswahl ([a-z],all, other)\r\n	mip_formsp($mip_form[''11'']);//Begriffe pro seite\r\n	mip_formsp($mip_form[''39'']);//Gruppen, die Begriffe löschen dürfen \r\n	mip_formsp($mip_form[''desc'']);\r\n	mip_formsp($mip_form[''12'']);\r\n	mip_formsp($mip_form[''13'']);\r\n	mip_formsp($mip_form[''40'']);\r\n	mip_formsp($mip_form[''14'']);\r\n	mip_formsp($mip_form[''15'']);\r\n	mip_formsp($mip_form[''16'']);\r\n	mip_formsp($mip_form[''17'']);\r\n	mip_formsp($mip_form[''18'']);\r\n	mip_formsp($mip_form[''19'']);\r\n	mip_formsp($mip_form[''20'']);\r\n	mip_formsp($mip_form[''21'']);\r\n	mip_formsp($mip_form[''22'']);\r\n	mip_formsp($mip_form[''23'']);\r\n	mip_formsp($mip_form[''24'']);\r\n	mip_formsp($mip_form[''25'']);\r\n	mip_formsp($mip_form[''26'']);\r\n	mip_formsp($mip_form[''27'']);\r\n	mip_formsp($mip_form[''28'']);\r\n	mip_formsp($mip_form[''29'']);\r\n	mip_formsp($mip_form[''30'']);\r\n	mip_formsp($mip_form[''31'']);\r\n	mip_formsp($mip_form[''32'']);\r\n	mip_formsp($mip_form[''33'']);\r\n	mip_formsp($mip_form[''34'']);\r\n	mip_formsp($mip_form[''35'']);\r\n	mip_formsp($mip_form[''36'']);\r\n	mip_formsp($mip_form[''37'']);\r\n	mip_formsp($mip_form[''38'']);\r\n}\r\nunset($mip_form, $tmp);\r\n?>', '<DEDIPHP:CACHE>\r\n// (c) 2004 by Björn Brockmann -> bjoern@project-gooseberry.de\r\n// needs PHP 4.2+\r\n\r\n//Alle Variablen, die nur innerhalb des gecachten PHPs sichtbar sind, auch für dynamisches PHP zur Verfügung stellen\r\necho ''<DEDIPHP>'';\r\nif(is_array($dedi_mod[''value''])){\r\n	foreach($dedi_mod[''value''] AS $k => $v){\r\n		echo ''$mvars["''.$k.''"] = "''. str_replace("\\''", "''", addslashes($v)) .''";''."\\n";\r\n	}\r\n}\r\necho ''</DEDIPHP>'';\r\n</DEDIPHP:CACHE>\r\n<DEDIPHP>\r\n//include "C:/Programme/Apache Group/Apache/htdocs/dedi_dev/cvs-dev/moddev/glossarOUT.php";\r\n//glossar conf\r\n$modConf[''idcatside''] = $idcatside;\r\n$modConf[''idlang''] = $lang;\r\n$modConf[''idclient''] = $client;\r\n$modConf[''pageLimit''] = $mvars[''11''];\r\n$modConf[''pageStart''] = (! is_numeric($_REQUEST[''glstart'']) ) ? 0: $_REQUEST[''glstart''];\r\n//mode: admin, redakteur, user \r\nif($sess->name== ''dedi'' && $view == ''edit''){\r\n	$modConf[''mode''] = ''admin'';\r\n	if (strlen($mvars[''39''])>=1  && ! $perm->is_admin()){\r\n		$mod[''checkme''] = explode('','', $mvars[''39'']);\r\n		if(is_array($perm->get_group())){\r\n			foreach($perm->get_group() AS $v){\r\n				if (in_array($v, $mod[''checkme'']))\r\n					$modConf[''mode''] = ''redakteur'';\r\n			}\r\n		}\r\n	}\r\n}else{\r\n	$modConf[''mode''] = ''user'';	\r\n}\r\n\r\n//slected view. If request value is not set, take default value. possible options are: all, other, [A,B,C...] \r\n$modConf[''selectedView''] = ( empty($_REQUEST[''selected'']) ) ? $mvars[''10'']:$_REQUEST[''selected''];\r\n$modConf[''tblGlossar''] = $cfg_dedi[''db_table_prefix''] .''mod_glossar'';\r\n$modConf[''checkOtherLangsFlag''] = true;\r\n$modConf[''conf_x''] = '''';\r\n$modConf[''conf_x''] = '''';\r\n\r\n//glossarGUI conf\r\n//tpl entry (backend/ frontend)\r\nif($sess->name==''dedi'' && $view == ''edit''){\r\n	$modConf[''tplEntry''] = $mvars[''13''];\r\n}else{\r\n	$modConf[''tplEntry''] = $mvars[''12''];	\r\n}\r\n$modConf[''tplEntrySeperator''] = $mvars[''14''];\r\n$modConf[''tplEntryEmpty''] = $mvars[''40''];\r\n\r\n//tpl optionbox (A-Z)\r\n$modConf[''tplOptionBox''] = $mvars[''15''];\r\n$modConf[''tplOptionBoxActive''] = $mvars[''16''];\r\n$modConf[''tplOptionBoxSeperator''] = $mvars[''17''];\r\n\r\n//nav tpls\r\n$modConf[''tplNavForward''] = $mvars[''21''];\r\n$modConf[''tplNavForwardActive''] = $mvars[''20''];\r\n$modConf[''tplNavBackward''] = $mvars[''23''];\r\n$modConf[''tplNavBackwardActive''] = $mvars[''22''];\r\n$modConf[''tplNavNumeric''] = $mvars[''24''];\r\n$modConf[''tplNavNumericActive''] = $mvars[''25''];\r\n$modConf[''tplNavSeperator''] = $mvars[''26''];\r\n\r\n//tpl adminactions\r\n$modConf[''tplEntryNew''] = $mvars[''27''];\r\n$modConf[''tplEntryEdit''] = $mvars[''28''];\r\n$modConf[''tplEntryDelete''] = $mvars[''29''];\r\n\r\n//tpl combine (backend/ frontend)\r\nif($sess->name==''dedi'' && $view == ''edit''){\r\n	$modConf[''tplCombine''] = $mvars[''31''];\r\n}else{\r\n	$modConf[''tplCombine''] = $mvars[''30''];	\r\n}\r\n\r\n//32 tpl formular\r\n//33 style formular label\r\n//34 style formular textfeld\r\n//35 style formular textarea\r\n//36 style formular select\r\n//37 style formular abort\r\n//38 style formular submit\r\n$modConf[''langAll''] = $mvars[''18''];\r\n$modConf[''langOther''] = $mvars[''19''];\r\n$modConf[''langChars''] = ''A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z'';\r\n$modConf[''baseURL''] = $con_side[$idcatside][''link''];\r\n$modConf[''tplForm''] = $mvars[''32''];\r\n$modConf[''cssFormLabel''] = $mvars[''33''];\r\n$modConf[''cssFormText''] = $mvars[''34''];\r\n$modConf[''cssFormTextarea''] = $mvars[''35''];\r\n$modConf[''cssFormSelect''] = $mvars[''36''];\r\n$modConf[''cssFormAbort''] = $mvars[''37''];\r\n$modConf[''cssFormSubmit''] = $mvars[''38''];\r\n$modConf[''conf_x''] = '''';\r\n$modConf[''conf_x''] = '''';\r\n$modConf[''conf_x''] = '''';\r\n$modConf[''conf_x''] = '''';\r\n\r\n\r\nclass glossar\r\n{\r\n	//for each idcatside one unique glossar will be generate\r\n	var $idcatside;\r\n	//client/ project\r\n	var $idclient;\r\n	//lang\r\n	var $idlang;\r\n	//how many entries will be shown on one page\r\n	var $pageLimit;\r\n	//nav position\r\n	var $pageStart;\r\n	//phplib db object\r\n	var $db;\r\n	//table for glossar entries\r\n	var $tblGlossar;\r\n	//slected view - possible options are: all, other, [A,B,C...]\r\n	var $selectedView;\r\n	//check other langs and synchrosize entries\r\n	var $checkOtherLangsFlag;\r\n	//mode: admin, redakteur, user\r\n	var $mode;\r\n	 \r\n	//construktor\r\n	function glossar($modConf, $db)\r\n	{\r\n		$this->idcatside = $modConf[''idcatside''];\r\n		$this->idclient = $modConf[''idclient''];\r\n		$this->idlang = $modConf[''idlang''];\r\n		$this->pageLimit = $modConf[''pageLimit''];\r\n		$this->pageStart = $modConf[''pageStart''];\r\n		$this->tblGlossar = $modConf[''tblGlossar''];\r\n		$this->selectedView = $modConf[''selectedView''];\r\n		$this->checkOtherLangsFlag = $modConf[''checkOtherLangsFlag''];\r\n		$this->mode = $modConf[''mode''];\r\n		$this->db = $db;\r\n	}\r\n	\r\n	function getEntry($id)\r\n	{\r\n		//if(! is_int($id)) return;\r\n		\r\n		$sql = "SELECT * \r\n				FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					idglossar = ".$id;\r\n				\r\n		$this->db->query($sql);\r\n\r\n		$result = array();\r\n		while($this->db->next_record())\r\n		{\r\n			while (list($key, $value) = each($this->db->Record))\r\n			{\r\n				if(! is_numeric($key))\r\n					$result[$key] = $value;\r\n			}\r\n		}\r\n		\r\n		return $result;\r\n\r\n	}\r\n	\r\n	function getOtherLangs()\r\n	{\r\n		global $dedi_db;\r\n	\r\n		$sql = "SELECT \r\n					A.idlang, A.name \r\n				FROM \r\n					".$dedi_db[''lang'']." A \r\n					LEFT JOIN ".$dedi_db[''clients_lang'']." B USING(idlang) \r\n				WHERE \r\n					B.idclient=". $this->idclient ."\r\n					AND A.idlang != ". $this->idlang ."\r\n				ORDER BY idlang";\r\n	\r\n		$this->db->query($sql);\r\n\r\n		$langs = array();\r\n		for($i=0; $this->db->next_record(); $i++) \r\n		{\r\n			$langs[$i][''idlang''] = $this->db->f(''idlang'');\r\n			$langs[$i][''name''] = $this->db->f(''name'');\r\n		}\r\n		\r\n		return $langs;		\r\n	}\r\n	\r\n	function getEntryListArray()\r\n	{\r\n		if($this->selectedView == ''other'') $regex = "AND title NOT REGEXP ''^[a-z]''";  \r\n		else if($this->selectedView == ''all'') $regex = "";\r\n		else if(preg_match("/^[a-z]/i",$this->selectedView))$regex = "AND title REGEXP ''^".strtolower(substr($this->selectedView, 0, 1))."''";\r\n		else $regex = "";\r\n		\r\n		$mode = ($this->mode == ''user'') ? ''AND online = 1 '' : '''';\r\n			 \r\n		$sql = "SELECT * \r\n				FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					idcatside = ". $this->idcatside ." \r\n					$regex \r\n					$mode\r\n					AND idlang = ". $this->idlang ."\r\n					AND idclient = ".$this->idclient." \r\n				ORDER BY title\r\n				LIMIT ".$this->pageStart." , ".$this->pageLimit;\r\n				\r\n		$this->db->query($sql);\r\n\r\n		//$result = array();\r\n		$i =0;\r\n		while($this->db->next_record())\r\n		{\r\n			while (list($key, $value) = each($this->db->Record))\r\n			{\r\n				if(! is_numeric($key))\r\n					$result[$i][$key] = $value;\r\n			}\r\n			$i++;\r\n		}\r\n		\r\n		//check !!disabled!!\r\n		if(1 == 2 && $i==0 && $this->checkOtherLangsFlag == true && $this->selectedView == ''all'' && $this->pageStart=0){\r\n			$langs = $this->getOtherLangs();\r\n			if($langs[''0''][''idlang''] != ''''){\r\n				//sleep(10);\r\n				return $this->copyAllFromLang($langs[''0''][''idlang'']);\r\n				//unset($result);\r\n				//$this->db->free();\r\n				//return $this->getEntryList();			\r\n			}\r\n		}\r\n		\r\n		return $result;\r\n	}\r\n	\r\n	function copyAllFromLang($idlang)\r\n	{\r\n		if(! is_int($idlang)) return false;\r\n		\r\n		$this->checkOtherLangsFlag = false;\r\n		$src = new glossar(array(''idcatside'' => $this->idcatside,\r\n							''idcatside'' => $this->idcatside,\r\n							''idclient'' => $this->idclient,\r\n							''idlang'' => $idlang,\r\n							''pageLimit'' => 100000,\r\n							''pageStart'' => 0,\r\n							''tblGlossar'' => $this->tblGlossar,\r\n							''selectedView'' => ''all'',\r\n							''checkOtherLangsFlag'' => false\r\n							)\r\n							, $this->db);\r\n		$entries = $src->getEntryListArray();\r\n		\r\n		foreach($entries AS $k=>$v)\r\n		{\r\n			$insert = array( ''idglossar'' => '''',\r\n							''identry'' => $v[''identry''],\r\n							''idclient'' => $this->idclient,\r\n							''idlang'' => $this->idlang,\r\n							''idcatside'' => $this->idcatside,\r\n							''title'' =>  addslashes($v[''title'']),\r\n							''entry'' =>  addslashes($v[''entry'']),\r\n							''online'' => 0);\r\n				\r\n			$this->_newEntry($insert, false);			\r\n		}		\r\n	}\r\n	\r\n	function getEntryCount()\r\n	{\r\n		if($this->selectedView == ''other'') $regex = "AND title NOT REGEXP ''^[a-z]''";  \r\n		else if($this->selectedView == ''all'') $regex = "";\r\n		else if(preg_match("/^[a-z]/i",$this->selectedView))$regex = "AND title REGEXP ''^".strtolower(substr($this->selectedView, 0, 1))."''";\r\n		else $regex = "";\r\n		\r\n		$mode = ($this->mode == ''user'') ? ''AND online = 1 '' : '''';\r\n		\r\n		$sql = "SELECT COUNT(*) AS mycount \r\n				FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					idcatside = ". $this->idcatside ." \r\n					$regex \r\n					$mode\r\n					AND idlang = ". $this->idlang ."\r\n					AND idclient = ".$this->idclient;\r\n				\r\n		$this->db->query($sql);\r\n		$this->db->next_record();\r\n		return $this->db->f(''mycount'');\r\n	}\r\n	\r\n	function getCountStatistic()\r\n	{\r\n		$sql = "SELECT COUNT(*) AS allcount \r\n				FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					idcatside = ". $this->idcatside ." \r\n					AND idlang = ". $this->idlang ."\r\n					AND idclient = ".$this->idclient;\r\n				\r\n		$this->db->query($sql);\r\n		$this->db->next_record();\r\n		$statistics[''countAll''] = $this->db->f(''allcount'');		\r\n\r\n		$sql = "SELECT COUNT(*) AS onlinecount \r\n				FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					idcatside = ". $this->idcatside ." \r\n					AND idlang = ". $this->idlang ."\r\n					AND idclient = ".$this->idclient ."\r\n					AND online = 1";\r\n				\r\n		$this->db->query($sql);\r\n		$this->db->next_record();\r\n		$statistics[''countOnline''] = $this->db->f(''onlinecount'');		\r\n		$statistics[''countOffline''] = $statistics[''countAll'']-$statistics[''countOnline''];\r\n		\r\n		return $statistics;		\r\n\r\n	}\r\n	\r\n	function entryExists($id)\r\n	{\r\n		if(! is_int($id) || $id < 1) return false;\r\n		\r\n		$sql = "SELECT * \r\n				FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					idglossar = ".$id;\r\n				\r\n		$this->db->query($sql);\r\n\r\n		return $this->db->next_record();		\r\n	}\r\n	\r\n	function setViewByTitle($title)\r\n	{\r\n		//find new position for \r\n		$subString = strtoupper(substr($title, 0, 1));\r\n		$this->selectedView = (preg_match("/^[a-z]/i",$subString)) ? $subString:''other'';\r\n		\r\n		$countAll = $this->getEntryCount();\r\n		$this->pageStart = 0;\r\n		while($this->pageStart<$countAll)\r\n		{\r\n			$entries = $this->getEntryListArray();\r\n			//echo ''----<br>'';\r\n			//print_r($entries);echo ''----<br>'';exit;		\r\n			$c = count($entries);\r\n			for($i=0;$i<$c;$i++)\r\n			{\r\n				if($entries[$i][''title''] == $title)\r\n					return;\r\n			}\r\n			$this->pageStart += $this->pageLimit;\r\n		}\r\n		//fallback\r\n		$this->pageStart = 0;\r\n		$this->selectedView = ''all'';\r\n		\r\n	}\r\n	\r\n	function saveEntry($vals)\r\n	{\r\n		$online = ($vals[''go_frm_online''] == ''Online'') ? 1:0;\r\n		\r\n		$insert = array( 	''idglossar'' => $_REQUEST[''glid''],\r\n							''identry'' => $_REQUEST[''glidentry''],\r\n							''idclient'' => $this->idclient,\r\n							''idlang'' => $this->idlang,\r\n							''idcatside'' => $this->idcatside,\r\n							''title'' =>  addslashes($vals[''go_frm_title'']),\r\n							''entry'' =>  addslashes($vals[''go_frm_entry'']),\r\n							''online'' => $online );\r\n		\r\n		if( $this->entryExists( (int) $insert[''idglossar'']) )\r\n			$this->_updateEntry($insert);\r\n		else{\r\n			$idglossar = $this->_newEntry($insert);\r\n			$langs = $this->getOtherLangs();\r\n			foreach($langs AS $k => $v){\r\n				$insert[''identry''] = $idglossar;\r\n				$insert[''idlang''] = $v[''idlang''];\r\n				$insert[''online''] = 0;\r\n				$this->_newEntry($insert, false);\r\n			}			\r\n		}		\r\n	}\r\n	\r\n	function _updateEntry($insert)\r\n	{\r\n		$sql = "UPDATE ".$this->tblGlossar." \r\n				SET \r\n					title =  ''".$insert[''title'']."'',  \r\n					entry =  ''".$insert[''entry'']."'',  \r\n					online =  ''".$insert[''online'']."''  \r\n				WHERE \r\n					idglossar = ''".$insert[''idglossar'']."'' ";\r\n			\r\n		$this->db->query($sql);	\r\n	}\r\n\r\n	function _newEntry($insert, $setIdEntry = true)\r\n	{\r\n		$sql = "INSERT INTO ".$this->tblGlossar." \r\n					(`idglossar` , `identry` , `idclient` , `idlang` , `idcatside` ,\r\n				 	`title` , `entry` , `online` ) \r\n				VALUES (\r\n				'''', ''".$insert[''identry'']."'', ''".$insert[''idclient'']."'',  ''".$insert[''idlang'']."'',  ''".$insert[''idcatside'']."'', \r\n				 ''".$insert[''title'']."'',  ''".$insert[''entry'']."'',  ''".$insert[''online'']."'')";\r\n		\r\n		$this->db->query($sql);\r\n		\r\n		$lastInsertId = mysql_insert_id();\r\n\r\n		if($setIdEntry){\r\n			$sql = "UPDATE ".$this->tblGlossar." \r\n					SET identry = LAST_INSERT_ID() \r\n					WHERE idglossar = LAST_INSERT_ID()";\r\n			\r\n			$this->db->query($sql);		\r\n		}\r\n		\r\n		return $lastInsertId;\r\n							\r\n	}\r\n	\r\n	function deleteEntry($id)\r\n	{\r\n		if(! is_int($id) || $id < 1) return false;\r\n		if($this->mode == ''redakteur'') return false;\r\n		\r\n		$sql = "DELETE FROM \r\n					".$this->tblGlossar." \r\n				WHERE \r\n					identry = ".$id;\r\n				\r\n		$this->db->query($sql);		\r\n	}\r\n}\r\n\r\n\r\nclass glossarGUI extends glossar\r\n{\r\n	//tpl for one listentry\r\n	var $tplEntry;\r\n	//seperator tpl between $tplEntry\r\n	var $tplEntrySeperator;\r\n	var $tplOptionBox;\r\n	var $tplOptionBoxActive;\r\n	var $tplOptionBoxSeperator;\r\n	\r\n	var $baseURL;\r\n	\r\n	var $langAll;\r\n	var $langOther;\r\n	var $langChars;\r\n	\r\n	//constructor\r\n	function glossarGUI($modConf, $db)\r\n	{\r\n		parent::glossar($modConf, $db);\r\n		$this->tplEntry = $modConf[''tplEntry''];\r\n		$this->tplEntrySeperator = $modConf[''tplEntrySeperator''];\r\n		$this->langAll = $modConf[''langAll''];\r\n		$this->langOther = $modConf[''langOther''];\r\n		$this->langChars = explode('','', $modConf[''langChars'']);\r\n		$this->baseURL = $modConf[''baseURL''];\r\n		$this->tplOptionBox = $modConf[''tplOptionBox''];\r\n		$this->tplOptionBoxActive = $modConf[''tplOptionBoxActive''];\r\n		$this->tplOptionBoxSeperator = $modConf[''tplOptionBoxSeperator''];\r\n		$this->tplCombine = $modConf[''tplCombine''];	\r\n		$this->tplEntryDelete = $modConf[''tplEntryDelete''];\r\n		$this->tplEntryEdit = $modConf[''tplEntryEdit''];\r\n		$this->tplEntryNew = $modConf[''tplEntryNew''];\r\n		$this->tplNavForward = $modConf[''tplNavForward''];\r\n		$this->tplNavForwardActive = $modConf[''tplNavForwardActive''];\r\n		$this->tplNavBackward = $modConf[''tplNavBackward''];\r\n		$this->tplNavBackwardActive = $modConf[''tplNavBackwardActive''];\r\n		$this->tplNavNumeric = $modConf[''tplNavNumeric''];\r\n		$this->tplNavNumericActive = $modConf[''tplNavNumericActive''];\r\n		$this->tplNavSeperator = $modConf[''tplNavSeperator''];\r\n		$this->tplEntryEmpty = $modConf[''tplEntryEmpty''];\r\n	}\r\n	\r\n	function getEntryList()\r\n	{\r\n		$entries = $this->getEntryListArray(true);\r\n		$c = count($entries);\r\n		$out = '''';\r\n		if($c<1)\r\n			return $this->tplEntryEmpty;\r\n			\r\n		for($i=0;$i<$c;$i++)\r\n		{\r\n			$out .= $this->_getFormatedEntry($entries[$i]);\r\n			if($i != $c-1)\r\n				$out .= $this->_getEntryListSeperator();\r\n		}\r\n		\r\n		return $out;\r\n	}\r\n	\r\n	function getOptionBox()\r\n	{\r\n		$c = count($this->langChars);\r\n		$out = '''';\r\n		for($i=0;$i<$c;$i++)\r\n		{\r\n			$out .= $this->_getFormatedOptionboxLink($this->langChars[$i], $this->langChars[$i]);\r\n			$out .= $this->_getOptionboxSeperator();\r\n		}\r\n\r\n		$out .= $this->_getFormatedOptionboxLink($this->langOther, ''other'');\r\n		$out .= $this->_getOptionboxSeperator();\r\n		$out .= $this->_getFormatedOptionboxLink($this->langAll, ''all'');\r\n		\r\n		return $out;\r\n	}\r\n	\r\n	function getNav()\r\n	{\r\n		$countAll = $this->getEntryCount();\r\n		$nav = '''';\r\n		\r\n		//abort, if only one resultpage\r\n		if($countAll <=$this->pageLimit) \r\n			return '''';\r\n		\r\n		//backward \r\n		if($this->pageStart >= $this->pageLimit)\r\n			$nav .= $this->_getNavLink(''&glstart=''.($this->pageStart-$this->pageLimit), $this->tplNavBackwardActive);	\r\n		else\r\n			$nav .= $this->_getNavLink(''&glstart=''.($this->pageStart-$this->pageLimit), $this->tplNavBackward);\r\n		\r\n		$nav .= $this->tplNavSeperator;\r\n		\r\n		//numeric\r\n		for($i=0; $i<$countAll; $i+=$this->pageLimit)\r\n		{\r\n			$nr = ($i+$this->pageLimit)/$this->pageLimit;\r\n			\r\n			if($this->pageStart == $i)\r\n				$nav .= $this->_getNavLink(''&glstart=''.$i, $this->tplNavNumericActive, $nr);	\r\n			else\r\n				$nav .= $this->_getNavLink(''&glstart=''.$i, $this->tplNavNumeric, $nr);				\r\n		\r\n			$nav .= $this->tplNavSeperator;\r\n		}\r\n\r\n\r\n		//forward\r\n		if($this->pageStart+$this->pageLimit < $countAll)\r\n			$nav .= $this->_getNavLink(''&glstart=''. ($this->pageStart+$this->pageLimit), $this->tplNavForwardActive);	\r\n		else\r\n			$nav .= $this->_getNavLink(''&glstart=''. ($this->pageStart+$this->pageLimit), $this->tplNavForward);\r\n		\r\n		return $nav;		\r\n	}\r\n	\r\n	function getCombinedTemplates($obox, $entries, $nav)\r\n	{\r\n		$stats = $this->getCountStatistic();\r\n		\r\n		return str_replace(array(''{optionbox}'', ''{entries}'', ''{nav}'', ''{new}'', ''{countall}'', ''{countonline}'', ''{countoffline}''), \r\n							array($obox, $entries, $nav,\r\n							$this->_getLinkTpl(''&glaction=new'', $this->tplEntryNew),								  \r\n							$stats[''countAll''], $stats[''countOnline''], $stats[''countOffline'']), \r\n							$this->tplCombine);			\r\n	}	\r\n	\r\n	function _getFormatedEntry($in)\r\n	{\r\n		$buttonEdit = $this->_getLinkTpl(''&glaction=edit&glid=''. $in[''idglossar''], $this->tplEntryEdit);\r\n		if($this->mode == ''redakteur'')\r\n			$buttonDelete = '''';\r\n		else\r\n			$buttonDelete = $this->_getLinkTpl(''&glaction=delete&glid=''. $in[''idglossar''], $this->tplEntryDelete);\r\n		$onlineInfo = ($in[''online''] == 1) ? ''Online'': ''Offline'';		\r\n		\r\n		return str_replace(array(''{idglossar}'', ''{title}'', ''{idcatside}'', ''{identry}'', ''{entry}'',\r\n								 ''{online}'', ''{idlang}'', ''{idclient}'',\r\n								 ''{buttonedit}'', ''{buttondelete}'', ''{onlineinfo}''), \r\n							array($in[''idglossar''], $in[''title''], $in[''idcatside''], $in[''identry''], $in[''entry''],\r\n								 $in[''online''], $in[''idlang''], $in[''idclient''],\r\n								 $buttonEdit, $buttonDelete, $onlineInfo ),								  \r\n							$this->tplEntry);\r\n	}\r\n	\r\n	function _getEntryListSeperator()\r\n	{\r\n		return $this->tplEntrySeperator;\r\n	}\r\n	\r\n	function _getFormatedOptionboxLink($linkName, $linkValue)\r\n	{\r\n		$tpl = ($linkValue == $this->selectedView) ? $this->tplOptionBoxActive : $this->tplOptionBox;\r\n		\r\n		return str_replace(array(''{link}'', ''{linkname}''), \r\n							array($this->baseURL .''&selected=''.$linkValue, \r\n								  $linkName),								  \r\n							$tpl);		\r\n	}\r\n\r\n	function _getLinkTpl($urlString, $tpl)\r\n	{	\r\n		return str_replace(array(''{link}''), \r\n							array($this->baseURL .''&selected=''.$_REQUEST[''selected''] .''&glstart=''.$_REQUEST[''glstart''].$urlString),								  \r\n							$tpl);		\r\n	}\r\n	\r\n	function _getNavLink($urlString, $tpl, $number='''')\r\n	{\r\n		if($number != '''')\r\n			$tpl = str_replace(''{number}'', $number, $tpl);\r\n		\r\n		$tpl = str_replace(''{link}'', $this->baseURL .''&selected=''.$_REQUEST[''selected''] .$urlString, $tpl);\r\n		return $tpl;	\r\n	}\r\n	\r\n	function getFormURL()\r\n	{\r\n		return $this->baseURL .''&selected=''.$_REQUEST[''selected''].''&glaction=''.$_REQUEST[''glaction'']\r\n					.''&glid=''.$_REQUEST[''glid''].''&glstart=''.$_REQUEST[''glstart''];		\r\n	}\r\n	\r\n	function getFormAbortURL()\r\n	{\r\n		return $this->baseURL .''&selected=''.$_REQUEST[''selected''].''&glstart=''.$_REQUEST[''glstart''];		\r\n	}	\r\n\r\n	function _getOptionboxSeperator()\r\n	{\r\n		return $this->tplOptionBoxSeperator;\r\n	}\r\n\r\n	\r\n}\r\n\r\nclass glossar_form\r\n{\r\n	var $is_submitted = false;\r\n	var $is_rule_violation = false;\r\n	var $invalid_fields = array();\r\n	var $rules = array(\r\n					''required''     => ''/(\\s|\\S)/'',\r\n					''email''        => ''/^[a-zA-Z0-9\\._-]+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$/'',\r\n					''emailOrEmpty'' => ''/(^$)|(^[a-zA-Z0-9\\._-]+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$)/''\r\n					);\r\n	var $field_styles = array();\r\n	var $row_tpl;\r\n	var $stack = array();\r\n	\r\n	function set_styles($style_array)\r\n	{\r\n		if(! is_array($style_array) ) return;\r\n		\r\n		foreach($style_array AS $k => $v){\r\n			if(! empty($v)){\r\n				$this->field_styles[$k] = ''class="''.$v.''"'';\r\n			}	\r\n		}		\r\n	}\r\n	\r\n	function set_formelement($element_name, $element_type, $element_default, $element_validate, $element_label, $element_default_selected='''')\r\n	{\r\n		$i = count($this->stack);\r\n		$this->stack[$i][''name''] = $element_name;\r\n		$this->stack[$i][''type''] = $element_type;\r\n		$this->stack[$i][''default_value''] = $element_default;\r\n		$this->stack[$i][''default_selected''] = $element_default_selected;		\r\n		$this->stack[$i][''validate_rule''] = $element_validate;\r\n		$this->stack[$i][''label''] = $this->_strip_slashes($element_label);\r\n		$this->stack[$i][''value''] = $this->get_value($element_type, $element_name, $element_default);\r\n	}\r\n	\r\n	function set_row_tpl($tpl)\r\n	{\r\n		$this->row_tpl= $tpl;\r\n	}\r\n	\r\n	function parse_elements()\r\n	{\r\n		$this->parsed_plain = '''';\r\n		$this->parsed = '''';\r\n		$p =''''; $pp ='''';\r\n		foreach($this->stack AS $k => $v){\r\n			$element = $this->get_formelement($v[''name''], $v[''type''], $v[''value''], $v[''default_value''], $v[''default_selected'']);\r\n			$def_v_for_plain = ($v[''type''] == ''checkbox'' && $this->is_submitted) ? '''': $v[''default_value''];\r\n			$element_plain = $this->get_formelement($v[''name''], $v[''type''], $def_v_for_plain, $v[''default_value'']);\r\n			$mv = ($v[''validate_rule''] != ''false'' && $v[''validate_rule''] != ''emailOrEmpty'') ? true:false;\r\n			if($v[''type''] == ''checkbox'' && $this->is_submitted)\r\n				$vr = $this->validate($v[''validate_rule''] , $_REQUEST[ $v[''name''] ]);\r\n			else\r\n				$vr = $this->validate($v[''validate_rule''] , $v[''value'']);\r\n			if(!$vr) \r\n				array_push($this->invalid_fields, $v[''label'']);\r\n			$label = $this->get_label($v[''name''], $v[''label''], $mv, $vr);\r\n		    $p .= $this->parse_form_row($label, $element); \r\n		    $pp .= $this->parse_form_row($label, $element_plain); \r\n		}\r\n		$this->parsed =	$p;\r\n		$this->parsed_plain = $pp;\r\n	}\r\n	\r\n	function get_html_form()\r\n	{\r\n		return $this->parsed;\r\n	}\r\n	\r\n	function get_html_plain_form()\r\n	{\r\n		return $this->parsed_plain;\r\n	}\r\n	\r\n	function get_invalid_fields()\r\n	{\r\n		return implode('', '', $this->invalid_fields);	\r\n	}\r\n	\r\n	function is_validated()\r\n	{\r\n		if($this->is_rule_violation) return false;\r\n		return true;		\r\n	}\r\n	\r\n	function is_submitted()\r\n	{\r\n		return $this->is_submitted;\r\n	}\r\n	\r\n	function get_label($element_name, $element_label, $must_validated, $is_validated)\r\n	{\r\n		$mv = ($must_validated) ? ''&nbsp;*'': '''';\r\n		$style = (! $is_validated) ? $this->field_styles[''label_error''] : $this->field_styles[''label''];\r\n		$label = ($style !='''') ? ''<span ''.$style.''>''.$element_label.$mv.''</span>'': $element_label.$mv ;\r\n		return ''<label for="''.$element_name.''">''.$label.''</label>'';\r\n	}\r\n	\r\n	function send_mail($to, $receiver, $subject)\r\n	{\r\n\r\n		$message = '''';\r\n		foreach($this->stack AS $k => $v){\r\n			$message .= $v[''label''].":\\n". $this->_strip_slashes($_REQUEST[ $v[''name''] ]). "\\n\\n";\r\n		}\r\n		//echo "$to, $receiver, $subject";\r\n		//echo "<pre>".$message."</pre>";\r\n		mail($to, $subject, $message, "From: ".$receiver."\\nReply-To: ".$receiver."\\nX-Mailer: PHP/" . phpversion());\r\n	}\r\n\r\n	function get_form_vals()\r\n	{\r\n		$out = array();\r\n		foreach($this->stack AS $k => $v){\r\n			$out[ $v[''name''] ] .= $this->_strip_slashes($_REQUEST[ $v[''name''] ]);\r\n		}\r\n\r\n		return $out;\r\n	}\r\n	\r\n	function parse_form_row($label, $element) \r\n	{\r\n		return str_replace( array(''{label}'', ''{element}''), array($label, $element), $this->row_tpl);\r\n	} \r\n	\r\n	function get_formelement($element_name, $element_type, $element_value, $element_default_value, $default_selected = '''')\r\n	{		\r\n		switch($element_type)\r\n		{\r\n			case ''text'':\r\n				$e  = ''<input type="text" name="''.$element_name.''" id="''.$element_name.''" ''. $this->field_styles[$element_type] .'' '';\r\n				$e .= '' value="''. htmlentities($element_value) .''" size="40" />'';\r\n				break;	\r\n			case ''textarea'':\r\n				$e  = ''<textarea cols="30" rows="7" name="''.$element_name.''"  id="''.$element_name.''" ''\r\n					. $this->field_styles[$element_type] .''>''.htmlentities($element_value).''</textarea>''; \r\n				break;	\r\n			case ''option'':\r\n				$e  = ''<select name="''.$element_name.''"  id="''.$element_name.''" ''\r\n					. $this->field_styles[$element_type] .''>''."\\n";\r\n				$p = explode('','', $element_default_value);\r\n				$element_value = $default_selected;//($element_value=='''')? $default_selected: $element_value;\r\n				foreach($p AS $k=>$v){\r\n					$s = ($element_value == $v) ? ''selected'':''''; \r\n					$e .= ''<option value="''.htmlentities($v).''" ''.$s.'' >''.htmlentities($v).''</option>''."\\n";\r\n				}\r\n				$e .= ''</select>''."\\n";\r\n				break;	\r\n			case ''checkbox'':\r\n				$c = ($_REQUEST[$element_name] == $element_value) ? ''checked'':''''; \r\n				$e = ''<input type="checkbox" name="''.$element_name.''"  id="''.$element_name.''" ''\r\n					. $this->field_styles[$element_type] .'' '';\r\n				$e .= ''value="''.htmlentities($element_value).''"  ''.$c.'' />'';\r\n				break;	\r\n		}\r\n		\r\n		return $e;	\r\n	}\r\n	\r\n	function get_value($element_type, $element_name, $element_default)\r\n	{\r\n		if(isset($_REQUEST[$element_name])){\r\n			$this->is_submitted = true;\r\n			return $this->_strip_slashes($_REQUEST[$element_name]);\r\n		}	\r\n		return $element_default;\r\n	}\r\n	\r\n	function validate($element_validate , $element_value)\r\n	{\r\n		if(! $this->is_submitted) return true;\r\n		\r\n		if(array_key_exists($element_validate, $this->rules)){\r\n			if(! preg_match($this->rules[$element_validate], $element_value)){\r\n				$this->is_rule_violation = true;\r\n				return false;				\r\n			}\r\n		}\r\n		return true;\r\n	}\r\n	\r\n	function _strip_slashes($in)\r\n	{\r\n		if (get_magic_quotes_gpc() != 0) {\r\n			return stripslashes($in);\r\n		}\r\n		return $in;\r\n	}	\r\n}\r\n\r\n//start GUI\r\n$gl = new glossarGUI($modConf, $db);\r\n\r\n//backend actions\r\nif($sess->name == ''dedi''){		\r\n\r\n	//neu oder bearbeiten\r\n	if($_REQUEST[''glaction''] == ''edit'' || $_REQUEST[''glaction''] == ''new''){\r\n		$frm = new glossar_form;\r\n		$frm->set_styles (array(''submit_error'' => '''', ''submit'' => '''', ''label'' => $modConf[''cssFormLabel''], ''label_error'' => $modConf[''cssFormLabel''], ''text'' => $modConf[''cssFormText''],\r\n							       ''textarea'' => $modConf[''cssFormTextarea''], ''option'' => $modConf[''cssFormSelect''], ''checkbox'' => '''', ''submitbutton'' => '''' ));\r\n		$frm->set_row_tpl(''<tr>\r\n		  <td valign="top">{label} &nbsp;&nbsp;</td>\r\n		  <td>{element}</td>\r\n		</tr>'');				\r\n		\r\n		if(isset($_REQUEST[''glid''])){\r\n			$glItem = $gl->getEntry( (int) $_REQUEST[''glid'']);\r\n			if(isset($_REQUEST[''go_frm_online''])) \r\n				$glItem[''isOnline''] = ( $_REQUEST[''go_frm_online''] == ''Online'')? ''Online'': ''Offline'';\r\n			else\r\n				$glItem[''isOnline''] = ($glItem[''online''] == 1)? ''Online'': ''Offline'';\r\n		}\r\n		else{\r\n			$glItem[''title''] ='''';$glItem[''entry''] ='''';$glItem[''isOnline''] =''Offline'';\r\n		}\r\n		$frm->set_formelement(''go_frm_title'', ''text'', $glItem[''title''], ''required'', ''Titel'');\r\n		$frm->set_formelement(''go_frm_entry'', ''textarea'', $glItem[''entry''], ''required'', ''Beschreibung'');\r\n		$frm->set_formelement(''go_frm_online'', ''option'', ''Online,Offline'', ''false'', ''Online'', $glItem[''isOnline'']);\r\n		$frm->parse_elements();\r\n		\r\n		if($frm->is_submitted()){\r\n			if($frm->is_validated()){\r\n					$vals = $frm->get_form_vals();\r\n					$gl->saveEntry($vals);\r\n					$gl->setViewByTitle($vals[''go_frm_title'']);\r\n					echo $gl->getCombinedTemplates($gl->getOptionBox(), $gl->getEntryList(), $gl->getNav());\r\n			} else {\r\n				$frm_vals[''usermessage''] = ''<span style="color:red">Bitte überprüfen Sie folgende Eingaben: ''.$frm->get_invalid_fields().''</span>'';\r\n				$inner_form = $frm->get_html_form();\r\n			}\r\n		} else {\r\n			$frm_vals[''usermessage''] = '''';\r\n			$inner_form = $frm->get_html_form();\r\n		}	\r\n	\r\n		if($inner_form != ''''){\r\n			$frm_vals[''formstart''] = ''<form id="glossarform" method="post" action="''.$gl->getFormURL().''"><div>''."\\n";\r\n			$frm_vals[''formend''] = ''</div></form>'';\r\n			$frm_vals[''submit_style''] = ( $modConf[''cssFormSubmit''] != '''' ) ? '' class="''.$modConf[''cssFormSubmit''].''" '' : '''';\r\n			$frm_vals[''abort_style''] = ( $modConf[''cssFormAbort''] != '''' ) ? '' class="''.$modConf[''cssFormAbort''].''" '' : '''';\r\n			$frm_vals[''submit''] = ''<input type="submit" name="fmsubmit" ''. $frm_vals[''submit_style''] .'' value="OK" />'';\r\n			$frm_vals[''abort''] = ''<input type="button"  ''. $frm_vals[''abort_style''] .'' value="Abbrechen" onClick="self.location.href=\\''''.$gl->getFormAbortURL().''\\''">'';\r\n			$frm_vals[''formelementblock''] = $inner_form;\r\n			\r\n			$outer_form = ''{usermessage}<table border="0" cellpadding="0" cellspacing="0">\r\n			  {formstart} {formelementblock}  \r\n			  <tr><td align="right" colspan="2">{abort} {submit}</td></tr>\r\n			  {formend}\r\n			</table>'';\r\n			\r\n			foreach($frm_vals AS $k=>$v){\r\n				$outer_form = str_replace(''{''.$k.''}'', $v, $outer_form);\r\n			}\r\n			echo str_replace(''{form}'', $outer_form, $modConf[''tplForm'']);\r\n		}\r\n	}\r\n	//loeschen\r\n	else if($_REQUEST[''glaction''] == ''delete''){\r\n		$gl->deleteEntry((int) $_REQUEST[''glid'']);\r\n		echo $gl->getCombinedTemplates($gl->getOptionBox(), $gl->getEntryList(), $gl->getNav());\r\n	}\r\n	//anzeige\r\n	else{\r\n		//auf Einträge in anderen Sprachen prüfen\r\n		if(strlen($mod[''entries''] = $gl->getEntryListArray()) < 1){\r\n			$mod[''langs''] = $gl->getOtherLangs();\r\n			if($mod[''langs''][''0''][''idlang''] !=''''){\r\n				$gltest = new glossar(array(''idcatside'' => $gl->idcatside,\r\n							''idcatside'' => $gl->idcatside,\r\n							''idclient'' => $gl->idclient,\r\n							''idlang'' => $gl->idlang,\r\n							''pageLimit'' => 10,\r\n							''pageStart'' => 0,\r\n							''tblGlossar'' => $gl->tblGlossar,\r\n							''selectedView'' => ''all'',\r\n							''checkOtherLangsFlag'' => false\r\n							)\r\n							, $db);\r\n				//gesamtest in dieser sprache\r\n				if(count($gltest->getEntryListArray())<1){\r\n						$gltest = new glossar(array(''idcatside'' => $gl->idcatside,\r\n								''idcatside'' => $gl->idcatside,\r\n								''idclient'' => $gl->idclient,\r\n								''idlang'' => $mod[''langs''][''0''][''idlang''],\r\n								''pageLimit'' => 10,\r\n								''pageStart'' => 0,\r\n								''tblGlossar'' => $gl->tblGlossar,\r\n								''selectedView'' => ''all'',\r\n								''checkOtherLangsFlag'' => false\r\n								)\r\n								, $db);\r\n						//gesamttest in anderer sprache\r\n						if(count($gltest->getEntryListArray())>0)\r\n							$gl->copyAllFromLang((int) $mod[''langs''][''0''][''idlang'']);\r\n\r\n				}\r\n			}\r\n		}\r\n		\r\n		echo $gl->getCombinedTemplates($gl->getOptionBox(), $gl->getEntryList(), $gl->getNav());	\r\n	}\r\n}\r\n\r\n\r\n//User\r\nelse{\r\n	echo $gl->getCombinedTemplates($gl->getOptionBox(), $gl->getEntryList(), $gl->getNav());\r\n}\r\n\r\nunset($mod, $modConf);\r\nunset($frm, $inner_form, $outer_form, $to_replace, $replacer, $frm_vals, $mvars);\r\n</DEDIPHP>', '', 0, 1, 1, 1099338595, 1132943549, 'mod:8e2550c12799cab0419ee94be8086db1:2d26b17f', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (25, 'Teaserbuilder', '1.0.1', 'Contentliste', 'Erstellt eine Liste (z.b. News)', '<?php\r\n// Version 2.0.3\r\n//configmode\r\n$mip_form[''0''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''size''] = ''1'';\r\n$mip_form[''0''][''option_desc''][] = ''Normal'';\r\n$mip_form[''0''][''option_val''][] =  '''';\r\n$mip_form[''0''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''0''][''option_val''][] =  ''advanced'';\r\n$mip_form[''0''][''option_desc''][] = ''Alles'';\r\n$mip_form[''0''][''option_val''][] =  ''all'';\r\n$mip_form[''0''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''0''][''option_val''][] =  ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''0'']);//configmode\r\n$mip_form[''hide_in_advanced_mode''] = array(7,15,16,17,18,19,6,3,4,27);\r\n$mip_form[''hide_in_standard_mode''] = array_merge( array(20,21,22,23,24,25,26,30,31,32,33,34,35,36,40,41,42,43,44,45,46) , $mip_form[''hide_in_advanced_mode''] );\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''0''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''0''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple, advanced and all config (not hidden config)\r\nelse if($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] == ''advanced'' || $dedi_mod[''value''][''0''] == ''all''){\r\n\r\n\r\n// Schriftart 1\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Schriftart 2\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font2}";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n// Ergebnisse pro Seite\r\n$mip_form[''5''][''cat''] = ''txt'';\r\n$mip_form[''5''][''type''] = '''';\r\n$mip_form[''5''][''desc''] = ''Einträge pro Seite: <small>(0 = alle)</small>'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''10'';\r\n\r\n// <br>\r\n$mip_form[''7''][''cat''] = ''desc'';\r\n$mip_form[''7''][''type''] = '''';\r\n$mip_form[''7''][''desc''] = '' <br>'';\r\n\r\n// Template Eintrag\r\n$mip_form[''8''][''desc''] = ''Template Eintrag'';\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''rows''] = ''7'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''<table border="1" width="80%"><tr><td class="{font1}">{date}</td>''."\\n".''<td class="{font1}"><a href="mailto:{email}">{surname}&nbsp;{name}</td></tr>''."\\n".''<tr><td class="{font2}" colspan="2">{text:1}{link:1}</td></tr>''."\\n".''<tr><td class="{font2}" colspan="2">{image:1}{text:2}</td></tr>''."\\n".''<tr><td class="{font2}" colspan="2">{image:2}{wysiwyg2:1}</td></tr>''."\\n".''<tr><td class="{font2}" colspan="2">{textarea:1}</td></tr>''."\\n".''<tr><td class="{font2}" colspan="2"><a href="{fileurl:1}">{filedesc:1}&nbsp;{filesize:1}</a></td></tr>''."\\n".''</table>&nbsp;'';\r\n\r\n//beschreibung/ Legende\r\n$mip_form[''9''][''cat''] = ''desc'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = '' <br>Es können folgende Elemente verwendet werden:<br> \r\n{date}, {created_date}, {username}, {name}, {surname}, {email}<br>\r\nBei folgenden Elementen muss <b>zwingend</b> eine Laufnummer mitgegeben werden:<br>\r\n{text:x}, {textarea:x}, {image:x}, {wysiwyg:x}, {wysiwyg2:x}, {link:x}, {file:x}, {fileurl:x}, {filedesc:x}, {filesize:x}<br>\r\nDie Nummerierung muss zwischen 1 und 3 sein.<br><br>'';\r\n\r\n// Template Nav\r\n$mip_form[''10''][''desc''] = ''Template Navigation'';\r\n$mip_form[''10''][''cat''] = ''txtarea'';\r\n$mip_form[''10''][''rows''] = ''3'';\r\n$mip_form[''10''][''type''] = ''long'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''<table width="100%" border="0"><tr>''."\\n".''<td width="50%" align="left" class="{font2}">{prev}</td>''."\\n".''<td width="50%" align="right" class="{font2}">{next}</td></tr></table>'';\r\n\r\n// text für weiter\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Text für Weiter-Link'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''Ältere Einträge'';\r\n\r\n// text für zurück\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''type''] = '''';\r\n$mip_form[''12''][''desc''] = ''Text für Zurück-Link'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''Neuere Einträge'';\r\n\r\n//Soll ein Link für die Erstellung neuer News an erster Stelle eingefügt werden\r\n$mip_form[''13''][''desc''] = ''Link für Erstellung eines Elementes an erster Stelle einfügen?'';\r\n$mip_form[''13''][''cat''] = ''chk'';\r\n$mip_form[''13''][''option_var''][''0''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''option_val''][''0''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''13''][''option_val_select''][''0''] = ''true'';\r\n\r\n// text für link news an erster Stelle einfügen\r\n$mip_form[''14''][''cat''] = ''txt'';\r\n$mip_form[''14''][''type''] = '''';\r\n$mip_form[''14''][''desc''] = ''Text für den neuen Eintrag am Anfang'';\r\n$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''cms_val_default''] = ''Neuer Eintrag am Anfang'';\r\n\r\n\r\n// ***************************** Bild aus dem Modul Bild 1.0 *********************\r\n//Dateitypen\r\n$mip_form[''15''][''desc''] = ''Auswählbare Grafiktypen (Gültig für {image:x},{wysiwyg2:x}):'';\r\n$mip_form[''15''][''cat''] = ''option'';\r\n$mip_form[''15''][''flag''] = ''multiple'';\r\n$mip_form[''15''][''size''] = ''5'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''cms_val_default''] = ''true'';\r\n$mip_form[''15''][''option_desc''][''0''] = ''Alle verfügbaren Webgrafiken'';\r\n$mip_form[''15''][''option_val''][''0''] = ''true'';\r\n$mip_form[''15''][''option_desc''][''1''] = ''*.gif'';\r\n$mip_form[''15''][''option_val''][''1''] = ''gif'';\r\n$mip_form[''15''][''option_desc''][''2''] = ''*.jpg'';\r\n$mip_form[''15''][''option_val''][''2''] = ''jpg'';\r\n$mip_form[''15''][''option_desc''][''3''] = ''*.jpeg'';\r\n$mip_form[''15''][''option_val''][''3''] = ''jpeg'';\r\n$mip_form[''15''][''option_desc''][''4''] = ''*.png'';\r\n$mip_form[''15''][''option_val''][''4''] = ''png'';\r\n\r\n//Ordner\r\n$mip_form[''16''][''desc''] = ''Ordner {image:x},{wysiwyg2:x}: '';\r\n$mip_form[''16''][''cat''] = ''app_directory'';\r\n$mip_form[''16''][''output_cat''] = ''option'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''flag''] = ''multiple'';\r\n$mip_form[''16''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''17''][''cat''] = ''option'';\r\n$mip_form[''17''][''desc''] = ''Vorhandene Unterordner automatisch anzeigen {image:x},{wysiwyg2:x}:'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''cms_val_default''] = ''false'';\r\n$mip_form[''17''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''17''][''option_val''][''0''] = ''true'';\r\n$mip_form[''17''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''17''][''option_val''][''1''] = ''false'';\r\n$mip_form[''17''][''tab''] = ''0'';\r\n\r\n// ***************************** Wysiyg2 aus dem Modul wysiwyg2 1.1 *********************\r\n\r\n//Dateilinks Ordner\r\n$mip_form[''18''][''desc''] = ''Ordner {file:x},{wysiwyg2:x}: '';\r\n$mip_form[''18''][''cat''] = ''app_directory'';\r\n$mip_form[''18''][''output_cat''] = ''option'';\r\n$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''flag''] = ''multiple'';\r\n$mip_form[''18''][''size''] = ''5'';\r\n\r\n//Mit Unterverzeichnissen\r\n$mip_form[''19''][''cat''] = ''option'';\r\n$mip_form[''19''][''type''] = '''';\r\n$mip_form[''19''][''desc''] = ''Automatischa Anzeige von Unterverzeichnissen {file:x},{wysiwyg2:x}:'';\r\n$mip_form[''19''][''cms_var''] = ''MOD_VAR[19]'';\r\n$mip_form[''19''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n$mip_form[''19''][''cms_val_default''] = ''false'';\r\n$mip_form[''19''][''option_desc''][''0''] = ''Nein'';\r\n$mip_form[''19''][''option_val''][''0''] = ''false'';\r\n$mip_form[''19''][''option_desc''][''1''] = ''Ja'';\r\n$mip_form[''19''][''option_val''][''1''] = ''true'';\r\n$mip_form[''19''][''tab''] = ''0'';\r\n\r\n//Dateilinks -typen\r\n$mip_form[''6''][''desc''] = ''Dateitypen {file:x},{wysiwyg2:x}: '';\r\n$mip_form[''6''][''cat''] = ''app_filetype'';\r\n$mip_form[''6''][''output_cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''flag''] = ''multiple'';\r\n$mip_form[''6''][''size''] = ''5'';\r\n\r\n//Featureauswahl\r\n$mip_form[''3''][''desc''] = ''Angezeigt Schaltflächen {wysiwyg2:x}:'';\r\n$mip_form[''3''][''cat''] = ''option'';\r\n$mip_form[''3''][''flag''] = ''multiple'';\r\n$mip_form[''3''][''size''] = ''7'';\r\n$mip_form[''3''][''option_desc''][] = ''Alle Felder sichtbar'';\r\n$mip_form[''3''][''option_val''][] =  ''true'';\r\n$mip_form[''3''][''option_desc''][] = ''Fonts'';\r\n$mip_form[''3''][''option_val''][] =  ''font'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontgröße'';\r\n$mip_form[''3''][''option_val''][] =  ''fontsize'';\r\n$mip_form[''3''][''option_desc''][] = ''Stylesheets'';\r\n$mip_form[''3''][''option_val''][] =  ''styles'';\r\n$mip_form[''3''][''option_desc''][] = ''Text zurücksetzten'';\r\n$mip_form[''3''][''option_val''][] =  ''reset'';\r\n$mip_form[''3''][''option_desc''][] = ''Vorschau'';\r\n$mip_form[''3''][''option_val''][] =  ''preview'';\r\n$mip_form[''3''][''option_desc''][] = ''Drucken'';\r\n$mip_form[''3''][''option_val''][] =  ''print'';\r\n$mip_form[''3''][''option_desc''][] = ''Zwischenablagefunktionen'';\r\n$mip_form[''3''][''option_val''][] =  ''clipboardtools'';\r\n$mip_form[''3''][''option_desc''][] = ''HTMLtags entfernen'';\r\n$mip_form[''3''][''option_val''][] =  ''striptag'';\r\n$mip_form[''3''][''option_desc''][] = ''Undo/ Redo'';\r\n$mip_form[''3''][''option_val''][] =  ''undo'';\r\n$mip_form[''3''][''option_desc''][] = ''Suchen und Ersetzen'';\r\n$mip_form[''3''][''option_val''][] =  ''search'';\r\n$mip_form[''3''][''option_desc''][] = ''Upper-, Lowercase'';\r\n$mip_form[''3''][''option_val''][] =  ''changecase'';\r\n$mip_form[''3''][''option_desc''][] = ''Umschalten in HTMLansicht'';\r\n$mip_form[''3''][''option_val''][] =  ''changemode'';\r\n$mip_form[''3''][''option_desc''][] = ''Externes Bearbeitungsfenster'';\r\n$mip_form[''3''][''option_val''][] =  ''popupeditor'';\r\n$mip_form[''3''][''option_desc''][] = ''Tabellen'';\r\n$mip_form[''3''][''option_val''][] =  ''table'';\r\n$mip_form[''3''][''option_desc''][] = ''Fett'';\r\n$mip_form[''3''][''option_val''][] =  ''bold'';\r\n$mip_form[''3''][''option_desc''][] = ''Kursiv'';\r\n$mip_form[''3''][''option_val''][] =  ''italic'';\r\n$mip_form[''3''][''option_desc''][] = ''Unterstrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''underline'';\r\n$mip_form[''3''][''option_desc''][] = ''Durchgestrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''strikethrough'';\r\n$mip_form[''3''][''option_desc''][] = ''Tiefgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''subscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Hochgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''superscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Ausrichtung'';\r\n$mip_form[''3''][''option_val''][] =  ''align'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''fontcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Hintergrundfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''backgroundcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Listen'';\r\n$mip_form[''3''][''option_val''][] =  ''list'';\r\n$mip_form[''3''][''option_desc''][] = ''Einrückung'';\r\n$mip_form[''3''][''option_val''][] =  ''indent'';\r\n$mip_form[''3''][''option_desc''][] = ''Links einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''link'';\r\n$mip_form[''3''][''option_desc''][] = ''Bilder einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''image'';\r\n$mip_form[''3''][''option_desc''][] = ''Dateien einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''file'';\r\n$mip_form[''3''][''option_desc''][] = ''Liveresize'';\r\n$mip_form[''3''][''option_val''][] =  ''liveresize'';\r\n$mip_form[''3''][''option_desc''][] = ''Mehrfachauswahl'';\r\n$mip_form[''3''][''option_val''][] =  ''multipleselect'';\r\n$mip_form[''3''][''option_desc''][] = ''Trennlinie'';\r\n$mip_form[''3''][''option_val''][] =  ''hr'';\r\n$mip_form[''3''][''option_desc''][] = ''Besondere Zeichen'';\r\n$mip_form[''3''][''option_val''][] =  ''specialchars'';\r\n$mip_form[''3''][''option_desc''][] = ''Aktuelles Datum'';\r\n$mip_form[''3''][''option_val''][] =  ''date'';\r\n$mip_form[''3''][''option_desc''][] = ''Lauftexteditor'';\r\n$mip_form[''3''][''option_val''][] =  ''marquee'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n\r\n//Auswählbare Stylesheets\r\n$mip_form[''4''][''desc''] = ''Für den Redakteur auswählbare Stylesheets {wysiwyg2:x}:'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''output_flag''] = ''multiple'';\r\n$mip_form[''4''][''size''] = ''5'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n$mip_form[''4''][''return_val''] = ''idcssupl'';\r\n\r\n// ***************************** Dateilink aus dem Modul Daielink 1.0 *********************\r\n\r\n//target verstecken\r\n$mip_form[''27''][''cat''] = ''option'';\r\n$mip_form[''27''][''type''] = '''';\r\n$mip_form[''27''][''desc''] = ''Im Bearbeitungsmodus Zielfensterfeld ausblenden {file:x}:'';\r\n$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n$mip_form[''27''][''cms_val_default''] = ''false'';\r\n$mip_form[''27''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''27''][''option_val''][''0''] = ''true'';\r\n$mip_form[''27''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''27''][''option_val''][''1''] = ''false'';\r\n$mip_form[''27''][''tab''] = ''0'';\r\n\r\n// ***************************** TITEL **********************\r\n// Titel für {text:1}\r\n$mip_form[''20''][''cat''] = ''txt'';\r\n$mip_form[''20''][''type''] = '''';\r\n$mip_form[''20''][''desc''] = ''Titel für das Element {text:1}'';\r\n$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''20''][''cms_val_default''] = ''Ich bin ein Text:1'';\r\n\r\n// Titel für {textarea:1}\r\n$mip_form[''21''][''cat''] = ''txt'';\r\n$mip_form[''21''][''type''] = '''';\r\n$mip_form[''21''][''desc''] = ''Titel für das Element {textarea:1}'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''21''][''cms_val_default''] = ''Ich bin ein Textarea:1'';\r\n\r\n// Titel für {wysiwyg:1}\r\n$mip_form[''22''][''cat''] = ''txt'';\r\n$mip_form[''22''][''type''] = '''';\r\n$mip_form[''22''][''desc''] = ''Titel für das Element {wysiwyg:1}'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''22''][''cms_val_default''] = ''Ich bin wysiwyg:1'';\r\n\r\n// Titel für {wysiwyg2:1}\r\n$mip_form[''23''][''cat''] = ''txt'';\r\n$mip_form[''23''][''type''] = '''';\r\n$mip_form[''23''][''desc''] = ''Titel für das Element {wysiwyg2:1}'';\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n$mip_form[''23''][''cms_val_default''] = ''Ich bin wysiwyg2:1'';\r\n\r\n// Titel für {image:1}\r\n$mip_form[''24''][''cat''] = ''txt'';\r\n$mip_form[''24''][''type''] = '''';\r\n$mip_form[''24''][''desc''] = ''Titel für das Element {image:1}'';\r\n$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n$mip_form[''24''][''cms_val_default''] = ''Ich bin ein Image:1'';\r\n\r\n// Titel für {file:1}\r\n$mip_form[''25''][''cat''] = ''txt'';\r\n$mip_form[''25''][''type''] = '''';\r\n$mip_form[''25''][''desc''] = ''Titel für die Elemente {file:1}, {fileurl:1}, {filedesc:1}, {filesize:1}'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''25''][''cms_val_default''] = ''Ich bin ein File:1'';\r\n\r\n// Titel für {link:1}\r\n$mip_form[''26''][''cat''] = ''txt'';\r\n$mip_form[''26''][''type''] = '''';\r\n$mip_form[''26''][''desc''] = ''Titel für das Element {link:1}'';\r\n$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n$mip_form[''26''][''cms_val_default''] = ''Ich bin ein Link:1'';\r\n\r\n// Titel für {text:2}\r\n$mip_form[''30''][''cat''] = ''txt'';\r\n$mip_form[''30''][''type''] = '''';\r\n$mip_form[''30''][''desc''] = ''Titel für das Element {text:2}'';\r\n$mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n$mip_form[''30''][''cms_val_default''] = ''Ich bin ein Text:2'';\r\n\r\n// Titel für {textarea:2}\r\n$mip_form[''31''][''cat''] = ''txt'';\r\n$mip_form[''31''][''type''] = '''';\r\n$mip_form[''31''][''desc''] = ''Titel für das Element {textarea:2}'';\r\n$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n$mip_form[''31''][''cms_val_default''] = ''Ich bin ein Textarea:2'';\r\n\r\n// Titel für {wysiwyg:2}\r\n$mip_form[''32''][''cat''] = ''txt'';\r\n$mip_form[''32''][''type''] = '''';\r\n$mip_form[''32''][''desc''] = ''Titel für das Element {wysiwyg:2}'';\r\n$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n$mip_form[''32''][''cms_val_default''] = ''Ich bin wysiwyg:2'';\r\n\r\n// Titel für {wysiwyg2:3}\r\n$mip_form[''33''][''cat''] = ''txt'';\r\n$mip_form[''33''][''type''] = '''';\r\n$mip_form[''33''][''desc''] = ''Titel für das Element {wysiwyg2:2}'';\r\n$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n$mip_form[''33''][''cms_val_default''] = ''Ich bin wysiwyg2:2'';\r\n\r\n// Titel für {image:2}\r\n$mip_form[''34''][''cat''] = ''txt'';\r\n$mip_form[''34''][''type''] = '''';\r\n$mip_form[''34''][''desc''] = ''Titel für das Element {image:2}'';\r\n$mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n$mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n$mip_form[''34''][''cms_val_default''] = ''Ich bin ein Image:2'';\r\n\r\n// Titel für {file:2}\r\n$mip_form[''35''][''cat''] = ''txt'';\r\n$mip_form[''35''][''type''] = '''';\r\n$mip_form[''35''][''desc''] = ''Titel für die Elemente {file:2}, {fileurl:2}, {filedesc:2}, {filesize:2}'';\r\n$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n$mip_form[''35''][''cms_val_default''] = ''Ich bin ein File:2'';\r\n\r\n// Titel für {link:2}\r\n$mip_form[''36''][''cat''] = ''txt'';\r\n$mip_form[''36''][''type''] = '''';\r\n$mip_form[''36''][''desc''] = ''Titel für das Element {link:2}'';\r\n$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n$mip_form[''36''][''cms_val_default''] = ''Ich bin ein Link:2'';\r\n\r\n// Titel für {text:3}\r\n$mip_form[''40''][''cat''] = ''txt'';\r\n$mip_form[''40''][''type''] = '''';\r\n$mip_form[''40''][''desc''] = ''Titel für das Element {text:3}'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''cms_val_default''] = ''Ich bin ein Text:3'';\r\n\r\n// Titel für {textarea:3}\r\n$mip_form[''41''][''cat''] = ''txt'';\r\n$mip_form[''41''][''type''] = '''';\r\n$mip_form[''41''][''desc''] = ''Titel für das Element {textarea:3}'';\r\n$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n$mip_form[''41''][''cms_val_default''] = ''Ich bin ein Textarea:3'';\r\n\r\n// Titel für {wysiwyg:3}\r\n$mip_form[''42''][''cat''] = ''txt'';\r\n$mip_form[''42''][''type''] = '''';\r\n$mip_form[''42''][''desc''] = ''Titel für das Element {wysiwyg:3}'';\r\n$mip_form[''42''][''cms_var''] = ''MOD_VAR[42]'';\r\n$mip_form[''42''][''cms_val''] = $dedi_mod[''value''][''42''];\r\n$mip_form[''42''][''cms_val_default''] = ''Ich bin wysiwyg:3'';\r\n\r\n// Titel für {wysiwyg2:3}\r\n$mip_form[''43''][''cat''] = ''txt'';\r\n$mip_form[''43''][''type''] = '''';\r\n$mip_form[''43''][''desc''] = ''Titel für das Element {wysiwyg2:3}'';\r\n$mip_form[''43''][''cms_var''] = ''MOD_VAR[43]'';\r\n$mip_form[''43''][''cms_val''] = $dedi_mod[''value''][''43''];\r\n$mip_form[''43''][''cms_val_default''] = ''Ich bin wysiwyg2:3'';\r\n\r\n// Titel für {image:3}\r\n$mip_form[''44''][''cat''] = ''txt'';\r\n$mip_form[''44''][''type''] = '''';\r\n$mip_form[''44''][''desc''] = ''Titel für das Element {image:3}'';\r\n$mip_form[''44''][''cms_var''] = ''MOD_VAR[44]'';\r\n$mip_form[''44''][''cms_val''] = $dedi_mod[''value''][''44''];\r\n$mip_form[''44''][''cms_val_default''] = ''Ich bin ein Image:3'';\r\n\r\n// Titel für {file:3}\r\n$mip_form[''45''][''cat''] = ''txt'';\r\n$mip_form[''45''][''type''] = '''';\r\n$mip_form[''45''][''desc''] = ''Titel für die Elemente {file:3}, {fileurl:3}, {filedesc:3}, {filesize:3}'';\r\n$mip_form[''45''][''cms_var''] = ''MOD_VAR[45]'';\r\n$mip_form[''45''][''cms_val''] = $dedi_mod[''value''][''45''];\r\n$mip_form[''45''][''cms_val_default''] = ''Ich bin ein File:3'';\r\n\r\n// Titel für {link:3}\r\n$mip_form[''46''][''cat''] = ''txt'';\r\n$mip_form[''46''][''type''] = '''';\r\n$mip_form[''46''][''desc''] = ''Titel für das Element {link:3}'';\r\n$mip_form[''46''][''cms_var''] = ''MOD_VAR[46]'';\r\n$mip_form[''46''][''cms_val''] = $dedi_mod[''value''][''46''];\r\n$mip_form[''46''][''cms_val_default''] = ''Ich bin ein Link:3'';\r\n\r\n\r\n\r\n\r\n// Ausgabe\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''advanced''){\r\n   foreach ($mip_form[''hide_in_advanced_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n\r\nmip_formsp($mip_form[''1'']); // Style Beschreibung {font1}\r\nmip_formsp($mip_form[''2'']); // Style Beschreibung {font2}\r\nmip_formsp($mip_form[''5'']); // Ergebnisse pro Seite\r\nmip_formsp($mip_form[''8'']); // Template Eintrag\r\nmip_formsp($mip_form[''9'']); // Legende\r\nmip_formsp($mip_form[''10'']); // Template Nav\r\nmip_formsp($mip_form[''11'']); // text für weiter\r\nmip_formsp($mip_form[''12'']); // text für zurück\r\nmip_formsp($mip_form[''13'']); //Soll ein Link für die Erstellung neuer News an erster Stelle eingefügt werden\r\nmip_formsp($mip_form[''14'']); // text für link news an erster Stelle einfügen\r\n\r\nmip_formsp($mip_form[''7'']); // echo "<br>";\r\n\r\nmip_formsp($mip_form[''20'']); // Titel für {text:1}\r\nmip_formsp($mip_form[''21'']); // Titel für {textarea:1}\r\nmip_formsp($mip_form[''22'']); // Titel für {wysiwyg:1}\r\nmip_formsp($mip_form[''23'']); // Titel für {wysiwyg2:1}\r\nmip_formsp($mip_form[''24'']); // Titel für {image:1}\r\nmip_formsp($mip_form[''26'']); // Titel für {link:1}\r\nmip_formsp($mip_form[''25'']); // Titel für {file:2}\r\nmip_formsp($mip_form[''30'']); // Titel für {text:2}\r\nmip_formsp($mip_form[''31'']); // Titel für {textarea:2}\r\nmip_formsp($mip_form[''32'']); // Titel für {wysiwyg:2}\r\nmip_formsp($mip_form[''33'']); // Titel für {wysiwyg2:2}\r\nmip_formsp($mip_form[''34'']); // Titel für {image:2}\r\nmip_formsp($mip_form[''36'']); // Titel für {link:2}\r\nmip_formsp($mip_form[''35'']); // Titel für {file:3}\r\nmip_formsp($mip_form[''40'']); // Titel für {text:3}\r\nmip_formsp($mip_form[''41'']); // Titel für {textarea:3}\r\nmip_formsp($mip_form[''42'']); // Titel für {wysiwyg:3}\r\nmip_formsp($mip_form[''43'']); // Titel für {wysiwyg2:3}\r\nmip_formsp($mip_form[''44'']); // Titel für {image:3}\r\nmip_formsp($mip_form[''46'']); // Titel für {link:3}\r\nmip_formsp($mip_form[''45'']); // Titel für {file:3}\r\n\r\nmip_formsp($mip_form[''7'']); // echo "<br>";\r\n\r\n//bild und wysiwyg2\r\nmip_formsp($mip_form[''15'']);//Dateitypen\r\nmip_formsp($mip_form[''16'']);//Ordner\r\nmip_formsp($mip_form[''17'']);//Unterordner anzeigen\r\n\r\n// wysiwyg2\r\nmip_formsp($mip_form[''3'']);//features\r\nmip_formsp($mip_form[''4'']);//auswählbare styles\r\nmip_formsp($mip_form[''18'']);//ordener dateilinks\r\nmip_formsp($mip_form[''19'']);//subfolder\r\nmip_formsp($mip_form[''6'']);//dateitypen\r\n\r\n// Dateilink\r\nmip_formsp($mip_form[''27'']);//Target verstecken\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP:CACHE>\r\n// Version 2.0.3\r\nif(! function_exists(get_edit_string)){\r\nfunction get_edit_string($type_name, $id)\r\n{\r\nswitch($type_name)\r\n{\r\n case ''text'':\r\n  $out = ''1-''.$id.'','';\r\n  break;\r\n case ''textarea'':\r\n  $out = ''3-''.$id.'','';\r\n  break;\r\n case ''wysiwyg'':\r\n  $out = ''2-''.$id.'','';\r\n  break;\r\n case ''wysiwyg2'':\r\n  $out = ''13-''.$id.'','';\r\n  break;\r\n case ''image'':\r\n  $out = ''4-''.$id.'',5-''.$id.'','';\r\n  break;\r\n case ''link'':\r\n  $out = ''6-''.$id.'',7-''.$id.'',8-''.$id.'','';\r\n  break;\r\n case ''editbutton'':\r\n  $out = ''10-''.$id.'',11-''.$id.'',12-''.$id.'','';\r\n  break;  \r\n}\r\n\r\nreturn $out;\r\n}}\r\n\r\nif(! function_exists(get_typegroup)){\r\nfunction get_typegroup($type_name, $id)\r\n{\r\nswitch($type_name)\r\n{\r\n case ''text'':\r\n  $out = ''text[''.$id.'']''.'','';\r\n  break;\r\n case ''textarea'':\r\n  $out = ''textarea[''.$id.'']''.'','';\r\n  break;\r\n case ''wysiwyg'':\r\n  $out = ''wysiwyg[''.$id.'']''.'','';\r\n  break;\r\n case ''wysiwyg2'':\r\n  $out = ''wysiwyg2[''.$id.'']''.'','';\r\n  break;\r\n case ''image'':\r\n  $out = ''image[''.$id.'']''.'','';\r\n  break;\r\n case ''link'':\r\n  $out = ''link[''.$id.'']''.'','';\r\n  break;\r\n case ''editbutton'':\r\n  $out = ''file[''.$id.'']''.'','';\r\n  break;  \r\n}\r\n\r\nreturn $out;\r\n}}\r\n\r\n// Allgemeine Tags definieren\r\n$sql = "SELECT B.username, B.name, B.surname, B.email, A.lastmodified FROM ".$dedi_db[''content'']." A, ".$dedi_db[''users'']." B WHERE A.idsidelang=".$con_side[$idcatside][''idsidelang'']." AND A.container=".$dedi_mod[''container''][''id'']." AND A.number=".$dedi_mod[''modul''][''id'']." AND A.author=B.user_id";\r\n$db->query($sql);\r\n$db->next_record();\r\n$elements1[''username''] = $db->f(''username'');\r\n$elements1[''name''] = $db->f(''name'');\r\n$elements1[''surname''] = $db->f(''surname'');\r\n$elements1[''email''] = $db->f(''email'');\r\n$elements1[''loginname''] = $db->f(''uname'');\r\n$elements1[''date''] = date(''d.m.Y'',$db->f(''lastmodified''));\r\n$elements1[''font1''] = ''MOD_VALUE[1]'';\r\n$elements1[''font2''] = ''MOD_VALUE[2]'';\r\n\r\n\r\n//Tags definieren\r\n// filesize:1\r\n$elements[''filesize:1''] = <dedi:mod type="file" id=1 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:1''] != '''') {\r\n    if (is_file($elements[''filesize:1''])) {\r\n        $elements[''filesize:1''] = filesize($elements[''filesize:1'']);\r\n        if ($elements[''filesize:1''] > 1048576) $elements[''filesize:1''] = sprintf( "%01.2f", $elements[''filesize:1'']/1048576).'' MByte'';\r\n        else $elements[''filesize:1''] = ($elements[''filesize:1''] > 1024) ? sprintf( "%01.2f", $elements[''filesize:1'']/1024).'' KByte'': $elements[''filesize:1''].'' Byte'';\r\n    } else $elements[''filesize:1''] = '''';\r\n}\r\n// filesize:2\r\n$elements[''filesize:2''] = <dedi:mod type="file" id=2 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:2''] != '''') {\r\n    if (is_file($elements[''filesize:2''])) {\r\n        $elements[''filesize:2''] = filesize($elements[''filesize:2'']);\r\n        if ($elements[''filesize:2''] > 1048576) $elements[''filesize:2''] = sprintf( "%01.2f", $elements[''filesize:2'']/1048576).'' MByte'';\r\n        else $elements[''filesize:2''] = ($elements[''filesize:2''] > 1024) ? sprintf( "%01.1f", $elements[''filesize:2'']/1024).'' kByte'': $elements[''filesize:2''].'' Byte'';\r\n    } else $elements[''filesize:2''] = '''';\r\n}\r\n// filesize:3\r\n$elements[''filesize:3''] = <dedi:mod type="file" id=3 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:3''] != '''') {\r\n    if (is_file($elements[''filesize:3''])) {\r\n        $elements[''filesize:3''] = filesize($elements[''filesize:3'']);\r\n        if ($elements[''filesize:3''] > 1048576) $elements[''filesize:3''] = sprintf( "%01.2f", $elements[''filesize:3'']/1048576).'' MByte'';\r\n        else $elements[''filesize:3''] = ($elements[''filesize:3''] > 1024) ? sprintf( "%01.1f", $elements[''filesize:3'']/1024).'' kByte'': $elements[''filesize:3''].'' Byte'';\r\n    } else $elements[''filesize:3''] = '''';\r\n}\r\n\r\n//Tags definieren\r\n$elements[''file:1'']        = <dedi:mod type="file" id="1" addslashes="true" menuoptions="false" />;\r\n$elements[''file:2'']        = <dedi:mod type="file" id="2" addslashes="true" menuoptions="false" />;\r\n$elements[''file:3'']        = <dedi:mod type="file" id="3" addslashes="true" menuoptions="false" />;\r\n$elements[''fileurl:1'']     = <dedi:mod type="file" id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''fileurl:2'']     = <dedi:mod type="file" id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''fileurl:3'']     = <dedi:mod type="file" id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''filedesc:1'']    = <dedi:mod type="file" id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''filedesc:2'']    = <dedi:mod type="file" id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''filedesc:3'']    = <dedi:mod type="file" id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n//Gibt es mehrere Tags, bei denen type und id gleich sind, ist es wichtig, dass das letzt "gleiche" Element alle erweiterten\r\n//Konfigurationsvariablen enthält (z.B. folders, subfolders) . Den nur die Variablen des "letzten" Tags können im Formular\r\n//weiterverarbeitet werden. Andernfalls bleibt z.B. die Auswahl von bestimmten Dateitypen ohne Wirkung.\r\n\r\n$elements[''text:1'']        = <dedi:mod type="text" id="1" title="MOD_VALUE[20]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:2'']        = <dedi:mod type="text" id="2" title="MOD_VALUE[30]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:3'']        = <dedi:mod type="text" id="3" title="MOD_VALUE[40]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:1'']    = <dedi:mod type="textarea" id="1" title="MOD_VALUE[21]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:2'']    = <dedi:mod type="textarea" id="2" title="MOD_VALUE[31]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:3'']    = <dedi:mod type="textarea" id="3" title="MOD_VALUE[41]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:1'']     = <dedi:mod type="wysiwyg"  id="1" title="MOD_VALUE[22]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:2'']     = <dedi:mod type="wysiwyg"  id="2" title="MOD_VALUE[32]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:3'']     = <dedi:mod type="wysiwyg"  id="3" title="MOD_VALUE[42]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:1'']    = <dedi:mod type="wysiwyg2" id="1" title="MOD_VALUE[23]" features="MOD_VALUE[3]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:2'']    = <dedi:mod type="wysiwyg2" id="2" title="MOD_VALUE[33]" features="MOD_VALUE[3]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:3'']    = <dedi:mod type="wysiwyg2" id="3" title="MOD_VALUE[43]" features="MOD_VALUE[3]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''image:1'']       = <dedi:mod type="image"    id="1" title="MOD_VALUE[24]" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''image:2'']       = <dedi:mod type="image"    id="2" title="MOD_VALUE[34]" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''image:3'']       = <dedi:mod type="image"    id="3" title="MOD_VALUE[44]" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''link:1'']        = <dedi:mod type="link"     id="1" title="MOD_VALUE[26]" addslashes="true" menuoptions="false" />;\r\n$elements[''link:2'']        = <dedi:mod type="link"     id="2" title="MOD_VALUE[36]" addslashes="true" menuoptions="false" />;\r\n$elements[''link:3'']        = <dedi:mod type="link"     id="3" title="MOD_VALUE[46]" addslashes="true" menuoptions="false" />;\r\n$elements[''editbutton:1'']  = <dedi:mod type="file"     id="1" title="MOD_VALUE[25]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n$elements[''editbutton:2'']  = <dedi:mod type="file"     id="2" title="MOD_VALUE[35]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n$elements[''editbutton:3'']  = <dedi:mod type="file"     id="3" title="MOD_VALUE[45]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n\r\n// Template\r\n$modv[''tpl_inner''] = ''MOD_VALUE[8]'';\r\n$modv[''tpl_nav'']   = ''MOD_VALUE[10]'';\r\n\r\n//Editbutton einfügen, wenn ein File-Element vorhanden ist.\r\n$k = substr_count($modv[''tpl_inner''], ''{file:1}'') + substr_count($modv[''tpl_inner''], "{fileurl:1}") + substr_count($modv[''tpl_inner''], "{filedesc:1}") + substr_count($modv[''tpl_inner''], "{filesize:1}");;\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editbutton:1}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{file:2}") + substr_count($modv[''tpl_inner''], "{fileurl:2}") + substr_count($modv[''tpl_inner''], "{filedesc:2}") + substr_count($modv[''tpl_inner''], "{filesize:2}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editbutton:2}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{file:3}") + substr_count($modv[''tpl_inner''], "{fileurl:3}") + substr_count($modv[''tpl_inner''], "{filedesc:3}") + substr_count($modv[''tpl_inner''], "{filesize:3}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editbutton:3}'';};\r\n\r\n// speicher ob es sich um das erste oder um das letzt Modul handelt\r\n$modv[''is_first'']  = ($dedi_mod[''modul''][''id''] == ''1'') ? true:false;\r\n$modv[''is_last'']   = (bool) $dedi_mod[''modul''][''lastentry''];\r\n// ID die wievielte Wiederholung des Modules es ist\r\n$modv[''repeat_id''] = $dedi_mod[''modul''][''id''];\r\n// Anz Einträge pro Seite\r\n$modv[''max_items''] = MOD_VALUE[5];\r\n// Nummer des 1 Eintrags der auf diese Seite dargestellt werden soll (wird nicht verwendet ???)\r\n$modv[''page''] = (is_numeric($_REQUEST[''page''])) ? 1:$_REQUEST[''page''];\r\n\r\n// Fuer alle Elemente: preg_match_all(''/\\{([^\\}]+)\\}/im'', $modv[''tpl_inner''], $test);\r\n// Fuer alle Elemente mit : und einer Zahl: preg_match_all(''/\\{(([^\\}]+):\\d)\\}/im'', $modv[''tpl_inner''], $test);\r\npreg_match_all(''/\\{(([^\\}]+):\\d)\\}/im'', $modv[''tpl_inner''], $modtemp[''tags'']);\r\n\r\n// Link für "an 1. Position einfügen" erstellen\r\n$modv[''new_at_top''] = ''action=new&entry=0&content='' . $dedi_mod[''container''][''id''] . ''.new.'';\r\n$typegroup_conf = '''';\r\nforeach($modtemp[''tags''][1] AS $v){\r\n    $k = split(":",$v);\r\n    $modv[''new_at_top''] .= get_edit_string($k[0],$k[1]);\r\n    $typegroup_conf .= get_typegroup($k[0],$k[1]);\r\n}\r\n$modv[''new_at_top''] = substr($modv[''new_at_top''], 0, -1);\r\n$typegroup_conf = substr($typegroup_conf, 0, -1);\r\n$modv[''typegroup''] = <dedi:mod type="typegroup" elements="$typegroup_conf" menuoptions="advanced" addslashes="true" />;\r\n\r\n// Template mit den DeDi-Tags ersetzen\r\nforeach($elements AS $k => $v){\r\n$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n\r\n// Template mit den allgemeinem Inhalt ersetzen\r\nforeach($elements1 AS $k => $v){\r\n$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n\r\n// NavTemplate mit den allgemeinem Inhalt ersetzen\r\nforeach($elements1 AS $k => $v){\r\n$modv[''tpl_nav''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_nav'']);\r\n}\r\n\r\n\r\n//Alle Variablen, die nur innerhalb des gecachten PHPs sichtbar sind,\r\n//auch für dynamisches PHP zur Verfügung stellen\r\necho ''<DEDIPHP>'';\r\nforeach($modv AS $k => $v){\r\necho ''$mvars["''.$k.''"] = "''. addslashes($v) .''";''."\\n";\r\n}\r\necho ''</DEDIPHP>'';\r\n\r\nunset($modv, $modtemp, $elements, $elements1, $typegroup_conf, $k, $v);\r\n</DEDIPHP:CACHE>\r\n\r\n<DEDIPHP>\r\n// Fals eine Nummer für den ersten darzustellenden Eintrag übergeben wurde dies in $page speichern\r\nif(isset($page)) {\r\n    $page = (! is_numeric($_REQUEST[''page''])) ? 1:$_REQUEST[''page''];\r\n} else {\r\n    $page = 1;\r\n}\r\n\r\n// Fals eine Nummer für die Anzahl darzustellenden Einträge übergeben wurde die Modulvorgabe überschreiben\r\nif(isset($items)) {\r\n    $mvars[''max_items''] = (! is_numeric($_REQUEST[''items''])) ? 1:$_REQUEST[''items''];\r\n}\r\n\r\n\r\n// Nur wenn die Wiederholung im Bereich ist der augegeben werden soll.\r\nif($dedi_mod[''modul''][''id''] >= $page\r\n&& ($dedi_mod[''modul''][''id''] < ($mvars[''max_items'']+$page)\r\n||  $mvars[''max_items''] == 0)) {\r\n\r\n    //News at top\r\n    if($mvars[''is_first''] == true && $dedi_side[''view''] && "MOD_VALUE[13]" == ''true'')\r\n        echo ''<a href="''. $con_side[$idcatside][''link''] . ''&amp;'' . $mvars[''new_at_top''] .''">MOD_VALUE[14]</a><br>'';\r\n    \r\n    //Inhalt\r\n    echo stripslashes($mvars[''tpl_inner''].$mvars[''typegroup'']);\r\n\r\n    // Navigation auf die anderen Seiten einfügen\r\n    $mvars[''tpl_nav''] = stripslashes($mvars[''tpl_nav'']);\r\n    if($mvars[''is_last''] == true || $mvars[''repeat_id''] == ($mvars[''max_items'']+$page-1)) {\r\n        if($page > 1) {\r\n            if(($page-$mvars[''max_items'']) < 1)\r\n                $last = 1;\r\n            else\r\n                $last = $page-$mvars[''max_items''];\r\n            \r\n            //echo $mod[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&page=''.$last.''">Zurück</a>'';\r\n            $mvars[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;page=''.$last.''">MOD_VALUE[12]</a>'';\r\n            $mvars[''tpl_nav''] = str_replace(''{prev}'', $mvars[''repl_string''], $mvars[''tpl_nav'']);\r\n        }\r\n        else\r\n            $mvars[''tpl_nav''] = str_replace(''{prev}'', '''', $mvars[''tpl_nav'']);\r\n        \r\n        if($mvars[''is_last''] != true) {\r\n            $next = $page+$mvars[''max_items''];\r\n            \r\n            //echo $mod[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&page=''.$next.''">Vor</a>'';\r\n            $mvars[''repl_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;page=''.$next.''">MOD_VALUE[11]</a>'';\r\n            $mvars[''tpl_nav''] = str_replace(''{next}'', $mvars[''repl_string''], $mvars[''tpl_nav'']);\r\n        } \r\n        else\r\n            $mvars[''tpl_nav''] = str_replace(''{next}'', '''', $mvars[''tpl_nav'']);\r\n        \r\n        echo $mvars[''tpl_nav''];\r\n    }\r\n}\r\n\r\nunset($mvars);\r\n</DEDIPHP>', '', 0, 1, 1, 1090871017, 1132968688, 'mod:79599e0abe98d4e24f692466c9e74ae7:f4cc641a', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (26, 'Teaserlister', '1.0.2', 'Contentliste', 'Übersicht für Teaserbuilder 1.x. Dieses Modul kann nur mit dem Teaserbuilder zusammen eingesetzt werden.', '<?php\r\n// Version 1.0.2\r\n// Schriftart 1\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''class_only'';\r\n\r\n// Schriftart 2\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font2}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Schriftart 3\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font3}";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n// Schriftart 4\r\n$mip_form[''3''][''desc''] = $mod_lang[''gen_font'']." {font4}";\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''flag''] = ''class_only'';\r\n\r\n\r\n\r\n// Überschrift\r\n$mip_form[''4''][''cat''] = ''txt'';\r\n$mip_form[''4''][''type''] = '''';\r\n$mip_form[''4''][''desc''] = ''Überschrift:'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''cms_val_default''] = ''Teaserbuilder-Übersicht'';\r\n\r\n//Auf welcher Seite liegt das Newsmodul?\r\n$sql = "select b.idside, b.title from ".$dedi_db[''side'']." a, ".$dedi_db[''side_lang'']." b where a.idclient = ".$client;\r\n$sql .= " and a.idside = b.idside";\r\n// Abfrage der aktuellen Sprache\r\n$sql .= " and b.idlang = $lang";\r\n// Anzeigen nur Seiten die Online sind\r\n$sql .= " and b.online = 1";\r\n// Seiten nach Titel ordnen\r\n$sql .= "  order by title";\r\n$db->query($sql);\r\nfor ($i = 0; $i < $db->num_rows(); $i++) {\r\n$db->next_record();\r\n$mip_form[''5''][''option_desc''][$i] = $db->f(''title'');\r\n$mip_form[''5''][''option_val''][$i]= $db->f(''idside'');\r\n}\r\n$mip_form[''5''][''cat''] = ''option'';\r\n$mip_form[''5''][''type''] = '''';\r\n$mip_form[''5''][''desc''] = ''Seite auf der das Teaserbuilder-Modul liegt:'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = '''';\r\n\r\n// In welchem Container liegt das Newsmodul?\r\n$sql = "select distinct b.container from ".$dedi_db[''tpl'']." a, ".$dedi_db[''container'']." b where a.idclient = ".$client;\r\n$sql .= " and a.idtpl = b.idtpl order by 1";\r\n$db->query($sql);\r\nfor ($i = 0; $i < $db->num_rows(); $i++) {\r\n$db->next_record();\r\n$mip_form[''6''][''option_desc''][$i] = $db->f(''container'');\r\n$mip_form[''6''][''option_val''][$i]= $db->f(''container'');\r\n}\r\n$mip_form[''6''][''cat''] = ''option'';\r\n$mip_form[''6''][''type''] = '''';\r\n$mip_form[''6''][''desc''] = ''Container in dem das Teaserbuilder-Modul liegt:'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = '''';\r\n\r\n// Template für die Überschrift\r\n$mip_form[''7''][''desc''] = ''Template für Überschrift:'';\r\n$mip_form[''7''][''cat''] = ''txtarea'';\r\n$mip_form[''7''][''rows''] = ''1'';\r\n$mip_form[''7''][''type''] = ''long'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''<table width="100%" border="0"><tr><td align="left" class="{font1}">{title}</td></tr></table>'';\r\n\r\n// Anzahl Zeichen, welche beim type text berücksichtigt werden sollen\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Anzahl Zeichen, welche beim Type Text berücksichtigt<br>werden sollen:'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''0'';\r\n\r\n// Anzahl Zeichen, welche beim Type wysiwyg berücksichtigt werden sollen\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''type''] = '''';\r\n$mip_form[''12''][''desc''] = ''Anzahl Zeichen, welche beim Type WYSIWYG berücksichtigt<br>werden sollen:'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''150'';\r\n\r\n// Anzahl Zeichen, welche beim Type textarea berücksichtigt werden sollen\r\n$mip_form[''13''][''cat''] = ''txt'';\r\n$mip_form[''13''][''type''] = '''';\r\n$mip_form[''13''][''desc''] = ''Anzahl Zeichen, welche beim Type textarea berücksichtigt<br>werden sollen:'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''cms_val_default''] = ''150'';\r\n\r\n// Template News-Eintrag\r\n$mip_form[''8''][''desc''] = ''Template Teaser-Eintrag'';\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''rows''] = ''7'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''<table border="1" width="100%"><tr><td class="{font2}">{text}</td></tr>''."\\n".''<tr><td class="{font3}">{imagetag}{date} - {wysiwyg}<a href="{link}">{linkbezeichnung}</a></td></tr></table>'';\r\n\r\n// Template Image-Tag\r\n$mip_form[''14''][''desc''] = ''Template Image-Tag. Folgende Variabeln können verwendet werden: {image},'';\r\n$mip_form[''14''][''cat''] = ''txtarea'';\r\n$mip_form[''14''][''rows''] = ''4'';\r\n$mip_form[''14''][''type''] = ''long'';\r\n$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''cms_val_default''] = ''<div style="float:left; margin-right:5px"><img src="{image}"></div>'';\r\n\r\n\r\n// Text fü Link\r\n$mip_form[''9''][''cat''] = ''txt'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = ''Text für Link zu den Teaserbuilder-Elementen:'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''.....weiterlesen'';\r\n\r\n// Anzahl News-Einträge, welche berücksichtigt werden sollen\r\n$mip_form[''10''][''cat''] = ''txt'';\r\n$mip_form[''10''][''type''] = '''';\r\n$mip_form[''10''][''desc''] = ''Anzahl Teaserbuilder-Einträge, welche aufgelistet werden sollen:'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''5'';\r\n\r\n//Soll nur ein News-Eintrag dargestellt werden\r\n$mip_form[''15''][''desc''] = ''Soll als Resultat des Links nur 1 Eintrag dargestellt werden (nur zusammem mit dem Teaserbuilder-Modul ab Version 1.0.0)'';\r\n$mip_form[''15''][''cat''] = ''chk'';\r\n$mip_form[''15''][''option_var''][''0''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''option_val''][''0''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''15''][''option_val_select''][''0''] = ''true'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\necho "<br>Wenn dieses Feld leer gelassen wird erscheint keine Überschrift.<br>Das Template wird auch nicht ausgegeben.<br><br>";\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''7'']);\r\necho "<br>Wenn 0 eingegeben wird, werden alle Zeichen ausgelesen.<br><br>";\r\nmip_formsp($mip_form[''11'']);\r\nmip_formsp($mip_form[''12'']);\r\nmip_formsp($mip_form[''13'']);\r\necho "<br>Es wird jeweils nur das Element mit der Laufnummer 1 im Teaserbuilder-Modul berücksichtigt.<br>Folgende Variabeln können verwendet werden: <br>Kommen vom Teaserbuilder: {text},{wysiwyg},{textarea},{imagetag},{date},{link_desc},{file_desc}<br>Kommen vom Teaserlister: {link} (zum Element), {linkbezeichnung} (für Link zum Element)<br><br>";\r\nmip_formsp($mip_form[''8'']);\r\nmip_formsp($mip_form[''14'']);\r\nmip_formsp($mip_form[''9'']);\r\nmip_formsp($mip_form[''10'']);\r\nmip_formsp($mip_form[''15'']);\r\n\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n// Version 1.0.0\r\n// Funktion um Dateierweiterungen zu entfernen\r\nif(! function_exists(remove_ext)){\r\nfunction remove_ext($str) {\r\n  $noext = preg_replace(''/(.+)\\..*$/'', ''$1'', $str);\r\n  return $noext;\r\n}\r\n}\r\n\r\n//Überschrift ausgeben\r\nif (strlen("MOD_VALUE[4]") > 0) {\r\n$int_title = str_replace(''{font1}'', "MOD_VALUE[0]", "MOD_VALUE[7]");\r\n$int_title = str_replace(''{font2}'', "MOD_VALUE[1]", $int_title);\r\n$int_title = str_replace(''{font3}'', "MOD_VALUE[2]", $int_title);\r\n$int_title = str_replace(''{font3}'', "MOD_VALUE[3]", $int_title);\r\n$int_title = str_replace(''{title}'', "MOD_VALUE[4]", $int_title);\r\necho $int_title;\r\n}\r\n\r\n// idcatside der angewählten idsidelang auslesen um den link auf die newsseite herzustellen\r\n$sql = "select a.idcatside from ".$dedi_db[''cat_side'']." a, ".$dedi_db[''side_lang'']." b where b.idside = MOD_VALUE[5] and b.idside=a.idside AND b.idlang = $lang";\r\n$db->query($sql);\r\n$db->next_record();\r\n$int_idcatside = $db->f(''idcatside'');\r\n\r\n// idsidelang der entsprechenden Seite ermitteln\r\n$sql = "select idsidelang from ".$dedi_db[''side_lang'']." where idside = MOD_VALUE[5] and idlang = ".$lang;\r\n$db->query($sql);\r\n$db->next_record();\r\n$int_idsidelang = $db->f(''idsidelang'');\r\n\r\n// Daten aus dedi_content auslesen\r\nfor ($i=1; $i<="MOD_VALUE[10]";$i++) {\r\n    $sql = "SELECT value, number, idtype, lastmodified FROM ".$dedi_db[''content'']." WHERE idsidelang=".$int_idsidelang." and container=MOD_VALUE[6] ";\r\n    $sql .= "and number=".$i." and idtype in (1,2,3,4,7,11,13) and typenumber=1 order by 2,3";\r\n    $db->query($sql);\r\n    $anz = $db->num_rows();\r\n    $text='''';\r\n    $wysiwyg='''';\r\n    $wysiwyg2='''';\r\n    $textarea='''';\r\n    $file1_desc='''';\r\n    $link1_desc='''';\r\n    $image='''';\r\n    $imagetag='''';\r\n    $pictid=0;\r\n    if ( $anz > 0) { \r\n      // diese Schleife ist eigentlich unnötig, da die Resultate richtig sortiert sind.\r\n      // Die sortierung ist für die erzeugung der Bild-links nötig\r\n      for ($nr=0; $nr < $anz; $nr++) {\r\n        $db->next_record();\r\n        $datum = date(''d.m.Y'',$db->f(''lastmodified''));\r\n        //Type Text vorhanden?\r\n        if ($db->f(''idtype'') == 1) {\r\n            $text=$db->f(''value'');\r\n            $text= strip_tags($text);\r\n            if ("MOD_VALUE[11]" > 0) {\r\n                $text = substr($text,0,"MOD_VALUE[11]"+1);\r\n                if (strlen($text) == ("MOD_VALUE[11]"+1)) {\r\n                    $text = substr($text,0,strrpos($text, " "));\r\n                }\r\n            }\r\n        }\r\n        \r\n        //Type wysiwyg vorhanden?\r\n        if($db->f(''idtype'') == 2) {\r\n            $wysiwyg=$db->f(''value''); \r\n            $wysiwyg=strip_tags($wysiwyg);\r\n            if ("MOD_VALUE[12]" > 0) {\r\n                $wysiwyg=substr($wysiwyg,0,"MOD_VALUE[12]"+1);\r\n                if (strlen($wysiwyg) == ("MOD_VALUE[12]"+1)) {\r\n                    $wysiwyg=substr($wysiwyg,0,strrpos($wysiwyg, " "));\r\n                }\r\n            }\r\n        }\r\n        \r\n        //Type textarea vorhanden?\r\n        if($db->f(''idtype'') == 3) {\r\n            $textarea=$db->f(''value''); \r\n            $textarea=strip_tags($textarea); \r\n            if ("MOD_VALUE[13]" > 0) {\r\n                $textarea=substr($textarea,0,"MOD_VALUE[13]"+1);\r\n                if (strlen($textarea) == ("MOD_VALUE[13]"+1)) {\r\n                    $textarea=substr($textarea,0,strrpos($textarea, " "));\r\n                }\r\n            }\r\n        }\r\n        \r\n        //type bild vorhanden?\r\n        if($db->f(''idtype'') == 4) {\r\n            $pictid=$db->f(''value'');\r\n        }\r\n\r\n        //type link1 descr vorhanden?\r\n        if($db->f(''idtype'') == 7) {\r\n            $link1_desc=$db->f(''value'');\r\n        }\r\n\r\n        //type file1 desc vorhanden?\r\n        if($db->f(''idtype'') == 11) {\r\n            $file1_desc=$db->f(''value'');\r\n        }\r\n\r\n       //Type wysiwyg vorhanden?\r\n       if($db->f(''idtype'') == 13) {\r\n           $wysiwyg2=$db->f(''value'');\r\n           $wysiwyg2=strip_tags($wysiwyg2);\r\n           if ("MOD_VALUE[12]" > 0) {\r\n               $wysiwyg2=substr($wysiwyg2,0,"MOD_VALUE[12]"+1);\r\n               if (strlen($wysiwyg2) == ("MOD_VALUE[12]"+1)) {\r\n                   $wysiwyg2=substr($wysiwyg2,0,strrpos($wysiwyg2, " "));\r\n               }\r\n           }\r\n       }\r\n      \r\n      }\r\n      \r\n      $link = $con_side[$int_idcatside][link]."&amp;page=".$i;\r\n        if ("MOD_VALUE[15]" == ''true'') {\r\n        	$link .= ''&amp;items=1'';\r\n        }\r\n       \r\n      //type bild vorhanden?\r\n      if($pictid != 0) {\r\n            $sql1 = "SELECT filename, iddirectory FROM ".$dedi_db[''upl'']." WHERE idupl=".$pictid;\r\n            $sql1 .= " and idclient=".$client;\r\n            $db->query($sql1);\r\n            $db->next_record();\r\n            $filename = $db->f(''filename'');\r\n            $dirid = $db->f(''iddirectory'');\r\n            $sql2 = "SELECT dirname FROM ".$dedi_db[''directory'']." WHERE iddirectory=".$dirid;\r\n            $db->query($sql2);\r\n            $db->next_record();\r\n            $dirname = $db->f(''dirname'');\r\n            $filename_noext = remove_ext($filename);\r\n            $extension_temp = pathinfo($filename);\r\n            $extension = ".".$extension_temp["extension"];\r\n            $image =  $cfg_client[''upl_htmlpath''].$dirname.$filename_noext.$cfg_client[thumbext].$extension;\r\n            $imagetag = str_replace(''{image}'', $image, "MOD_VALUE[14]");\r\n      }\r\n       \r\n        \r\n      $output = str_replace(''{font1}'', "MOD_VALUE[0]", "MOD_VALUE[8]");\r\n      $output = str_replace(''{font2}'', "MOD_VALUE[1]", $output);\r\n      $output = str_replace(''{font3}'', "MOD_VALUE[2]", $output);\r\n      $output = str_replace(''{font4}'', "MOD_VALUE[4]", $output);\r\n      $output = str_replace(''{link_desc}'', $link1_desc, $output);\r\n      $output = str_replace(''{file_desc}'', $file1_desc, $output);\r\n      $output = str_replace(''{link}'', $link, $output);\r\n      $output = str_replace(''{linkbezeichnung}'', "MOD_VALUE[9]", $output);\r\n      $output = str_replace(''{text}'', $text, $output);\r\n      $output = str_replace(''{wysiwyg}'', $wysiwyg, $output);\r\n      $output = str_replace(''{textarea}'', $textarea, $output);\r\n      $output = str_replace(''{imagetag}'', $imagetag, $output);\r\n      $output = str_replace(''{wysiwyg2}'', $wysiwyg2, $output);\r\n      $output = str_replace(''{date}'', $datum, $output);\r\n      echo $output;\r\n    }\r\n}\r\n\r\nunset($int_title,$int_idcatside,$int_idsidelang,$anz,$text,$wysiwyg,$textarea,$image,$imagetag,$anz,$datum,$filename,$dirid,$dirname);\r\nunset($filename_noext,$extension_temp,$extension,$image,$imagetag,$output,$mod);\r\n\r\n</DEDIPHP>', '', 0, 1, 1, 1100858512, 1132968696, 'mod:12928eb8215a2ba5b921fe4368df8b89:0a48181f', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (27, 'IncludeArticle', '1.4', 'Content Syndication', 'Fügt eine interne oder externe Seite in einen Container ein.', '<?php\r\n\r\nif (!function_exists("build_catside_tree_for_lang")) {\r\n	function build_catside_tree_for_lang($myLang) {\r\n		global $db, $dedi_db, $client, $catlist_level;\r\n		$sql = "SELECT A.name, B.idcat, B.parent, B.sortindex FROM $dedi_db[cat_lang] AS A, $dedi_db[cat] AS B WHERE A.idcat=B.idcat AND B.idclient=''$client'' AND A.idlang=''$myLang'' ORDER BY B.parent, B.sortindex";\r\n		$db->query($sql);\r\n		while ($db->next_record()){\r\n			$ordner[$db->f(''idcat'')] = $db->f(''name'');\r\n			$tlo_tree[$db->f(''parent'')][$db->f(''sortindex'')] = $db->f(''idcat'');\r\n		}\r\n		$sql = "SELECT D.idcatside, D.idcat, D.sortindex, D.is_start, F.title, F.idlang FROM $dedi_db[cat_side] AS D, $dedi_db[side] AS E, $dedi_db[side_lang] AS F WHERE D.idside=E.idside AND E.idside=F.idside AND E.idclient=''$client'' AND F.idlang=''$myLang'' ORDER BY D.idcatside";\r\n\r\n		$db->query($sql);\r\n		while ($db->next_record()){\r\n			$seiten[$db->f(''idcat'')][$db->f(''idcatside'')][''name''] = $db->f(''title'');\r\n			$seiten[$db->f(''idcat'')][$db->f(''idcatside'')][''idcatside''] = $db->f(''idcatside'');\r\n			$seiten[$db->f(''idcat'')][$db->f(''idcatside'')][''is_start''] = $db->f(''is_start'');\r\n			if($db->f(''is_start'') == 1){ $seiten[''start''][$db->f(''idcat'')] = $db->f(''idcatside''); }\r\n			if(!is_array($seiten[''sortarray''][$db->f(''idcat'')])){$seiten[''sortarray''][$db->f(''idcat'')] = array(); }\r\n			array_push($seiten[''sortarray''][$db->f(''idcat'')],$db->f(''sortindex''));\r\n		}\r\n\r\n		$mytree = array();\r\n		if (is_array($ordner)) {\r\n			tree_level_order(''0'', ''catlist'');\r\n			foreach($ordner as $a => $n){\r\n				$temp[''id''] = $seiten[''start''][$a];\r\n				$temp[''name''] = $ordner[$a];\r\n				$temp[''level''] = $catlist_level[$a];\r\n				array_push($mytree, $temp);\r\n				if(is_array($seiten[$a])){\r\n					array_multisort($seiten[''sortarray''][$a] , SORT_ASC , $seiten[$a] , SORT_ASC);\r\n					foreach(array_keys($seiten[$a]) as $b){\r\n						if($seiten[''start''][$a] != $b){\r\n							$temp[''id''] = $seiten[$a][$b][''idcatside''];\r\n							$temp[''name''] = $seiten[$a][$b][''name''];\r\n							$temp[''level''] = $catlist_level[$a] + 1;\r\n							array_push($mytree, $temp);\r\n						}\r\n					}\r\n				}\r\n			}\r\n		}\r\n		return $mytree;\r\n	}\r\n}\r\n\r\nif (!function_exists("get_all_langs")) {\r\n	function get_all_langs() {\r\n		global $db, $dedi_db;\r\n		$allmylangs = array();\r\n		$sql = "SELECT A.name, A.idlang FROM $dedi_db[lang] AS A";\r\n		$db->query($sql);\r\n		while ($db->next_record()) {\r\n			$allmylangs[$db->f(''idlang'')] = $db->f(''name'');\r\n		}\r\n		return $allmylangs;\r\n	}\r\n}\r\n\r\n$baum = array();\r\nforeach (get_all_langs() as $a => $b) {\r\n	$temp[''id''] = "";\r\n	$temp[''name''] = ">>> ".$b." <<<";\r\n	$temp[''level''] = "0";\r\n	array_push($baum, $temp);\r\n	$baum = array_merge_recursive($baum, build_catside_tree_for_lang($a));\r\n}\r\n// externe links\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = $mod_lang[''link_extern''];\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = '''';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n// interne links:\r\n$mip_form[''1''][''desc''] = $mod_lang[''link_intern''];\r\n$mip_form[''1''][''cat''] = ''option'';\r\n$mip_form[''1''][''option_val''][''0''] = '''';\r\n$mip_form[''1''][''option_desc''][''0''] = ''-- kein --'';\r\n$myi = 1;\r\nforeach($baum as $a)\r\n{        \r\n	$mip_form[''1''][''option_val''][$myi] = $a[''id''];\r\n	$mip_form[''1''][''option_desc''][$myi] = (str_repeat(''&nbsp;&nbsp;'',$a[''level''])).$a[''name''];\r\n	$myi++;\r\n}\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = '''';\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// start tag\r\n$mip_form[''3''][''cat''] = ''txt'';\r\n$mip_form[''3''][''type''] = '''';\r\n$mip_form[''3''][''desc''] = "Start HTML-Tag";\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = '''';\r\n$mip_form[''3''][''tab''] = ''0'';\r\n\r\n// End tag\r\n$mip_form[''4''][''cat''] = ''txt'';\r\n$mip_form[''4''][''type''] = '''';\r\n$mip_form[''4''][''desc''] = "End HTML-Tag";\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''cms_val_default''] = '''';\r\n$mip_form[''4''][''tab''] = ''0'';\r\n\r\n// Template\r\n$mip_form[''2''][''desc''] = ''Template'';\r\n$mip_form[''2''][''cat''] = ''txtarea'';\r\n$mip_form[''2''][''rows''] = ''6'';\r\n$mip_form[''2''][''type''] = ''long'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''{page}'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''2'']);\r\necho "Legende:<BR>Seiteninhalt: {page}<BR>";\r\n\r\nunset($baum, $mytree, $allmylangs, $myi, $mip_form, $temp, $seiten, $ordner);\r\n?>\r\n', '<DEDIPHP>\r\nif ("MOD_VALUE[0]" != "") {\r\n      $link = "MOD_VALUE[0]";\r\n} else {\r\n      $link = "MOD_VALUE[1]";\r\n}\r\nif ($link != "" && ! empty($link)) {\r\nif (is_numeric($link)) {\r\n      $page = $cfg_client[''htmlpath''].$cfg_client[''contentfile'']."?idcatside=".$link."&lang=".$lang;\r\n} else {\r\n      $page = $link;\r\n}\r\n      $article = @file_get_contents($page);\r\nif ("MOD_VALUE[3]" != "" || "MOD_VALUE[4]" != "") {\r\n      $starttag="MOD_VALUE[3]";\r\n      $endtag="MOD_VALUE[4]";\r\n      $myContent[''location''] = preg_replace("/^.*MOD_VALUE[3][^>]*>(.*)MOD_VALUE[4].*$/is", "\\$1", $article);\r\n} else {\r\n      $myContent[''location''] = $article;\r\n}\r\n$myTemplateVar[''location''] = ''{page}'';\r\n$myTemplate = ''MOD_VALUE[2]'';\r\n$myTemplate = str_replace($myTemplateVar, $myContent, $myTemplate);\r\necho $myTemplate;\r\nunset($myTemplate, $myTemplateVar, $myContent);\r\n}\r\n</DEDIPHP>', '', 0, 1, 1, 1069192920, 1132966788, 'mod:796bc068c2d3a2429f85c720c4c6d858:194f7b49', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (28, 'Newsticker', '1.1', 'Content Syndication', 'Die neusten Nachrichten von Spiegel, Heise und Co.', '<?php\r\n// Schriftart\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font''].'' Headline'';\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''class_only'';\r\n$mip_form[''0''][''cms_val_default''] = ''Verdana-10px'';\r\n\r\n// Schriftart\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''].'' Text'';\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n$mip_form[''1''][''cms_val_default''] = ''Verdana-10px'';\r\n\r\n// Schriftart\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font''].'' Link'';\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n// News-Anbieter\r\n$mip_form[''3''][''desc''] = ''News-Anbieter'';\r\n$mip_form[''3''][''cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''option_desc''][''0''] = ''Golem News'';\r\n$mip_form[''3''][''option_desc''][''1''] = ''Heise News'';\r\n$mip_form[''3''][''option_desc''][''2''] = ''Heise Mobil'';\r\n$mip_form[''3''][''option_desc''][''3''] = ''Spiegel.de'';\r\n$mip_form[''3''][''option_desc''][''4''] = ''Telepolis'';\r\n$mip_form[''3''][''option_desc''][''5''] = ''N24 (Frontpage)'';\r\n$mip_form[''3''][''option_desc''][''6''] = ''N24 (Nachrichten)'';\r\n$mip_form[''3''][''option_desc''][''7''] = ''N24 (Boulevard)'';\r\n$mip_form[''3''][''option_desc''][''8''] = ''N24 (Wirtschaft)'';\r\n$mip_form[''3''][''option_desc''][''9''] = ''N24 (Wirtschaft AdHoc)'';\r\n$mip_form[''3''][''option_desc''][''10''] = ''N24 (Sport)'';\r\n$mip_form[''3''][''option_desc''][''11''] = ''N24 (Dokumentationen)'';\r\n$mip_form[''3''][''option_val''][''0''] = ''http://www.golem.de/golem_backend.xml'';\r\n$mip_form[''3''][''option_val''][''1''] = ''http://www.heise.de/newsticker/heise.rdf'';\r\n$mip_form[''3''][''option_val''][''2''] = ''http://www.heise.de/mobil/newsticker/heise.rdf'';\r\n$mip_form[''3''][''option_val''][''3''] = ''http://www.yaos.de/home/tools/spiegel/index.rdf'';\r\n$mip_form[''3''][''option_val''][''4''] = ''http://www.telepolis.de/news.rdf'';\r\n$mip_form[''3''][''option_val''][''5''] = ''http://www.n24.de/rss/?rubrik=home'';\r\n$mip_form[''3''][''option_val''][''6''] = ''http://www.n24.de/rss/?rubrik=nachrichten'';\r\n$mip_form[''3''][''option_val''][''7''] = ''http://www.n24.de/rss/?rubrik=boulevard'';\r\n$mip_form[''3''][''option_val''][''8''] = ''http://www.n24.de/rss/?rubrik=wirtschaft'';\r\n$mip_form[''3''][''option_val''][''9''] = ''http://www.n24.de/rss/?rubrik=adhoc'';\r\n$mip_form[''3''][''option_val''][''10''] = ''http://www.n24.de/rss/?rubrik=sport'';\r\n$mip_form[''3''][''option_val''][''11''] = ''http://www.n24.de/rss/?rubrik=dokus'';\r\n\r\n\r\n// Kategoriefilter\r\n$mip_form[''4''][''desc''] = ''Kategoriefilter'';\r\n$mip_form[''4''][''cat''] = ''txt'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n\r\n// Headline verlinken\r\n$mip_form[''5''][''desc''] = ''Headline verlinken?'';\r\n$mip_form[''5''][''cat''] = ''chk'';\r\n$mip_form[''5''][''option_var''][''0''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''option_val''][''0''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''5''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Anzahl Headlines\r\n$mip_form[''6''][''desc''] = ''Anzahl Headlines'';\r\n$mip_form[''6''][''cat''] = ''txt'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = ''10'';\r\n\r\n// Template PRE\r\n$mip_form[''7''][''cat''] = ''txtarea'';\r\n$mip_form[''7''][''type''] = ''long'';\r\n$mip_form[''7''][''rows''] = ''3'';\r\n$mip_form[''7''][''desc''] = ''Einleitung'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''<table cellspacing="0" cellpadding="3" border="0" width="150" style="border: 2px; border-color: #A8BADE; border-style: dashed;">'';\r\n\r\n// Template IN\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''rows''] = ''3'';\r\n$mip_form[''8''][''desc''] = ''Newszeile<br><small>{head}, {text}, {kategorie}, {link=text}</small>'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''<tr><td width="150" onMouseOver="this.style[\\''background\\'']=\\''#C7D5EB\\'';" onMouseOut="this.style[\\''background\\'']=\\''#FFFFFF\\'';" nowrap>{head}<br>{text}</td></tr>'';\r\n\r\n// Template POST\r\n$mip_form[''9''][''cat''] = ''txtarea'';\r\n$mip_form[''9''][''type''] = ''long'';\r\n$mip_form[''9''][''rows''] = ''3'';\r\n$mip_form[''9''][''desc''] = ''Abschluss'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''</table>'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\necho "<small><b>Spiegel:</b> Auto, Kultur, Netzwelt, Panorama, Politik, Reise, Sport, UniSPIEGEL, Wirtschaft</small><br>";\r\necho "<small><b>Golem-News:</b> E-Commerce, Entertainment, Hardware, Networld, Telekommunikation, Unternehmen/Märkte</small><br>";\r\necho "<small><u>Anzuzeigende Kategorien mit Leerzeichen getrennt eintragen oder leer lassen um alle anzuzeigen</u></small><br><br>";\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''7'']);\r\nmip_formsp($mip_form[''8'']);\r\nmip_formsp($mip_form[''9'']);\r\necho "<small>{text} nur bei Golem-News und N24; {kategorie} nur bei Golem-News und Spiegel.de</small>";\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\necho "MOD_VALUE[7]";\r\n$mod[''newsserver''] = strtok(str_replace("http://","","MOD_VALUE[3]"),"/");\r\nif(fsockopen($mod[''newsserver''], 80)){\r\n$mod[''count''] = 0;\r\n$mod[''file''] = file("MOD_VALUE[3]");\r\nwhile(($mod[''line''] = array_shift($mod[''file''])) && ($mod[''count''] < "MOD_VALUE[6]" || "MOD_VALUE[6]" == "0" || "MOD_VALUE[6]" == "")){\r\nif(preg_match("!((<HEADLINE>)|(<title>))([^<]+)((<\\\\/HEADLINE>)|(<\\\\/title>))!",$mod[''line''],$match)){$mod[''title''] = $match[4];}\r\nif(preg_match("!((<SUBHEADLINE>)|(<description>))([^<]+)((<\\\\/SUBHEADLINE>)|(<\\\\/description>))!",$mod[''line''],$match)){$mod[''body''] = $match[4];}\r\nif(preg_match("!((<URL>)|(<link>)|(<url>))([^<]+)((<\\\\/URL>)|(<\\\\/link>)|(<\\\\/url>))!",$mod[''line''],$match)){$mod[''link''] = $match[5];}\r\nif(preg_match("!((<categorie>)|(<RUBRIK>))([^<]+)((<\\\\/RUBRIK>)|(<\\\\/categorie>))!",$mod[''line''],$match)){$mod[''cat''] = $match[4];}\r\nif(preg_match("!(<\\\\/item>)|(<\\\\/ARTIKEL>)!",$mod[''line''])){\r\n if("MOD_VALUE[4]" == "" || strstr("MOD_VALUE[4]",$mod[''cat''])){\r\n  $mod[''href''] = ''<a class="MOD_VALUE[2]" href="''.$mod[''link''].''" target="_blank">'';\r\n  $mod[''artikel''] = preg_replace("/\\{link=([^\\}]+)\\}/i",$mod[''href'']."\\\\1</a>","MOD_VALUE[8]");\r\n  if("MOD_VALUE[5]" != ""){\r\n   $mod[''artikel''] = str_replace("{head}","<span class=''MOD_VALUE[0]''>".$mod[''href''].$mod[''title'']."</a></span>",$mod[''artikel'']);\r\n  } else {\r\n   $mod[''artikel''] = str_replace("{head}","<span class=''MOD_VALUE[0]''>".$mod[''title'']."</span>",$mod[''artikel'']);\r\n  }\r\n  $mod[''artikel''] = str_replace("{text}","<span class=''MOD_VALUE[1]''>".$mod[''body'']."</span>",$mod[''artikel'']);\r\n  $mod[''artikel''] = str_replace("{kategorie}",$mod[''cat''],$mod[''artikel'']);\r\n  echo $mod[''artikel''];\r\n  $mod[''count'']++;\r\n }\r\n}\r\n}\r\n} else { \r\n$mod[''artikel''] = str_replace("{head}","--keine News--","MOD_VALUE[8]");\r\n$mod[''artikel''] = str_replace("{text}","",$mod[''artikel'']);\r\n$mod[''artikel''] = str_replace("{kategorie}","",$mod[''artikel'']);\r\n$mod[''artikel''] = preg_replace("/\\{link.+\\}/","",$mod[''artikel'']);\r\necho $mod[''artikel''];\r\n}\r\necho "MOD_VALUE[9]";\r\nunset($mod);\r\n</DEDIPHP>', '', 0, 0, 1, 1066927900, 1132969119, 'mod:ee34833118c98b9a1f7e3b1ee9cc22c8:19b6b686', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (32, 'Kontaktformular', '1.1.0', 'Interaktion', 'Realisiert ein Kontaktformular mit beliebig vielen Feldern und Leerzeilen. (mit Formular-Spam-Schutz, XHTML-konform)', '<?php\r\n// Kontaktformular\r\n// DeDi-MOD-CONFIG\r\n// Version 1.1\r\n// by Björn, Leycos, Bratzi, Mistral, Olaf, Roberto, tXz\r\n\r\n//val ref\r\n//0-9 system reserved\r\n//0 Anzahl Formularelemente \r\n//1 switch Elemente hinzufügen/ entfernen\r\n//\r\n//10-99 common config vars\r\n//10 configmode \r\n//11 subject in mail\r\n//12 emailadress\r\n//13 fehler\r\n//14 erfolgreich verschickt\r\n//15 style fehler	\r\n//16 style bestätigung\r\n//17 style label\r\n//18 style label fehler\r\n//19 style text\r\n//20 style textarea\r\n//21 style select\r\n//22 style checkbox\r\n//23 style submitbutton\r\n//24 beschriftung submitbutton\r\n//25 tpl gesamt\r\n//26 tpl reihe\r\n//27 Absenderadresse\r\n//28 Mit fieldset\r\n//29 Fieldset Beschriftung Legend\r\n//30 style form\r\n//31 style multiple select\r\n//32 Trennzeichen fuer Wertelisten\r\n//33 style form\r\n//34 style label radio + checkbox\r\n//35 tpl reihe checkbox + radio\r\n//36 tpl legend in Gruppen (<legend>, <p>, <h3> etc.\r\n//37 style für Legend\r\n//38 style für Legend bei Fehler\r\n//100-1000 form config vars - in 20 Schritten\r\n//n+0 aktiv\r\n//n+1 type\r\n//n+2 label\r\n//n+3 default\r\n//n+4 validate\r\n//1009,1014,1020,1010,1011,1013,1012,1015 Formspam Guard \r\n//-----------------------------\r\n		\r\n//configmode\r\n$mip_form[''10''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''size''] = ''1'';\r\n$mip_form[''10''][''option_desc''][] = ''Einfach'';\r\n$mip_form[''10''][''option_val''][] =  '''';\r\n$mip_form[''10''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''10''][''option_val''][] =  ''advanced'';\r\n$mip_form[''10''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''10''][''option_val''][] =  ''hidden'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''10'']);//configmode\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''10''] == ''hidden''){\r\n	foreach($dedi_mod[''value''] AS $ke=>$va){\r\n		if($ke != ''10''){\r\n			?>\r\n			<input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlspecialchars($va);?>">\r\n			<?php\r\n		}\r\n	}\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''10''] == '''' || $dedi_mod[''value''][''10''] == ''advanced''){\r\n	// Anzahl der Spalten\r\n	if ($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] <= ''0'') $dedi_mod[''value''][''0''] = 3;\r\n	if ($dedi_mod[''value''][''1''] != ''0'') $dedi_mod[''value''][''0''] = (int) $dedi_mod[''value''][''0'']+ $dedi_mod[''value''][''1''];\r\n	$mip_form[''0''][''cat''] = ''hidden'';\r\n	$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n	$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n		\r\n	$mip_form[''11''][''cat''] = ''txt'';\r\n	$mip_form[''11''][''desc''] = ''Betreffzeile/Subject der Email'';\r\n	$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n	$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n	$mip_form[''11''][''cms_val_default''] = ''Kontaktformular'';\r\n	$mip_form[''11''][''tab''] = ''0'';\r\n	\r\n	$mip_form[''12''][''cat''] = ''txt'';\r\n	$mip_form[''12''][''desc''] = ''Emailadresse Empf&auml;nger'';\r\n	$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n	$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n	$mip_form[''12''][''cms_val_default''] = ''me@localhost.de'';\r\n	$mip_form[''12''][''tab''] = ''0'';\r\n	\r\n	//Emailadresse Absender\r\n	$mip_form[''27''][''cat''] = ''option'';\r\n	$mip_form[''27''][''desc''] = ''Emailadresse Absender'';\r\n	$mip_form[''27''][''size''] = ''1'';\r\n	$mip_form[''27''][''option_desc''][] = ''Wie Empf&auml;nger'';\r\n	$mip_form[''27''][''option_val''][] =  ''receiver'';\r\n	for($i=0;$i < $dedi_mod[''value''][''0''];$i++){\r\n		$element_nr = ($i < 9) ? (''0''. ($i+1) ): $i+1;\r\n		$mip_form[''27''][''option_desc''][] = ''Beziehen aus Formularfeld ''.$element_nr;\r\n		$mip_form[''27''][''option_val''][] = 100 + $i*20;\r\n	}\r\n	$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n	$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n\r\n	//Emailadresse Absender\r\n	$mip_form[''28''][''cat''] = ''option'';\r\n	$mip_form[''28''][''desc''] = ''Formular enth&auml;lt ein Fieldset'';\r\n	$mip_form[''28''][''size''] = ''1'';\r\n	$mip_form[''28''][''option_desc''][] = ''Nein'';\r\n	$mip_form[''28''][''option_val''][] =  ''false'';\r\n	$mip_form[''28''][''option_desc''][] = ''Ja'';\r\n	$mip_form[''28''][''option_val''][] =  ''true'';\r\n	$mip_form[''28''][''cms_var''] = ''MOD_VAR[28]'';\r\n	$mip_form[''28''][''cms_val''] = $dedi_mod[''value''][''28''];\r\n\r\n	//Fieldset Beschriftung\r\n	$mip_form[''29''][''cat''] = ''txt'';\r\n	$mip_form[''29''][''desc''] = ''Fieldset Beschriftung (Legend)'';\r\n	$mip_form[''29''][''cms_var''] = ''MOD_VAR[29]'';\r\n	$mip_form[''29''][''cms_val''] = $dedi_mod[''value''][''29''];\r\n	$mip_form[''29''][''cms_val_default''] = ''Ihre Mitteilung an uns'';\r\n	$mip_form[''29''][''tab''] = ''0'';\r\n	\r\n	$mip_form[''13''][''cat''] = ''txt'';\r\n	$mip_form[''13''][''desc''] = ''Fehlermeldung, bei falsch ausgef&uuml;lltem Formular'';\r\n	$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n	$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n	$mip_form[''13''][''cms_val_default''] = ''Bitte &uuml;berpr&uuml;fen Sie Ihre Eingaben an folgenden Feldern: '';\r\n	$mip_form[''13''][''tab''] = ''0'';\r\n	\r\n	$mip_form[''14''][''cat''] = ''txt'';\r\n	$mip_form[''14''][''desc''] = ''Erfolgsmeldung, Formular wurde korrekt versendet'';\r\n	$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n	$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n	$mip_form[''14''][''cms_val_default''] = ''Vielen Dank, die Daten wurden versandt'';\r\n	$mip_form[''14''][''tab''] = ''0'';\r\n	\r\n	$mip_form[''24''][''cat''] = ''txt'';\r\n	$mip_form[''24''][''desc''] = ''Beschriftung Submitbutton'';\r\n	$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n	$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n	$mip_form[''24''][''cms_val_default''] = ''Abschicken'';\r\n	$mip_form[''24''][''tab''] = ''0'';\r\n		\r\n	$mip_form[''15''][''desc''] = ''Stylesheet Fehlermeldung'';\r\n	$mip_form[''15''][''cat''] = ''app_css'';\r\n	$mip_form[''15''][''output_cat''] = ''option'';\r\n	$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n	$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n	$mip_form[''15''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''16''][''desc''] = ''Stylesheet Erfolgsmeldung'';\r\n	$mip_form[''16''][''cat''] = ''app_css'';\r\n	$mip_form[''16''][''output_cat''] = ''option'';\r\n	$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n	$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n	$mip_form[''16''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''17''][''desc''] = ''Stylesheet Label: '';\r\n	$mip_form[''17''][''cat''] = ''app_css'';\r\n	$mip_form[''17''][''output_cat''] = ''option'';\r\n	$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n	$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n	$mip_form[''17''][''flag''] = ''class_only'';\r\n\r\n	$mip_form[''18''][''desc''] = ''Stylesheet Label, bei Fehlermeldung: '';\r\n	$mip_form[''18''][''cat''] = ''app_css'';\r\n	$mip_form[''18''][''output_cat''] = ''option'';\r\n	$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n	$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n	$mip_form[''18''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''34''][''desc''] = ''Stylesheet Label nach Checkbox/Radiobutton: '';\r\n	$mip_form[''34''][''cat''] = ''app_css'';\r\n	$mip_form[''34''][''output_cat''] = ''option'';\r\n	$mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n	$mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n	$mip_form[''34''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''37''][''desc''] = ''Stylesheet Legend bei Gruppen v. Checkbox/Radiobutton: '';\r\n	$mip_form[''37''][''cat''] = ''app_css'';\r\n	$mip_form[''37''][''output_cat''] = ''option'';\r\n	$mip_form[''37''][''cms_var''] = ''MOD_VAR[37]'';\r\n	$mip_form[''37''][''cms_val''] = $dedi_mod[''value''][''37''];\r\n	$mip_form[''37''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''38''][''desc''] = ''Stylesheet Legend (Fehler) bei Gruppen v. Checkbox/Radiobutton: '';\r\n	$mip_form[''38''][''cat''] = ''app_css'';\r\n	$mip_form[''38''][''output_cat''] = ''option'';\r\n	$mip_form[''38''][''cms_var''] = ''MOD_VAR[38]'';\r\n	$mip_form[''38''][''cms_val''] = $dedi_mod[''value''][''38''];\r\n	$mip_form[''38''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''19''][''desc''] = ''Stylesheet einzeiliges Textfeld'';\r\n	$mip_form[''19''][''cat''] = ''app_css'';\r\n	$mip_form[''19''][''output_cat''] = ''option'';\r\n	$mip_form[''19''][''cms_var''] = ''MOD_VAR[19]'';\r\n	$mip_form[''19''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n	$mip_form[''19''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''20''][''desc''] = ''Stylesheet mehrzeiliges Textfeld'';\r\n	$mip_form[''20''][''cat''] = ''app_css'';\r\n	$mip_form[''20''][''output_cat''] = ''option'';\r\n	$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n	$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n	$mip_form[''20''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''21''][''desc''] = ''Stylesheet Selectbox'';\r\n	$mip_form[''21''][''cat''] = ''app_css'';\r\n	$mip_form[''21''][''output_cat''] = ''option'';\r\n	$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n	$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n	$mip_form[''21''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''31''][''desc''] = ''Stylesheet Multiple Selectbox'';\r\n	$mip_form[''31''][''cat''] = ''app_css'';\r\n	$mip_form[''31''][''output_cat''] = ''option'';\r\n	$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n	$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n	$mip_form[''31''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''22''][''desc''] = ''Stylesheet Checkbox'';\r\n	$mip_form[''22''][''cat''] = ''app_css'';\r\n	$mip_form[''22''][''output_cat''] = ''option'';\r\n	$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n	$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n	$mip_form[''22''][''flag''] = ''class_only'';\r\n\r\n	$mip_form[''23''][''desc''] = ''Stylesheet Submitbutton'';\r\n	$mip_form[''23''][''cat''] = ''app_css'';\r\n	$mip_form[''23''][''output_cat''] = ''option'';\r\n	$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n	$mip_form[''23''][''flag''] = ''class_only'';\r\n	\r\n	$mip_form[''30''][''desc''] = ''Stylesheet kurzes einzeiliges Textfeld'';\r\n	$mip_form[''30''][''cat''] = ''app_css'';\r\n	$mip_form[''30''][''output_cat''] = ''option'';\r\n	$mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n	$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n	$mip_form[''30''][''flag''] = ''class_only'';\r\n	\r\n	//Robert Hartwig: Style fuer form	\r\n	$mip_form[''33''][''desc''] = ''Stylesheet Formular: '';\r\n	$mip_form[''33''][''cat''] = ''app_css'';\r\n	$mip_form[''33''][''output_cat''] = ''option'';\r\n	$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n	$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n	$mip_form[''33''][''flag''] = ''class_only'';\r\n	\r\n	// Robert Hartwig: Trennzeichen fuer Wertelisten\r\n	$mip_form[''32''][''cat''] = ''txt'';\r\n	$mip_form[''32''][''desc''] = ''Trennzeichen f&#252;r Wertelisten'';\r\n	$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n	$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n	$mip_form[''32''][''cms_val_default''] = '','';\r\n	$mip_form[''32''][''tab''] = ''0'';\r\n	\r\n\r\n	$mip_form[''25''][''desc''] = ''Verbindungstemplate<br>\r\n	<small>M&ouml;gliche Templatevariablen: {usermessage} = Erfolgs oder Fehlermeldung beim verschicken des Formulars,<br> \r\n	{formstart} = Formularkopf, muss vor {formelementblock} und {submit} eingef&uuml;gt werden<br />\r\n	{formelementblock} = enth&auml;lt alle Formularelement, wird aus dem Template "Formelementblock" generiert<br />\r\n	{submit} = Absendenbutton; {formend} = Formularende, muss hinter {formelementblock}, {submit} eingef&uuml;gt werden.<br/>\r\n	Formspam Guard: {fsg_hiddenfield}, {fsg_code}, {fsg_label}, {fsg_inputfield}</small>'';\r\n	$mip_form[''25''][''cat''] = ''txtarea'';\r\n	$mip_form[''25''][''rows''] = ''6'';\r\n	$mip_form[''25''][''type''] = ''long'';\r\n	$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n	$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n	$mip_form[''25''][''cms_val_default''] = ''\r\n{usermessage}\r\n{formstart} {formelementblock}\r\n{fsg_hiddenfield}{fsg_code}{fsg_label}{fsg_inputfield}				\r\n<p>{submit}</p>\r\n{formend}'';	\r\n	\r\n	$mip_form[''26''][''desc''] = ''Template Formelementblock<br>\r\n	<small>M&ouml;gliche Templatevariablen: {label} = Label des Formularelements,{element} = Formularelement, z.B. <br>\r\n	Textfeld/ Selectbox</small>'';\r\n	$mip_form[''26''][''cat''] = ''txtarea'';\r\n	$mip_form[''26''][''rows''] = ''3'';\r\n	$mip_form[''26''][''type''] = ''long'';\r\n	$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n	$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n	$mip_form[''26''][''cms_val_default''] = ''{label}{element}<br />'';	\r\n\r\n	$mip_form[''35''][''desc''] = ''Template f&uuml;r Gruppen von Checkbox und Radiobutton<br>\r\n	<small>M&#246;gliche Templatevariablen: {legend} = Ausgabe des Templates f&uuml;r die Beschriftung der Gruppe (siehe unten) <br />\r\n	{group} = Liste von Checkbox-Feldern oder Radiobuttons mit Anzeige der Feldwerte in Element &lt;label&gt;</small>'';\r\n	$mip_form[''35''][''cat''] = ''txtarea'';\r\n	$mip_form[''35''][''rows''] = ''6'';\r\n	$mip_form[''35''][''type''] = ''long'';\r\n	$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n	$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n	$mip_form[''35''][''cms_val_default''] = ''<fieldset>\r\n  {legend}\r\n  {group}\r\n</fieldset>'';\r\n\r\n	$mip_form[''36''][''desc''] = ''Template f&uuml;r Legende in Gruppen von Checkbox und Radiobutton<br>\r\n	<small>M&#246;gliche Templatevariablen: {label} = Beschriftung der Gruppe (Fieldset) mit dem Wert aus dem Feld "Label" <br />\r\n	{style} = Zuweisung der CSS-Klasse "Stylesheet Legend" bzw. im Fehlerfall "Stylesheet Legend (Fehler)"</small>'';\r\n	$mip_form[''36''][''cat''] = ''txtarea'';\r\n	$mip_form[''36''][''rows''] = ''3'';\r\n	$mip_form[''36''][''type''] = ''long'';\r\n	$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n	$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n	$mip_form[''36''][''cms_val_default''] = ''<legend {style}>{label}</legend>'';\r\n\r\n// Formspam Guard An/Aus\r\n$mip_form[''1009''][''cat''] = ''option'';\r\n$mip_form[''1009''][''type''] = '''';\r\n$mip_form[''1009''][''tab''] = ''0'';\r\n$mip_form[''1009''][''desc''] = ''<br/><strong>Formspam Guard benutzen?</strong><br/><small><strong>Hinweis:</strong> Formspam Guard erzeugt einen zufälligen Code, welcher als Bestätigung vor dem Formularversand eingeben werden muss. Da der einzugebene Code rein visuell generiert wird, bietet Formspam Guard erhöhten Schutz vor Formularmissbrauch.<br/>&nbsp;</small><br/>'';\r\n$mip_form[''1009''][''cms_var''] = ''MOD_VAR[1009]'';\r\n$mip_form[''1009''][''cms_val''] = $dedi_mod[''value''][''1009''];\r\n$mip_form[''1009''][''cms_val_default''] = ''0'';\r\n$mip_form[''1009''][''option_desc''][''0'']= ''Ja'';\r\n$mip_form[''1009''][''option_val''][''0'']= ''1'';\r\n$mip_form[''1009''][''option_desc''][''1'']= ''Nein'';\r\n$mip_form[''1009''][''option_val''][''1'']= ''0'';\r\n\r\n\r\n//Schriftfarbe\r\n$mip_form[''1014''][''desc''] = ''Anzahl der Code-Zeichen<br/><small>Default: 3</small><br/><br/>'';\r\n$mip_form[''1014''][''cat''] = ''txt'';\r\n$mip_form[''1014''][''cms_var''] = ''MOD_VAR[1014]'';\r\n$mip_form[''1014''][''cms_val''] = $dedi_mod[''value''][''1014''];\r\n$mip_form[''1014''][''cms_val_default''] = ''3'';\r\n\r\n//Schriftfarbe\r\n$mip_form[''1020''][''desc''] = ''Code-Font Pixel-Größe<br/><small>Default: 1</small><br/><br/>'';\r\n$mip_form[''1020''][''cat''] = ''txt'';\r\n$mip_form[''1020''][''cms_var''] = ''MOD_VAR[1020]'';\r\n$mip_form[''1020''][''cms_val''] = $dedi_mod[''value''][''1020''];\r\n$mip_form[''1020''][''cms_val_default''] = ''1'';\r\n\r\n//Schriftfarbe\r\n$mip_form[''1010''][''desc''] = ''Code-Schriftfarbe<br/><small>Hinweis: Farbname (red, blue, ...) oder Hex-Wert (#000000, #FFFFFF, ...)</small><br/><br/>'';\r\n$mip_form[''1010''][''cat''] = ''txt'';\r\n$mip_form[''1010''][''cms_var''] = ''MOD_VAR[1010]'';\r\n$mip_form[''1010''][''cms_val''] = $dedi_mod[''value''][''1010''];\r\n$mip_form[''1010''][''cms_val_default''] = ''#444444'';\r\n\r\n//Hintergrundfarbe\r\n$mip_form[''1011''][''desc''] = ''Code-Hintergrundfarbe<br/><small>Hinweis: Farbname (red, blue, ...) oder Hex-Wert (#000000, #FFFFFF, ...)</small><br/><br/>'';\r\n$mip_form[''1011''][''cat''] = ''txt'';\r\n$mip_form[''1011''][''cms_var''] = ''MOD_VAR[1011]'';\r\n$mip_form[''1011''][''cms_val''] = $dedi_mod[''value''][''1011''];\r\n$mip_form[''1011''][''cms_val_default''] = ''#FFEEBB'';\r\n\r\n//Weitere Parameter für das Eingabefeld\r\n$mip_form[''1012''][''desc''] = ''Stylesheet Code-Eingabefeld'';\r\n$mip_form[''1012''][''cat''] = ''app_css'';\r\n$mip_form[''1012''][''output_cat''] = ''option'';\r\n$mip_form[''1012''][''cms_var''] = ''MOD_VAR[1012]'';\r\n$mip_form[''1012''][''cms_val''] = $dedi_mod[''value''][''1012''];\r\n$mip_form[''1012''][''flag''] = ''class_only'';\r\n\r\n//Weitere Optionen f&uuml;r das Eingabefeld\r\n$mip_form[''1013''][''desc''] = ''Zeitabstand zur Erstellung neuer Codes?<br/><small>Hinweis: Werte unter 60 werden nicht empfohlen. Default: 180</small><br/><br/>'';\r\n$mip_form[''1013''][''cat''] = ''txt'';\r\n$mip_form[''1013''][''cms_var''] = ''MOD_VAR[1013]'';\r\n$mip_form[''1013''][''cms_val''] = $dedi_mod[''value''][''1013''];\r\n$mip_form[''1013''][''cms_val_default''] = ''180'';\r\n\r\n// Template Fehler: Falsche Eingabe beim Formspam Guard\r\n$mip_form[''1015''][''desc''] = ''Formspam Guard-Code Label'';\r\n$mip_form[''1015''][''cat''] = ''txt'';\r\n$mip_form[''1015''][''cms_var''] = ''MOD_VAR[1015]'';\r\n$mip_form[''1015''][''cms_val''] = $dedi_mod[''value''][''1015''];\r\n$mip_form[''1015''][''cms_val_default''] = ''Bestätigungs-Code'';	\r\n	\r\n$mip_form[''1016''][''desc''] = ''Stylesheet Code-Eingabefeld'';\r\n$mip_form[''1016''][''cat''] = ''app_css'';\r\n$mip_form[''1016''][''output_cat''] = ''option'';\r\n$mip_form[''1016''][''cms_var''] = ''MOD_VAR[1016]'';\r\n$mip_form[''1016''][''cms_val''] = $dedi_mod[''value''][''1016''];\r\n$mip_form[''1016''][''flag''] = ''class_only'';\r\n	\r\n	//if simple mode\r\n	$hide_in_simple_mode = array(11,13,14,24,15,16,17,18,19,20,21,22,23,25,26,28,29,30,31,32,33,34,35,36,37,38,1009,1014,1020,1010,1011,1013,1012,1015);\r\n	if($dedi_mod[''value''][''10''] == ''''){\r\n		foreach ($hide_in_simple_mode AS $ke=>$va){\r\n			$mip_form[$va][''cat''] = ''hidden'';\r\n		}\r\n	}\r\n	\r\n	mip_formsp($mip_form[''0'']);//hidden anzahl formularfehler\r\n	mip_formsp($mip_form[''11'']);//subject\r\n	mip_formsp($mip_form[''12'']);//email absender\r\n	mip_formsp($mip_form[''27'']);//email empfänger\r\n	mip_formsp($mip_form[''28'']);//mit fieldset\r\n	mip_formsp($mip_form[''29'']);//fieldset legend\r\n	mip_formsp($mip_form[''13'']);//fehler\r\n	mip_formsp($mip_form[''14'']);//erfolgreich verschickt\r\n	mip_formsp($mip_form[''24'']);//beschriftung submitbutton\r\n\r\n	mip_formsp($mip_form[''15'']);//style fehler		\r\n	mip_formsp($mip_form[''16'']);//style bestätigung		\r\n	mip_formsp($mip_form[''17'']);//style label	\r\n	mip_formsp($mip_form[''34'']);//style label checkbox/radio\r\n	mip_formsp($mip_form[''18'']);//style label bei fehler\r\n	mip_formsp($mip_form[''37'']);//style legend fieldsets\r\n	mip_formsp($mip_form[''38'']);//style legend bei fehler	\r\n	mip_formsp($mip_form[''19'']);//style text\r\n	mip_formsp($mip_form[''30'']);//style shorttext	\r\n	mip_formsp($mip_form[''20'']);//style textarea	\r\n	mip_formsp($mip_form[''21'']);//style select	\r\n	mip_formsp($mip_form[''31'']);//style multiple select		\r\n	mip_formsp($mip_form[''22'']);//style checkbox		\r\n	mip_formsp($mip_form[''23'']);//style submitbutton	\r\n	mip_formsp($mip_form[''33'']);//style form\r\n	mip_formsp($mip_form[''32'']);//Trennzeichen form	\r\n	\r\n	//$mip_forms_tab = $mip_forms_tab_temp;\r\n	\r\n	echo ''<table border="0" width="100%">\r\n	      <tr style="font-weight: bold;">\r\n	      <td>Nr</td>\r\n	      <td>Aktiv</td>\r\n	      <td>Typ</td>\r\n	      <td>Label</td>\r\n	      <td>Defaultwert*</td>\r\n	      <td>Validierung</td>\r\n	      </tr>'';\r\n\r\n	$mip_forms_tab_temp = $mip_forms_tab;\r\n	\r\n	$mip_forms_tab[''open'']  = '''';\r\n	$mip_forms_tab[''close'']  = '''';\r\n	$mip_forms_tab[''left'']  = ''<!--%s-->%s'';\r\n	$mip_forms_tab[''left_width''] = '''';\r\n	$mip_forms_tab[''right''] = ''%s'';\r\n	$mip_forms_tab[''full''] = ''<td>%s<br>%s</td><td width="5"> </td></tr>'';\r\n	$mip_forms_tab[''tab''] = ''<td width="20" valign="top">%s</td>'';	\r\n	$ecount = 100;\r\n\r\n	for($i=0;$i < $dedi_mod[''value''][''0''];$i++){\r\n		$frm_active = $ecount;\r\n		$frm_type = $ecount+1;\r\n		$frm_label = $ecount+2;\r\n		$frm_default = $ecount+3;\r\n		$frm_validate = $ecount+4;\r\n		\r\n		//aktiv\r\n		$mip_form[$frm_active][''cat''] = ''chk'';\r\n		$mip_form[$frm_active][''option_var''][''0''] = ''MOD_VAR[''.$frm_active.'']'';\r\n		$mip_form[$frm_active][''option_val''][''0''] = $dedi_mod[''value''][$frm_active];\r\n		$mip_form[$frm_active][''option_val_select''][''0''] = ''true'';\r\n		\r\n		//typ\r\n		$mip_form[$frm_type][''cat''] = ''option'';\r\n		$mip_form[$frm_type][''size''] = ''1'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Einzeiliges Textfeld'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''text'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Mehrzeiliges Textfeld'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''textarea'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Selectbox'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''option'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Multiple Selectbox'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''multiple'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Einzeiliges kurzes Textfeld'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''shorttext'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Checkbox'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''checkbox'';\r\n		$mip_form[$frm_type][''option_desc''][] = ''Radiobutton'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''radio'';\r\n		// &Auml;nderung Bratzi: Leerzeile einf&uuml;gen\r\n		$mip_form[$frm_type][''option_desc''][] = ''Leerzeile'';\r\n		$mip_form[$frm_type][''option_val''][] =  ''emtyrow'';\r\n		// Ende Leerzeile\r\n		$mip_form[$frm_type][''cms_var''] = ''MOD_VAR[''.$frm_type.'']'';\r\n		$mip_form[$frm_type][''cms_val''] = $dedi_mod[''value''][$frm_type];\r\n		\r\n		//label\r\n		$mip_form[$frm_label][''cat''] = ''txt'';\r\n		$mip_form[$frm_label][''cms_var''] = ''MOD_VAR[''.$frm_label.'']'';\r\n		$mip_form[$frm_label][''cms_val''] = $dedi_mod[''value''][$frm_label];\r\n\r\n		//default\r\n		$def_element = ''<input type="text" name="MOD_VAR[''.$frm_default.'']" style="width:120px" value="''.htmlspecialchars( $dedi_mod[''value''][$frm_default] ).''" />'';\r\n\r\n		//validierung\r\n		$mip_form[$frm_validate][''cat''] = ''option'';\r\n		$mip_form[$frm_validate][''size''] = ''1'';\r\n		$mip_form[$frm_validate][''option_desc''][] = ''Keine'';\r\n		$mip_form[$frm_validate][''option_val''][] =  ''false'';\r\n		$mip_form[$frm_validate][''option_desc''][] = ''Nicht leer'';\r\n		$mip_form[$frm_validate][''option_val''][] =  ''required'';\r\n		$mip_form[$frm_validate][''option_desc''][] = ''Email'';\r\n		$mip_form[$frm_validate][''option_val''][] =  ''email'';\r\n		$mip_form[$frm_validate][''option_desc''][] = ''Email oder leer'';\r\n		$mip_form[$frm_validate][''option_val''][] =  ''emailOrEmpty'';\r\n		$mip_form[$frm_validate][''cms_var''] = ''MOD_VAR[''.$frm_validate.'']'';\r\n		$mip_form[$frm_validate][''cms_val''] = $dedi_mod[''value''][$frm_validate];\r\n		\r\n		echo ''<tr>'';\r\n		$element_nr = ($i < 9) ? (''0''. ($i+1) ): $i+1;\r\n		echo ''<td>''. $element_nr  .''</td>'';\r\n		echo ''<td align="center">''. mip_forms($mip_form[$frm_active]) .''</td>'';\r\n		echo ''<td>''. mip_forms($mip_form[$frm_type]) .''</td>'';\r\n		echo ''<td>''. mip_forms($mip_form[$frm_label]) .''</td>'';\r\n		echo ''<td>''. $def_element .''</td>'';\r\n		echo ''<td>''. mip_forms($mip_form[$frm_validate]) .''</td>'';\r\n		echo ''</tr>'';\r\n		\r\n		$ecount = $ecount+20;		\r\n	}\r\n	$mip_forms_tab = $mip_forms_tab_temp;\r\n	\r\n	echo ''</table>\r\n	<small>*: F&uuml;r die Elemente Selectbox, Multiple Selectbox und Radiobutton sind die einzelnen Auswahlelemente<br>\r\n         kommasepariert anzugeben. Als Trennzeichen ist zwischen den einzelnen Werten das Zeichen zu verwenden,<br>\r\n         das im Feld "Trennzeichen" angegeben ist (Voreinstellung ist das Komma). Werden bei Checkbox und Radiobutton mehrere Werte angegeben, werden sie als Gruppe ausgegeben. <strong>Beispiel:</strong>\r\n	 "Tomaten,Birnen,Orangen". Defaultwerte werden bei Gruppen von Radiobuttons und Checkboxen hinter dem Feld angezeigt.<br>\r\n	Beim Typ Leerzeile sind	Eingaben nur im Label m&ouml;glich.</small>'';\r\n	\r\n	?>\r\n	\r\n	<table cellspacing="0" cellpadding="0" border="0" width="640">\r\n	  <tr>\r\n	    <td align="right"><select name="MOD_VAR[1]" size="1" onchange="document.editform.action.value=''change'';if(document.editform.anchor){document.editform.anchor.value=''<?php echo $_container_name ?>''};document.editform.submit();">\r\n	      <option value="0" selected>Zeilen erstellen - l&ouml;schen</option>\r\n	      <?php if ($dedi_mod[''value''][''0''] >= ''4'') echo "<option value=\\"-3\\">-3</option>"; ?>\r\n	      <?php if ($dedi_mod[''value''][''0''] >= ''3'') echo "<option value=\\"-2\\">-2</option>"; ?>\r\n	      <?php if ($dedi_mod[''value''][''0''] >= ''2'') echo "<option value=\\"-1\\">-1</option>"; ?>\r\n	      <option value="1">+1</option>\r\n	      <option value="2">+2</option>\r\n	      <option value="3">+3</option>\r\n	    </select></td>\r\n	  </tr>\r\n	</table>\r\n	\r\n	\r\n	<?php\r\n	\r\n	mip_formsp($mip_form[''25'']);//template gesamt		\r\n	mip_formsp($mip_form[''26'']);//template reihe\r\n	mip_formsp($mip_form[''35'']);//template Gruppe checkbox + radio\r\n	mip_formsp($mip_form[''36'']);//template Legend für Gruppe checkbox + radio	\r\n	\r\n\r\n	//Formspam Guard\r\n	mip_formsp($mip_form[''1009'']);\r\n	mip_formsp($mip_form[''1014'']);\r\n	mip_formsp($mip_form[''1020'']);\r\n	mip_formsp($mip_form[''1010'']);\r\n	mip_formsp($mip_form[''1011'']);\r\n	mip_formsp($mip_form[''1012'']);\r\n	mip_formsp($mip_form[''1013'']);\r\n	mip_formsp($mip_form[''1015'']);	\r\n	\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP:CACHE>\r\n// Kontaktformular\r\n// DeDi-MOD-OUTPUT\r\n// Version 1.1\r\n// by Björn, Leycos, Bratzi, Mistral, Olaf, Roberto, tXz\r\n// needs PHP 4.1+\r\n\r\n//Alle Variablen, die nur innerhalb des gecachten PHPs sichtbar sind, auch fuer dynamisches PHP zur Verfuegung stellen\r\necho ''<DEDIPHP>'';\r\nforeach($dedi_mod[''value''] AS $k => $v){\r\n	echo ''$mvars["''.$k.''"] = "''. addslashes($v) .''";''."\\n";\r\n}\r\necho ''</DEDIPHP>'';\r\n</DEDIPHP:CACHE>\r\n\r\n<DEDIPHP>\r\n//val ref\r\n//0-9 system reserved\r\n//0 Anzahl Formularelemente \r\n//1 switch Elemente hinzufuegen/ entfernen\r\n//\r\n//10-99 common config vars\r\n//10 configmode \r\n//11 subject in mail\r\n//12 emailadress\r\n//13 fehler\r\n//14 erfolgreich verschickt\r\n//15 style fehler	\r\n//16 style bestaetigung\r\n//17 style label\r\n//18 style label fehler\r\n//19 style text\r\n//20 style textarea\r\n//21 style select\r\n//22 style checkbox\r\n//23 style submitbutton\r\n//24 beschriftung submitbutton\r\n//25 tpl gesamt\r\n//26 tpl reihe\r\n//27 Absenderadresse\r\n//28 Mit fieldset\r\n//29 Fieldset Beschriftung Legend\r\n//30 style shorttext\r\n//31 style multiple select\r\n//32 Trennzeichen fuer Wertelisten\r\n//33 style form\r\n//34 style label radio + checkbox\r\n//35 tpl reihe checkbox + radio\r\n//36 tpl legend für gruppen\r\n//37 style für Legend\r\n//38 style für Legend bei Fehler\r\n//100-1000 form config vars - in 20 Schritten\r\n//n+0 aktiv\r\n//n+1 type\r\n//n+2 label\r\n//n+3 default\r\n//n+4 validate\r\n//1009,1014,1020,1010,1011,1013,1012,1015 Formspam Guard \r\n//-----------------------------\r\n//print_r($mvars);\r\n\r\n// tXz: Formspam Guard init\r\nif (! function_exists(fsg_formcode) && $mvars[''1009''] == "1") {\r\n	define( FSG_DIRPATH, $cfg_client[''path'']."cms/mod/kontaktformular/" );\r\n	define( FSG_LETTER_COUNT, $mvars[''1014''] );// Number of letters to enter\r\n	define( FSG_LETTER_COLOR, $mvars[''1010''] );// Colour of the letters\r\n	define( FSG_BACKGR_COLOR, $mvars[''1011''] );// Colour of the background\r\n	define( FSG_PIXELSIZE, $mvars[''1020''] ); \r\n	define( FSG_CODEFORM_PAR, $mvars[''1012''] );// Style to the <input>-Tag,\r\n	define( FSG_UPDATE_MINS, $mvars[''1013''] ); // Timeperiod to generate new - matchcodes: I DON''T RECOMMEND VALUES BELOW 60 !!!\r\n	include($cfg_client[''path'']."cms/mod/kontaktformular/inc.fsg_kf.php");\r\n}\r\n\r\nif(! class_exists(gooseberry_form)){\r\nclass gooseberry_form\r\n{\r\n	var $is_submitted = false;\r\n	var $is_rule_violation = false;\r\n	var $invalid_fields = array();\r\n	var $rules = array(\r\n					''required''     => ''/(\\s|\\S)/'',\r\n					''email''        => ''/^[a-zA-Z0-9\\._-]+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$/'',\r\n					''emailOrEmpty'' => ''/(^$)|(^[a-zA-Z0-9\\._-]+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$)/''\r\n					);\r\n	var $field_styles = array();\r\n	var $row_tpl;\r\n	var $row_tpl2; // Template für Gruppen (Checkbox, Radio)\r\n	var $legend_tpl; // Template für Legend (Beschriftung) von Gruppen\r\n	var $stack = array();\r\n	var $fsg_go=true;\r\n	\r\n	function set_styles($style_array)\r\n	{\r\n		if(! is_array($style_array) ) return;\r\n		\r\n		foreach($style_array AS $k => $v){\r\n			if(! empty($v)){\r\n				$this->field_styles[$k] = ''class="''.$v.''"'';\r\n			}	\r\n		}		\r\n	}\r\n	\r\n	function set_formelement($element_name, $element_type, $element_default, $element_validate, $element_label)\r\n	{\r\n		$i = count($this->stack);\r\n		$this->stack[$i][''name''] = $element_name;\r\n		$this->stack[$i][''type''] = $element_type;\r\n		$this->stack[$i][''default_value''] = $element_default;\r\n		$this->stack[$i][''validate_rule''] = $element_validate;\r\n		$this->stack[$i][''label''] = $this->_strip_slashes($element_label);\r\n		$this->stack[$i][''value''] = $this->get_value($element_type, $element_name, $element_default);\r\n	}\r\n	\r\n	function set_row_tpl($tpl)\r\n	{\r\n		$this->row_tpl= $tpl;\r\n	}\r\n	//Robert Hartwig: Template für Gruppen von Radiobutton und Checkbox\r\n	function set_row_tpl2($tpl)\r\n	{\r\n		$this->row_tpl2= $tpl;\r\n	}\r\n\r\n	//Robert Hartwig: Template Legende in Gruppen von Radiobutton und Checkbox\r\n	function set_legend_tpl($tpl)\r\n	{\r\n		$this->legend_tpl= $tpl;\r\n	}\r\n	\r\n	function parse_elements()\r\n	{\r\n		$this->parsed_plain = '''';\r\n		$this->parsed = '''';\r\n		$p =''''; $pp ='''';\r\n		foreach($this->stack AS $k => $v){\r\n			$element = $this->get_formelement($v[''name''], $v[''type''], $v[''value''], $v[''default_value'']);\r\n			$def_v_for_plain = ($v[''type''] == ''checkbox'' & $this->is_submitted) ? '''': $v[''default_value''];\r\n			$element_plain = $this->get_formelement($v[''name''], $v[''type''], $def_v_for_plain, $v[''default_value'']);\r\n			$mv = ($v[''validate_rule''] != ''false'' & $v[''validate_rule''] != ''emailOrEmpty'') ? true:false;\r\n			if($v[''type''] == (''checkbox'' || ''radio'' || ''multiple'') & $this->is_submitted)\r\n				$vr = $this->validate($v[''validate_rule''] , $_REQUEST[ $v[''name''] ]);\r\n			else\r\n				$vr = $this->validate($v[''validate_rule''] , $v[''value'']);\r\n			if(!$vr) \r\n				array_push($this->invalid_fields, $v[''label'']);\r\n			// Robert Hartwig: mehrere Values? (für Ausgabe von Radio und Checkbox als Gruppe)\r\n			$group = strpos($v[''default_value''], "MOD_VALUE[32]");\r\n			// Robert Hartwig: element_type in get_label benoetigt\r\n			$label = $this->get_label($v[''name''], $v[''type''], $v[''label''], $mv, $vr, $group);\r\n\r\n		    $p .= $this->parse_form_row($label, $element, $v[''type''], $group); \r\n		    $pp .= $this->parse_form_row($label, $element_plain, $v[''type''], $group); \r\n		}\r\n		$this->parsed =	$p;\r\n		$this->parsed_plain = $pp;\r\n	}\r\n	\r\n	function get_html_form()\r\n	{\r\n		return $this->parsed;\r\n	}\r\n	\r\n	function get_html_plain_form()\r\n	{\r\n		return $this->parsed_plain;\r\n	}\r\n	\r\n	function get_invalid_fields()\r\n	{	//tXz: add formspam guard label to the invalied fields array\r\n		$current_invalid_fields=$this->invalid_fields;\r\n		if (! $this->fsg_go )\r\n			$current_invalid_fields[]="MOD_VALUE[1015]";\r\n		return implode('', '', $current_invalid_fields);	\r\n	}\r\n	\r\n	function is_validated()\r\n	{\r\n		if($this->is_rule_violation) return false;\r\n		return true;		\r\n	}\r\n	\r\n	function is_submitted()\r\n	{\r\n		return $this->is_submitted;\r\n	}\r\n	\r\n	function get_label($element_name, $element_type, $element_label, $must_validated, $is_validated, $is_group)\r\n	{\r\n		$mv = ($must_validated) ? '' *'': '''';\r\n\r\n		// Robert Hartwig: class statt span verwenden! Gruppen von Radio und Checkbox mit Template für Legende\r\n		if ( $element_label.$mv ) {\r\n			switch(TRUE):\r\n			case($element_type == ''radio''):\r\n				$style = (! $is_validated) ? $this->field_styles[''legend_error''] : $this->field_styles[''legend''];\r\n				$label = str_replace(array(''{style}'', ''{label}''), array($style, $element_label.$mv), $this->legend_tpl);\r\n				//$label = $element_label.$mv;	\r\n				break;\r\n			case($element_type == ''checkbox'' AND $is_group !== false):\r\n				$style = (! $is_validated) ? $this->field_styles[''legend_error''] : $this->field_styles[''legend''];\r\n				$label = str_replace(array(''{style}'', ''{label}''), array($style, $element_label.$mv), $this->legend_tpl);\r\n				//$label = $element_label.$mv;	\r\n				break;\r\n			default:\r\n				$style = (! $is_validated) ? $this->field_styles[''label_error''] : $this->field_styles[''label''];\r\n				$label = ''<label for="''.$element_name.''"''.$style.''>''.$element_label.$mv.''</label>''."\\n";			\r\n			endswitch;\r\n		}\r\n		return $label;\r\n	}\r\n	\r\n	function send_mail($to, $receiver, $subject, $charset)\r\n	{\r\n\r\n		$message = '''';\r\n		foreach($this->stack AS $k => $v){\r\n			//Nachfolgend wird geprueft, ob es sich um ein Array handelt. Das ist der Fall bei select multiple und Checkbox in Gruppe (geht es  eleganter?)\r\n			if ($this->_strip_slashes($_REQUEST[ $v[''name''] ]) == ''Array''){\r\n				//Robert Hartwig:  das hier funktioniert nicht:	$multiple = $this->_strip_slashes($_REQUEST[ $v[''name''] ]\r\n				$multiple = $_REQUEST[ $v[''name''] ];\r\n				for ($a = 0; $a < count($multiple); $a++ ) {\r\n					$valuelist .= $multiple[$a]."\\n";\r\n				}\r\n				$message .= $v[''label''].":\\n". $valuelist . "\\n\\n";\r\n				unset($valuelist);\r\n			}\r\n			else {\r\n				//Mistral: Nachfolgend wird geprueft, ob es sich um eine Leerzeile handelt, nur wenn es keine ist erfolgt eine Ausgabe \r\n				if ( $v[''type''] !="emtyrow" ) {\r\n					// Olaf, roberto Alle Zeilenumbrüche aufspüren\r\n					if (strpos($_REQUEST[ $v[''name''] ],''\\n'') || strpos($_REQUEST[ $v[''name''] ],''\\r'') || strpos( $receiver,''\\r'') || strpos($receiver,''\\n'')){\r\n						echo "<p>Falsche Eingabe! Diese wird als Spamversuch gewertet.</p></div></div></body></html>";\r\n						die();\r\n						}\r\n					$message .= $v[''label''].":\\n". $this->_strip_slashes($_REQUEST[ $v[''name''] ]). "\\n\\n";\r\n				}\r\n			}\r\n		}\r\n		// Olaf, roberto die gesamte Mail nach verdächtigem durchforsten und dann abbrechen\r\n		$badStrings = array("Content-Type:",\r\n                   "MIME-Version:",\r\n                   "Content-Transfer-Encoding:",\r\n                   "cc:");\r\n		foreach($badStrings as $v2){\r\n		if(eregi($v2,$message)){\r\n	              echo "<p>Falsche Eingabe! Diese wird als Spamversuch gewertet.</p></div></div></body></html>";\r\n			 die();\r\n			}\r\n		}\r\n		unset($v2, $badStrings);\r\n		//echo "$to, $receiver, $subject, $charset";\r\n		//echo "<pre>".$message."</pre>";\r\n		//Robert Hartwig: Zusätzliche Headers sind nötig wegen:\r\n		// * Übergabe des Zeichensatzes\r\n		// * Verhindern, dass die Mail als Spam gewertet wird\r\n		$headers  = "MIME-Version: 1.0\\n";\r\n		$headers  .= "Content-type: text/plain; charset=".$charset."\\n";\r\n		$headers  .= "Content-Transfer-encoding: quoted-printable\\n";\r\n		$headers  .= "From: ".$receiver."\\n";\r\n		$headers  .= "X-Sender: ".$receiver."\\n";\r\n		$headers  .= "X-Mailer: PHP/" . phpversion() . "\\n";\r\n		// Robert Hartwig: Die Option -f setzt einen Absender für Sendmail. Muss evt. eine auf dem Server existente Adresse sein\r\n		// damit kann man den Default-User (wwwrun etc.) überschreiben\r\n		if (!@mail($to, $subject, $message, $headers, "-f " . $to)){\r\n                    mail($to, $subject, $message, $headers);\r\n		}\r\n	}\r\n	\r\n	function parse_form_row($label, $element, $type, $is_group) \r\n	{\r\n		switch(TRUE):\r\n		case($type == ''radio''):\r\n	        	return str_replace( array(''{legend}'', ''{group}''), array($label, $element), $this->row_tpl2);\r\n	        	break;\r\n	        case($type == ''checkbox'' AND $is_group !== false):\r\n	        	return str_replace( array(''{legend}'', ''{group}''), array($label, $element), $this->row_tpl2);\r\n	        	break;\r\n	        default:\r\n			return str_replace( array(''{label}'', ''{element}''), array($label, $element), $this->row_tpl);\r\n		endswitch;\r\n	} \r\n	\r\n	function get_formelement($element_name, $element_type, $element_value, $element_default_value)\r\n	{		\r\n		switch($element_type)\r\n		{\r\n			case ''text'':\r\n				$e  = ''<input type="text" name="''.$element_name.''" id="''.$element_name.''" ''. $this->field_styles[$element_type] .'' '';\r\n				$e .= '' value="''. htmlspecialchars($element_value) .''" size="40" />''."\\n";\r\n				break;	\r\n			case ''textarea'':\r\n				$e  = ''<textarea cols="30" rows="7" name="''.$element_name.''"  id="''.$element_name.''" ''\r\n					. $this->field_styles[$element_type] .''>''.htmlspecialchars($element_value).''</textarea>''."\\n"; \r\n				break;	\r\n			case ''shorttext'':\r\n				$e  = ''<input type="text" name="''.$element_name.''" id="''.$element_name.''" ''. $this->field_styles[$element_type] .'' '';\r\n				$e .= '' value="''. htmlspecialchars($element_value) .''" size="3" />'';\r\n\r\n				break;		\r\n			case ''option'':\r\n				$e  = ''<select name="''.$element_name.''"  id="''.$element_name.''" ''. $this->field_styles[$element_type] .''>''."\\n";\r\n                               // Robert Hartwig: Variables Trennzeichen\r\n				$p = explode("MOD_VALUE[32]", $element_default_value);\r\n				foreach($p AS $k=>$v){\r\n					$s = ($element_value == $v) ? ''selected="selected"'':''''; \r\n					$e .= ''<option value="''.htmlspecialchars($v).''" ''.$s.'' >''.htmlspecialchars($v).''</option>''."\\n";\r\n				}\r\n				$e .= ''</select>''."\\n";\r\n				break;	\r\n			// Robert Hartwig: START Feldart select multiple. \r\n			// Wichtig! Attributwert von name muss in der Form attributname[] ausgegeben werden\r\n			case ''multiple'':\r\n				$e  = ''<select name="''.$element_name.''[]"  id="''.$element_name.''" size="4" ''. $this->field_styles[$element_type] .'' multiple="multiple">''."\\n";\r\n                                // Robert Hartwig: Variables Trennzeichen\r\n				$p = explode("MOD_VALUE[32]", $element_default_value);\r\n                                $selected_options = $_REQUEST[$element_name];\r\n				foreach($p AS $k=>$v){\r\n                      			$e .= ''<option value="''.htmlspecialchars($v).''"'';\r\n                                         if (sizeof($selected_options) != 0) {\r\n                                                if (in_array("$v", $selected_options)) {\r\n                                                       $e .= '' selected="selected" '';\r\n                                                         }\r\n                                                 }\r\n                                        $e .= ''>''.htmlspecialchars($v).''</option>''."\\n";\r\n				}\r\n				$e .= ''</select>''."\\n";\r\n				break;	\r\n			//Robert Hartwig: ENDE select multiple\r\n			case ''checkbox'':\r\n			// Robert Hartwig: XHTML will checked="checked" statt checked\r\n                                if (strpos($element_default_value, "MOD_VALUE[32]") == false) {\r\n                                $c = ($_REQUEST[$element_name] == $element_value) ? ''checked="checked"'':''''; \r\n					$e = ''<input type="checkbox" name="''.$element_name.''" id="''.$element_name.''" ''. $this->field_styles[$element_type] .'' '';    \r\n					$e .= ''value="''.htmlspecialchars($element_value).''" ''.$c.'' />''."\\n";                                \r\n                                }\r\n                                else {\r\n                                	$p = explode("MOD_VALUE[32]", $element_default_value);\r\n                        	        $selected_options = $_REQUEST[$element_name];\r\n					$i = 0;\r\n					foreach($p AS $k=>$v){\r\n					$i = $i + 1;		\r\n					//$c = ($_REQUEST[$element_name] == $v) ? ''checked="checked"'':''''; \r\n					$e .= ''<input type="checkbox" name="''.$element_name.''[]" id="''.$element_name.''_''.$i.''" ''. $this->field_styles[$element_type] .'' '';    \r\n					$e .= ''value="''.htmlspecialchars($v).''"'';\r\n					\r\n					      if (sizeof($selected_options) != 0) {\r\n                                                if (in_array("$v", $selected_options)) {\r\n                                                       $e .= '' checked="checked" '';\r\n                                                        }\r\n                                                 }\r\n					$e .= '' />''."\\n";\r\n					if ("MOD_VALUE[34]" != "") {\r\n						$e .= ''<label class="MOD_VALUE[34]" for="''.$element_name.''_''.$i.''">''.htmlspecialchars($v).''</label><br />''."\\n";        \r\n					} else  {\r\n						$e .= ''<label for="''.$element_name.''_''.$i.''">''.htmlspecialchars($v).''</label><br />''."\\n";   \r\n					}\r\n					}\r\n				}\r\n				break;\r\n                   //Robert Hartwig: START Feldart radio. Bekommt dieselbe css-Klasse wie checkbox\r\n			case ''radio'':\r\n                   // Robert Hartwig: Variables Trennzeichen\r\n				$p = explode("MOD_VALUE[32]", $element_default_value);\r\n				$i = 0;\r\n				foreach($p AS $k=>$v){\r\n				$i = $i + 1;		\r\n				$c = ($_REQUEST[$element_name] == $v) ? ''checked="checked"'':''''; \r\n				$e .= ''<input type="radio" name="''.$element_name.''" id="''.$element_name.''_''.$i.''" value="''.htmlspecialchars($v).''" ''.$c.'' />''."\\n";\r\n				if ("MOD_VALUE[34]" != "") {\r\n					$e .= ''<label class="MOD_VALUE[34]" for="''.$element_name.''_''.$i.''">''.htmlspecialchars($v).''</label><br />''."\\n";        \r\n				} else  {\r\n					$e .= ''<label for="''.$element_name.''_''.$i.''">''.htmlspecialchars($v).''</label><br />''."\\n";        \r\n				}\r\n				}\r\n				break;\r\n                   //Robert Hartwig: ENDE Feldart radio \r\n		}\r\n		\r\n		return $e;	\r\n	}\r\n\r\n	function get_value($element_type, $element_name, $element_default)\r\n	{\r\n		if(isset($_REQUEST[$element_name])){\r\n			$this->is_submitted = true;\r\n			return $this->_strip_slashes($_REQUEST[$element_name]);\r\n		}	\r\n		return $element_default;\r\n	}\r\n	\r\n	function validate($element_validate, $element_value)\r\n	{\r\n		if(! $this->is_submitted) return true;\r\n		\r\n		if($this->_strip_slashes($element_value) == ''Array'') {\r\n			for ($a = 0; $a < count($element_value); $a++ ) {\r\n				$valuelist .= $element_value[$a].",";\r\n				}\r\n			$element_value = $valuelist;\r\n			}	\r\n		\r\n		if(array_key_exists($element_validate, $this->rules)){\r\n	\r\n			if(! preg_match($this->rules[$element_validate], $element_value)){\r\n				$this->is_rule_violation = true;\r\n				return false;				\r\n			}\r\n		}\r\n		return true;\r\n	}\r\n\r\n	function _strip_slashes($in)\r\n	{\r\n		if (get_magic_quotes_gpc() != 0) {\r\n			return stripslashes($in);\r\n		}\r\n		return $in;\r\n	}\r\n}}\r\n\r\n$frm = new gooseberry_form;\r\n$frm->set_styles (array(   \r\n					''submit_error'' => $mvars[''15''],\r\n					''submit'' => $mvars[''16''],\r\n					''label'' => $mvars[''17''],\r\n					''label_error'' => $mvars[''18''] ? $mvars[''18''] : $mvars[''17''], \r\n					''legend'' => $mvars[''37''],\r\n					''legend_error'' => $mvars[''38''] ? $mvars[''38''] : $mvars[''37''], \r\n					''text'' => $mvars[''19''],\r\n					''textarea'' => $mvars[''20''],\r\n					''option'' => $mvars[''21''],\r\n					''multiple'' => $mvars[''31''],\r\n					''checkbox'' => $mvars[''22''],\r\n					''submitbutton'' => $mvars[''23'']\r\n					));\r\n\r\n$frm->set_row_tpl($mvars[''26'']);\r\n$frm->set_row_tpl2($mvars[''35'']);\r\n$frm->set_legend_tpl($mvars[''36'']);\r\n\r\n//Formular erstellen\r\n//n+0 aktiv\r\n//n+1 type\r\n//n+2 label\r\n//n+3 default\r\n//n+4 validate\r\nfor($i=100; array_key_exists(($i+1), $mvars); $i=$i+20){	\r\n	if($mvars[$i]){\r\n		$frm->set_formelement(''go_frm''.$i, $mvars[$i+1], $mvars[$i+3], $mvars[$i+4], $mvars[$i+2]);\r\n		if($mvars[''27''] == $i)\r\n			$frm_vals[''email_receiver''] = $_REQUEST[''go_frm''.$i];\r\n	}\r\n}\r\n\r\n//tXz: Formspam Guard activated? yes - check code input\r\nif($mvars[''1009''] == "1") {\r\n		$fsg[''match''] = fsg_checkmatch();\r\n		if ( $fsg[''match''] > 0 ) $frm->fsg_go = true;\r\n		elseif ( $fsg[''match''] < 0 ) $frm->fsg_go = false;\r\n} else $frm->fsg_go = true; \r\n\r\n$frm->parse_elements();\r\nif($frm->is_submitted()){\r\n	//tXz: +formspam guard input ok?\r\n	if($frm->is_validated() && $frm->fsg_go){\r\n		$frm_vals[''usermessage''] = ''<span class="''.$mvars[''16''].''">''.$mvars[''14''].''</span>'';\r\n		$inner_form = $frm->get_html_plain_form();\r\n		$frm_vals[''email_receiver''] = ($frm_vals[''email_receiver''] == '''') ? $mvars[''12'']:$frm_vals[''email_receiver''];\r\n		$mvars[''11''] = str_replace(''{side}'', $con_side[$idcatside][''name''], $mvars[''11'']);\r\n		$frm->send_mail($mvars[''12''], $frm_vals[''email_receiver''], $mvars[''11''], $lang_charset);\r\n	} else {\r\n		$frm_vals[''usermessage''] = ''<span class="''.$mvars[''15''].''">''.$mvars[''13''].'' ''.$frm->get_invalid_fields().''</span>'';\r\n		$inner_form = $frm->get_html_form();\r\n	}\r\n} else {\r\n	$frm_vals[''usermessage''] = '''';\r\n	$inner_form = $frm->get_html_form();\r\n}\r\n	\r\n\r\nif ($mvars[''33''] == '''') {\r\n	$frm_vals[''formstart''] = ''<form id="feedback" method="post" action="''.$con_side[$idcatside][''link''].''">''."\\n";\r\n} else {\r\n	$frm_vals[''formstart''] = ''<form id="feedback" method="post" action="''.$con_side[$idcatside][''link''].''" class="''.$mvars[''33''].''">''."\\n";\r\n}\r\n\r\n//Wenn mit fieldset\r\nif($mvars[''28''] == ''true''){\r\n	$frm_vals[''formstart''] .= ''<fieldset>''."\\n".''<legend>''.$mvars[''29''].''</legend>''."\\n";\r\n	$frm_vals[''formend''] = ''</fieldset>''."\\n";\r\n} else {\r\n	$frm_vals[''formstart''] .= ''<div>''."\\n";\r\n	$frm_vals[''formend''] = ''</div>''."\\n";\r\n}\r\n$frm_vals[''formend''] .= ''</form>''."\\n";\r\n$frm_vals[''submit_style''] = ( $mvars[''23''] != '''' ) ? '' class="''.$mvars[''23''].''" '' : '''';\r\n$frm_vals[''submit''] = ''<input type="submit" name="fmsubmit" ''. $frm_vals[''submit_style''] .'' value="''.$mvars[''24''].''" />''."\\n";\r\n$frm_vals[''formelementblock''] = $inner_form;\r\n\r\n$outer_form = $mvars[''25''];\r\nforeach($frm_vals AS $k=>$v){\r\n	$outer_form = str_replace(''{''.$k.''}'', $v, $outer_form);\r\n}\r\n\r\n//tXz: Formspam Guard tag-replace?\r\nif($mvars[''1009''] == "1") {\r\n		$fsg_code = fsg_formcode();\r\n		$outer_form  = str_replace(''{fsg_hiddenfield}'', $fsg_code[0], $outer_form);\r\n		($frm->fsg_go) ? $fsg_label_style=$mvars[''17''] : $fsg_label_style=$mvars[''18''];\r\n		$outer_form = str_replace(''{fsg_label}'', ''<span class="''.$fsg_label_style.''">''.$mvars[''1015''].''</span>'', $outer_form);\r\n		$outer_form = str_replace(''{fsg_code}'', $fsg_code[1], $outer_form);\r\n		$outer_form  = str_replace(''{fsg_inputfield}'', $fsg_code[2], $outer_form);\r\n} else {\r\n		$outer_form  = str_replace(''{fsg_hiddenfield}'', "", $outer_form);\r\n		$outer_form  = str_replace(''{fsg_label}'', "", $outer_form);\r\n		$outer_form  = str_replace(''{fsg_code}'', "", $outer_form);\r\n		$outer_form  = str_replace(''{fsg_inputfield}'', "", $outer_form);\r\n}\r\n\r\necho $outer_form;\r\n\r\nunset($frm, $fsg,$fsg_code,$fsg_label_style,$inner_form, $outer_form, $to_replace, $replacer,$frm_vals, $mvars);\r\n</DEDIPHP>', '', 0, 1, 1, 1099827904, 1149815792, 'mod:c7ec67c74104a45bde479c5d666bdc75:eaa9994a', '', '', '', 0, '0', 'Kontaktformular', '1');
INSERT INTO `dedi_mod` VALUES (33, 'web.de Routenplaner', '1.0', 'Interaktion', 'Routenplanerformular für web.de (Lizenzfrei)', '<?php\r\n\r\n// Zielangaben Name\r\n$mip_form[''0''][''cat''] = ''txt'';\r\n$mip_form[''0''][''type''] = '''';\r\n$mip_form[''0''][''desc''] = ''Name des Zieles'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''Name des Zieles'';\r\n$mip_form[''0''][''tab''] = ''0'';\r\n\r\n// Zielangaben Straße\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''type''] = '''';\r\n$mip_form[''1''][''desc''] = ''Strasse und Hausnummer'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''Strasse und Hausnummer'';\r\n$mip_form[''1''][''tab''] = ''0'';\r\n\r\n// Zielangaben Plz\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''type''] = '''';\r\n$mip_form[''2''][''desc''] = ''Postleitzahl (D)'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''Postleitzahl'';\r\n$mip_form[''2''][''tab''] = ''0'';\r\n\r\n// Zielangaben Ort\r\n$mip_form[''3''][''cat''] = ''txt'';\r\n$mip_form[''3''][''type''] = '''';\r\n$mip_form[''3''][''desc''] = ''Ortsname'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''Ortsname'';\r\n$mip_form[''3''][''tab''] = ''0'';\r\n\r\n// Template &uuml;ber dem Routenplaner\r\n$mip_form[''4''][''desc''] = ''Template &uuml;ber dem Routenplaner (z.B. Einleitungstext)'';\r\n$mip_form[''4''][''cat''] = ''txtarea'';\r\n$mip_form[''4''][''rows''] = ''3'';\r\n$mip_form[''4''][''type''] = ''long'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''cms_val_default''] = ''F&uuml;r Ihre Reiseplanung nutzen unseren Routenplaner. Geben Sie Ihre Startadresse ein und klicken Sie auf Route berechnen'';\r\n\r\n// CSS Aangaben f&uuml;r die Schrift\r\n$mip_form[''5''][''desc''] = ''Stylesheet für die Schrift'';\r\n$mip_form[''5''][''cat''] = ''app_css'';\r\n$mip_form[''5''][''output_cat''] = ''option'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''flag''] = ''class_only'';\r\n\r\n\r\n// Formularfeld Rahmenbreite in Pixel\r\n$mip_form[''6''][''desc''] = ''Formularfeld Rahmenbreite in Pixel'';\r\n$mip_form[''6''][''cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''option_desc''][''0''] = ''Standard'';\r\n$mip_form[''6''][''option_desc''][''1''] = ''1 Pixel'';\r\n$mip_form[''6''][''option_desc''][''2''] = ''2 Pixel'';\r\n$mip_form[''6''][''option_desc''][''3''] = ''3 Pixel'';\r\n$mip_form[''6''][''option_val''][''0''] = '''';\r\n$mip_form[''6''][''option_val''][''1''] = ''border: 1px'';\r\n$mip_form[''6''][''option_val''][''2''] = ''border: 2px'';\r\n$mip_form[''6''][''option_val''][''3''] = ''border: 3px'';\r\n\r\n\r\n// Formularfelder Rahmenfarbe\r\n$mip_form[''7''][''cat''] = ''txt'';\r\n$mip_form[''7''][''type''] = '''';\r\n$mip_form[''7''][''desc''] = ''Formularfelder Rahmenfarbe'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''CCCCC'';\r\n$mip_form[''7''][''tab''] = ''0'';\r\n\r\n\r\n// Formularfelder Hintergrundfarbe\r\n$mip_form[''8''][''cat''] = ''txt'';\r\n$mip_form[''8''][''type''] = '''';\r\n$mip_form[''8''][''desc''] = ''Formularfelder Hintergrundfarbe'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''ffffff'';\r\n$mip_form[''8''][''tab''] = ''0'';\r\n\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''7'']);\r\nmip_formsp($mip_form[''8'']);\r\nunset($mip_form);\r\n?>', '<p><span class="MOD_VALUE[5]">MOD_VALUE[4]</p>\r\n\r\n<form name="webderoute2" method="post" target="webde" action="http://portale.web.de/Auto/Routenplaner/">\r\n<input type="hidden" name="tostreet" value="MOD_VALUE[1]">\r\n<input type="hidden" name="tocity" value="MOD_VALUE[3]">\r\n<input type="hidden" name="toplz" value="MOD_VALUE[2]">\r\n<input type="hidden" name="tocountry" value="DEU">\r\n\r\n<div align="center">\r\n<center>\r\n<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="510">\r\n<tr>\r\n<td width="190">\r\n    \r\n<input name="fromstreet" value="Straße" size="12" style="MOD_VALUE[6] solid #MOD_VALUE[7]; width: 177; background-color:MOD_VALUE[8]" tabindex="1" onfocus="javascript:if (document.webderoute2.fromstreet.value == ''Straße'') document.webderoute2.fromstreet.value = '''';"></td>\r\n<td width="10">&nbsp;</td>\r\n<td width="170" rowspan="3" align="left" valign="top">\r\n<span class="MOD_VALUE[5]">\r\n<b>Ihr Ziel:</b><br>MOD_VALUE[0]<br>\r\nMOD_VALUE[1]<br>\r\nMOD_VALUE[2]&nbsp;MOD_VALUE[3] </span>\r\n</td>\r\n</tr>\r\n<tr>\r\n<td width="190">\r\n\r\n<input name="fromplz" value="PLZ" size="3" style="MOD_VALUE[6] solid #MOD_VALUE[7]; width: 50; background-color:MOD_VALUE[8]"  maxlength="10" tabindex="2" onfocus="javascript:if (document.webderoute2.fromplz.value == ''PLZ'') document.webderoute2.fromplz.value = '''';">\r\n<input name="fromcity" value="Ort" size="10" style="MOD_VALUE[6] solid #MOD_VALUE[7]; width: 123; background-color:MOD_VALUE[8]" tabindex="3" onfocus="javascript:if (document.webderoute2.fromcity.value == ''Ort'') document.webderoute2.fromcity.value = '''';"></td>\r\n<td width="10">&nbsp;</td>\r\n</tr>\r\n<tr>\r\n<td width="190">\r\n      \r\n<select name="fromcountry" tabindex="4" style="MOD_VALUE[6] solid #MOD_VALUE[7]; width: 179; background-color:MOD_VALUE[8]">\r\n<option value="BEL">Belgien</option>\r\n<option value="DNK">Dänemark</option>\r\n<option value="DEU" selected>Deutschland</option>\r\n<option value="FRA">Frankreich</option>\r\n<option value="GBR">Großbritannien</option>\r\n<option value="ITA">Italien</option>\r\n<option value="LIE">Liechtenstein</option>\r\n<option value="LUX">Luxemburg</option>\r\n<option value="NLD">Niederlande</option>\r\n<option value="NOR">Norwegen</option>\r\n<option value="AUT">Österreich</option>\r\n<option value="PRT">Portugal</option>\r\n<option value="SWE">Schweden</option>\r\n<option value="CHE">Schweiz</option>\r\n<option value="ESP">Spanien</option>\r\n</select></td>\r\n<td width="10">&nbsp;</td>\r\n</tr>\r\n<tr>\r\n<td width="190">\r\n      \r\n&nbsp;</td>\r\n<td width="10">&nbsp;</td>\r\n<td width="170" align="left" valign="top">\r\n&nbsp;</td>\r\n</tr>\r\n<tr>\r\n<td width="190">\r\n\r\n<input type="submit" value="Route berechnen" name="absenden" style="MOD_VALUE[6] solid #MOD_VALUE[7]; width: 179; background-color:MOD_VALUE[8]"></td>\r\n<td width="10">&nbsp;</td>\r\n<td width="170"><font face="Arial" size="1" color="#000000">\r\nPowered by web.de</font></td>\r\n</tr>\r\n</table>\r\n</center>\r\n</div>\r\n</form>\r\n</span>', '', 0, 1, 1, 1077454785, 1132967168, 'mod:a21e750c31045cc788236fab01f287ac:d63b7f02', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (34, 'Suchmodul', '1.2.4', 'Interaktion', 'Für einfache und erweiterte Suche. Ergebnis kann auf anderer Seite ausgegeben werden.', '<?php\r\n\r\n//configmode\r\n$mip_form[''99''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''99''][''cat''] = ''option'';\r\n$mip_form[''99''][''size''] = ''1'';\r\n$mip_form[''99''][''option_desc''][] = ''Normal'';\r\n$mip_form[''99''][''option_val''][] =  '''';\r\n$mip_form[''99''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''99''][''option_val''][] =  ''advanced'';\r\n$mip_form[''99''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''99''][''option_val''][] =  ''hidden'';\r\n$mip_form[''99''][''cms_var''] = ''MOD_VAR[99]'';\r\n$mip_form[''99''][''cms_val''] = $dedi_mod[''value''][''99''];\r\n$mip_form[''99''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''99'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(26,22,23,24,25,37,30,31,32,33,34,35,36,38);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''99''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''99''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple, advanced and all config (not hidden config)\r\nelse if($dedi_mod[''value''][''99''] == '''' || $dedi_mod[''value''][''99''] == ''advanced''){\r\n\r\n\r\n\r\n// Schriftart Link/Titel\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font'']." Link/Titel";\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''class_only'';\r\n\r\n// Schriftart Beschreibung\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." Beschreibung";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Schriftart Feldbezeichner\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." Feldbezeichner";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n// Schriftart Eingabefelder\r\n$mip_form[''3''][''desc''] = $mod_lang[''gen_font'']." Eingabefelder";\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''flag''] = ''class_only'';\r\n\r\n// Schriftart Fehlermeldung\r\n$mip_form[''4''][''desc''] = $mod_lang[''gen_font'']." Fehlermeldung";\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n\r\n// Schriftart Navigation\r\n$mip_form[''5''][''desc''] = $mod_lang[''gen_font'']." Navigation";\r\n$mip_form[''5''][''cat''] = ''app_css'';\r\n$mip_form[''5''][''output_cat''] = ''option'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''flag''] = ''class_only'';\r\n\r\n// ----------------------------------------------------------------------------\r\n\r\n// Formulartemplate\r\n$mip_form[''6''][''cat''] = ''option'';\r\n$mip_form[''6''][''type''] = '''';\r\n$mip_form[''6''][''desc''] = ''Suchformular: <small>{modus [titel]}</small>'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = ''1'';\r\n$mip_form[''6''][''option_desc''][''0''] = ''kein Formular'';\r\n$mip_form[''6''][''option_val''][''0''] = ''none'';\r\n$mip_form[''6''][''option_desc''][''1''] = ''Template 1'';\r\n$mip_form[''6''][''option_val''][''1''] = ''1'';\r\n$mip_form[''6''][''option_desc''][''2''] = ''Template 2'';\r\n$mip_form[''6''][''option_val''][''2''] = ''2'';\r\n\r\n// Suchen in\r\n$mip_form[''7''][''cat''] = ''chk'';\r\n$mip_form[''7''][''type''] = '''';\r\n$mip_form[''7''][''desc''] = ''Felder durchsuchen: <small>{where}</small>'';\r\n$mip_form[''7''][''option_desc''][''0''] = ''Titel'';\r\n$mip_form[''7''][''option_var''][''0''] = ''MOD_VAR[70]'';\r\n$mip_form[''7''][''option_val''][''0''] = $dedi_mod[''value''][''70''];\r\n$mip_form[''7''][''option_val_select''][''0''] = ''B.title'';\r\n$mip_form[''7''][''option_desc''][''1''] = ''Notizen'';\r\n$mip_form[''7''][''option_var''][''1''] = ''MOD_VAR[71]'';\r\n$mip_form[''7''][''option_val''][''1''] = $dedi_mod[''value''][''71''];\r\n$mip_form[''7''][''option_val_select''][''1''] = ''B.summary'';\r\n$mip_form[''7''][''option_desc''][''2''] = ''Beschreibung'';\r\n$mip_form[''7''][''option_var''][''2''] = ''MOD_VAR[72]'';\r\n$mip_form[''7''][''option_val''][''2''] = $dedi_mod[''value''][''72''];\r\n$mip_form[''7''][''option_val_select''][''2''] = ''B.meta_description'';\r\n$mip_form[''7''][''option_desc''][''3''] = ''Keywords'';\r\n$mip_form[''7''][''option_var''][''3''] = ''MOD_VAR[73]'';\r\n$mip_form[''7''][''option_val''][''3''] = $dedi_mod[''value''][''73''];\r\n$mip_form[''7''][''option_val_select''][''3''] = ''B.meta_keywords'';\r\n$mip_form[''7''][''option_desc''][''4''] = ''Textbody'';\r\n$mip_form[''7''][''option_var''][''4''] = ''MOD_VAR[74]'';\r\n$mip_form[''7''][''option_val''][''4''] = $dedi_mod[''value''][''74''];\r\n$mip_form[''7''][''option_val_select''][''4''] = ''A.value'';\r\n\r\n// Ausgabe von\r\n$mip_form[''8''][''cat''] = ''option'';\r\n$mip_form[''8''][''type''] = '''';\r\n$mip_form[''8''][''desc''] = ''Im Ergebnis mit anzeigen: <small>{what}</small>'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''body'';\r\n$mip_form[''8''][''option_desc''][''0''] = ''keine'';\r\n$mip_form[''8''][''option_val''][''0''] = ''none'';\r\n$mip_form[''8''][''option_desc''][''1''] = ''Notizen'';\r\n$mip_form[''8''][''option_val''][''1''] = ''summary'';\r\n$mip_form[''8''][''option_desc''][''2''] = ''Beschreibung'';\r\n$mip_form[''8''][''option_val''][''2''] = ''meta_description'';\r\n$mip_form[''8''][''option_desc''][''3''] = ''Textausschnitt'';\r\n$mip_form[''8''][''option_val''][''3''] = ''body'';\r\n\r\n// Suchvariante\r\n$mip_form[''9''][''cat''] = ''option'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = ''logische Verbindung: <small>{how}</small>'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''AND'';\r\n$mip_form[''9''][''option_desc''][''0''] = ''UND'';\r\n$mip_form[''9''][''option_val''][''0''] = ''AND'';\r\n$mip_form[''9''][''option_desc''][''1''] = ''ODER'';\r\n$mip_form[''9''][''option_val''][''1''] = ''OR'';\r\n$mip_form[''9''][''option_desc''][''2''] = ''exakt'';\r\n$mip_form[''9''][''option_val''][''2''] = ''QUOT'';\r\n\r\n// Sortieren nach\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''type''] = '''';\r\n$mip_form[''10''][''desc''] = ''Sortieren nach: <small>{sort}</small>'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''C.idcatside'';\r\n$mip_form[''10''][''option_desc''][''0''] = ''Index'';\r\n$mip_form[''10''][''option_val''][''0''] = ''C.idcatside'';\r\n$mip_form[''10''][''option_desc''][''1''] = ''Titel'';\r\n$mip_form[''10''][''option_val''][''1''] = ''B.title'';\r\n$mip_form[''10''][''option_desc''][''2''] = ''Notizen'';\r\n$mip_form[''10''][''option_val''][''2''] = ''B.summary'';\r\n$mip_form[''10''][''option_desc''][''3''] = ''Beschreibung'';\r\n$mip_form[''10''][''option_val''][''3''] = ''B.meta_description'';\r\n$mip_form[''10''][''option_desc''][''4''] = ''Keywords'';\r\n$mip_form[''10''][''option_val''][''4''] = ''B.meta_keywords'';\r\n\r\n// Ergebnisse pro Seite\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Ergebnisse pro Seite: <small>(0 = alle)</small>'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''5'';\r\n\r\n// Ausgabe-Ziel\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''type''] = '''';\r\n$mip_form[''12''][''desc''] = ''Ausgabeziel: <small>(idcatside angeben [0=hier])</small>'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''0'';\r\n\r\n// ----------------------------------------------------------------------------\r\n\r\n// Suchformular 1\r\n$mip_form[''13''][''cat''] = ''txtarea'';\r\n$mip_form[''13''][''rows''] = ''3'';\r\n$mip_form[''13''][''type''] = ''long'';\r\n$mip_form[''13''][''desc''] = ''Suchformular Template 1:<br><small>{search},{submit},{where},{what},{how},{sort},{modus [titel]}</small>'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''cms_val_default''] = ''{search} {submit} {modus [Erweitert]}'';\r\n\r\n// Suchformular 2\r\n$mip_form[''14''][''cat''] = ''txtarea'';\r\n$mip_form[''14''][''rows''] = ''3'';\r\n$mip_form[''14''][''type''] = ''long'';\r\n$mip_form[''14''][''desc''] = ''Suchformular Template 2:<br><small>{search},{submit},{where},{what},{how},{sort},{modus\r\n [titel]}</small>'';\r\n$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''cms_val_default''] = ''{search} {submit} {modus [Einfach]}<br />\r\n{where}<br />zusätzlich anzeigen:<br />\r\n{what}<br />Suchmethode:<br />\r\n{how}<br />Sortierung:<br />\r\n{sort}'';\r\n\r\n// Liste pre\r\n$mip_form[''15''][''cat''] = ''txtarea'';\r\n$mip_form[''15''][''rows''] = ''1'';\r\n$mip_form[''15''][''type''] = ''long'';\r\n$mip_form[''15''][''desc''] = ''vor der Ergebnisliste<br><small>{count}</small>'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''cms_val_default''] = ''<p>Insgesamt <strong>{count}</strong> Seiten gefunden</p>'';\r\n\r\n// Liste\r\n$mip_form[''16''][''cat''] = ''txtarea'';\r\n$mip_form[''16''][''rows''] = ''1'';\r\n$mip_form[''16''][''type''] = ''long'';\r\n$mip_form[''16''][''desc''] = ''Ergebnis:<br><small>{nr},{link},{descr}</small>'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''cms_val_default''] = ''{nr}. <strong>{link}</strong>{descr}'';\r\n\r\n// Liste post\r\n$mip_form[''17''][''cat''] = ''txtarea'';\r\n$mip_form[''17''][''rows''] = ''1'';\r\n$mip_form[''17''][''type''] = ''long'';\r\n$mip_form[''17''][''desc''] = ''nach der Ergebnisliste'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''cms_val_default''] = ''<hr  />'';\r\n\r\n\r\n// Navigation\r\n$mip_form[''18''][''cat''] = ''txtarea'';\r\n$mip_form[''18''][''rows''] = ''3'';\r\n$mip_form[''18''][''type''] = ''long'';\r\n$mip_form[''18''][''desc''] = ''Navigation:<br><small>{nav}</small>'';\r\n$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''cms_val_default''] = ''{nav}'';\r\n\r\n// Seite nicht gefunden\r\n$mip_form[''19''][''cat''] = ''txt'';\r\n$mip_form[''19''][''type''] = ''long'';\r\n$mip_form[''19''][''desc''] = ''Meldung keine Suchergebnisse:'';\r\n$mip_form[''19''][''cms_var''] = ''MOD_VAR[19]'';\r\n$mip_form[''19''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n$mip_form[''19''][''cms_val_default''] = ''Es wurden keine Seiten gefunden die Ihrer Anfrage entsprechen'';\r\n\r\n\r\n// Suche nur in dieser Sprache\r\n$mip_form[''20''][''cat''] = ''chk'';\r\n$mip_form[''20''][''type''] = '''';\r\n$mip_form[''20''][''desc''] = ''Suche auf alle Sprachen ausdehnen'';\r\n$mip_form[''20''][''option_var''][''0''] = ''MOD_VAR[20]'';\r\n$mip_form[''20''][''option_val''][''0''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''20''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''20''][''option_val_select''][''0''] = ''true'';\r\n\r\n\r\n// Absenden Button\r\n$mip_form[''21''][''cat''] = ''txt'';\r\n$mip_form[''21''][''type''] = ''long'';\r\n$mip_form[''21''][''desc''] = ''Absende Button (Suche):'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''21''][''cms_val_default''] = ''Suche'';\r\n\r\n\r\n// ----------------------------------------------------------------------------\r\n\r\n$mip_form[''26''][''cat''] = ''desc'';\r\n$mip_form[''26''][''type''] = '''';\r\n$mip_form[''26''][''desc''] = "<hr /><strong>Ein- / Ausschließen:</strong><br />";\r\n$mip_form[''26''][''tab''] = ''0'';\r\n\r\n// Optionen\r\n$mip_form[''22''][''cat''] = ''option'';\r\n$mip_form[''22''][''type''] = '''';\r\n$mip_form[''22''][''desc''] = ''Seiten und Ordner aus der Suche auszuschließen'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''22''][''cms_val_default''] = ''all'';\r\n$mip_form[''22''][''option_desc''][''0''] = ''Alle erlauben, einige verbieten'';\r\n$mip_form[''22''][''option_val''][''0''] = ''all'';\r\n$mip_form[''22''][''option_desc''][''1''] = ''Alle verbieten, einige erlauben'';\r\n$mip_form[''22''][''option_val''][''1''] = ''none'';\r\n\r\n// Erlaubte/ Verbotene Kategorien\r\n$mip_form[''23''][''desc''] = ''Erlaubte / Verbotene Kategorien <br>Die Auswahl Root entspricht keiner Auswahl'';\r\n$mip_form[''23''][''cat''] = ''app_cat'';\r\n$mip_form[''23''][''output_cat''] = ''option'';\r\n$mip_form[''23''][''without_this_cat''] = true;\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n$mip_form[''23''][''cms_val_default''] = ''root'';\r\n$mip_form[''23''][''flag''] = ''multiple'';\r\n$mip_form[''23''][''size''] = ''5'';\r\n\r\n// Erlaubte/ Verbotene Seiten\r\n$mip_form[''24''][''cat''] = ''txt'';\r\n$mip_form[''24''][''type''] = '''';\r\n$mip_form[''24''][''desc''] = ''Erlaubte/ Verbotene Seiten <small>kommagetrennt anhand idcatside eintragen</small>'';\r\n$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n$mip_form[''24''][''cms_val_default''] = ''0'';\r\n\r\n//Featureauswahl\r\n$mip_form[''25''][''desc''] = ''Eingrenzung der Suche auf bestimmte Contenttypen'';\r\n$mip_form[''25''][''cat''] = ''option'';\r\n$mip_form[''25''][''flag''] = ''multiple'';\r\n$mip_form[''25''][''size''] = ''7'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''25''][''cms_val_default''] = ''true'';\r\n$mip_form[''25''][''option_desc''][] = ''Alle Felder durchsuchen'';\r\n$mip_form[''25''][''option_val''][] =  ''true'';\r\n$mip_form[''25''][''option_desc''][] = ''text'';\r\n$mip_form[''25''][''option_val''][] =  ''1'';\r\n$mip_form[''25''][''option_desc''][] = ''textarea'';\r\n$mip_form[''25''][''option_val''][] =  ''3'';\r\n$mip_form[''25''][''option_desc''][] = ''wysiwyg'';\r\n$mip_form[''25''][''option_val''][] =  ''2'';\r\n$mip_form[''25''][''option_desc''][] = ''wysiwyg2'';\r\n$mip_form[''25''][''option_val''][] =  ''13'';\r\n$mip_form[''25''][''option_desc''][] = ''link'';\r\n$mip_form[''25''][''option_val''][] =  ''7'';\r\n$mip_form[''25''][''option_desc''][] = ''file'';\r\n$mip_form[''25''][''option_val''][] =  ''11'';\r\n$mip_form[''25''][''option_desc''][] = ''sourcecode'';\r\n$mip_form[''25''][''option_val''][] =  ''9'';\r\n\r\n// ----------------------------------------------------------------------------\r\n\r\n$mip_form[''37''][''cat''] = ''desc'';\r\n$mip_form[''37''][''type''] = '''';\r\n$mip_form[''37''][''desc''] = "<hr /><strong>Navigation</strong>";\r\n$mip_form[''37''][''tab''] = ''0'';\r\n\r\n// vor/zurück-links anzeigen\r\n$mip_form[''30''][''desc''] = ''Vor/Zur&uuml;ck-Links anzeigen'';\r\n$mip_form[''30''][''cat''] = ''option'';\r\n$mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n$mip_form[''30''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''30''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''30''][''option_val''][''0''] = ''true'';\r\n$mip_form[''30''][''option_val''][''1''] = ''false'';\r\n$mip_form[''30''][''cms_val_default''] = ''true'';\r\n\r\n//\r\n\r\n// vor/zurück-linktexte definieren\r\nif ($dedi_mod[''value''][''30''] == ''true'') {\r\n        // zurück-link\r\n        $mip_form[''33''][''desc''] = "Zurück-Linktext";\r\n        $mip_form[''33''][''cat''] = ''txt'';\r\n        $mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n        $mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n        $mip_form[''33''][''cms_val_default''] = ''&lt;&lt;'';\r\n\r\n        // weiter-link\r\n        $mip_form[''34''][''desc''] = "Weiter-Linktext";\r\n        $mip_form[''34''][''cat''] = ''txt'';\r\n        $mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n        $mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n        $mip_form[''34''][''cms_val_default''] = ''&gt;&gt;'';\r\n} else {\r\n        // zurück-link\r\n        $mip_form[''33''][''cat''] = ''hidden'';\r\n        $mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n        $mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n        $mip_form[''33''][''cms_val_default''] = ''&lt;&lt;'';\r\n\r\n        // weiter-link\r\n        $mip_form[''34''][''cat''] = ''hidden'';\r\n        $mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n        $mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n        $mip_form[''34''][''cms_val_default''] = ''&gt;&gt;'';\r\n}\r\n\r\n// anzahl der angezeigten Seitenlinks\r\n$mip_form[''31''][''desc''] = "Navigation: <small>(0 = Floating aus, 1-n = Max. angezeigter Links)</small>\\n";\r\n$mip_form[''31''][''cat''] = ''txt'';\r\n$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n$mip_form[''31''][''cms_val_default''] = ''0'';\r\n\r\n// separatoren\r\n$mip_form[''32''][''desc''] = "Separator zwischen den Seitenlinks <small>(leer = default-separator)</small>";\r\n$mip_form[''32''][''cat''] = ''txt'';\r\n$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n$mip_form[''32''][''cms_val_default''] = '''';\r\n\r\n// Aktuelle Galerieseite verlinken?\r\n$mip_form[''38''][''desc''] = ''Soll die aktuelle Seite in der Navigation verlinkt werden?'';\r\n$mip_form[''38''][''cat''] = ''option'';\r\n$mip_form[''38''][''cms_var''] = ''MOD_VAR[38]'';\r\n$mip_form[''38''][''cms_val''] = $dedi_mod[''value''][''38''];\r\n$mip_form[''38''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''38''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''38''][''option_val''][''0''] = ''true'';\r\n$mip_form[''38''][''option_val''][''1''] = ''false'';\r\n$mip_form[''38''][''cms_val_default''] = ''true'';\r\n\r\n//\r\n//Schriftart 2\r\n$mip_form[''35''][''desc''] = $mod_lang[''gen_font'']." {font2} (Seitenlink in der Navigation+weiter (>>) in Navi)";\r\n$mip_form[''35''][''cat''] = ''app_css'';\r\n$mip_form[''35''][''output_cat''] = ''option'';\r\n$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n\r\n//Schriftart 3\r\n$mip_form[''36''][''desc''] = $mod_lang[''gen_font'']." {font3} (Aktueller Seitenlink in der Navigation)<BR><BR>\\n";\r\n$mip_form[''36''][''cat''] = ''app_css'';\r\n$mip_form[''36''][''output_cat''] = ''option'';\r\n$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n\r\n\r\n// Liste pre\r\n$mip_form[''40''][''cat''] = ''txtarea'';\r\n$mip_form[''40''][''rows''] = ''1'';\r\n$mip_form[''40''][''type''] = ''long'';\r\n$mip_form[''40''][''desc''] = ''Einleitung der Suche'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''cms_val_default''] = '''';\r\n\r\n// Liste post\r\n$mip_form[''41''][''cat''] = ''txtarea'';\r\n$mip_form[''41''][''rows''] = ''1'';\r\n$mip_form[''41''][''type''] = ''long'';\r\n$mip_form[''41''][''desc''] = ''Ende der Suche'';\r\n$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n$mip_form[''41''][''cms_val_default''] = '''';\r\n\r\n// ----------------------------------------------------------------------------\r\n\r\n$mip_form[''28''][''cat''] = ''desc'';\r\n$mip_form[''28''][''type''] = '''';\r\n$mip_form[''28''][''desc''] = "<B><U>CSS-Einstellungen</U></B><BR>";\r\n$mip_form[''28''][''tab''] = ''0'';\r\n\r\n$mip_form[''29''][''cat''] = ''desc'';\r\n$mip_form[''29''][''type''] = '''';\r\n$mip_form[''29''][''desc''] = "<hr /><strong>Voreinstellungen</strong><br />";\r\n$mip_form[''29''][''tab''] = ''0'';\r\n\r\n$mip_form[''27''][''cat''] = ''desc'';\r\n$mip_form[''27''][''type''] = '''';\r\n$mip_form[''27''][''desc''] = "<hr /><strong>Templates:</strong><br />";\r\n$mip_form[''27''][''tab''] = ''0'';\r\n\r\n\r\n// Ausgabe\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''99''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n\r\nmip_formsp($mip_form[''28'']);	// Beschreibung\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\n\r\nmip_formsp($mip_form[''29'']);	// Beschreibung\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''7'']);\r\nmip_formsp($mip_form[''8'']);\r\nmip_formsp($mip_form[''9'']);\r\nmip_formsp($mip_form[''10'']);\r\nmip_formsp($mip_form[''11'']);\r\nmip_formsp($mip_form[''12'']);\r\nmip_formsp($mip_form[''20'']);\r\nmip_formsp($mip_form[''21'']);\r\n\r\nmip_formsp($mip_form[''27'']);	// Beschreibung\r\nmip_formsp($mip_form[''13'']);\r\necho "<br>";\r\nmip_formsp($mip_form[''14'']);\r\necho "<br>";\r\nmip_formsp($mip_form[''15'']);\r\nmip_formsp($mip_form[''16'']);\r\nmip_formsp($mip_form[''17'']);\r\necho "<br>";\r\nmip_formsp($mip_form[''18'']);\r\nmip_formsp($mip_form[''19'']);\r\n\r\nmip_formsp($mip_form[''26'']);	// Beschreibung\r\nmip_formsp($mip_form[''22'']);\r\nmip_formsp($mip_form[''23'']);\r\nmip_formsp($mip_form[''24'']);\r\nmip_formsp($mip_form[''25'']);\r\n\r\nmip_formsp($mip_form[''37'']);	// Beschreibung\r\nmip_formsp($mip_form[''30'']);\r\nmip_formsp($mip_form[''33'']);\r\nmip_formsp($mip_form[''34'']);\r\nmip_formsp($mip_form[''31'']);\r\nmip_formsp($mip_form[''32'']);\r\nmip_formsp($mip_form[''38'']);\r\nmip_formsp($mip_form[''35'']);\r\nmip_formsp($mip_form[''36'']);\r\nmip_formsp($mip_form[''40'']);\r\nmip_formsp($mip_form[''41'']);\r\n\r\n\r\n// ----------------------------------------------------------------------------\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\ninclude_once($dedi_path.''inc/fnc.search.php'');\r\n\r\n//  zur Fehlersuche\r\n//if(isset($test))\r\n//{\r\n//    $mod[''test''] = "true";\r\n//}\r\n\r\n##########################################################################################################################\r\n\r\necho "MOD_VALUE[40]";\r\n\r\nif ( !function_exists(''suchmodul_createPageLinks'') ) {\r\nfunction suchmodul_createPageLinks($isFloating, $separator, $showNavLinks,$id) {\r\n        global $mod, $cfg_client, $idcatside, $dedi_mod;\r\n        if ($isFloating > 0) {\r\n                $floatdiff = ceil($isFloating / 2);\r\n\r\n                $start = $id - $floatdiff;\r\n                if ($start > $mod["anz"]) $start = $mod["anz"] - $floatdiff;\r\n                if ($start < 1) $start = 1;\r\n\r\n                $stop = $id + $floatdiff;\r\n                if ($stop > $mod["anz"]) $stop = $mod["anz"];\r\n        } else {\r\n                $start = 1;\r\n                $stop = $mod["anz"];\r\n        }\r\n\r\n        if ($id > 1 && $showNavLinks == ''true'') {\r\n                $previd = $id - 1;\r\n                $returnvalue .= "\\n<a href=\\"".$mod[''idcatlink'']."&amp;page=".$previd.$mod[''query'']."\\">MOD_VALUE[33]</a>\\n";\r\n        }\r\n\r\n        for ( $mod["pagecounter"] = $start; $mod["pagecounter"] <= $stop; $mod["pagecounter"]++ )\r\n        {\r\n                if ($mod["pagecounter"] > $start) $returnvalue .= $separator;\r\n                if ($mod["pagecounter"] == $id) {\r\n                       if ("MOD_VALUE[38]" == ''false''){\r\n                        $returnvalue .= "<span class=\\"MOD_VALUE[36]\\" >[".$mod["pagecounter"]."]</span>";\r\n                        } else {\r\n                        $returnvalue .= "\\n<a class=\\"MOD_VALUE[36]\\" href=\\"".$mod[''idcatlink'']."&amp;page=".$mod["pagecounter"].$mod[''query'']."\\">[".$mod["pagecounter"]."]</a>";\r\n                        }\r\n                } else {\r\n                        $returnvalue .= "\\n<a class=\\"MOD_VALUE[35]\\" href=\\"".$mod[''idcatlink'']."&amp;page=".$mod["pagecounter"].$mod[''query'']."\\">".$mod["pagecounter"]."</a>";\r\n                }\r\n        }\r\n\r\n        if ($id < $mod["anz"] && $showNavLinks == ''true'') {\r\n                $nextid = $id + 1;\r\n                $returnvalue .= "\\n<a class=\\"MOD_VALUE[35]\\" href=\\"".$mod[''idcatlink'']."&amp;page=".$nextid.$mod[''query'']."\\">MOD_VALUE[34]</a>";\r\n        }\r\n        return $returnvalue;\r\n}  // end function\r\n\r\n} // end if exist\r\n\r\n\r\n\r\n###########################\r\n\r\n\r\n$mod[''hidden''] = "";\r\nif("MOD_VALUE[6]" != "none"){\r\n        // Suchformular aufbauen\r\n        if(!$modus)\r\n        {\r\n                $modus = "MOD_VALUE[6]";\r\n                $mod[''newmodus''] = false;\r\n        } else {\r\n                $mod[''newmodus''] = true;\r\n        }\r\n        if($modus == "1"){ $mod[''tpl_form''] = "MOD_VALUE[13]"; $mod[''xmodus''] = "2";} else { $mod[''tpl_form''] = "MOD_VALUE[14]"; $mod[''xmodus''] = "1";}\r\n        $mod[''tpl_form''] = str_replace("{search}","\\n<input type=''text'' name=''suche'' value=''$suche'' class=''MOD_VALUE[3]'' />",$mod[''tpl_form'']);\r\n        $mod[''tpl_form''] = str_replace("{submit}","\\n<input type=''submit'' value=''MOD_VALUE[21]'' class=''button'' />",$mod[''tpl_form'']);\r\n        if ($suche == "") {\r\n        	$mod[''tpl_form''] = preg_replace("/\\{modus \\[([^\\]]+)\\]\\}/","\\n<a class=''MOD_VALUE[5]'' href=''".$con_side[$idcatside][''link'']."&amp;modus=".$mod[''xmodus'']."''>\\\\1</a>",$mod[''tpl_form'']);\r\n        } else {\r\n        	$mod[''tpl_form''] = preg_replace("/\\{modus \\[([^\\]]+)\\]\\}/","\\n<a class=''MOD_VALUE[5]'' href=''".$con_side[$idcatside][''link'']."&amp;suche=$suche&amp;modus=".$mod[''xmodus'']."&amp;w_70=$w_70&amp;w_71=$w_71&amp;w_72=$w_72&amp;w_73=$w_73&amp;w_74=$w_74''>\\\\1</a>",$mod[''tpl_form'']);\r\n        }\r\n        // where - Suche in folgenden Feldern\r\n        if(strstr($mod[''tpl_form''],"{where}")){\r\n                $mod[''repl_string''] = "\\n<input type=''checkbox'' name=''w_70'' id=''w_70'' value=''B.title'' ";\r\n                if($w_70 || ("MOD_VALUE[70]" != "" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= "checked=\\"checked\\"";}\r\n                $mod[''repl_string''] .=" /><label class=''MOD_VALUE[2]'' for=''w_70''> Titel</label><br />\\n<input type=''checkbox'' name=''w_71'' id=''w_71'' value=''B.summary'' ";\r\n                if($w_71 || ("MOD_VALUE[71]" != "" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= "checked=\\"checked\\"";}\r\n                $mod[''repl_string''] .=" /><label class=''MOD_VALUE[2]'' for=''w_71''> Notizen</label><br />\\n<input type=''checkbox'' name=''w_72'' id=''w_72'' value=''B.meta_description'' ";\r\n                if($w_72 || ("MOD_VALUE[72]" != "" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= "checked=\\"checked\\"";}\r\n                $mod[''repl_string''] .=" /><label class=''MOD_VALUE[2]'' for=''w_72''> Beschreibung</label><br />\\n<input type=''checkbox'' name=''w_73'' id=''w_73'' value=''B.meta_keywords'' ";\r\n                if($w_73 || ("MOD_VALUE[73]" != "" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= "checked=\\"checked\\"";}\r\n                $mod[''repl_string''] .=" /><label class=''MOD_VALUE[2]'' for=''w_73''> Schlüsselwörter</label><br />\\n<input type=''checkbox'' name=''w_74'' id=''w_74'' value=''A.value'' ";\r\n                if($w_74 || ("MOD_VALUE[74]" != "" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= "checked=\\"checked\\"";}\r\n                $mod[''repl_string''] .=" /><label class=''MOD_VALUE[2]'' for=''w_74''> Seiteninhalt</label>\\n";\r\n\r\n                $mod[''tpl_form''] = str_replace("{where}",$mod[''repl_string''],$mod[''tpl_form'']);\r\n        } else {\r\n                $mod[''hidden''] .= "<input type=''hidden'' name=''w_70'' value=''MOD_VALUE[70]'' />\\n<input type=''hidden'' name=''w_71'' value=''MOD_VALUE[71]'' />";\r\n                $mod[''hidden''] .= "\\n<input type=''hidden'' name=''w_72'' value=''MOD_VALUE[72]'' />\\n<input type=''hidden'' name=''w_73'' value=''MOD_VALUE[73]'' />";\r\n                $mod[''hidden''] .= "\\n<input type=''hidden'' name=''w_74'' value=''MOD_VALUE[74]'' />";\r\n        }\r\n        // what - zusaetzlich anzeigen\r\n        if(strstr($mod[''tpl_form''],"{what}")){\r\n                $mod[''repl_string''] = "\\n<select name=''what''>\\n<option value=''none''";\r\n                if($what == "none" || ("MOD_VALUE[8]" == "none" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Nichts</option>\\n<option value=''summary''";\r\n                if($what == "summary" || ("MOD_VALUE[8]" == "summary" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Notizen</option>\\n<option value=''meta_description''";\r\n                if($what == "meta_description" || ("MOD_VALUE[8]" == "meta_description" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Beschreibung</option>\\n<option value=''body''";\r\n                if($what == "body" || ("MOD_VALUE[8]" == "body" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Textausschnitt</option>\\n</select>";\r\n                $mod[''tpl_form''] = str_replace("{what}",$mod[''repl_string''],$mod[''tpl_form'']);\r\n        } else {\r\n                $mod[''hidden''] .= "\\n<input type=''hidden'' name=''what'' value=''MOD_VALUE[8]'' />\\n";\r\n        }\r\n        // how - logische Verbindung\r\n        if(strstr($mod[''tpl_form''],"{how}")){\r\n                $mod[''repl_string''] = "<select name=''how''>\\n<option value=''AND''";\r\n                if($how == "AND" || ("MOD_VALUE[9]" == "AND" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">\\nUND</option>\\n<option value=''OR''";\r\n                if($how == "OR" || ("MOD_VALUE[9]" == "OR" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">\\nODER</option><option value=''QUOT''";\r\n                if($how == "QUOT" || ("MOD_VALUE[9]" == "QUOT" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">exakt</option>\\n</select>";\r\n                $mod[''tpl_form''] = str_replace("{how}",$mod[''repl_string''],$mod[''tpl_form'']);\r\n        } else {\r\n                $mod[''hidden''] .= "\\n<input type=''hidden'' name=''how'' value=''MOD_VALUE[9]'' />\\n";\r\n        }\r\n        // sort - Sortierungsoption\r\n        if(strstr($mod[''tpl_form''],"{sort}")){\r\n                $mod[''repl_string''] = "<select name=''sort''>\\n<option value=''C.idcatside''";\r\n                if($sort == "C.idcatside" || ("MOD_VALUE[10]" == "C.idcatside" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Index</option>\\n<option value=''B.title''";\r\n                if($sort == "B.title" || ("MOD_VALUE[10]" == "B.title" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Titel</option>\\n<option value=''B.summary''";\r\n                if($sort == "B.summary" || ("MOD_VALUE[10]" == "B.summary" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Notizen</option>\\n<option value=''B.meta_description''";\r\n                if($sort == "B.meta_description" || ("MOD_VALUE[10]" == "B.meta_description" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Beschreibung</option>\\n<option value=''B.meta_keywords''";\r\n                if($sort == "B.meta_keywords" || ("MOD_VALUE[10]" == "B.meta_keywords" && ( $mod[''newmodus''] || !$suche ))){ $mod[''repl_string''] .= " selected=''selected''"; }\r\n                $mod[''repl_string''] .= ">Schlüsselwörter</option>\\n</select>";\r\n                $mod[''tpl_form''] = str_replace("{sort}",$mod[''repl_string''],$mod[''tpl_form'']);\r\n        } else {\r\n                $mod[''hidden''] .= "\\n<input type=''hidden'' name=''sort'' value=''MOD_VALUE[10]'' />\\n";\r\n        }\r\n        echo "\\n<form action=''";\r\n        if("MOD_VALUE[12]" != "0"){ echo $con_side[''MOD_VALUE[12]''][''link'']; } else { echo $con_side[$idcatside][''link'']; }\r\n        echo "'' method=''post''>\\n<div>\\n".$mod[''tpl_form''].$mod[''hidden'']."\\n<input type=''hidden'' name=''page'' value=''1'' /><input type=''hidden'' name=''modus'' value=''".$modus."'' />\\n</div>\\n</form>\\n";\r\n}\r\nif(isset($suche)){\r\n        $mod[''tpl_output''] = "";\r\n        // Die uebergebenen Werte ueberpruefen\r\n        if (!($w_70 == "B.title" OR $w_70 == "")) { $w_70 ="B.title"; }\r\n        if (!($w_71 == "B.summary" OR $w_71 == "")) { $w_71 ="B.summary"; }\r\n        if (!($w_72 == "B.meta_description" OR $w_72 == "")) { $w_72 ="B.meta_description"; }\r\n        if (!($w_73 == "B.meta_keywords" OR $w_73 == "")) { $w_73 ="B.meta_keywords"; }\r\n        if (!($w_74 == "A.value" OR $w_74 == "")) { $w_74 ="A.value"; }\r\n        //$what ueberpruefen\r\n        if (! in_array($what,array("none","summary","meta_description","body"))) {\r\n                $what = "body";\r\n        }\r\n        //$how ueberpruefen\r\n        if (! in_array($how,array("AND","OR","QUOT"))) {\r\n                $how = "AND";\r\n        }\r\n        //$sort ueberpruefen\r\n        if (! in_array($sort,array("C.idcatside","B.title","B.summary","B.meta_description","B.meta_keywords"))) {\r\n                $sort = "C.idcatside";\r\n        }\r\n        $mod[''sql_fields''] = implode(",",array_diff(array($w_70,$w_71,$w_72,$w_73,$w_74),array("")));\r\n        switch($what){\r\n                case "none": $mod[''get_fields'']    = "B.title,C.idcatside"; break;\r\n                case "summary": $mod[''get_fields''] = "B.title,C.idcatside,B.summary"; break;\r\n                case "meta_description": $mod[''get_fields''] = "B.title,C.idcatside,B.meta_description"; break;\r\n                case "body": $mod[''get_fields'']    = "B.title,C.idcatside,A.value"; break;\r\n        }\r\n        if("MOD_VALUE[11]" == "0"){\r\n                $mod[''res_limit''] = "";\r\n                $mod[''res_start''] = "";\r\n        } else {\r\n                $mod[''res_limit''] = "MOD_VALUE[11]";\r\n                if($page < 1 || !$page)\r\n                        {\r\n                                $page = "1";\r\n                                $mod[''res_start''] = 0;\r\n                        } else {\r\n                                if (! is_numeric($page))\r\n                                {\r\n                                        $mod[''res_start''] = 0;\r\n                                } else {\r\n                                        $mod[''res_start''] = ($page-1) * "MOD_VALUE[11]";\r\n                                }\r\n                        }\r\n        }\r\n\r\n                if ($mod[''test''] == "true") {echo "<hr />Diverses: [22]:MOD_VALUE[22] [23]:MOD_VALUE[23] [20]:MOD_VALUE[20]<br />";}\r\n\r\n        \r\n// Suche auf Seiten beschraenken fals erwuenscht\r\n        $mod[''sql_sidecat''] = "";\r\n        if(''MOD_VALUE[22]'' == ''none'') {\r\n                // alle Seiten/Kategorien ausschlissen bis auf die Ausgewaehlten\r\n                if("MOD_VALUE[23]" != "" AND (substr_count("MOD_VALUE[23]","root")==0)) {\r\n                        $mod[''sql_sidecat''] = "(C.idcat IN (MOD_VALUE[23]))";\r\n                }\r\n                if("MOD_VALUE[24]" != "" AND (substr_count("MOD_VALUE[24]","root")==0)) {\r\n                        if($mod[''sql_sidecat''] == "") {\r\n                                $mod[''sql_sidecat''] = " AND (C.idcatside IN (MOD_VALUE[24]))";\r\n                        } else {\r\n                                $mod[''sql_sidecat''] = " AND (".$mod[''sql_sidecat'']." OR (C.idcatside IN (MOD_VALUE[24])) )";\r\n                        }\r\n                } else {\r\n                        if($mod[''sql_sidecat''] != "") {\r\n                                $mod[''sql_sidecat''] = " AND ".$mod[''sql_sidecat''];\r\n                        }\r\n                }\r\n        } else {\r\n                // alle Seiten/Kategorien erlaube bis auf die Ausgewaehlten\r\n                if("MOD_VALUE[23]" != "" AND (substr_count("MOD_VALUE[23]","root")==0)) {\r\n                        $mod[''sql_sidecat''] .= " AND (C.idcat NOT IN (MOD_VALUE[23]))";\r\n                }\r\n                if("MOD_VALUE[24]" != "" AND (substr_count("MOD_VALUE[24]","root")==0)) {\r\n                        $mod[''sql_sidecat''] .= " AND (C.idcatside NOT IN (MOD_VALUE[24]))";\r\n                }\r\n        }\r\n\r\n        // Suche auf die aktuelle Sprache beschraenken fals erwuenscht\r\n        if("MOD_VALUE[20]" == "true") {\r\n                $mod[''sql_lang''] = "";\r\n        } else {\r\n                $mod[''sql_lang''] = " AND (B.idlang = ".$lang.")";\r\n        }\r\n\r\n        // im Backend alle Seiten durchsuchen im Frontend nur die Seiten die Online sind und auf die er berechtigung hat.\r\n        if($sess->name == ''dedi'') {\r\n                $mod[''sql_online''] = "";\r\n        } else {\r\n                $mod[''sql_online''] = " AND (  (B.online & 0x03) = 0x01 OR (  (B.online & 0x02) = 0x02 AND ( UNIX_TIMESTAMP(NOW()) BETWEEN B.start AND B.end))) ";\r\n\r\n                // Abfrage Recht: Darf geschuetzte Seiten sehen\r\n                $mod[''sql_online''] .=  ( $perm->have_perm(2, ''area_frontend'', 0) ) ?  '''': '' AND (B.online & 0x04) = 0x00 '';\r\n        }\r\n\r\n        if(("MOD_VALUE[25]" != "") AND (substr_count("MOD_VALUE[25]","true")==0)) {\r\n                $mod[''sql_content''] = " AND (A.idtype IN (MOD_VALUE[25]))";\r\n        } else {\r\n                $mod[''sql_content''] = " AND (A.idtype IN (1,2,3,7,9,11,13))";\r\n        }\r\n\r\n        if ($mod[''test''] == "true") {echo "<hr />Kontrolle:".implode('','',$_POST)." --> GET 70:".$w_70." 71:".$w_71." 72:".$w_72." 73:".$w_73." 74:".$w_74."<br />lang: ".$lang." sql: ".$mod[''sql_lang''];}\r\n        if ($mod[''test''] == "true") {echo "<br />Suche: $suche<br />Suche in: ".$mod[''sql_fields'']."<br />Hole: ".$mod[''get_fields'']."<br />Verbinde: $how<br />Sortiere: $sort<br />Page: ".$mod[''res_start''].",".$mod[''res_limit''];}\r\n        if ($mod[''test''] == "true") {echo "<br />sql_where:".$mod[''sql_lang''].$mod[''sql_online''].$mod[''sql_content''].$mod[''sql_sidecat'']."<br /><hr />";}\r\n        $result = search(array(\r\n                        "querystring" => $suche,\r\n                        "sql_tables"  => $dedi_db[''content'']." A, ".$dedi_db[''side_lang'']." B, ".$dedi_db[''cat_side'']." C,".$dedi_db[''side'']." D",\r\n                        "sql_fields"  => $mod[''sql_fields''],\r\n                        "get_fields"  => $mod[''get_fields''],\r\n                        "sql_where"   => "A.idsidelang = B.idsidelang AND B.idside = C.idside AND B.idside = D.idside AND D.idclient = ".$client.$mod[''sql_lang''].$mod[''sql_online''].$mod[''sql_content''].$mod[''sql_sidecat''],\r\n                        "sql_group"   => "C.idcatside",\r\n                        "result_limit"=> $mod[''res_limit''],\r\n                        "result_start"=> $mod[''res_start''],\r\n                        "sort_index"  => $sort,\r\n                        "default_con" => $how\r\n                        )\r\n        );\r\n        // Wir brauchen die Seiten, die wir ausschliessen wollen\r\n        if ($mod[''test''] == "true") {echo "num_rows: ".$result[''num_rows'']."<hr />";}\r\n\r\n        $mod[''nr''] = $mod[''res_start'']+1;\r\n        if($result[''num_rows''] > 0){\r\n                foreach($result[''result''] as $mod[''res'']){\r\n                        if ($mod[''test''] == "true") {echo "Kontrolle Result<br />IDcatside: ".$mod[''res''][''idcatside'']."<br />Title: ".$mod[''res''][''title'']."<br>Nr: ".$mod[''nr'']."<hr />";}\r\n                        $mod[''repl_string''] = "\\n<a href=''".$con_side[$mod[''res''][''idcatside'']][''link'']."'' class=''MOD_VALUE[0]''>".$mod[''res''][''title'']."</a>\\n";\r\n                        $mod[''tpl_res''] = str_replace("{link}",$mod[''repl_string''],"MOD_VALUE[16]");\r\n                        if($what == "none"){\r\n                                $mod[''repl_string''] = "";\r\n                        } elseif($what == "summary"){\r\n                                $mod[''repl_string''] = "<p class=''MOD_VALUE[1]''>".$mod[''res''][''summary'']."</p>";\r\n                        } elseif($what == "meta_description"){\r\n                                $mod[''repl_string''] = "<p class=''MOD_VALUE[1]''>".$mod[''res''][''meta_description'']."</p>";\r\n                        } else {\r\n                                $mod[''repl_string''] = "<p class=''MOD_VALUE[1]''>";\r\n                                $mod[''res''][''value''] = strip_tags($mod[''res''][''value'']);\r\n                                $mod[''searchvalue''] = explode (" ", $suche);\r\n                                $mod[''searchstart''] = strpos ($mod[''res''][''value''],$mod[''searchvalue''][0])-40;\r\n                                if ($mod[''searchstart''] < 0) {\r\n                                        $mod[''searchstart'']=0;\r\n                                } else {\r\n                                        $mod[''repl_string''] .= "...";\r\n                                        $mod[''searchstart''] = strpos ($mod[''res''][''value'']," ",$mod[''searchstart'']);\r\n                                }\r\n\r\n                                if ($mod[''test''] == "true") {echo "Wort:''".$mod[''searchvalue''][0]."'' Start:".$mod[''searchstart'']."<hr />";}\r\n                                $mod[''repl_string''] .= substr($mod[''res''][''value''],$mod[''searchstart''],300)."...</p>";\r\n                        }\r\n                        $mod[''tpl_res''] = str_replace("{descr}",$mod[''repl_string''],$mod[''tpl_res'']);\r\n                        $mod[''tpl_res''] = str_replace("{nr}",$mod[''nr''],$mod[''tpl_res'']);\r\n                        $mod[''tpl_output''] .= $mod[''tpl_res''];\r\n                        $mod[''nr'']=$mod[''nr'']+1;\r\n                }\r\n        } else {\r\n                $mod[''tpl_res''] = "<p class=''MOD_VALUE[4]''>MOD_VALUE[19]</p>";\r\n                $mod[''tpl_output''] .= $mod[''tpl_res''];\r\n        }\r\n\r\n        $mod[''tpl_res_pre''] = str_replace("{count}",$result[''num_rows''],"MOD_VALUE[15]");\r\n\r\n        if($result[''num_rows''] > 0 && $mod[''res_limit''] != "" ) {\r\n                $mod[''anz''] = $result[''num_rows''];\r\n                $mod[''query''] = "&amp;w_70=$w_70&amp;w_71=$w_71&amp;w_72=$w_72&amp;w_73=$w_73&amp;w_74=$w_74&amp;what=$what&amp;how=$how&amp;modus=$modus&amp;sort=$sort&amp;suche=";\r\n                $mod[''query''] .= rawurlencode($suche);\r\n\r\n                // gesamtanzahl der seiten herausfinden\r\n                if("MOD_VALUE[11]" == "0"){\r\n                        $mod["anz"] = 1;\r\n                } else {\r\n                        $mod["anz"] = ceil($result[''num_rows''] / "MOD_VALUE[11]");\r\n                }\r\n\r\n                // wenn mod_value_32 leer ist, default-separator verwenden.\r\n                if ("MOD_VALUE[32]" == "")\r\n                {\r\n                        $separator = "&nbsp;&nbsp;|&nbsp;&nbsp;";\r\n                } else {\r\n                        $separator = "MOD_VALUE[32]";\r\n                }\r\n                $mod[''idcatlink'']= $con_side[$idcatside][''link''];\r\n                // vor/zurück-links anzeigen?\r\n                if ($mod["anz"]> 1)$mod["nav"] .= suchmodul_createPageLinks("MOD_VALUE[31]", $separator, "MOD_VALUE[30]", $page);\r\n      \r\n          if ($mod[''test''] == "true") {echo "<hr />Kontrolle Navigation: Anz ".$mod["anz"]." Seperator:".$separato.":   <br>Page: ".$page." [31]:MOD_VALUE[31] [30]:MOD_VALUE[30] [18]:MOD_VALUE[18]<br />";}\r\n\r\n                $mod[''tpl_nav''] = str_replace("{nav}", $mod[''nav''],"MOD_VALUE[18]");\r\n		\r\n		$mod[''tpl_res_pre'']  = str_replace("{nav}", $mod[''nav''],$mod[''tpl_res_pre'']);\r\n		$mod[''tpl_res_past''] = str_replace("{nav}", $mod[''nav''],"MOD_VALUE[17]");\r\n		\r\n		$mod[''tpl_output''] = $mod[''tpl_res_pre''].$mod[''tpl_output''].$mod[''tpl_res_past''];\r\n		\r\n	        echo $mod[''tpl_output''];\r\n		echo $mod[''tpl_nav''];\r\n		\r\n        } else {\r\n        	$mod[''tpl_output''] = $mod[''tpl_res_pre''].$mod[''tpl_output''];\r\n	        echo $mod[''tpl_output''];\r\n		\r\n	        echo "MOD_VALUE[17]";\r\n	}        	\r\n}\r\necho "MOD_VALUE[41]";\r\nunset($mod,$separator,$result);\r\n</DEDIPHP>', '', 0, 1, 1, 1089569940, 1132967750, 'mod:931d2fc5c322bbcd2be1842c6a3c5db2:c27a5169', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (35, 'Teaser Navigation', '0.2.1', 'Navigation', 'Listet alle Seiten einer Kategorie variabel mit Name, interner Beschreibung und meta-Beschreibung auf.', '<?php\r\n//Schriftart 1\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''Navigation-Ordner'';\r\n\r\n//Schriftart 2\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font2}";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''Navigation-Seiten'';\r\n\r\n//Schriftart 3\r\n$mip_form[''3''][''desc''] = $mod_lang[''gen_font'']." {font3}";\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n\r\n//Sortierung Name/Erstellungsdatum/Änderungsdatum/Besucherzahl\r\n$mip_form[''4''][''desc''] = ''Seiten sortieren nach'';\r\n$mip_form[''4''][''cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''option_desc''][''0''] = ''Standard (wie backend)'';\r\n$mip_form[''4''][''option_desc''][''1''] = ''Name'';\r\n$mip_form[''4''][''option_desc''][''2''] = ''Erstellungsdatum'';\r\n$mip_form[''4''][''option_desc''][''3''] = ''Änderungsdatum'';\r\n$mip_form[''4''][''option_desc''][''4''] = ''Besucherzahl'';\r\n$mip_form[''4''][''option_val''][''0''] = ''sortindex'';\r\n$mip_form[''4''][''option_val''][''1''] = ''name'';\r\n$mip_form[''4''][''option_val''][''2''] = ''created'';\r\n$mip_form[''4''][''option_val''][''3''] = ''lastmodified'';\r\n$mip_form[''4''][''option_val''][''4''] = ''visiters'';\r\n\r\n//aufsteigend-absteigend\r\n$mip_form[''5''][''cat''] = ''radio'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''SORT_ASC'';\r\n$mip_form[''5''][''option_desc''][''0''] = ''aufsteigend'';\r\n$mip_form[''5''][''option_val''][''0''] = ''SORT_ASC'';\r\n$mip_form[''5''][''option_desc''][''1''] = ''absteigend'';\r\n$mip_form[''5''][''option_val''][''1''] = ''SORT_DESC'';\r\n\r\n//Mit oder ohne Startseite\r\n$mip_form[''6''][''desc''] = ''Startseiten anzeigen'';\r\n$mip_form[''6''][''cat''] = ''chk'';\r\n$mip_form[''6''][''option_var''][''0''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''option_val''][''0''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''6''][''option_val_select''][''0''] = ''true'';\r\n\r\n//Struktur zur auswahl der Kategorie\r\n$mip_form[''7''][''desc''] = ''Verzeichnis wählen'';\r\n$mip_form[''7''][''cat''] = ''app_cat'';\r\n$mip_form[''7''][''output_cat''] = ''option'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''size''] = ''5'';\r\n$mip_form[''7''][''cms_val_default''] = ''this'';\r\n\r\n//Anzahl der Seiten\r\n$mip_form[''8''][''desc''] = ''Anzahl darzustellender Seiten (0=alle)'';\r\n$mip_form[''8''][''cat''] = ''txt'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''0'';\r\n\r\n// Navigation template connav_side\r\n$mip_form[''11''][''cat''] = ''txtarea'';\r\n$mip_form[''11''][''type''] = ''long'';\r\n$mip_form[''11''][''rows''] = ''3'';\r\n$mip_form[''11''][''desc''] = ''Layout der Seiten <br><small>Mögliche Templatevariablen: {link}, {title}, {int_desc}, {meta_desc}, {font1}{font2}{font3}</small>'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = "<tr><td onMouseOver=\\"this.style[''background'']=''#5A7BAD'';\\" onMouseOut=\\"this.style[''background'']=''#A8BADE'';\\" bgcolor=\\"#A8BADE\\" nowrap><a href=\\"{link}\\" onMouseOver=\\"on(''{title}'');return true;\\" onMouseOut=\\"off();return true;\\" class=\\"{font1}\\">{title}</a></td></tr><tr><td bgcolor=\\"#DBE3EF\\">{int_desc}</td></tr>";\r\n\r\n// Navigation template connav_side_int\r\n$mip_form[''12''][''cat''] = ''txtarea'';\r\n$mip_form[''12''][''type''] = ''long'';\r\n$mip_form[''12''][''rows''] = ''3'';\r\n$mip_form[''12''][''desc''] = ''Layout zwischen den Seiten'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = "<tr><td>&nbsp;</td></tr>";\r\n\r\n// Navigation template verbindung\r\n$mip_form[''13''][''cat''] = ''txtarea'';\r\n$mip_form[''13''][''type''] = ''long'';\r\n$mip_form[''13''][''rows''] = ''3'';\r\n$mip_form[''13''][''desc''] = ''Verbindungstemplate'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''cms_val_default''] = ''<table width="200">{content}</table>'';\r\n\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''8'']);\r\nmip_formsp($mip_form[''7'']);\r\necho "<b>Templates:</b><br><br>";\r\nmip_formsp($mip_form[''11'']);\r\nmip_formsp($mip_form[''12'']);\r\nmip_formsp($mip_form[''13'']);\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n$mod[''out''] = "MOD_VALUE[10]";\r\nif("MOD_VALUE[7]" == "this"){$mod[''cat''] = $idcat;}\r\nelse{$mod[''cat''] = "MOD_VALUE[7]";}\r\n\r\n$mod[''sidelist''] = array();\r\nforeach(array_keys($con_side) as $a){\r\n	if($con_side[$a][''idcat''] == $mod[''cat'']){\r\n		array_push($mod[''sidelist''],$a);\r\n	}\r\n}\r\n$mod[''sortarray''] = array();\r\nforeach($mod[''sidelist''] as $b){\r\n	if("MOD_VALUE[4]" == ''name''){$sortit = strtolower($con_side[$b][''name'']);}\r\n	else {$sortit = $con_side[$b][''MOD_VALUE[4]''];};\r\n	array_push($mod[''sortarray''], $sortit);\r\n}\r\narray_multisort($mod[''sortarray''], MOD_VALUE[5], $mod[''sidelist''], MOD_VALUE[5]);\r\n$mod[''isfirst''] = 1;\r\nif(0MOD_VALUE[8] > 0){ $mod[''sidelist''] = array_slice($mod[''sidelist''],0,MOD_VALUE[8]); };\r\nforeach($mod[''sidelist''] as $b){\r\n\r\n	if((isset($dedi_side[''view'']) && $perm->have_perm(''0'', ''side'', $b)) || ($con_side[$b][''online''] && $con_side[$b][''online''] != ''0'')){\r\n		if($con_side[$b][''is_start''] != 1 || "MOD_VALUE[6]" == "true"){\r\n		\r\n//Modifikation für DeDi 1.01 von Noeder am 10.11.2004		\r\n			if(! empty($b) && ! empty($con_side[$b][''idsidelang''])){\r\n				$sql = "SELECT meta_author, meta_description, summary, author, created, lastmodified\r\n						FROM\r\n						".$dedi_db[''side_lang'']."\r\n						WHERE\r\n						idsidelang= ". $con_side[$b][''idsidelang''];\r\n				$db->query($sql);\r\n				$db->next_record();\r\n				$con_side[$b][''meta_author''] = $db->f(''meta_author'');\r\n				$con_side[$b][''meta_description''] = $db->f(''meta_description'');\r\n				$con_side[$b][''summary''] = $db->f(''summary'');\r\n				$con_side[$b][''author''] = $db->f(''author'');\r\n				$con_side[$b][''created''] = $db->f(''created'');\r\n				$con_side[$b][''lastmodified''] = $db->f(''lastmodified'');\r\n			}\r\n//Modifikation ENDE\r\n\r\n			if($con_side[$b][''meta_description'']){$mod[''meta''] = $con_side[$b][''meta_description'']; } else { $mod[''meta''] = $con_side[$b][''summary'']; }\r\n			if($mod[''isfirst''] != 1){ $mod[''out''] .= "MOD_VALUE[12]"; }\r\n			$mod[''temp''] = "";\r\n			$mod[''temp''] = str_replace("{title}", $con_side[$b][''name''], "MOD_VALUE[11]");\r\n			$mod[''temp''] = str_replace("{link}", $con_side[$b][''link''], $mod[''temp'']);\r\n			$mod[''temp''] = str_replace("{int_desc}", $con_side[$b][''summary''], $mod[''temp'']);\r\n			$mod[''temp''] = str_replace("{meta_desc}", $mod[''meta''], $mod[''temp'']);\r\n			$mod[''temp''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''temp'']);\r\n			$mod[''temp''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''temp'']);\r\n			$mod[''temp''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''temp'']);\r\n			$mod[''isfirst''] = 0;\r\n			$mod[''out''] .= $mod[''temp''];\r\n		}\r\n	}\r\n}\r\n$mod[''tpl''] = str_replace("{content}",$mod[''out''],"MOD_VALUE[13]");\r\necho $mod[''tpl''];\r\n// VARIABLEN LEEREN\r\nunset ($mod);\r\nunset ($a);\r\nunset ($b);\r\n</DEDIPHP>', '', 0, 1, 1, 1100109035, 1132968435, 'mod:c00d135e096296808c92e4e71388b9cd:2285b6b8', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (43, 'Pic-Galerie', '3.6', 'Content', 'Galerie mit allen Bildern eines Verzeichnisses, integrierter Slideshow.\r\nnur mit GD : Wasserzeichen, quadratische ThumbNails ', '<?\r\n\r\n//Belegt sind mip_forms 0 und 1-29 und 40-41 und 51-52 und 60-69\r\n\r\n\r\n\r\n//configmode\r\n$mip_form[''0''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''size''] = ''1'';\r\n$mip_form[''0''][''option_desc''][] = ''Normal'';\r\n$mip_form[''0''][''option_val''][] =  '''';\r\n$mip_form[''0''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''0''][''option_val''][] =  ''advanced'';\r\n$mip_form[''0''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''0''][''option_val''][] =  ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''0'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(1,2,3,27,28,6,7,5,15,16,17,21,10,13,14,11,12,18,22,23,24,25,60,61,62,63,64,65,66,67,68,69);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''0''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''0''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] == ''advanced''){\r\n\r\n\r\n//Schriftart 1\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n\r\n//Schriftart 2\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font2} (Walker Seitenlink)";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n\r\n//Schriftart 3\r\n$mip_form[''3''][''desc''] = $mod_lang[''gen_font'']." {font3} (Aktueller Walker Seitenlink)<BR><BR>\\n";\r\n$mip_form[''3''][''cat''] = ''app_css'';\r\n$mip_form[''3''][''output_cat''] = ''option'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n\r\n//Schriftart 4\r\n$mip_form[''27''][''desc''] = $mod_lang[''gen_font'']." {font4} (Bildtitel)<BR><BR>\\n";\r\n$mip_form[''27''][''cat''] = ''app_css'';\r\n$mip_form[''27''][''output_cat''] = ''option'';\r\n$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n\r\n//Schriftart 4\r\n$mip_form[''28''][''desc''] = $mod_lang[''gen_font'']." {font5} (Bildbeschreibung)<BR><BR>\\n";\r\n$mip_form[''28''][''cat''] = ''app_css'';\r\n$mip_form[''28''][''output_cat''] = ''option'';\r\n$mip_form[''28''][''cms_var''] = ''MOD_VAR[28]'';\r\n$mip_form[''28''][''cms_val''] = $dedi_mod[''value''][''28''];\r\n\r\n\r\n// Verzeichnis im Frontend oder Backend auswählen?\r\n$mip_form[''51''][''desc''] = ''Soll der Redakteur das Verzeichnis im Frontend einstellen?'';\r\n$mip_form[''51''][''cat''] = ''option'';\r\n$mip_form[''51''][''cms_var''] = ''MOD_VAR[51]'';\r\n$mip_form[''51''][''cms_val''] = $dedi_mod[''value''][''51''];\r\n$mip_form[''51''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''51''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''51''][''option_val''][''0''] = true;\r\n$mip_form[''51''][''option_val''][''1''] = false;\r\n$mip_form[''51''][''cms_val_default''] = false;\r\n$mip_form[''51''][''flag''] = ''reload'';\r\n//\r\n\r\n\r\n//Ordnerauswahl\r\n$mip_form[''4''][''desc''] = ''Ordner: '';\r\n$mip_form[''4''][''cat''] = ''app_directory'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''single'';\r\n\r\n//StartOrdnerauswahl\r\n$mip_form[''52''][''desc''] = ''Startverzeichnis: '';\r\n$mip_form[''52''][''cat''] = ''app_directory'';\r\n$mip_form[''52''][''output_cat''] = ''option'';\r\n$mip_form[''52''][''cms_var''] = ''MOD_VAR[52]'';\r\n$mip_form[''52''][''cms_val''] = $dedi_mod[''value''][''52''];\r\n$mip_form[''52''][''flag''] = ''single'';\r\n\r\n// Unterordner verwenden??\r\n$mip_form[''26''][''desc''] = ''Unterordner einschließen?'';\r\n$mip_form[''26''][''cat''] = ''option'';\r\n$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n$mip_form[''26''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''26''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''26''][''option_val''][''0''] = true;\r\n$mip_form[''26''][''option_val''][''1''] = false;\r\n$mip_form[''26''][''cms_val_default''] = false;\r\n\r\n\r\n//Anzahl Bilder\r\n$mip_form[''6''][''desc''] = "Anzahl Bilder pro Galerie-Seite";\r\n$mip_form[''6''][''cat''] = ''txt'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = ''9'';\r\n\r\n// Anzahl pro Reihe\r\n$mip_form[''7''][''desc''] = "Anzahl Bilder in einer Reihe";\r\n$mip_form[''7''][''cat''] = ''txt'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''3'';\r\n\r\n\r\n// Galerie-ID\r\n$mip_form[''5''][''desc''] = "welche Seite bei Galerieaufruf: <BR>\\n";\r\n$mip_form[''5''][''cat''] = ''txt'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''1'';\r\n\r\n//Sortierreihenfolge\r\n$mip_form[''15''][''desc''] = "Sortierreihenfolge";\r\n$mip_form[''15''][''cat''] = ''option'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''option_desc''][''0''] = ''anhand Dateiname'';\r\n$mip_form[''15''][''option_val''][''0''] = ''filename'';\r\n$mip_form[''15''][''option_desc''][''1''] = ''anhand Titel'';\r\n$mip_form[''15''][''option_val''][''1''] = ''titel'';\r\n$mip_form[''15''][''option_desc''][''2''] = ''anhand &lt;order&gt-Tag; in Beschreibung'';\r\n$mip_form[''15''][''option_val''][''2''] = ''description'';\r\n$mip_form[''15''][''option_desc''][''3''] = ''anhand Erstellungsdatum'';\r\n$mip_form[''15''][''option_val''][''3''] = ''created'';\r\n$mip_form[''15''][''option_desc''][''4''] = ''anhand Änderungsdatum'';\r\n$mip_form[''15''][''option_val''][''4''] = ''lastmodified'';\r\n$mip_form[''15''][''option_desc''][''5''] = ''anhand Dateigröße'';\r\n$mip_form[''15''][''option_val''][''5''] = ''filesize'';\r\n$mip_form[''15''][''option_desc''][''6''] = ''anhand Autor'';\r\n$mip_form[''15''][''option_val''][''6''] = ''author'';\r\n$mip_form[''15''][''cms_val_default''] = ''filename'';\r\n\r\n//aufsteigend-absteigend\r\n$mip_form[''16''][''cat''] = ''radio'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''cms_val_default''] = ''ASC'';\r\n$mip_form[''16''][''option_desc''][''0''] = ''aufsteigend'';\r\n$mip_form[''16''][''option_val''][''0''] = ''ASC'';\r\n$mip_form[''16''][''option_desc''][''1''] = ''absteigend'';\r\n$mip_form[''16''][''option_val''][''1''] = ''DESC'';\r\n\r\n// max image size\r\n$mip_form[''17''][''desc''] = ''maximale Bild-Größe: {maximgsize} (leer = Originalgröße)'';\r\n$mip_form[''17''][''cat''] = ''txt'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''cms_val_default''] = '''';\r\n\r\n// max image size 2\r\n$mip_form[''21''][''desc''] = ''maximale Bild-Größe: {maximgsize2} (leer = Originalgröße)'';\r\n$mip_form[''21''][''cat''] = ''txt'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''21''][''cms_val_default''] = '''';\r\n\r\n// vor/zurück-links anzeigen\r\n$mip_form[''10''][''desc''] = ''Vor/Zur&uuml;ck-Links anzeigen'';\r\n$mip_form[''10''][''cat''] = ''option'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''10''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''10''][''option_val''][''0''] = ''true'';\r\n$mip_form[''10''][''option_val''][''1''] = ''false'';\r\n$mip_form[''10''][''cms_val_default''] = ''false'';\r\n$mip_form[''10''][''flag''] = ''reload'';\r\n//\r\n\r\n// vor/zurück-linktexte definieren\r\nif ($dedi_mod[''value''][''10''] == ''true'') {\r\n        // zurück-link\r\n        $mip_form[''13''][''desc''] = "Zurück-Linktext";\r\n        $mip_form[''13''][''cat''] = ''txt'';\r\n        $mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n        $mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n        $mip_form[''13''][''cms_val_default''] = ''&lt;&lt;'';\r\n\r\n        // weiter-link\r\n        $mip_form[''14''][''desc''] = "Weiter-Linktext";\r\n        $mip_form[''14''][''cat''] = ''txt'';\r\n        $mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n        $mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n        $mip_form[''14''][''cms_val_default''] = ''&gt;&gt;'';\r\n} else {\r\n        // zurück-link\r\n        $mip_form[''13''][''cat''] = ''hidden'';\r\n        $mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n        $mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n        $mip_form[''13''][''cms_val_default''] = ''&lt;&lt;'';\r\n\r\n        // weiter-link\r\n        $mip_form[''14''][''cat''] = ''hidden'';\r\n        $mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n        $mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n        $mip_form[''14''][''cms_val_default''] = ''&gt;&gt;'';\r\n}\r\n\r\n// anzahl der angezeigten Seitenlinks\r\n$mip_form[''11''][''desc''] = "Floating Galerie-Walker:<BR>\\n (0 = Floating aus, 1-n = Max. angezeigter Links)<BR><BR>\\n";\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''0'';\r\n\r\n// separatoren\r\n$mip_form[''12''][''desc''] = "Separator zwischen den Seitenlinks im Walker:<BR>\\n (leer = default-separator)<BR><BR>\\n";\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = '''';\r\n\r\n// Aktuelle Galerieseite verlinken?\r\n$mip_form[''18''][''desc''] = ''Soll die aktuelle Seite im Galerie-Walker verlinkt werden?'';\r\n$mip_form[''18''][''cat''] = ''option'';\r\n$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''18''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''18''][''option_val''][''0''] = true;\r\n$mip_form[''18''][''option_val''][''1''] = false;\r\n$mip_form[''18''][''cms_val_default''] = false;\r\n$mip_form[''18''][''flag''] = ''reload'';\r\n//\r\n\r\n// Layout der Galerie Tabelle\r\n$mip_form[''8''][''desc''] = ''Layout der Galerie-Tabelle<br><small>Mögliche Templatevariablen:\r\n{font1},{font2},{font3},{id},{walker},{slidelink},<b>{content}</b><br>Bemerkung: {content} ist zwingend erforderlich!</small>'';\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''rows''] = ''10'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = "<table width=\\"100%\\">\r\n  <tr class=\\"{font1}\\">\r\n    <td align=\\"center\\">Seite {id}</td>\r\n  </tr>\r\n  <tr class=\\"{font1}\\">\r\n    <td align=\\"center\\"><a href=\\"{slidelink}\\">Diashow anzeigen</a></td>\r\n  </tr>\r\n  <tr class=\\"{font2}\\">\r\n    <td align=\\"center\\">{walker}</td>\r\n   </tr>\r\n   <tr>\r\n     <td><table width=\\"100%\\"><tr>{content}</tr></table></td>\r\n  </tr>\r\n  <tr class=\\"{font2}\\">\r\n    <td align=\\"center\\">{walker}</td>\r\n  </tr>\r\n</table>";\r\n\r\n// Einzelne Tabellenelemente\r\n$mip_form[''9''][''cat''] = ''txtarea'';\r\n$mip_form[''9''][''type''] = ''long'';\r\n$mip_form[''9''][''rows''] = ''10'';\r\n$mip_form[''9''][''desc''] = ''Layout der einzelnen Tabellenelemente (also {content} im Template oben)<br><small>\r\nMögliche Templatevariablen: {font1},{font2},{font3},{path},{file},{thumbfile},{filename},{title},{filedesc},{description},\r\n{urlencode}data{/urlencode},{maximgsize},{maximgsize2},{filesize},{width},{height},{detailurl}</small>'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = "<td align=\\"center\\">\r\n<span class=\\"{font4}\\">{title}</span><br>\r\n  <a href=\\"{detailurl}\\">\r\n  <img SRC=\\"{path}{thumbfile}\\" {maximgsize} border=\\"0\\" ALT=\\"{filedesc}\\">\r\n  </a><br>\r\n  <span class=\\"{font5}\\">{description}<br>\r\n  DATEIGRÖSSE: {filesize}</span>\r\n</td>";\r\n\r\n\r\n// Zurück Template\r\n$mip_form[''22''][''desc''] = "Zurück-Link Template in der Detailansicht:<BR>\\n\r\n<small>Mögliche Templatevariablen: {font1},{font2},{font3},{prev}</small>";\r\n$mip_form[''22''][''cat''] = ''txtarea'';\r\n$mip_form[''22''][''type''] = ''long'';\r\n$mip_form[''22''][''rows''] = ''1'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''22''][''cms_val_default''] = "<a href=\\"{prev}\\">Bild zurück</a>&nbsp;&nbsp;|";\r\n\r\n// VorTemplate\r\n$mip_form[''25''][''desc''] = "Vor-Link Template in der Detailansicht:<BR>\\n\r\n<small>Mögliche Templatevariablen: {font1},{font2},{font3},{next}</small>";\r\n$mip_form[''25''][''cat''] = ''txtarea'';\r\n$mip_form[''25''][''type''] = ''long'';\r\n$mip_form[''25''][''rows''] = ''1'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''25''][''cms_val_default''] = "|&nbsp;&nbsp;<a href=\\"{next}\\">Bild vor</a>";\r\n\r\n// Rücklink zur Galerie\r\n$mip_form[''23''][''desc''] = "Rücklink zur Galerie<BR>\\n\r\n<small>Mögliche Templatevariablen: {font1},{font2},{font3},{page_id},{galerie},{galeriestart}</small>";\r\n$mip_form[''23''][''cat''] = ''txtarea'';\r\n$mip_form[''23''][''type''] = ''long'';\r\n$mip_form[''23''][''rows''] = ''1'';\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n$mip_form[''23''][''cms_val_default''] = "<a href=\\"{galerie}\\">Galerieseite {page_id}</a> <a href=\\"{galeriestart}\\">Galeriestartseite</a>";\r\n\r\n\r\n//Vor und zurück zyklisch oder endend?\r\n$mip_form[''24''][''cat''] = ''radio'';\r\n$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n$mip_form[''24''][''cms_val_default''] = ''zykl'';\r\n$mip_form[''24''][''option_desc''][''0''] = ''zyklisch'';\r\n$mip_form[''24''][''option_val''][''0''] = ''zykl'';\r\n$mip_form[''24''][''option_desc''][''1''] = ''endend'';\r\n$mip_form[''24''][''option_val''][''1''] = ''end'';\r\n\r\n// Detail Template\r\n$mip_form[''20''][''cat''] = ''txtarea'';\r\n$mip_form[''20''][''type''] = ''long'';\r\n$mip_form[''20''][''rows''] = ''10'';\r\n$mip_form[''20''][''desc''] = ''Layout der optionalen Detailansicht<br><small>Mögliche Templatevariablen: {page_id},{font1},{font2},{font3},{prev},{next},{galerie},{path},{file},{thumbfile},{filename},{title},\r\n{filedesc},{description},{maximgsize},{maximgsize2},{filesize},{width},{height},{slidelink}</small>'';\r\n$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''20''][''cms_val_default''] = "<table width=\\"100%\\">\r\n  <tr class=\\"{font1}\\">\r\n    <td align=\\"center\\">Bild {pic_id}/{pic_count}</td>\r\n  </tr>\r\n  <tr class=\\"{font2}\\">\r\n    <td align=\\"center\\">{prev}&nbsp;&nbsp;{galerie}&nbsp;&nbsp;{next}</td>\r\n   </tr>\r\n   <tr>\r\n     <td><table width=\\"100%\\"><tr><td align=\\"center\\">\r\n	 <a href=\\"javascript:new_imagepopup(''{path}{urlencode}{file}{/urlencode}'',''{title}'',''{description}'','''',''{width}'',''{height}'',''true'')\\">\r\n	 <img SRC=\\"{path}{file}\\" {maximgsize2} border=\\"0\\" ALT=\\"{filedesc}\\">\r\n	 </a></td></tr></table></td>\r\n  </tr>\r\n  <tr class=\\"{font2}\\">\r\n    <td align=\\"center\\">Bild ist von Seite {page_id}</td>\r\n  </tr>\r\n</table>";\r\n\r\n// Quadratische Thumbnails aktivieren\r\n$mip_form[''40''][''desc''] = ''Quadratische Thumbnails aktivieren'';\r\n$mip_form[''40''][''cat''] = ''option'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''40''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''40''][''option_val''][''0''] = ''true'';\r\n$mip_form[''40''][''option_val''][''1''] = ''false'';\r\n$mip_form[''40''][''cms_val_default''] = ''false'';\r\n//$mip_form[''40''][''flag''] = ''reload'';\r\n//\r\n\r\n// Ausschnitt aus Original bestimmen\r\n$mip_form[''41''][''desc''] = ''Welcher Ausschnitt soll genommen werden'';\r\n$mip_form[''41''][''cat''] = ''hidden'';\r\n$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n$mip_form[''41''][''option_desc''][''0''] = ''links/oben'';\r\n$mip_form[''41''][''option_desc''][''1''] = ''mitte/oben'';\r\n$mip_form[''41''][''option_desc''][''2''] = ''rechts/oben'';\r\n$mip_form[''41''][''option_desc''][''3''] = ''links/mitte'';\r\n$mip_form[''41''][''option_desc''][''4''] = ''mitte/mitte'';\r\n$mip_form[''41''][''option_desc''][''5''] = ''rechts/mitte'';\r\n$mip_form[''41''][''option_desc''][''6''] = ''links/unten'';\r\n$mip_form[''41''][''option_desc''][''7''] = ''mitte/unten'';\r\n$mip_form[''41''][''option_desc''][''8''] = ''rechts/unten'';\r\n$mip_form[''41''][''option_val''][''0''] = ''lo'';\r\n$mip_form[''41''][''option_val''][''1''] = ''mo'';\r\n$mip_form[''41''][''option_val''][''2''] = ''ro'';\r\n$mip_form[''41''][''option_val''][''3''] = ''lm'';\r\n$mip_form[''41''][''option_val''][''4''] = ''mm'';\r\n$mip_form[''41''][''option_val''][''5''] = ''rm'';\r\n$mip_form[''41''][''option_val''][''6''] = ''lu'';\r\n$mip_form[''41''][''option_val''][''7''] = ''mu'';\r\n$mip_form[''41''][''option_val''][''8''] = ''ru'';\r\n$mip_form[''41''][''cms_val_default''] = ''mm'';\r\n//\r\n\r\n\r\n//Wasserzeichen ID\r\n$mip_form[''60''][''desc''] = ''Wasserzeichen-Bild für Thumbnails: '';\r\n$mip_form[''60''][''cat''] = ''app_file'';\r\n$mip_form[''60''][''output_cat''] = ''option'';\r\n$mip_form[''60''][''cms_var''] = ''MOD_VAR[60]'';\r\n$mip_form[''60''][''cms_val''] = $dedi_mod[''value''][''60''];\r\n$mip_form[''60''][''flag''] = ''single'';\r\n//\r\n\r\n// Verzeichnis im Frontend oder Backend auswählen?\r\n$mip_form[''68''][''desc''] = ''Von wo aus sollen die X/Y-Koordinaten ausgehen? (0-Punkt der Achsen wird dorthin verschoben)'';\r\n$mip_form[''68''][''cat''] = ''option'';\r\n$mip_form[''68''][''cms_var''] = ''MOD_VAR[68]'';\r\n$mip_form[''68''][''cms_val''] = $dedi_mod[''value''][''68''];\r\n$mip_form[''68''][''option_desc''][''0''] = ''links/oben'';\r\n$mip_form[''68''][''option_desc''][''1''] = ''mitte/oben'';\r\n$mip_form[''68''][''option_desc''][''2''] = ''rechts/oben'';\r\n$mip_form[''68''][''option_desc''][''3''] = ''links/mitte'';\r\n$mip_form[''68''][''option_desc''][''4''] = ''mitte/mitte'';\r\n$mip_form[''68''][''option_desc''][''5''] = ''rechts/mitte'';\r\n$mip_form[''68''][''option_desc''][''6''] = ''links/unten'';\r\n$mip_form[''68''][''option_desc''][''7''] = ''mitte/unten'';\r\n$mip_form[''68''][''option_desc''][''8''] = ''rechts/unten'';\r\n$mip_form[''68''][''option_val''][''0''] = ''lo'';\r\n$mip_form[''68''][''option_val''][''1''] = ''mo'';\r\n$mip_form[''68''][''option_val''][''2''] = ''ro'';\r\n$mip_form[''68''][''option_val''][''3''] = ''lm'';\r\n$mip_form[''68''][''option_val''][''4''] = ''mm'';\r\n$mip_form[''68''][''option_val''][''5''] = ''rm'';\r\n$mip_form[''68''][''option_val''][''6''] = ''lu'';\r\n$mip_form[''68''][''option_val''][''7''] = ''mu'';\r\n$mip_form[''68''][''option_val''][''8''] = ''ru'';\r\n$mip_form[''68''][''cms_val_default''] = ''lo'';\r\n//\r\n\r\n\r\n\r\n// Wasserzeichen für Thumbs\r\n$mip_form[''61''][''desc''] = ''X Position des Wasserzeichens in den Thumbnails (leer = 0 = Links)'';\r\n$mip_form[''61''][''cat''] = ''txt'';\r\n$mip_form[''61''][''cms_var''] = ''MOD_VAR[61]'';\r\n$mip_form[''61''][''cms_val''] = $dedi_mod[''value''][''61''];\r\n$mip_form[''61''][''cms_val_default''] = '''';\r\n\r\n\r\n// Wasserzeichen für Thumbs\r\n$mip_form[''62''][''desc''] = ''Y Position des Wasserzeichens in den Thumbnails (leer = 0 = Oben)'';\r\n$mip_form[''62''][''cat''] = ''txt'';\r\n$mip_form[''62''][''cms_var''] = ''MOD_VAR[62]'';\r\n$mip_form[''62''][''cms_val''] = $dedi_mod[''value''][''62''];\r\n$mip_form[''62''][''cms_val_default''] = '''';\r\n\r\n// Wasserzeichen für Thumbs\r\n$mip_form[''66''][''desc''] = ''Transparenz des Wasserzeichens (0 = Transparent)'';\r\n$mip_form[''66''][''cat''] = ''txt'';\r\n$mip_form[''66''][''cms_var''] = ''MOD_VAR[66]'';\r\n$mip_form[''66''][''cms_val''] = $dedi_mod[''value''][''66''];\r\n$mip_form[''66''][''cms_val_default''] = ''80'';\r\n\r\n\r\n//Wasserzeichen ID\r\n$mip_form[''63''][''desc''] = ''Wasserzeichen-Bild für Galeriebilder: '';\r\n$mip_form[''63''][''cat''] = ''app_file'';\r\n$mip_form[''63''][''output_cat''] = ''option'';\r\n$mip_form[''63''][''cms_var''] = ''MOD_VAR[63]'';\r\n$mip_form[''63''][''cms_val''] = $dedi_mod[''value''][''63''];\r\n$mip_form[''63''][''flag''] = ''single'';\r\n\r\n\r\n// Verzeichnis im Frontend oder Backend auswählen?\r\n$mip_form[''69''][''desc''] = ''Von wo aus sollen die X/Y-Koordinaten ausgehen? (0-Punkt der Achsen wird dorthin verschoben)'';\r\n$mip_form[''69''][''cat''] = ''option'';\r\n$mip_form[''69''][''cms_var''] = ''MOD_VAR[69]'';\r\n$mip_form[''69''][''cms_val''] = $dedi_mod[''value''][''69''];\r\n$mip_form[''69''][''option_desc''][''0''] = ''links/oben'';\r\n$mip_form[''69''][''option_desc''][''1''] = ''mitte/oben'';\r\n$mip_form[''69''][''option_desc''][''2''] = ''rechts/oben'';\r\n$mip_form[''69''][''option_desc''][''3''] = ''links/mitte'';\r\n$mip_form[''69''][''option_desc''][''4''] = ''mitte/mitte'';\r\n$mip_form[''69''][''option_desc''][''5''] = ''rechts/mitte'';\r\n$mip_form[''69''][''option_desc''][''6''] = ''links/unten'';\r\n$mip_form[''69''][''option_desc''][''7''] = ''mitte/unten'';\r\n$mip_form[''69''][''option_desc''][''8''] = ''rechts/unten'';\r\n$mip_form[''69''][''option_val''][''0''] = ''lo'';\r\n$mip_form[''69''][''option_val''][''1''] = ''mo'';\r\n$mip_form[''69''][''option_val''][''2''] = ''ro'';\r\n$mip_form[''69''][''option_val''][''3''] = ''lm'';\r\n$mip_form[''69''][''option_val''][''4''] = ''mm'';\r\n$mip_form[''69''][''option_val''][''5''] = ''rm'';\r\n$mip_form[''69''][''option_val''][''6''] = ''lu'';\r\n$mip_form[''69''][''option_val''][''7''] = ''mu'';\r\n$mip_form[''69''][''option_val''][''8''] = ''ru'';\r\n$mip_form[''69''][''cms_val_default''] = ''lo'';\r\n//\r\n\r\n\r\n\r\n// Wasserzeichen für Bilder\r\n$mip_form[''64''][''desc''] = ''X Position des Wasserzeichens in den Galeriebildern (leer = 0)'';\r\n$mip_form[''64''][''cat''] = ''txt'';\r\n$mip_form[''64''][''cms_var''] = ''MOD_VAR[64]'';\r\n$mip_form[''64''][''cms_val''] = $dedi_mod[''value''][''64''];\r\n$mip_form[''64''][''cms_val_default''] = '''';\r\n\r\n\r\n// Wasserzeichen für Bilder\r\n$mip_form[''65''][''desc''] = ''Y Position des Wasserzeichens in den Galeriebildern (leer = 0)'';\r\n$mip_form[''65''][''cat''] = ''txt'';\r\n$mip_form[''65''][''cms_var''] = ''MOD_VAR[65]'';\r\n$mip_form[''65''][''cms_val''] = $dedi_mod[''value''][''65''];\r\n$mip_form[''65''][''cms_val_default''] = '''';\r\n\r\n// Wasserzeichen für Thumbs\r\n$mip_form[''67''][''desc''] = ''Transparenz des Wasserzeichens (0 = Transparent)'';\r\n$mip_form[''67''][''cat''] = ''txt'';\r\n$mip_form[''67''][''cms_var''] = ''MOD_VAR[67]'';\r\n$mip_form[''67''][''cms_val''] = $dedi_mod[''value''][''67''];\r\n$mip_form[''67''][''cms_val_default''] = ''80'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n\r\n#######################################################################################################################\r\n\r\necho "<hr><b>Schriftarten</b>";\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''27'']);\r\nmip_formsp($mip_form[''28'']);\r\necho "<hr><b>generelle Einstellungen</b>";\r\n\r\n//Verzeichnis im Frontend bearbeiten?\r\nmip_formsp($mip_form[''51'']);\r\n\r\nif ($dedi_mod[''value''][''51''] == false)\r\n{\r\nmip_formsp($mip_form[''4'']);\r\n}\r\n\r\nif ($dedi_mod[''value''][''51''] == true)\r\n{mip_formsp($mip_form[''52'']);\r\n}\r\n\r\n//Unterordner verwenden?\r\nmip_formsp($mip_form[''26'']);\r\n\r\n//Anzahl der Bilder pro seite\r\nmip_formsp($mip_form[''6'']);\r\n//Wieviele Bilder nebeneinander?\r\nmip_formsp($mip_form[''7'']);\r\n\r\n//Startseite dieser Galerie?\r\nmip_formsp($mip_form[''5'']);\r\n\r\n//Sortierreihenfolge der Bilder\r\nmip_formsp($mip_form[''15'']);\r\n//Aufsteigend Absteigend?\r\nmip_formsp($mip_form[''16'']);\r\n\r\necho "<hr><b>Bildergrößen</b>";\r\nmip_formsp($mip_form[''17'']);\r\nmip_formsp($mip_form[''21'']);\r\n\r\necho "<hr><b>Galerie-Walker</b>";\r\n//Vor und Zurücklinks\r\nmip_formsp($mip_form[''10'']);\r\nmip_formsp($mip_form[''13'']);\r\nmip_formsp($mip_form[''14'']);\r\nmip_formsp($mip_form[''11'']);\r\nmip_formsp($mip_form[''12'']);\r\n\r\n//Aktuelle Seite verlinken?\r\nmip_formsp($mip_form[''18'']);\r\n\r\n\r\necho "<hr><b>Templates</b>";\r\n\r\n//Galerietabelle\r\nmip_formsp($mip_form[''8'']);\r\n\r\n//einzelne Elemente\r\nmip_formsp($mip_form[''9'']);\r\n\r\nmip_formsp($mip_form[''22'']);\r\nmip_formsp($mip_form[''25'']);\r\nmip_formsp($mip_form[''23'']);\r\n\r\n\r\necho "Vor- und Zurück-Links in der Detailansicht zyklisch oder endend generieren?";\r\nmip_formsp($mip_form[''24'']);\r\n\r\n//Detailtemplate\r\nmip_formsp($mip_form[''20'']);\r\n\r\necho "<hr>";\r\necho "<b>GD-Options</b><br>";\r\n\r\necho "<u>Quadratische Thumbnails</u><br><br>";\r\nmip_formsp($mip_form[''40'']);\r\n//if ($dedi_mod[''value''][''40''] == true) {\r\nmip_formsp($mip_form[''41'']);\r\n//}\r\n\r\necho "<br><br><u>Wasserzeichen für Thumbnails</u><br><br>";\r\nmip_formsp($mip_form[''60'']);\r\nmip_formsp($mip_form[''68'']);\r\nmip_formsp($mip_form[''61'']);\r\nmip_formsp($mip_form[''62'']);\r\nmip_formsp($mip_form[''66'']);\r\n\r\necho "<br><br><u>Wasserzeichen für Galeriebilder</u><br><br>";\r\nmip_formsp($mip_form[''63'']);\r\nmip_formsp($mip_form[''69'']);\r\nmip_formsp($mip_form[''64'']);\r\nmip_formsp($mip_form[''65'']);\r\nmip_formsp($mip_form[''67'']);\r\n\r\n\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n\r\n\r\n\r\n##########################################################################################################################\r\n//Hier lagere ich mal ein paar Funktionen aus\r\n##########################################################################################################################\r\n\r\n\r\n//Funktion zum erstellen von Wasserzeichen\r\n	if (!function_exists(''make_watermark_image_galerie'')) {\r\n		function make_watermark_image_galerie($image, $watermarkfile, $new_image, $x, $y, $transition) {\r\n			global $cfg_dedi, $cfg_client;\r\n\r\n			require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n			$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n			$dedi_image->load($image);\r\n			$dedi_watermark = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n			$dedi_watermark->load($watermarkfile);\r\n\r\n			//if ($x != $dedi_image->img_x || $y != $dedi_image->img_y) $dedi_image->resize($x, $y);\r\n			//$watermark = imagecreatefromstring(base64_decode($watermarkfile));\r\n                         $watermark_width = imagesx($dedi_watermark->imageHandle);\r\n                         $watermark_height = imagesy($dedi_watermark->imageHandle);\r\n			//(Bild, Watermark, Position des Watermarks X, Position des Watermarks Y, Breite des Bilds, Höhe des Bilds Y, Breite des Watermarks, Höhe des Bildes, Transparenz)\r\n			imagecopymerge($dedi_image->imageHandle, $dedi_watermark->imageHandle, $x, $y, 0, 0, $watermark_width, $watermark_height, $transition);\r\n			$dedi_image->save($new_image);\r\n			$dedi_image->free();\r\n			unset($dedi_image);\r\n		}\r\n	}\r\n\r\n//Funktion zum erstellen von quadratischen Bildern\r\n	if (!function_exists(''make_square_image'')) {\r\n		function make_square_image($image, $new_image, $square_split) {\r\n			global $cfg_dedi, $cfg_client;\r\n\r\n			require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n			$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n			$dedi_image->load($image);\r\n			$square_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n			$square_image->load($image);			\r\n			$w= $dedi_image->img_x;\r\n			$h= $dedi_image->img_y;\r\n			if ($w > $h)\r\n			{\r\n				$x=floor($w/2-$h/2); \r\n				$y=0;\r\n				$s=$h;\r\n			} else {\r\n				$y=floor($h/2-$w/2);\r\n				$x=0;\r\n				$s=$w;\r\n			}\r\n			//echo "s = ",$s,"  w= ",$w,"  h= ",$h,"  x= ",$x,"  y= ",$y;\r\n			$square_image->resize($s,$s);\r\n			//(square_image, Originalbild, Position im Quadrat X, Position im Quardrat Y, Position Ausschnitt X, Position Ausschnitt Y, Breite, Höhe)\r\n			imagecopy($square_image->imageHandle, $dedi_image->imageHandle, 0,0, $x, $y,  $w, $h);\r\n			$square_image->save($new_image);\r\n			$square_image->free();\r\n			unset($dedi_image);\r\n		}\r\n	}\r\n\r\n\r\n\r\n//Funktion zum auslesen der Thumbgrößen\r\n	if (!function_exists(''get_thumb_size'')) {\r\n		function get_thumb_size($xy, $thumb) {\r\n			global $cfg_dedi, $cfg_client;\r\n			require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n			$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n			$dedi_image->load($thumb);\r\n\r\n			//if ($x != $dedi_image->img_x || $y != $dedi_image->img_y) $dedi_image->resize($x, $y);\r\n			//$watermark = imagecreatefromstring(base64_decode($watermarkfile));\r\n                         $width = imagesx($dedi_image->imageHandle);\r\n                         $height = imagesy($dedi_image->imageHandle);\r\n			 $dedi_image->free();\r\n			 unset($dedi_image);\r\n\r\n			 if ($xy == ''x'') {\r\n			 return $width;\r\n			 }\r\n			 elseif ($xy == ''y'') {\r\n			 return $height;\r\n			 }\r\n\r\n		}\r\n	}\r\n\r\n\r\n\r\n//Funktion zum umwandeln von Bilder IDs in Pfade\r\n    if(! function_exists(get_path)){\r\n			    function get_path($id)\r\n			    {\r\n			     global $cfg_dedi, $cfg_client, $dedi_db, $db, $dedi_mod;\r\n\r\n			     $sql = "SELECT A.*, B.dirname\r\n			     FROM\r\n			     ".$dedi_db[''upl''] ." as A, ". $dedi_db[''directory''] ." as B\r\n			     WHERE\r\n			     idupl=''".$id."''\r\n			     AND\r\n			     A.iddirectory = B.iddirectory";\r\n\r\n			     $db->query($sql);\r\n			     $db->next_record();\r\n			     $filepath = $cfg_client["upl_path"].$db->f(''dirname'').$db->f(''filename'');\r\n			     return $filepath;\r\n			    }\r\n			 }\r\n\r\n##########################################################################################################################\r\n  // Slideshow erzeugen\r\n##########################################################################################################################\r\n\r\nif(! function_exists(slide_show)){\r\n			    function slide_show($mod){\r\n//Variablen setzen\r\n//$speed = "MOD_VALUE[1]";\r\n//$duration = "MOD_VALUE[2]";\r\n//$random = "MOD_VALUE[3]";\r\n$speed=3000;\r\n$duration=3;\r\n global $idcatside, $dedi_db, $db, $con_side, $dedi_mod;\r\n\r\n//Bildernamen shuffeln wenn angekreuzt\r\nif ($random) {\r\nshuffle($mod["slideshow"]);\r\n}\r\n\r\n//Ordnet jedem Bild eine Variable pic_X zu\r\nextract ($mod["slideshow"], EXTR_PREFIX_ALL, "pic");\r\n\r\necho "\r\n<img src=\\"$pic_0\\" id=\\"Slideshow\\" alt=\\"Slideshow\\" />\r\n<script type=\\"text/javascript\\">\r\n<!-- Begin\r\n  // Set slideShowSpeed (milliseconds)\r\n  var slideShowSpeed = $speed;\r\n  // Duration of crossfade (seconds)\r\n  var crossFadeDuration = $duration;\r\n  // Specify the image files\r\n  var Pic = new Array();\r\n  // to add more images, just continue\r\n  // the pattern, adding to the array below\r\n  ";\r\n\r\n  //Array mit Bildernamen an das Javascript übergeben\r\n  $hermie = $mod["slideshow"];\r\n  echo ''picja=new Array("''.$hermie[0].''"'';\r\n  for($i=1;$i<count($hermie);$i++){\r\n  echo '',"''.$hermie[$i].''"''; }\r\n  echo ''); anzahl=''.count($hermie).'';'';\r\n\r\n\r\n  echo "\r\n  // Pic Array mit Bildernamen fï¿½llen\r\n  for(i=0;i<anzahl;i++){\r\n  Pic[i]=picja[i]+''''\r\n  }\r\n\r\n  // do not edit anything below this line\r\n  var t;\r\n  var j = 0;\r\n  var p = Pic.length;\r\n  var preLoad = new Array();\r\n  var SLimg = document.getElementById(''Slideshow'');\r\n  for (i = 0; i < p; i++) {\r\n  preLoad[i] = new Image();\r\n  preLoad[i].src = Pic[i];\r\n  }\r\n  function runSlideShow() {\r\n  if ( window.Initialize) {\r\n    Initialize();\r\n  }\r\n  if (document.all) {\r\n  SLimg.style.filter=\\"blendTrans(duration=2)\\";\r\n  SLimg.style.filter=\\"blendTrans(duration=crossFadeDuration)\\";\r\n  SLimg.filters.blendTrans.Apply();\r\n  }\r\n  SLimg.src = preLoad[j].src;\r\n  if (document.all) {\r\n  SLimg.filters.blendTrans.Play();\r\n  }\r\n  j = j + 1;\r\n  if (j > (p - 1)) j = 0;\r\n  t = setTimeout(''runSlideShow()'', slideShowSpeed);\r\n  }\r\n  runSlideShow();\r\n//  End -->\r\n</script>";\r\n\r\n}}\r\n\r\n###########################################################################################################################\r\n#Hier ein paar Variablen, die wir überall brauchen\r\n###########################################################################################################################\r\n// Variablen für quadratische Thumbnails\r\n $mod[''square_thumb''] = "MOD_VALUE[40]";\r\n $mod[''square_split''] = "MOD_VALUE[41]";\r\n\r\n\r\n//Der Pfad zum Watermarkbild für die Thumbs\r\n $mod[''watermark_thumb_id''] = "MOD_VALUE[60]";\r\n $mod[''watermark_thumb_path''] = get_path($mod[''watermark_thumb_id'']);\r\n $mod[''watermark_thumb_location''] = "MOD_VALUE[68]";\r\n $mod[''watermark_thumb_positionx''] = "MOD_VALUE[61]";\r\n $mod[''watermark_thumb_positiony''] = "MOD_VALUE[62]";\r\n $mod[''watermark_thumb_transparent''] = "MOD_VALUE[66]";\r\n\r\n //Der Pfad zum Watermarkbild für die Galeriebilder\r\n $mod[''watermark_image_id''] = "MOD_VALUE[63]";\r\n $mod[''watermark_image_path''] = get_path($mod[''watermark_image_id'']);\r\n $mod[''watermark_image_location''] = "MOD_VALUE[69]";\r\n $mod[''watermark_image_positionx''] = "MOD_VALUE[64]";\r\n $mod[''watermark_image_positiony''] = "MOD_VALUE[65]";\r\n $mod[''watermark_image_transparent''] = "MOD_VALUE[67]";\r\n\r\n\r\n//Variable für den Link zur aktuellen Seite mit Session ID\r\n$mod[''idcatlink''] =  $con_side[$idcatside][''link''];\r\n\r\n//Auslesen ob im Frontend-Editiert werden darf\r\n$mod[''frontedit''] = "MOD_VALUE[51]";\r\n\r\n\r\n##########################################################################################################################\r\n  // FRONTEND BEARBEITUNG (wird in der Detailansicht ausgeschlossen! Habe das für nicht sinnvoll gehalten. Läßt sich aber leicht wieder aktivieren.)\r\n##########################################################################################################################\r\n\r\n//Frontend-editieren\r\nif ($mod[''frontedit''] == true)\r\n\r\n    {\r\n    //bjoerns funktion\r\n    if(! function_exists(get_val)){\r\n    function get_val($value_name)\r\n    {\r\n     global $idcatside, $dedi_db, $db, $con_side, $dedi_mod;\r\n\r\n     $sql = "SELECT\r\n        *\r\n       FROM\r\n        ".$dedi_db[''content_external''] ."\r\n       WHERE\r\n        idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n        AND container=''".$dedi_mod[''container''][''id'']."''\r\n        AND idtype=''$value_name''";\r\n     $db->query($sql);\r\n     $db->next_record();\r\n\r\n     return $db->f(''value'');\r\n    }\r\n    }\r\n\r\n    if(! function_exists(set_val)){\r\n    function set_val($value_name, $value)\r\n    {\r\n     global $idcatside, $dedi_db, $db, $con_side, $dedi_mod;\r\n     //Schauen, ob es den Wert schon gibt\r\n     $sql = "SELECT\r\n        *\r\n       FROM\r\n        ".$dedi_db[''content_external''] ."\r\n       WHERE\r\n        idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n        AND container=''".$dedi_mod[''container''][''id'']."''\r\n        AND idtype=''$value_name''";\r\n     $db->query($sql);\r\n\r\n     //Es gibt den Wert schon -> wert aktuallisieren\r\n     if ($db->next_record()){\r\n      $sql = "UPDATE\r\n         ". $dedi_db[''content_external''] ."\r\n        SET\r\n         value=''$value''\r\n        WHERE\r\n         idsidelang=''".$con_side[$idcatside][''idsidelang'']."''\r\n         AND container=''".$dedi_mod[''container''][''id'']."''\r\n         AND idtype=''$value_name''";\r\n     }\r\n     //Es gibt den Wert noch nicht, neu in tabelle einfügen\r\n     else{\r\n      $sql = "INSERT INTO\r\n         ". $dedi_db[''content_external''] ."\r\n         (idsidelang, container, idtype, value)\r\n        VALUES\r\n         (''".$con_side[$idcatside][''idsidelang'']."'',\r\n          ''".$dedi_mod[''container''][''id'']."'',\r\n          ''$value_name'', ''$value'')";\r\n     }\r\n\r\n     $db->query($sql);\r\n\r\n    //Letzte Änderung Datum ändern!\r\n    $sql = "UPDATE ". $dedi_db[''side_lang'']. " SET lastmodified=''".time()."'' WHERE idsidelang=''".$con_side[$idcatside][''idsidelang'']."'' ";\r\n                    $db->query($sql);\r\n\r\n     //Cache löschen\r\n     //Seite fürs frontend neu generieren, da sich ein Wert geändert hat\r\n     change_code_status($idcatside, 1, ''idcatside'');\r\n\r\n\r\n    }\r\n    }\r\n\r\n    //Editierwechsel beachten\r\n                            if  ($change_dir) {\r\n                                     //Formular ist abgeschickt worden\r\n                                    //Neuen Wert in die DB einfügen\r\n									//if ($container_id){$dedi_mod[''container''][''id''] = $container_id;}\r\n									if ($container_id AND ($container_id == $dedi_mod[''container''][''id''])){\r\n                                    set_val(''galerie_folder'', $change_dir);}\r\n                                            }\r\n\r\n    //Wert aus der DB holen\r\n    $mod[''galerie_folder''] = get_val(''galerie_folder'');\r\n\r\n\r\n    //Bearbeitenbutton\r\n    $aktverz = $mod[''galerie_folder''];\r\n    if ($dedi_side[''edit''] && $detailid == false) {\r\n\r\n    //Startverzeichnis auslesen\r\n    $mod[''startdir''] = "MOD_VALUE[52]";\r\n\r\n    if ($mod[''startdir'']) {\r\n\r\n    //Startverzeichnis Namen auslesen\r\n    $sql = "SELECT A.dirname\r\n       FROM\r\n        ".$dedi_db[''directory''] ." as A\r\n       WHERE\r\n        A.iddirectory=''".$mod[''startdir'']."''\r\n    ORDER BY dirname";\r\n    $db -> query($sql);\r\n    $db->next_record();\r\n\r\n    $mod[''startdirname''] =  $db->f(''dirname'');\r\n\r\n     }\r\n\r\n\r\n    if ($mod[''startdirname'']) {\r\n\r\n    //Dateimanager Verzeichnisse auslesen mit Startverzeichnis\r\n    $sql = "SELECT A.iddirectory, A.dirname\r\n       FROM\r\n        ".$dedi_db[''directory''] ." as A\r\n       WHERE\r\n        A.idclient=''".$client."''\r\n        AND A.status & 0x05 = 0x00\r\n        AND A.dirname like ''".$mod[''startdirname'']."%''\r\n\r\n    ORDER BY dirname";\r\n    $result = mysql_query($sql);\r\n\r\n    }else{\r\n\r\n    //Dateimanager Verzeichnisse auslesen\r\n    $sql = "SELECT A.iddirectory, A.dirname\r\n       FROM\r\n        ".$dedi_db[''directory''] ." as A\r\n       WHERE\r\n        A.idclient=''".$client."''\r\n        AND A.status & 0x05 = 0x00\r\n\r\n    ORDER BY dirname";\r\n    $result = mysql_query($sql);\r\n\r\n    }\r\n\r\n\r\n\r\n    //Aktion auf aktuelle Seite legen\r\n	 $action = $con_side[$idcatside][''link''];\r\n    //Bearbeitungsformular ausgeben\r\n    echo "<div align=\\"center\\"><form method=\\"POST\\" action=\\"$action\\"><select name=\\"change_dir\\" size=\\"1\\">";\r\n\r\n    while ($row = mysql_fetch_array($result, MYSQL_ASSOC))\r\n    {\r\n\r\n    if($perm->have_perm(0x01, "folder", $row[''iddirectory'']))\r\n    {\r\n    if ($mod[''galerie_folder''] == $row[''iddirectory''])\r\n    { echo "<option  selected value=\\""; }\r\n    else { echo "<option value=\\"";}\r\n      echo $row[''iddirectory''];\r\n      echo "\\">";\r\n      echo $row[''dirname''];\r\n      echo "</option>";\r\n    }}\r\n    echo"</select>";\r\n	 echo"<input type=\\"hidden\\" name=\\"container_id\\" value=\\"".$dedi_mod[''container''][''id'']."\\">";\r\n    echo"<input type=\\"submit\\" value=\\"Submit\\">";\r\n\r\n		//Kästchen für Watermark neu Berechnung einfügen wenn Watermarkpfad vorhanden\r\n		if (($mod[''watermark_thumb_id'']) OR ($mod[''watermark_image_id''])) {\r\n		    echo"<input type=\\"checkbox\\" name=\\"resample_watermarks\\"> Wasserzeichen neu berechnen?";\r\n		   }\r\n\r\necho"</form></div>";\r\n\r\n\r\n    unset($dedi_side[''edit'']);\r\n    }\r\n\r\n\r\n    }\r\n    //END-Frontend-Editieren\r\n    else\r\n    {\r\n    //Wenn der Ordner in der Konfiguration eingestellt wird\r\n    $mod[''galerie_folder''] = "MOD_VALUE[4]";\r\n}\r\n\r\n##########################################################################################################################\r\n  // INIT\r\n##########################################################################################################################\r\n\r\nif (isset($galerie) AND $galerie <>"")\r\n{\r\n     $mod["galerie"] = array();\r\n     $mod["galerie"] = explode("_",$galerie);\r\n     for ($i = 0; $i < count($mod["galerie"])/2; $i++)\r\n     { if ($dedi_mod[''container''][''id''] == $mod["galerie"][$i*2])\r\n       { $id = $mod["galerie"][$i*2+1];\r\n       }\r\n       else\r\n       { //$mod[''query''] .= "_" . $mod["galerie"][$i*2] . "_" . $mod["galerie"][$i*2+1];\r\n   	   if ($mod["galerie"][$i*2]<>"" AND $mod["galerie"][$i*2+1]<>""){$usc="_";}else {$usc="";}\r\n	   $mod[''query''] .= $usc.$mod["galerie"][$i*2] . "_" . $mod["galerie"][$i*2+1];\r\n\r\n	   \r\n       }\r\n     }\r\n\r\n}\r\n\r\nif (isset($picture) AND $picture <>"")\r\n{\r\n     $mod["picture"] = array();\r\n     $mod["picture"] = explode("_",$picture);\r\n     for ($i = 0; $i < count($mod["picture"])/2; $i++)\r\n     { if ($dedi_mod[''container''][''id''] == $mod["picture"][$i*2])\r\n       { $detailid = $mod["picture"][$i*2+1];\r\n       }\r\n       else\r\n       { \r\n	   if ($mod["picture"][$i*2]<>"" AND $mod["picture"][$i*2+1]<>""){$usc="_";}else {$usc="";}\r\n	   $mod[''pquery''] .= $usc.$mod["picture"][$i*2] . "_" . $mod["picture"][$i*2+1];\r\n       }\r\n     }\r\n\r\n}\r\n\r\n\r\n\r\nif (!isset($id))\r\n{ if ("MOD_VALUE[5]" == "1")\r\n  { $id = 1;\r\n  }\r\n  else\r\n  { $id = "MOD_VALUE[5]";\r\n  }\r\n}\r\n\r\n\r\n$mod["number_of_pics_per_page"] = MOD_VALUE[6];\r\n$mod["break_after_number_of_pics"] = MOD_VALUE[7];\r\n$mod["filename_suffix"] = $cfg_client["thumbext"];\r\n\r\n##########################################################################################################################\r\n  // Daten ermitteln\r\n##########################################################################################################################\r\n//Ist das Verzeichnis in der Datenbank? False bedeutet ja! Weiter unten in der if schleife wird das nochmal möglichweise nochmal überschrieben!\r\n//Das ist wichtig für das Bearbeiten im Frontend. When false wird die Galerie angezeigt, wenn true bedeutet das, dass der Wert in der DB noch nicht\r\n//gesetzt ist, was zu einem SQL-Fehler führen würde, der so abgefangen wird!\r\n$mod[''no_dir''] = false;\r\n\r\n\r\n//diese if-schleife fängt den SQL-Fehler ab wenn im FE noch kein Verzeicnis festgelegt wurde\r\nif ( ($mod[''galerie_folder''] ==false) AND ($mod[''frontedit''] == true))\r\n	{\r\n	$mod[''error_no_dir''] = "<div align=\\"center\\" class=\\"{font1}\\">Diese Galerie ist noch nicht eingerichtet worden.</div>";\r\n	$mod[''error_no_dir''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''error_no_dir'']);\r\n	echo $mod[''error_no_dir''];\r\n	$mod[''no_dir''] = true;\r\n	}\r\nelse\r\n	{\r\n    //Mit dieser if-Schleife wird für Unterordner gesorgt und für "Alle Ordner"\r\n    if ( ($mod[''galerie_folder''] ==false) AND ($mod[''frontedit''] == false))\r\n        {\r\n        $sql = "SELECT A.*, B.dirname\r\n                            FROM " . $dedi_db[''upl''] . " as A, ". $dedi_db[''directory''] ." as B\r\n\r\n                            WHERE\r\n                                    A.idclient = ''$client''\r\n                            AND\r\n                                    A.iddirectory = B.iddirectory\r\n                            AND\r\n                                    idfiletype = 3\r\n                            ORDER BY\r\n                                    A." . "MOD_VALUE[15]" . " " . "MOD_VALUE[16]";\r\n        }\r\n\r\n    else\r\n        {\r\n        	//Unterordner berücksichtigen?\r\n            if ("MOD_VALUE[26]" == true)\r\n                {\r\n\r\n				//Name des eingestellten Verzeichnisses auslesen\r\n    			$sqlsub = "SELECT A.dirname\r\n       			FROM\r\n        		".$dedi_db[''directory''] ." as A\r\n       			WHERE\r\n        		A.iddirectory=''".$mod[''galerie_folder'']."''\r\n    			ORDER BY dirname";\r\n    			$db -> query($sqlsub);\r\n    			$db->next_record();\r\n			    $mod[''name_of_galerie_folder''] =  $db->f(''dirname'');\r\n\r\n				//IDs der Unterordner auslesen\r\n			    $sqlsub = "SELECT A.iddirectory\r\n       			FROM\r\n        		".$dedi_db[''directory''] ." as A\r\n       			WHERE\r\n        		A.idclient=''".$client."''\r\n			    AND A.dirname like ''".$mod[''name_of_galerie_folder'']."%''";\r\n				$mod[''sub_dirs''] = mysql_query($sqlsub);\r\n\r\n  				//array mit den ids füllen\r\n  				$mod[''sub_dirs_ids''] = array();\r\n  				while ($row = mysql_fetch_array($mod[''sub_dirs''], MYSQL_ASSOC))\r\n   				 {\r\n   				  array_push($mod[''sub_dirs_ids''], "OR B.parentid = ".$row[''iddirectory'']."");\r\n				 }\r\n   				 $mod[''sub_dirs_ids''] = implode(" ", $mod[''sub_dirs_ids'']);\r\n\r\n				//SQL Where Abfrage für Unterverzeichnisse füllen\r\n                $mod[''where''] = "(A.iddirectory = ". $mod[''galerie_folder''] ." ".$mod[''sub_dirs_ids''].")";\r\n                }\r\n                                else\r\n                {\r\n                $mod[''where''] = "A.iddirectory = ". $mod[''galerie_folder''] ." ";\r\n                }\r\n\r\n        $sql = "SELECT A.*, B.dirname\r\n            FROM " . $dedi_db[''upl''] . " as A, ". $dedi_db[''directory''] ." as B\r\n\r\n            WHERE\r\n                " . $mod[''where''] . "\r\n            AND\r\n                A.idclient = ''$client''\r\n            AND\r\n                A.iddirectory = B.iddirectory\r\n            ORDER BY\r\n                A." . "MOD_VALUE[15]" . " " . "MOD_VALUE[16]";\r\n        }\r\n\r\n             $db->query($sql);\r\n             $i = 0;\r\n\r\n             //Anfang von while\r\n             while ($db->next_record() )\r\n             { $mod["file"][$i]["title"] = $db->f(''titel'');\r\n               $mod["file"][$i]["filename"] = $db->f(''filename'');\r\n               $mod["file"][$i]["description"] = $db->f(''description'');\r\n               $mod["file"][$i]["dirname"] = $db->f(''dirname'');\r\n               $mod["file"][$i]["filesize"] = $db->f(''filesize'');\r\n               $mod["file"][$i]["width"] = $db->f(''pictwidth'');\r\n               $mod["file"][$i]["height"] = $db->f(''pictheight'');\r\n               $mod["file"][$i]["thumbwidth"] = $db->f(''pictthumbwidth'');\r\n               $mod["file"][$i]["thumbheight"] = $db->f(''pictthumbheight'');\r\n			   \r\n			  if ($slideshow)\r\n  				{\r\n				if ($mod[''watermark_image_id'']) {$suffix=$cfg_client[''thumbext'']."_watermark_image";}\r\n			    $path_parts = pathinfo($db->f(''filename''));\r\n			   $mod["slideshow"][]=$cfg_client["upl_htmlpath"].$db->f(''dirname'').basename($db->f(''filename''),".".$path_parts["extension"]).$suffix.".".$path_parts["extension"];\r\n				}\r\n\r\n	   \r\n			   \r\n            ### BEGIN filter  für <order>\r\n                   if (strstr($mod["file"][$i]["description"],"<order>"))\r\n                   { $mod[''order_firstpos''] = strpos($mod["file"][$i]["description"],"<order>")+7;\r\n                     $mod[''order_lastpos'']  = strpos($mod["file"][$i]["description"],"</order>");\r\n                     $mod["file"][$i][''order''] = substr($mod["file"][$i]["description"],$mod[''order_firstpos''],$mod[''order_lastpos'']-$mod[''order_firstpos'']);\r\n                     $mod[''order_tag''] = "<order>". $mod["file"][$i][''order''] ."</order>";\r\n                     $mod["file"][$i]["description"] = str_replace($mod[''order_tag''], "" ,$mod["file"][$i]["description"]);\r\n                   }\r\n                   else\r\n                   { $mod["file"][$i][''order''] = "ZZZ";   // wenn keine Reihenfolge definiert, dann hinten dran\r\n                   }\r\n            ### END filter  für <order>\r\n\r\n            ### BEGIN  maximgsize\r\n            if ("MOD_VALUE[17]" != "")\r\n            {\r\n                                    if ( ($mod["file"][$i]["width"] > "MOD_VALUE[17]") OR ( $mod["file"][$i]["height"] > "MOD_VALUE[17]") )\r\n                                    { if ($mod["file"][$i]["width"] > $mod["file"][$i]["height"])\r\n                                      {    $mod["file"][$i]["h_show"] = round($mod["file"][$i]["height"] * "MOD_VALUE[17]" / $mod["file"][$i]["width"]);\r\n                                           $mod["file"][$i]["w_show"] = "MOD_VALUE[17]";\r\n                                      }\r\n                                      ELSE\r\n                                      {    $mod["file"][$i]["w_show"] = round($mod["file"][$i]["width"] * "MOD_VALUE[17]" / $mod["file"][$i]["height"]);\r\n                                           $mod["file"][$i]["h_show"] = "MOD_VALUE[17]";\r\n                                      }\r\n                                    }\r\n                                    ELSE\r\n                                    { $mod["file"][$i]["w_show"] = $mod["file"][$i]["width"];\r\n                                      $mod["file"][$i]["h_show"] = $mod["file"][$i]["height"];\r\n                                    }\r\n               $mod["file"][$i]["maximgsize"] = "width=\\"" . $mod["file"][$i]["w_show"] . "\\" height=\\"" . $mod["file"][$i]["h_show"] . "\\"";\r\n            }\r\n            ### END maximgsize\r\n            ### BEGIN  maximgsize2\r\n            if ("MOD_VALUE[21]" != "")\r\n            {\r\n                                    if ( ($mod["file"][$i]["width"] > "MOD_VALUE[21]") OR ( $mod["file"][$i]["height"] > "MOD_VALUE[21]") )\r\n                                    { if ($mod["file"][$i]["width"] > $mod["file"][$i]["height"])\r\n                                      {    $mod["file"][$i]["h_show"] = round($mod["file"][$i]["height"] * "MOD_VALUE[21]" / $mod["file"][$i]["width"]);\r\n                                           $mod["file"][$i]["w_show"] = "MOD_VALUE[21]";\r\n                                      }\r\n                                      ELSE\r\n                                      {    $mod["file"][$i]["w_show"] = round($mod["file"][$i]["width"] * "MOD_VALUE[21]" / $mod["file"][$i]["height"]);\r\n                                           $mod["file"][$i]["h_show"] = "MOD_VALUE[21]";\r\n                                      }\r\n                                    }\r\n                                    ELSE\r\n                                    { $mod["file"][$i]["w_show"] = $mod["file"][$i]["width"];\r\n                                      $mod["file"][$i]["h_show"] = $mod["file"][$i]["height"];\r\n                                    }\r\n               $mod["file"][$i]["maximgsize2"] = "width=\\"" . $mod["file"][$i]["w_show"] . "\\" height=\\"" . $mod["file"][$i]["h_show"] . "\\"";\r\n            }\r\n            ### END maximgsize2\r\n\r\n               $i++;\r\n\r\n            // Ende von while\r\n             }\r\n\r\n	//Ende der if-else-schleife für das Abfangen des SQL-Fehlers bei nicht vergebenem Verzeichnis\r\n	}\r\n\r\n\r\n\r\n    ### BEGIN individual order\r\n    if (MOD_VALUE[15] == "description")\r\n    {\r\n      function cmp ($a, $b)\r\n      { return strcmp($a["order"], $b["order"]);\r\n      }\r\n      function rcmp ($a, $b)\r\n      { return strcmp($b["order"], $a["order"]);\r\n      }\r\n\r\n      if (MOD_VALUE[16] == "ASC")\r\n      { usort($mod["file"], "cmp");}\r\n      else\r\n      { usort($mod["file"], "rcmp");}\r\n    }\r\n    ###  // END individual order\r\n\r\n\r\n\r\n    $i = ($id - 1) * $mod["number_of_pics_per_page"];\r\n    $mod["last_pic"] = $id * $mod["number_of_pics_per_page"];\r\n    if ($mod["last_pic"] > count($mod["file"]))\r\n   		 { $mod["last_pic"] = count($mod["file"]);\r\n    	 }\r\n\r\n##########################################################################################################################\r\n  // Galerie-Walker:\r\n##########################################################################################################################\r\n\r\nif ( !function_exists(''galeriecreatePageLinks'') ) {\r\nfunction galeriecreatePageLinks($isFloating, $separator, $showNavLinks) {\r\n        global $mod, $cfg_client, $idcatside, $id, $dedi_mod, $picture, $detailid;\r\n        if ($isFloating > 0) {\r\n                $floatdiff = ceil($isFloating / 2);\r\n\r\n                $start = $id - $floatdiff;\r\n                if ($start > $mod["anz"]) $start = $mod["anz"] - $floatdiff;\r\n                if ($start < 1) $start = 1;\r\n\r\n                $stop = $id + $floatdiff;\r\n                if ($stop > $mod["anz"]) $stop = $mod["anz"];\r\n        } else {\r\n                $start = 1;\r\n                $stop = $mod["anz"];\r\n        }\r\n\r\n        if ($id > 1 && $showNavLinks == ''true'') {\r\n                $previd = $id - 1;\r\n                $returnvalue .= "<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$previd.$mod[''query'']."&picture=".$mod[''pquery'']."\\">MOD_VALUE[13]</a>&nbsp;&nbsp;&nbsp;";\r\n        }\r\n\r\n        for ( $mod["pagecounter"] = $start; $mod["pagecounter"] <= $stop; $mod["pagecounter"]++ )\r\n        {\r\n                if ($mod["pagecounter"] > $start) $returnvalue .= $separator;\r\n                if ($mod["pagecounter"] == $id) {\r\n                       if ("MOD_VALUE[18]" == false){\r\n                        $returnvalue .= "<span class=\\"MOD_VALUE[3]\\">[".$mod["pagecounter"]."]</span>";\r\n                        } else {\r\n                        $returnvalue .= "<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod["pagecounter"].$mod[''query'']."&picture=".$mod[''pquery'']."\\"><span class=\\"MOD_VALUE[3]\\">[".$mod["pagecounter"]."]</span></a>";\r\n                        }\r\n                } else {\r\n                        $returnvalue .= "<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod["pagecounter"].$mod[''query'']."&picture=".$mod[''pquery'']."\\"><span class=\\"MOD_VALUE[2]\\">".$mod["pagecounter"]."</span></a>";\r\n                }\r\n        }\r\n\r\n        if ($id < $mod["anz"] && $showNavLinks == ''true'') {\r\n                $nextid = $id + 1;\r\n                $returnvalue .= "&nbsp;&nbsp;&nbsp;<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$nextid.$mod[''query'']."&picture=".$mod[''pquery'']."\\">MOD_VALUE[14]</a>";\r\n        }\r\n        return $returnvalue;\r\n}  // end function\r\n\r\n} // end if exist\r\n\r\n// gesamtanzahl der seiten herausfinden\r\n$mod["anz"] = ceil(count($mod["file"]) / $mod["number_of_pics_per_page"]);\r\n\r\n// wenn mod_value_12 leer ist, default-separator verwenden.\r\nif ("MOD_VALUE[12]" == "")\r\n{\r\n        $separator = "&nbsp;&nbsp;|&nbsp;&nbsp;";\r\n} else {\r\n        $separator = "MOD_VALUE[12]";\r\n}\r\n\r\n// vor/zurück-links anzeigen?\r\nif ($mod["anz"]> 1)$mod["walker"] .= galeriecreatePageLinks("MOD_VALUE[11]", $separator, "MOD_VALUE[10]");\r\n\r\n##########################################################################################################################\r\n  // Ausgabe\r\n##########################################################################################################################\r\nfor($i;$i<$mod["last_pic"];$i++)\r\n{\r\n  //\r\n\r\n\r\n  $mod[''temp''] = "MOD_VALUE[9]";\r\n\r\n  $mod["file"][$i]["filename"] = trim($mod["file"][$i]["filename"]);\r\n\r\n  $mod["file_ext"] = substr (strrchr ($mod["file"][$i]["filename"], "."), 1);\r\n  $mod["filename"] = substr ($mod["file"][$i]["filename"], 0, -(strlen($mod["file_ext"]))-1 );\r\n\r\n\r\n\r\n\r\n\r\n\r\n//Wasserzeichen\r\n\r\n\r\n//Wasserzeichenposition errechnen\r\n\r\n//links oben\r\nif ($mod[''watermark_image_location''] == ''lo'') {\r\n\r\n}\r\n//mitte oben\r\nelseif ($mod[''watermark_image_location''] == ''mo'') {\r\n $mod[''watermark_image_positionxx''] = (($mod["file"][$i]["width"] / 2) + ($mod[''watermark_image_positionx'']));\r\n}\r\n//rechts oben\r\nelseif ($mod[''watermark_image_location''] == ''ro'') {\r\n $mod[''watermark_image_positionxx''] = ($mod["file"][$i]["width"] + ($mod[''watermark_image_positionx'']));\r\n}\r\n//links mitte\r\nelseif ($mod[''watermark_image_location''] == ''lm'') {\r\n $mod[''watermark_image_positionyy''] = (($mod["file"][$i]["height"] / 2) + ($mod[''watermark_image_positiony'']));\r\n}\r\n//mitte mitte\r\nelseif ($mod[''watermark_image_location''] == ''mm'') {\r\n $mod[''watermark_image_positionxx''] = (($mod["file"][$i]["width"] / 2) + ($mod[''watermark_image_positionx'']));\r\n $mod[''watermark_image_positionyy''] = (($mod["file"][$i]["height"] / 2) + ($mod[''watermark_image_positiony'']));\r\n}\r\n//rechts mitte\r\nelseif ($mod[''watermark_image_location''] == ''rm'') {\r\n $mod[''watermark_image_positionxx''] = ($mod["file"][$i]["width"] + ($mod[''watermark_image_positionx'']));\r\n $mod[''watermark_image_positionyy''] = (($mod["file"][$i]["height"] / 2) + ($mod[''watermark_image_positiony'']));\r\n}\r\n//links unten\r\nelseif ($mod[''watermark_image_location''] == ''lu'') {\r\n $mod[''watermark_image_positionyy''] = ($mod["file"][$i]["height"] + ($mod[''watermark_image_positiony'']));\r\n}\r\n//mitte unten\r\nelseif ($mod[''watermark_image_location''] == ''mu'') {\r\n $mod[''watermark_image_positionxx''] = (($mod["file"][$i]["width"] / 2) + ($mod[''watermark_image_positionx'']));\r\n $mod[''watermark_image_positionyy''] = ($mod["file"][$i]["height"] + ($mod[''watermark_image_positiony'']));\r\n}\r\n//rechts unten\r\nelseif ($mod[''watermark_image_location''] == ''ru'') {\r\n $mod[''watermark_image_positionxx''] = ($mod["file"][$i]["width"] + ($mod[''watermark_image_positionx'']));\r\n $mod[''watermark_image_positionyy''] = ($mod["file"][$i]["height"] + ($mod[''watermark_image_positiony'']));\r\n}\r\n// ######### ergänzt von Noeder für die Generierung von watermark_images in der Detailsicht, wenn diese nicht vorhanden sind ##############\r\n $mod["file"][$i]["watermark_image_positionxx"]=$mod[''watermark_image_positionxx''];\r\n $mod["file"][$i]["watermark_image_positionyy"]=$mod[''watermark_image_positionyy''];\r\n//######### ende der Ergänzung #########################\r\n\r\n\r\n		if ($mod[''watermark_image_id'']) {\r\n\r\n			//Bildformat für die Bilder bereitstellen\r\n			$mod[''watermark_image''] = $mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_watermark_image.''.strtolower($mod["file_ext"]);\r\n\r\n\r\n			//If Wasserzeichen ist nicht vorhanden aber Thumb ist vorhanden\r\n			 if ( (!@file_exists($cfg_client["upl_path"].$mod[''watermark_image'']) ) OR ($resample_watermarks)   )\r\n				{\r\n					make_watermark_image_galerie($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].".".strtolower($mod["file_ext"]), $mod[''watermark_image_path''], $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_watermark_image.''.strtolower($mod["file_ext"]), $mod[''watermark_image_positionxx''], $mod[''watermark_image_positionyy''], $mod[''watermark_image_transparent'']);\r\n					$mod[''temp''] = str_replace("{file}",$mod["filename"].$cfg_client[''thumbext''].''_watermark_image.''.strtolower($mod["file_ext"]),$mod[''temp'']);\r\n		    }\r\n				elseif ((strtolower($mod["file_ext"])) == "gif")\r\n				     {\r\n				     $mod[''temp''] = str_replace("{file}", $mod["file"][$i]["filename"] ,$mod[''temp'']);\r\n				     }\r\n\r\n\r\n				     else\r\n					{\r\n						$mod[''temp''] = str_replace("{file}",$mod["filename"].$cfg_client[''thumbext''].''_watermark_image.''.strtolower($mod["file_ext"]),$mod[''temp'']);\r\n					}\r\n\r\n\r\n\r\n				}\r\n\r\n			   else\r\n			   {\r\n\r\n                        $mod[''temp''] = str_replace("{file}", $mod["file"][$i]["filename"] ,$mod[''temp'']);\r\n\r\n  			   }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n  //filedesc\r\n  if ($mod["file"][$i]["title"] != "")\r\n  { $mod["filedesc"] = $mod["file"][$i]["title"];\r\n  }\r\n  else\r\n  { $mod["filedesc"] = $mod["file"][$i]["filename"];\r\n  }\r\n  $mod[''temp''] = str_replace("{filedesc}",$mod["filedesc"] ,$mod[''temp'']);\r\n\r\n  //filename\r\n  $mod[''temp''] = str_replace("{filename}",$mod["filename"] ,$mod[''temp'']);\r\n\r\n  // path\r\n  $mod[''temp''] = str_replace("{path}",$cfg_client["upl_htmlpath"]  . $mod["file"][$i]["dirname"] ,$mod[''temp'']);\r\n\r\n  // file\r\n  //$mod[''temp''] = str_replace("{file}", $mod["file"][$i]["filename"] ,$mod[''temp'']);\r\n\r\n  // filesize\r\n  $mod[''temp''] = str_replace("{filesize}", round(($mod["file"][$i]["filesize"]/1024), 1)." kb" ,$mod[''temp'']);\r\n\r\n  // maximgsize\r\n  $mod[''temp''] = str_replace("{maximgsize}", $mod["file"][$i]["maximgsize"] ,$mod[''temp'']);\r\n\r\n  // maximgsize2\r\n  $mod[''temp''] = str_replace("{maximgsize2}", $mod["file"][$i]["maximgsize2"] ,$mod[''temp'']);\r\n\r\n  // width\r\n  $mod[''temp''] = str_replace("{width}", $mod["file"][$i]["width"] ,$mod[''temp'']);\r\n\r\n  // height\r\n  $mod[''temp''] = str_replace("{height}", $mod["file"][$i]["height"] ,$mod[''temp'']);\r\n\r\n  // title\r\n  $mod[''temp''] = str_replace("{title}", $mod["file"][$i]["title"] ,$mod[''temp'']);\r\n\r\n  // desc\r\n  $mod[''temp''] = str_replace("{description}",$mod["file"][$i]["description"],$mod[''temp'']);\r\n\r\n  // detailurl\r\n  $mod[''temp''] = str_replace("{detailurl}",$mod[''idcatlink''] . "&galerie=".(substr ($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=" .$dedi_mod[''container''][''id'']."_". ($i+1).$mod[''pquery''],$mod[''temp'']);\r\n\r\n\r\n  ###################################################################################################################\r\n  #WASSERZEICHENERSTELLUNG\r\n  ###################################################################################################################\r\n  //Wasserzeichen für Thumbs erstellen?\r\n\r\n\r\n  //Wasserzeichenposition errechnen\r\n\r\nif (file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"]))) {\r\n  $mod["thumb_width"] = get_thumb_size(x, $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"]));\r\n  $mod["thumb_height"] = get_thumb_size(y, $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"]));\r\n  } else {\r\n   $mod["thumb_width"] = $mod["file"][$i]["width"];\r\n  $mod["thumb_height"] = $mod["file"][$i]["height"];\r\n  }\r\n\r\n//links oben\r\nif ($mod[''watermark_thumb_location''] == ''lo'') {\r\n\r\n}\r\n//mitte oben\r\nelseif ($mod[''watermark_thumb_location''] == ''mo'') {\r\n $mod[''watermark_thumb_positionxx''] = (($mod["thumb_width"] / 2) + ($mod[''watermark_thumb_positionx'']));\r\n}\r\n//rechts oben\r\nelseif ($mod[''watermark_thumb_location''] == ''ro'') {\r\n $mod[''watermark_thumb_positionxx''] = ($mod["thumb_width"] + ($mod[''watermark_thumb_positionx'']));\r\n}\r\n//links mitte\r\nelseif ($mod[''watermark_thumb_location''] == ''lm'') {\r\n $mod[''watermark_thumb_positionyy''] = (($mod["thumb_height"] / 2) + ($mod[''watermark_thumb_positiony'']));\r\n}\r\n//mitte mitte\r\nelseif ($mod[''watermark_thumb_location''] == ''mm'') {\r\n $mod[''watermark_thumb_positionxx''] = (($mod["thumb_width"] / 2) + ($mod[''watermark_thumb_positionx'']));\r\n $mod[''watermark_thumb_positionyy''] = (($mod["thumb_height"] / 2) + ($mod[''watermark_thumb_positiony'']));\r\n}\r\n//rechts mitte\r\nelseif ($mod[''watermark_thumb_location''] == ''rm'') {\r\n $mod[''watermark_thumb_positionxx''] = ($mod["thumb_width"] + ($mod[''watermark_thumb_positionx'']));\r\n $mod[''watermark_thumb_positionyy''] = (($mod["thumb_height"] / 2) + ($mod[''watermark_thumb_positiony'']));\r\n}\r\n//links unten\r\nelseif ($mod[''watermark_thumb_location''] == ''lu'') {\r\n $mod[''watermark_thumb_positionyy''] = ($mod["thumb_height"] + ($mod[''watermark_thumb_positiony'']));\r\n}\r\n//mitte unten\r\nelseif ($mod[''watermark_thumb_location''] == ''mu'') {\r\n $mod[''watermark_thumb_positionxx''] = (($mod["thumb_width"] / 2) + ($mod[''watermark_thumb_positionx'']));\r\n $mod[''watermark_thumb_positionyy''] = ($mod["thumb_height"] + ($mod[''watermark_thumb_positiony'']));\r\n}\r\n//rechts unten\r\nelseif ($mod[''watermark_thumb_location''] == ''ru'') {\r\n $mod[''watermark_thumb_positionxx''] = ($mod["thumb_width"] + ($mod[''watermark_thumb_positionx'']));\r\n $mod[''watermark_thumb_positionyy''] = ($mod["thumb_height"] + ($mod[''watermark_thumb_positiony'']));\r\n}\r\n\r\n\r\n\r\n		//Wasserzeichen in Thumbs einfügen?\r\n		if ($mod[''watermark_thumb_id'']) {$mod[''watermark_thumb_suffix'']="_watermark_thumb";\r\n\r\n			//Bildformat für die Thumbs bereitstellen\r\n			$mod[''watermark_thumb''] = $mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_watermark_thumb.''.strtolower($mod["file_ext"]);\r\n\r\n					//If Wasserzeichen ist nicht vorhanden aber Thumb ist vorhanden\r\n				 if (((!@file_exists($cfg_client["upl_path"].$mod[''watermark_thumb''])) AND (file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"]))) OR ($resample_watermarks)  ) )\r\n					{\r\n\r\n									make_watermark_image_galerie($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"]), $mod[''watermark_thumb_path''], $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_watermark_thumb.''.strtolower($mod["file_ext"]), $mod[''watermark_thumb_positionxx''], $mod[''watermark_thumb_positionyy''], $mod[''watermark_thumb_transparent'']);\r\n									$mod[''temp_file''] = $mod["filename"].$cfg_client[''thumbext''].''_watermark_thumb.''.strtolower($mod["file_ext"]);\r\n		   			 }\r\n\r\n				     elseif ((strtolower($mod["file_ext"])) == "gif")\r\n				     {\r\n				     $mod[''temp_file''] = $mod["file"][$i]["filename"] ;\r\n				     }\r\n\r\n				//Elseif Wasserzeichen ist nicht vorhanden und Thumb ist nicht vorhanden\r\n				     elseif  (((!@file_exists($cfg_client["upl_path"].$mod[''watermark_thumb''])) AND (!@file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"])))  OR ($resample_watermarks)) )\r\n					{\r\n				make_watermark_image_galerie($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].".".strtolower($mod["file_ext"]), $mod[''watermark_thumb_path''], $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_watermark_thumb.''.strtolower($mod["file_ext"]), $mod[''watermark_thumb_positionxx''], $mod[''watermark_thumb_positionyy''], $mod[''watermark_thumb_transparent'']);\r\n				$mod[''temp_file''] = $mod["filename"].$cfg_client[''thumbext''].''_watermark_thumb.''.strtolower($mod["file_ext"]);\r\n\r\n					}\r\n					else\r\n					{\r\n				$mod[''temp_file''] = $mod["filename"].$cfg_client[''thumbext''].''_watermark_thumb.''.strtolower($mod["file_ext"]);\r\n					}\r\n				}\r\n			   else\r\n			   {\r\n                      // thumb\r\n                      if (is_file($cfg_client["upl_path"]. $mod["file"][$i]["dirname"] . $mod["filename"] . $mod["filename_suffix"] . "." . strtolower($mod["file_ext"]) ) )\r\n                      {\r\n                      $mod[''temp_file''] = $mod["filename"] . $mod["filename_suffix"] . "." . strtolower($mod["file_ext"]);\r\n                      }\r\n                      else\r\n                      { $mod[''temp_file''] = $mod["file"][$i]["filename"];\r\n                      }\r\n\r\n  			   }\r\n\r\nif (($mod[''square_thumb'']==''true'') AND (@file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].$mod[''watermark_thumb_suffix''].".".strtolower($mod["file_ext"]))))\r\n{\r\n	if ((!@file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_square_thumb.''.strtolower($mod["file_ext"]))) OR ($resample_watermarks))\r\n	{\r\n	make_square_image($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].$mod[''watermark_thumb_suffix''].".".strtolower($mod["file_ext"]), $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_square_thumb.''.strtolower($mod["file_ext"]),$mod[''square_split'']);\r\n	}\r\n	$mod[''temp_file''] = $mod["filename"].$cfg_client[''thumbext''].''_square_thumb.''.strtolower($mod["file_ext"]);\r\n  $mod["thumb_width"] = get_thumb_size(x, $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_square_thumb.''.strtolower($mod["file_ext"]));\r\n  $mod["thumb_height"] = get_thumb_size(y, $cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_square_thumb.''.strtolower($mod["file_ext"]));\r\n\r\n}\r\n$mod[''temp''] = str_replace("{thumbfile}",$mod[''temp_file''] ,$mod[''temp'']);\r\n\r\n\r\n\r\n  // URLencode\r\n  while (strstr($mod[''temp''],"{urlencode}"))\r\n  { $mod[''url_firstpos''] = strpos($mod[''temp''],"{urlencode}")+11;\r\n    $mod[''url_lastpos'']  = strpos($mod[''temp''],"{/urlencode}");\r\n    $mod[''url''] = substr($mod[''temp''],$mod[''url_firstpos''],$mod[''url_lastpos'']-$mod[''url_firstpos'']);\r\n    $mod[''url_tag''] = "{urlencode}". $mod[''url''] ."{/urlencode}";\r\n    $mod[''url''] = rawurlencode($mod[''url'']);\r\n    $mod[''temp''] = str_replace($mod[''url_tag''], $mod[''url''] ,$mod[''temp'']);\r\n\r\n  }\r\n\r\n  //\r\n  $mod[''out''] .= $mod[''temp''];\r\n\r\n  //\r\n  if ( ( (($i+1) / $mod["break_after_number_of_pics"] ) - round((($i+1) / $mod["break_after_number_of_pics"] ),0) ) == 0)\r\n  { $mod[''out''] .= "</tr>\\n";\r\n    $mod[''out''] .= "<tr>\\n";\r\n  }\r\n\r\n}\r\n\r\n##########################################################################################################################\r\n  //  Detailansicht Ausgabe\r\n##########################################################################################################################\r\n$mod[''dtpl''] = "MOD_VALUE[20]";\r\n\r\n//Id der Galerieseite generieren auf der das Bild ist\r\n$mod[''pic_is_from_page''] = ceil($detailid / $mod["number_of_pics_per_page"]) ;\r\n\r\n//Links im Wlaker\r\n$mod[''dtplwalker_prev''] = "".$mod[''idcatlink'']."&galerie=".(substr ($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=".$dedi_mod[''container''][''id'']."_".($detailid-1).$mod[''pquery'']."";\r\n$mod[''dtplwalker_prev_first''] = "".$mod[''idcatlink'']."&galerie=".(substr ($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=".$dedi_mod[''container''][''id'']."_".(count($mod["file"])).$mod[''pquery'']."";\r\n$mod[''dtplwalker_galerie''] = "".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod[''pic_is_from_page''].$mod[''query'']."&picture=".(substr ($mod[''pquery''],1,(strlen($mod[''pquery''])-1)))."";\r\n$mod[''dtplwalker_galeriestart''] = "".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_1".$mod[''query'']."&picture=".(substr ($mod[''pquery''],1,(strlen($mod[''pquery''])-1)))."";\r\n$mod[''dtplwalker_next''] = "".$mod[''idcatlink'']."&galerie=".(substr ($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=".$dedi_mod[''container''][''id'']."_".($detailid+1).$mod[''pquery'']."";\r\n$mod[''dtplwalker_next_last''] = "".$mod[''idcatlink'']."&galerie=".(substr ($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=".$dedi_mod[''container''][''id'']."_1".$mod[''pquery'']."";\r\n\r\n//Tags für die Links ersetzen\r\n$mod[''dtplwalker_22''] = "MOD_VALUE[22]";\r\n$mod[''dtplwalker_25''] = "MOD_VALUE[25]";\r\n$mod[''dtplwalker_23''] = "MOD_VALUE[23]";\r\n$mod[''dtplwalker_22''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''dtplwalker_22'']);\r\n$mod[''dtplwalker_22''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''dtplwalker_22'']);\r\n$mod[''dtplwalker_22''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''dtplwalker_22'']);\r\n$mod[''dtplwalker_25''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''dtplwalker_25'']);\r\n$mod[''dtplwalker_25''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''dtplwalker_25'']);\r\n$mod[''dtplwalker_25''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''dtplwalker_25'']);\r\n$mod[''dtplwalker_23''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''dtplwalker_23'']);\r\n$mod[''dtplwalker_23''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''dtplwalker_23'']);\r\n$mod[''dtplwalker_23''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''dtplwalker_23'']);\r\n$mod[''dtplwalker_23''] = str_replace("{page_id}", $mod[''pic_is_from_page''], $mod[''dtplwalker_23'']);\r\n$mod[''dtplwalker_23''] = str_replace("{galerie}", $mod[''dtplwalker_galerie''], $mod[''dtplwalker_23'']);\r\n$mod[''tplslide''] = ''<center><a href="''.$mod[''dtplwalker_galerie''].''">Zurück</a></center>'';\r\n$mod[''tplslide''] = str_replace("_0","_1",$mod[''tplslide'']);\r\n$mod[''dtplwalker_23''] = str_replace("{galeriestart}", $mod[''dtplwalker_galeriestart''], $mod[''dtplwalker_23'']);\r\n$mod[''dtpl''] = str_replace("{galerie}", $mod[''dtplwalker_23''], $mod[''dtpl'']);\r\n\r\n$mod[''dtplwalker_prevtag''] = $mod[''dtplwalker_22''];\r\n$mod[''dtplwalker_nexttag''] = $mod[''dtplwalker_25''];\r\n$mod[''dtplwalker_nexttag'']  = str_replace("{next}", $mod[''dtplwalker_next''], $mod[''dtplwalker_nexttag''] );\r\n$mod[''dtplwalker_prevtag'']  = str_replace("{prev}", $mod[''dtplwalker_prev''], $mod[''dtplwalker_prevtag''] );\r\n\r\n//Hier wird zwischen zyklisch und endend entschieden\r\nif ("MOD_VALUE[24]" == "end")\r\n//ab hier wenn endend\r\n\r\n{\r\n//Zurück und Vor nicht anzeigen wenn Anfang oder Ende\r\nif ($detailid == 1){\r\n$mod[''dtpl''] = str_replace("{prev}", "", $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{next}", $mod[''dtplwalker_nexttag''], $mod[''dtpl'']);\r\n} elseif ($detailid == count($mod["file"])) {\r\n$mod[''dtpl''] = str_replace("{prev}", $mod[''dtplwalker_prevtag''], $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{next}", "", $mod[''dtpl'']);\r\n} else {\r\n$mod[''dtpl''] = str_replace("{prev}", $mod[''dtplwalker_prevtag''], $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{next}", $mod[''dtplwalker_nexttag''], $mod[''dtpl'']);\r\n}\r\n\r\n//ab hier wenn zyklisch\r\n} else {\r\n//Für erste und letzte Variablen definieren\r\n$mod[''dtplwalker_prev_firsttag''] = $mod[''dtplwalker_22''];\r\n$mod[''dtplwalker_next_lasttag''] = $mod[''dtplwalker_25''];\r\n$mod[''dtplwalker_next_lasttag'']  = str_replace("{next}", $mod[''dtplwalker_next_last''], $mod[''dtplwalker_next_lasttag''] );\r\n$mod[''dtplwalker_prev_firsttag'']  = str_replace("{prev}", $mod[''dtplwalker_prev_first''], $mod[''dtplwalker_prev_firsttag''] );\r\nif ($detailid == 1){\r\n$mod[''dtpl''] = str_replace("{prev}", $mod[''dtplwalker_prev_firsttag''], $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{next}", $mod[''dtplwalker_nexttag''], $mod[''dtpl'']);\r\n} elseif ($detailid == count($mod["file"])) {\r\n$mod[''dtpl''] = str_replace("{prev}", $mod[''dtplwalker_prevtag''], $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{next}", $mod[''dtplwalker_next_lasttag''], $mod[''dtpl'']);\r\n} else {\r\n$mod[''dtpl''] = str_replace("{prev}", $mod[''dtplwalker_prevtag''], $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{next}", $mod[''dtplwalker_nexttag''], $mod[''dtpl'']);\r\n}\r\n\r\n}\r\n\r\n\r\n\r\n##########################################################################################################################\r\n  //  Templatevariablen ersetzen\r\n##########################################################################################################################\r\n//no_dir ist true, wenn im Frontendedit der Ordner noch nicht in die DB geschrieben wurde!\r\nif ($mod[''no_dir''] == false ) {\r\n//Galerie-Template\r\n$mod[''tpl''] = "MOD_VALUE[8]";\r\n$mod[''tpl''] = str_replace("{content}",$mod[''out''],$mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{id}", $id, $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{walker}", $mod[''walker''],$mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font4}", "MOD_VALUE[27]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font5}", "MOD_VALUE[28]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{slidelink}", $mod[''idcatlink'']."&galerie=".(substr($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=".(substr($mod[''pquery''],1,(strlen($mod[''pquery''])-1)))."&slideshow=".$dedi_mod[''container''][''id''], $mod[''tpl'']);\r\n}\r\n\r\n\r\n//Detailansichts-Template\r\n$mod[''dtpl''] = str_replace("{pic_id}", $detailid, $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{page_id}", $mod[''pic_is_from_page''], $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{pic_count}", count($mod["file"]), $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{path}",$cfg_client["upl_htmlpath"]  . $mod["file"][($detailid-1)]["dirname"] ,$mod[''dtpl'']);\r\n\r\n\r\n\r\nif ($mod[''watermark_image_id'']) {\r\n  $mod["file_ext"] = substr (strrchr ($mod["file"][$detailid-1]["filename"], "."), 1);\r\n  $mod["filename"] = substr ($mod["file"][$detailid-1]["filename"], 0, -(strlen($mod["file_ext"]))-1 );\r\n  \r\n// ######### ergänzt von Noeder für die Generierung von watermark_images in der Detailsicht, wenn diese nicht vorhanden sind ##############\r\n  	if (($detailid) AND (!@file_exists($cfg_client["upl_path"].$mod["file"][($detailid-1)]["dirname"].$mod["filename"].$cfg_client["thumbext"].''_watermark_image.''.strtolower($mod["file_ext"]))))\r\n	{\r\n	make_watermark_image_galerie($cfg_client["upl_path"].$mod["file"][($detailid-1)]["dirname"].$mod["filename"].".".strtolower($mod["file_ext"]), $mod[''watermark_image_path''], $cfg_client["upl_path"].$mod["file"][($detailid-1)]["dirname"].$mod["filename"].$cfg_client[''thumbext''].''_watermark_image.''.strtolower($mod["file_ext"]), $mod["file"][($detailid-1)]["watermark_image_positionxx"], $mod["file"][($detailid-1)]["watermark_image_positionyy"], $mod[''watermark_image_transparent'']);\r\n	}\r\n// ########## ende der Ergänzung ######################################\r\n\r\n  $mod[''dtpl''] = str_replace("{file}",$mod["filename"].$cfg_client[''thumbext''].''_watermark_image.''.strtolower($mod["file_ext"]),$mod[''dtpl'']);\r\n} else{\r\n  $mod[''dtpl''] = str_replace("{file}", $mod["file"][($detailid-1)]["filename"] ,$mod[''dtpl'']);\r\n}\r\n\r\n  // URLencode\r\n  while (strstr($mod[''dtpl''],"{urlencode}"))\r\n  { $mod[''url_firstpos''] = strpos($mod[''dtpl''],"{urlencode}")+11;\r\n    $mod[''url_lastpos'']  = strpos($mod[''dtpl''],"{/urlencode}");\r\n    $mod[''url''] = substr($mod[''dtpl''],$mod[''url_firstpos''],$mod[''url_lastpos'']-$mod[''url_firstpos'']);\r\n    $mod[''url_tag''] = "{urlencode}". $mod[''url''] ."{/urlencode}";\r\n    $mod[''url''] = rawurlencode($mod[''url'']);\r\n    $mod[''dtpl''] = str_replace($mod[''url_tag''], $mod[''url''] ,$mod[''dtpl'']);\r\n\r\n  }\r\n\r\n\r\n\r\n$mod[''dtpl''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{font4}", "MOD_VALUE[27]", $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{font5}", "MOD_VALUE[28]", $mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{maximgsize}", $mod["file"][($detailid-1)]["maximgsize"] ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{maximgsize2}", $mod["file"][($detailid-1)]["maximgsize2"] ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{filesize}",  round(($mod["file"][($detailid-1)]["filesize"]/1024), 1)." kb" ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{width}", $mod["file"][($detailid-1)]["width"] ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{height}", $mod["file"][($detailid-1)]["height"] ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{title}", $mod["file"][($detailid-1)]["title"] ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{description}",$mod["file"][($detailid-1)]["description"],$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{slidelink}", $mod[''idcatlink'']."&galerie=".(substr($mod[''query''],1,(strlen($mod[''query''])-1)))."&picture=".(substr($mod[''pquery''],1,(strlen($mod[''pquery''])-1)))."&slideshow=".$dedi_mod[''container''][''id''], $mod[''dtpl'']);\r\n\r\n\r\n  $mod["file_ext"] = substr (strrchr ($mod["file"][($detailid-1)]["filename"], "."), 1);\r\n  $mod["filename"] = substr ($mod["file"][($detailid-1)]["filename"], 0, -(strlen($mod["file_ext"]))-1 );\r\n  //filedesc\r\n  if ($mod["file"][($detailid-1)]["title"] != "")\r\n  { $mod["filedesc"] = $mod["file"][($detailid-1)]["title"];\r\n  }\r\n  else\r\n  { $mod["filedesc"] = $mod["file"][($detailid-1)]["filename"];\r\n  }\r\n$mod[''dtpl''] = str_replace("{filedesc}",$mod["filedesc"] ,$mod[''dtpl'']);\r\n$mod[''dtpl''] = str_replace("{filename}",$mod["filename"] ,$mod[''dtpl'']);\r\n\r\n  // thumb oder watermark Thumb nutzen\r\nif ($mod[''watermark_thumb_id'']) {\r\n\r\n  if (is_file($cfg_client["upl_path"]. $mod["file"][($detailid-1)]["dirname"] . $mod["filename"] . $mod["filename_suffix"] . "." . strtolower($mod["file_ext"]) ) )\r\n  {\r\n  $mod[''dtpl''] = str_replace("{thumbfile}",$mod["filename"] . $mod["filename_suffix"] . "_watermark_thumb." . strtolower($mod["file_ext"]),$mod[''dtpl'']);\r\n  }\r\n\r\n} else {\r\n\r\n  if (is_file($cfg_client["upl_path"]. $mod["file"][($detailid-1)]["dirname"] . $mod["filename"] . $mod["filename_suffix"] . "." . strtolower($mod["file_ext"]) ) )\r\n  {\r\n  $mod[''dtpl''] = str_replace("{thumbfile}",$mod["filename"] . $mod["filename_suffix"] . "." . strtolower($mod["file_ext"]),$mod[''dtpl'']);\r\n  }\r\n  else\r\n  { $mod[''dtpl''] = str_replace("{thumbfile}",$mod["file"][($detailid-1)]["filename"] ,$mod[''dtpl'']);\r\n  }\r\n	}\r\n\r\nif ($slideshow <> $dedi_mod[''container''][''id'']) {\r\n//Ausgabe Detail-Template\r\nif ($detailid) {\r\n\r\necho $mod[''dtpl''];}\r\nelse {\r\necho  $mod[''tpl''];\r\n}}\r\nelse {\r\necho $mod[''tplslide''];\r\nslide_show($mod);}\r\n// VARIABLEN LEEREN\r\nunset($size);\r\nunset($id);\r\nunset($mod);\r\nunset($detailid);\r\n</DEDIPHP>', '', 0, 1, 1, 1069928216, 1149815621, 'mod:844f16bb5bb7c43344209685afeccea4:70e2f404', '', '', '', 0, '0', 'Pic-Galerie', '1');
INSERT INTO `dedi_mod` VALUES (36, 'URHere', '1.0', 'Navigation', 'Horizontale Pfad- Navigation in der Atrt von Oberpunkt -> Unterpunkt -> Unterpunkt', '<?PHP\r\n//Schriftart\r\n$mip_form[''0''][''desc''] = ''Schriftart Links {font1}'';\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = '''';\r\n$mip_form[''0''][''type''] = '''';\r\n\r\n//Schriftart\r\n$mip_form[''1''][''desc''] = ''Schritart  Non-Links {font1}'';\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = '''';\r\n$mip_form[''1''][''type''] = '''';\r\n\r\n//Schriftart Trennzeichen\r\n$mip_form[''2''][''desc''] = ''Schriftart des Trennzeichens {font2}'';\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = '''';\r\n$mip_form[''2''][''type''] = '''';\r\n\r\n\r\n//Mit Ebene 0\r\n$mip_form[''3''][''desc''] = ''Ebene 0 mit anzeigen? (1. Ordner)'';\r\n$mip_form[''3''][''cat''] = ''chk'';\r\n$mip_form[''3''][''option_var''][''0''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''option_val''][''0''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''3''][''option_val_select''][''0''] = ''true'';\r\n\r\n//Mit aktueller Seite\r\n$mip_form[''4''][''desc''] = ''aktuelle Seite mit anzeigen?'';\r\n$mip_form[''4''][''cat''] = ''chk'';\r\n$mip_form[''4''][''option_var''][''0''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''option_val''][''0''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''4''][''option_val_select''][''0''] = ''true'';\r\n\r\n//aktuelle Seite als Link?\r\n$mip_form[''5''][''desc''] = ''aktuelle Seite als Link anzeigen?'';\r\n$mip_form[''5''][''cat''] = ''chk'';\r\n$mip_form[''5''][''option_var''][''0''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''option_val''][''0''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''5''][''option_val_select''][''0''] = ''true'';\r\n\r\n//Startseiten ausblenden?\r\n$mip_form[''8''][''desc''] = ''Startseiten ausblenden?'';\r\n$mip_form[''8''][''cat''] = ''chk'';\r\n$mip_form[''8''][''option_var''][''0''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''option_val''][''0''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''8''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Trennsymbol\r\n$mip_form[''6''][''desc''] = ''Trennzeichen zwischen Links'';\r\n$mip_form[''6''][''cat''] = ''txt'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = '' &rArr; '';\r\n\r\n//Ausgaben umkehren\r\n$mip_form[''10''][''desc''] = ''Ausgaben umkehren'';\r\n$mip_form[''10''][''cat''] = ''chk'';\r\n$mip_form[''10''][''option_var''][''0''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''option_val''][''0''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''10''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Template der Links\r\n$mip_form[''9''][''cat''] = ''txtarea'';\r\n$mip_form[''9''][''type''] = ''long'';\r\n$mip_form[''9''][''rows''] = ''1'';\r\n$mip_form[''9''][''desc''] = ''Link-Template <small>{name}, {link}, {font1}</small>'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''<a href="{link}" class="{font1}">{name}</a>'';\r\n\r\n// Gesamt - Template\r\n$mip_form[''7''][''cat''] = ''txtarea'';\r\n$mip_form[''7''][''type''] = ''long'';\r\n$mip_form[''7''][''rows''] = ''1'';\r\n$mip_form[''7''][''desc''] = ''Template <small>{nav}</small>'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''<nobr>{nav}</nobr>'';\r\n\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''8'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''10'']);\r\nmip_formsp($mip_form[''9'']);\r\nmip_formsp($mip_form[''7'']);\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n$a = $idcat;\r\n$mod[''path''] = array();\r\n\r\nwhile($a > 0 && $catlist_level[$a] > 0){\r\n	array_push($mod[''path''],$a);\r\n	$a = $con_tree[$a][''parent''];\r\n}\r\nif("MOD_VALUE[3]" == ''true'') { array_push($mod[''path''],$a); };\r\n\r\n$mod[''rpath''] = array_reverse($mod[''path'']);\r\n$mod[''array''] = array();\r\nforeach ($mod[''rpath''] as $a){\r\n	$mod[''tmp''] = str_replace("{font1}","MOD_VALUE[0]","MOD_VALUE[9]");\r\n	$mod[''tmp''] = str_replace("{name}",$con_tree[$a][''name''],$mod[''tmp'']);\r\n	$mod[''tmp''] = str_replace("{link}",$con_tree[$a][''link''],$mod[''tmp'']);\r\n	array_push($mod[''array''] , $mod[''tmp'']);\r\n};\r\nif("MOD_VALUE[4]" == ''true'') {\r\n	if ("MOD_VALUE[8]" != ''true'' || $con_side[$idcatside][''is_start''] != ''1'') {\r\n		if("MOD_VALUE[5]" == ''true''){\r\n			$mod[''tmp''] = str_replace("{font1}","MOD_VALUE[0]","MOD_VALUE[9]");\r\n			$mod[''tmp''] = str_replace("{name}",$con_side[$idcatside][''name''],$mod[''tmp'']);\r\n			$mod[''tmp''] = str_replace("{link}",$con_side[$idcatside][''link''],$mod[''tmp'']);\r\n		} else {\r\n			$mod[''tmp''] = ''<span class="MOD_VALUE[1]">''.$con_side[$idcatside][''name''].''</span>'';\r\n		};\r\n		array_push($mod[''array''], $mod[''tmp'']);\r\n	};\r\n};\r\n\r\nif("MOD_VALUE[10]" == ''true'') { $mod[''array''] = array_reverse($mod[''array'']); };\r\n$mod[''output''] = implode("<span class=''MOD_VALUE[2]''>MOD_VALUE[6]</span>", $mod[''array'']);\r\necho str_replace(''{nav}'', $mod[''output''], "MOD_VALUE[7]");\r\n\r\nunset($a, $mod);\r\n</DEDIPHP>', '', 0, 1, 1, 1088112871, 1132967314, 'mod:f85bd11a7839e81e5e787bee97693b9a:af6c471f', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (37, 'DEDITAG Eingabefeld', '1.1', 'Content', 'Gibt die Möglichkeit, DEDI:TAGs, DEDIPHP und gecachtes PHP innerhalb der Templatekonfiguration einzugeben.', '<?PHP\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(0);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == ''''){\r\n\r\n\r\n// Template\r\n$mip_form[''0''][''desc''] = ''Template'';\r\n$mip_form[''0''][''cat''] = ''txtarea'';\r\n$mip_form[''0''][''rows''] = ''20'';\r\n$mip_form[''0''][''type''] = ''long'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''<dedi:mod type="wysiwyg" id="1">'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\n}\r\nunset($mip_form);\r\n\r\n?>', '<dedi:mod constant="tagmode" />\r\n\r\nMOD_VALUE[0]\r\n', '', 0, 1, 1, 1066927900, 1132967395, 'mod:5236a828296b056b6c0c911442e0f89c:e6cf821e', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (38, 'Dynamische Uhrzeit', '1.0.1', 'Sonstiges', 'Dieses Modul zeigt an der eingefügten Position eine sich selber aktualisierende Uhr in Textform an. Das Modul benötigt zur Darstellung Javascript.', '<?php\r\n// Schriftart (CSS-Parser)\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''class_only'';\r\n\r\n// Darstellungsform\r\n$mip_form[''1''][''desc''] = ''Darstellungsform (#d=Name des Tages, #D=Datum, #M=Monat, #Y=Jahr, #h=Stunden, #m=Minuten, #s =Sekunden)'';\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''#d #D.#M.#Y @ #h:#m:#s'';\r\n\r\n// Darstellungsform\r\n$mip_form[''2''][''desc''] = "Liste der Tage (für ''d'', Default=''So'',''Mo'',''Di'',''Mi'',''Do'',''Fr'',''Sa'')";\r\n$mip_form[''2''][''cat''] = ''txt'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = "''So'',''Mo'',''Di'',''Mi'',''Do'',''Fr'',''Sa''";\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nunset($mip_form);\r\n\r\n?>', '<script language="JavaScript">\r\nfunction tS(){x=new Date(); x.setTime(x.getTime()); return x;}\r\nfunction lZ(x){return (x>9)?x:''0''+x;}\r\nfunction dT(){if(fr==0){fr=1;document.write(''<span id="tP" class="MOD_VALUE[0]">''+eval(oT)+''</span>'');} document.getElementById(''tP'').innerText=eval(oT); setTimeout(''dT()'',1000);}\r\nfunction y4(x){return (x<500)?x+1900:x;}\r\n\r\nvar dN=new Array(MOD_VALUE[2]),fr=0,<DEDIPHP>\r\n$oT="MOD_VALUE[1]";\r\n$oT=str_replace("#d","''+dN[tS().getDay()]+''",$oT);\r\n$oT=str_replace("#D","''+lZ(tS().getDate())+''",$oT);\r\n$oT=str_replace("#M","''+lZ((tS().getMonth()+1))+''",$oT);\r\n$oT=str_replace("#Y","''+y4(tS().getYear())+''",$oT);\r\n$oT=str_replace("#h","''+lZ(tS().getHours())+''",$oT);\r\n$oT=str_replace("#m","''+lZ(tS().getMinutes())+''",$oT);\r\n$oT=str_replace("#s","''+lZ(tS().getSeconds())+''",$oT);\r\necho "oT=\\"''$oT''\\";";\r\n</DEDIPHP>\r\ndT();\r\n</script>', '', 0, 1, 1, 1066927900, 1132967411, 'mod:8ff45b464b9d5e9a5461181d8c445676:546ab89d', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (47, 'Listen-Navigation', '0.9.6', 'Navigation', 'Stellt eine umfangreich konfigurierbare Navigation für Ordner und Seiten zur Verfügung. Das Modul ist primär darauf ausgerichtet die einzelnen Menüpunkte als HTML-Liste (<ul>, <li>), deren Erscheinungsbild per CSS festgelegt wird, auszugeben. Es ist jedoch flexibel genug um die Ordner und Seiten z.B. auch als Tabelle anzuzeigen.', '<?PHP\r\n\r\n//Hinweis: $mod nicht in der Modulkonfiguration verwenden!\r\n\r\n$mip_form[99][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[99][''cat''] = ''option'';\r\n$mip_form[99][''size''] = ''1'';\r\n$mip_form[99][''option_desc''][0] = ''Normal'';\r\n$mip_form[99][''option_val''][0] =  '''';\r\n$mip_form[99][''option_desc''][1] = ''Erweitert'';\r\n$mip_form[99][''option_val''][1] =  ''advanced'';\r\n$mip_form[99][''option_desc''][2] = ''Ausgeblendet'';\r\n$mip_form[99][''option_val''][2] =  ''hidden'';\r\n$mip_form[99][''cms_var''] = ''MOD_VAR[99]'';\r\n$mip_form[99][''cms_val''] = $dedi_mod[''value''][99];\r\n$mip_form[99][''flag''] = ''reload'';\r\n\r\n$listnavi[''show_in_standard_mode''] = array(1,2,3,4,14,15,16);\r\n\r\n\r\n// Defaultwerte setzen\r\nif ($dedi_mod[''value''][1] == '''')\r\n{\r\n	$dedi_mod[''value''][1] = ''root'';\r\n	$dedi_mod[''value''][26] = ''<ul>{layer}</ul>'';\r\n	$dedi_mod[''value''][22] = ''<li><a href="{link}">{name}</a></li>'';\r\n	$dedi_mod[''value''][23] = ''<li><a href="{link}">{name}</a></li>'';\r\n	$dedi_mod[''value''][24] = ''<li><a href="{link}">{name}</a>{folder}</li>'';\r\n	$dedi_mod[''value''][25] = ''<li><a href="{link}">{name}</a>{folder}</li>'';\r\n}\r\n\r\n$mip_form[14][''cms_val_default''] = ''sortindex'';\r\n$mip_form[15][''cms_val_default''] = ''SORT_ASC'';\r\n\r\n$mip_form[2][''cms_val_default''] = ''folders_and_pages'';\r\n$mip_form[3][''cms_val_default''] = '''';\r\n$mip_form[5][''cms_val_default''] = ''0'';\r\n\r\n$mip_form[1][''desc''] = ''Startordner:'';\r\n$mip_form[1][''cat''] = ''app_cat'';\r\n$mip_form[1][''output_cat''] = ''option'';\r\n$mip_form[1][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[1][''cms_val''] = $dedi_mod[''value''][1];\r\n$mip_form[1][''size''] = ''5'';\r\n$mip_form[1][''flag''] = ''reload'';\r\n\r\n$mip_form[2][''desc''] = ''Anzeigeart:'';\r\n$mip_form[2][''cat''] = ''option'';\r\n$mip_form[2][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[2][''cms_val''] = $dedi_mod[''value''][2];\r\n$mip_form[2][''option_desc''][0] = ''Ordner mit Seiten'';\r\n$mip_form[2][''option_desc''][1] = ''nur Ordner'';\r\n$mip_form[2][''option_desc''][2] = ''nur Seiten'';\r\n$mip_form[2][''option_val''][0] = ''folders_and_pages'';\r\n$mip_form[2][''option_val''][1] = ''folders'';\r\nif ($dedi_mod[''value''][1] != ''root'')\r\n{\r\n	$mip_form[2][''option_val''][2] = ''pages'';\r\n}\r\n$mip_form[2][''flag''] = ''reload'';\r\n\r\n$mip_form[6][''desc''] = ''Ausgeschlossene Seiten und Ordner auch im Backend verbergen:'';\r\n$mip_form[6][''cat''] = ''chk'';\r\n$mip_form[6][''option_var''][0] = ''MOD_VAR[6]'';\r\n$mip_form[6][''option_val''][0] = $dedi_mod[''value''][6];\r\n$mip_form[6][''option_desc''][0] = ''ja'';\r\n$mip_form[6][''option_val_select''][0] = ''true'';\r\n\r\n$mip_form[12][''desc''] = ''Einleitung/Ende der Navigation anzeigen, falls Navigation &quot;leer&quot;'';\r\n$mip_form[12][''cat''] = ''chk'';\r\n$mip_form[12][''option_var''][0] = ''MOD_VAR[12]'';\r\n$mip_form[12][''option_val''][0] = $dedi_mod[''value''][12];\r\n$mip_form[12][''option_desc''][0] = ''ja'';\r\n$mip_form[12][''option_val_select''][0] = ''true'';\r\n\r\n$mip_form[13][''cat''] = ''txt'';\r\n$mip_form[13][''type''] = '''';\r\n$mip_form[13][''desc''] = ''Startnummer f&uuml;r tabindex:'';\r\n$mip_form[13][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[13][''cms_val''] = $dedi_mod[''value''][13];\r\n\r\n$mip_form[14][''desc''] = ''Sortierung:'';\r\n$mip_form[14][''cat''] = ''option'';\r\n$mip_form[14][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[14][''cms_val''] = $dedi_mod[''value''][14];\r\n$mip_form[14][''option_desc''][0] = ''Standard (wie Backend)'';\r\n$mip_form[14][''option_desc''][1] = ''Name'';\r\n$mip_form[14][''option_desc''][2] = ''Erstellungsdatum'';\r\n$mip_form[14][''option_desc''][3] = ''&Auml;nderungsdatum'';\r\n$mip_form[14][''option_val''][0] = ''sortindex'';\r\n$mip_form[14][''option_val''][1] = ''name'';\r\n$mip_form[14][''option_val''][2] = ''created'';\r\n$mip_form[14][''option_val''][3] = ''lastmodified'';\r\n\r\n$mip_form[15][''cat''] = ''radio'';\r\n$mip_form[15][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[15][''cms_val''] = $dedi_mod[''value''][15];\r\n$mip_form[15][''option_desc''][0] = ''aufsteigend'';\r\n$mip_form[15][''option_val''][0] = ''SORT_ASC'';\r\n$mip_form[15][''option_desc''][1] = ''absteigend'';\r\n$mip_form[15][''option_val''][1] = ''SORT_DESC'';\r\n\r\nif ($dedi_mod[''value''][2] == ''folders_and_pages'')\r\n{\r\n	$mip_form[16][''desc''] = ''Erst Ordner, dann Seiten anzeigen:'';\r\n	$mip_form[16][''cat''] = ''chk'';\r\n	$mip_form[16][''option_var''][0] = ''MOD_VAR[16]'';\r\n	$mip_form[16][''option_val''][0] = $dedi_mod[''value''][16];\r\n	$mip_form[16][''option_desc''][0] = ''ja'';\r\n	$mip_form[16][''option_val_select''][0] = ''true'';\r\n}\r\nelse\r\n{\r\n	$mip_form[16][''cat''] = ''hidden'';\r\n	$mip_form[16][''cms_var''] = ''MOD_VAR[16]'';\r\n	$mip_form[16][''cms_val''] = $dedi_mod[''value''][16];\r\n\r\n}\r\n\r\n$mip_form[20][''cat''] = ''txtarea'';\r\n$mip_form[20][''type''] = ''long'';\r\n$mip_form[20][''rows''] = ''3'';\r\n$mip_form[20][''desc''] = ''Einleitung der Navigation:<br/><small>M&ouml;gliche Templatevariablen: {name}, {link}, {desc}, {created}, {lastmodified}, {id}, {tabindex}. (Beziehen sich auf den Startordner)</small>'';\r\n$mip_form[20][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[20][''cms_val''] = $dedi_mod[''value''][20];\r\n\r\n$mip_form[21][''cat''] = ''txtarea'';\r\n$mip_form[21][''type''] = ''long'';\r\n$mip_form[21][''rows''] = ''3'';\r\n$mip_form[21][''desc''] = ''Ende der Navigation:<br/><small>M&ouml;gliche Templatevariablen: {name}, {link}, {desc}, {created}, {lastmodified}, {id}, {tabindex}. (Beziehen sich auf den Startordner)</small>'';\r\n$mip_form[21][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[21][''cms_val''] = $dedi_mod[''value''][21];\r\n\r\n$mip_form[26][''cat''] = ''txtarea'';\r\n$mip_form[26][''type''] = ''long'';\r\n$mip_form[26][''rows''] = ''3'';\r\n$mip_form[26][''desc''] = ''Ebene:<br/><small>M&ouml;gliche Templatevariablen: {layer}, {id}</small>'';\r\n$mip_form[26][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[26][''cms_val''] = $dedi_mod[''value''][26];\r\n\r\nif ($dedi_mod[''value''][2] != ''pages'')\r\n{\r\n	$mip_form[3][''desc''] = ''Komplette Ordnerstruktur anzeigen:'';\r\n	$mip_form[3][''cat''] = ''chk'';\r\n	$mip_form[3][''option_var''][0] = ''MOD_VAR[3]'';\r\n	$mip_form[3][''option_val''][0] = $dedi_mod[''value''][3];\r\n	$mip_form[3][''option_desc''][0] = ''ja'';\r\n	$mip_form[3][''option_val_select''][0] = ''true'';\r\n\r\n	$mip_form[5][''cat''] = ''txt'';\r\n	$mip_form[5][''type''] = '''';\r\n	$mip_form[5][''desc''] = ''Anzahl darzustellender Ebenen <small>(0: alle)</small>:'';\r\n	$mip_form[5][''cms_var''] = ''MOD_VAR[5]'';\r\n	$mip_form[5][''cms_val''] = $dedi_mod[''value''][5];\r\n\r\n	$mip_form[7][''cat''] = ''txt'';\r\n	$mip_form[7][''type''] = '''';\r\n	$mip_form[7][''desc''] = ''Ordner ausschlie&szlig;en <small>(idcat kommasepariert angeben)</small>:'';\r\n	$mip_form[7][''cms_var''] = ''MOD_VAR[7]'';\r\n	$mip_form[7][''cms_val''] = $dedi_mod[''value''][7];\r\n\r\n	$mip_form[9][''desc''] = ''Ordner nur als aktiv markieren, wenn Startseite angezeigt wird'';\r\n	$mip_form[9][''cat''] = ''chk'';\r\n	$mip_form[9][''option_var''][0] = ''MOD_VAR[9]'';\r\n	$mip_form[9][''option_val''][0] = $dedi_mod[''value''][9];\r\n	$mip_form[9][''option_desc''][0] = ''ja'';\r\n	$mip_form[9][''option_val_select''][0] = ''true'';\r\n\r\n	$mip_form[11][''desc''] = ''Pfad als aktiv verfolgen'';\r\n	$mip_form[11][''cat''] = ''chk'';\r\n	$mip_form[11][''option_var''][0] = ''MOD_VAR[11]'';\r\n	$mip_form[11][''option_val''][0] = $dedi_mod[''value''][11];\r\n	$mip_form[11][''option_desc''][0] = ''ja'';\r\n	$mip_form[11][''option_val_select''][0] = ''true'';\r\n\r\n	$mip_form[17][''desc''] = ''Links zu Startseiten, statt Ordnerlinks benutzen'';\r\n	$mip_form[17][''cat''] = ''chk'';\r\n	$mip_form[17][''option_var''][0] = ''MOD_VAR[17]'';\r\n	$mip_form[17][''option_val''][0] = $dedi_mod[''value''][17];\r\n	$mip_form[17][''option_desc''][0] = ''ja'';\r\n	$mip_form[17][''option_val_select''][0] = ''true'';\r\n\r\n	$mip_form[24][''cat''] = ''txtarea'';\r\n	$mip_form[24][''type''] = ''long'';\r\n	$mip_form[24][''rows''] = ''3'';\r\n	$mip_form[24][''desc''] = ''Ordner:<br/><small>M&ouml;gliche Templatevariablen: {name}, {link}, {desc}, {created}, {lastmodified}, {id}, {tabindex}, {depth}, {first}...[{else}...]{/first}, {last}...[{else}...]{/last}, {empty}...[{else}...]{/empty}, {folder}</small>'';\r\n	$mip_form[24][''cms_var''] = ''MOD_VAR[24]'';\r\n	$mip_form[24][''cms_val''] = $dedi_mod[''value''][24];\r\n\r\n	$mip_form[25][''cat''] = ''txtarea'';\r\n	$mip_form[25][''type''] = ''long'';\r\n	$mip_form[25][''rows''] = ''3'';\r\n	$mip_form[25][''desc''] = ''Aktiver Ordner:<br/><small>M&ouml;gliche Templatevariable: {name}, {link}, {desc}, {created}, {lastmodified}, {id}, {tabindex}, {depth}, {first}...[{else}...]{/first}, {last}...[{else}...]{/last}, {empty}...[{else}...]{/empty}, {folder}</small>'';\r\n	$mip_form[25][''cms_var''] = ''MOD_VAR[25]'';\r\n	$mip_form[25][''cms_val''] = $dedi_mod[''value''][25];\r\n}\r\nelse\r\n{\r\n	$mip_form[3][''cat''] = ''hidden'';\r\n	$mip_form[3][''cms_var''] = ''MOD_VAR[3]'';\r\n	$mip_form[3][''cms_val''] = $dedi_mod[''value''][3];\r\n\r\n	$mip_form[5][''cat''] = ''hidden'';\r\n	$mip_form[5][''cms_var''] = ''MOD_VAR[5]'';\r\n	$mip_form[5][''cms_val''] = $dedi_mod[''value''][5];\r\n\r\n	$mip_form[7][''cat''] = ''hidden'';\r\n	$mip_form[7][''cms_var''] = ''MOD_VAR[7]'';\r\n	$mip_form[7][''cms_val''] = $dedi_mod[''value''][7];\r\n\r\n	$mip_form[9][''cat''] = ''hidden'';\r\n	$mip_form[9][''cms_var''] = ''MOD_VAR[9]'';\r\n	$mip_form[9][''cms_val''] = $dedi_mod[''value''][9];\r\n\r\n	$mip_form[11][''cat''] = ''hidden'';\r\n	$mip_form[11][''cms_var''] = ''MOD_VAR[11]'';\r\n	$mip_form[11][''cms_val''] = $dedi_mod[''value''][11];\r\n\r\n	$mip_form[17][''cat''] = ''hidden'';\r\n	$mip_form[17][''cms_var''] = ''MOD_VAR[17]'';\r\n	$mip_form[17][''cms_val''] = $dedi_mod[''value''][17];\r\n\r\n	$mip_form[24][''cat''] = ''hidden'';\r\n	$mip_form[24][''cms_var''] = ''MOD_VAR[24]'';\r\n	$mip_form[24][''cms_val''] = $dedi_mod[''value''][24];\r\n\r\n	$mip_form[25][''cat''] = ''hidden'';\r\n	$mip_form[25][''cms_var''] = ''MOD_VAR[25]'';\r\n	$mip_form[25][''cms_val''] = $dedi_mod[''value''][25];\r\n}\r\n\r\nif ($dedi_mod[''value''][2] != ''folders'')\r\n{\r\n	$mip_form[4][''desc''] = ''Startseiten anzeigen'';\r\n	$mip_form[4][''cat''] = ''chk'';\r\n	$mip_form[4][''option_var''][0] = ''MOD_VAR[4]'';\r\n	$mip_form[4][''option_val''][0] = $dedi_mod[''value''][4];\r\n	$mip_form[4][''option_desc''][0] = ''ja'';\r\n	$mip_form[4][''option_val_select''][0] = ''true'';\r\n\r\n	$mip_form[8][''cat''] = ''txt'';\r\n	$mip_form[8][''type''] = '''';\r\n	$mip_form[8][''desc''] = ''Seiten ausschlie&szlig;en <small>(idcatside kommasepariert angeben)</small>:'';\r\n	$mip_form[8][''cms_var''] = ''MOD_VAR[8]'';\r\n	$mip_form[8][''cms_val''] = $dedi_mod[''value''][8];\r\n\r\n	$mip_form[22][''cat''] = ''txtarea'';\r\n	$mip_form[22][''type''] = ''long'';\r\n	$mip_form[22][''rows''] = ''3'';\r\n	$mip_form[22][''desc''] = ''Seite:<br/><small>M&ouml;gliche Templatevariable: {name}, {link}, {desc}, {created}, {lastmodified}, {id}, {tabindex}, {depth}, {first}...[{else}...]{/first}, {last}...[{else}...]{/last}</small>'';\r\n	$mip_form[22][''cms_var''] = ''MOD_VAR[22]'';\r\n	$mip_form[22][''cms_val''] = $dedi_mod[''value''][22];\r\n\r\n	$mip_form[23][''cat''] = ''txtarea'';\r\n	$mip_form[23][''type''] = ''long'';\r\n	$mip_form[23][''rows''] = ''3'';\r\n	$mip_form[23][''desc''] = ''Aktuelle Seite:<br/><small>M&ouml;gliche Templatevariable: {name}, {link}, {desc}, {created}, {lastmodified}, {id}, {tabindex}, {depth}, {first}...[{else}...]{/first}, {last}...[{else}...]{/last}</small>'';\r\n	$mip_form[23][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[23][''cms_val''] = $dedi_mod[''value''][23];\r\n}\r\nelse\r\n{\r\n	$mip_form[4][''cat''] = ''hidden'';\r\n	$mip_form[4][''cms_var''] = ''MOD_VAR[4]'';\r\n	$mip_form[4][''cms_val''] = $dedi_mod[''value''][4];\r\n\r\n	$mip_form[8][''cat''] = ''hidden'';\r\n	$mip_form[8][''cms_var''] = ''MOD_VAR[8]'';\r\n	$mip_form[8][''cms_val''] = $dedi_mod[''value''][8];\r\n\r\n	$mip_form[22][''cat''] = ''hidden'';\r\n	$mip_form[22][''cms_var''] = ''MOD_VAR[22]'';\r\n	$mip_form[22][''cms_val''] = $dedi_mod[''value''][22];\r\n\r\n	$mip_form[23][''cat''] = ''hidden'';\r\n	$mip_form[23][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[23][''cms_val''] = $dedi_mod[''value''][23];\r\n}\r\n\r\n\r\nmip_formsp($mip_form[99]);	// Konfigurationsmodus\r\n\r\nif ($dedi_mod[''value''][99] != ''advanced'')\r\n{\r\n	foreach($mip_form AS $listnavi[''id'']=>$listnavi[''mip''])\r\n	{\r\n		if (($dedi_mod[''value''][99] == ''hidden'') || !in_array($listnavi[''id''], $listnavi[''show_in_standard_mode'']))\r\n		{\r\n			$mip_form[$listnavi[''id'']][''cat''] = ''hidden'';\r\n			$mip_form[$listnavi[''id'']][''cms_var''] = ''MOD_VAR['' . $listnavi[''id''] . '']'';\r\n			$mip_form[$listnavi[''id'']][''cms_val''] = $dedi_mod[''value''][$listnavi[''id'']];\r\n		}\r\n	}\r\n}\r\n\r\nmip_formsp($mip_form[1]);		// Startordner\r\nmip_formsp($mip_form[2]);		// Anzeigeart (Ordner mit Seiten, nur Ordner, nur Seiten)\r\nmip_formsp($mip_form[14]);		// Sortierung\r\nmip_formsp($mip_form[15]);		// Richtung der Sortierung\r\nmip_formsp($mip_form[16]);		// Erst Ordner, dann Seiten anzeigen\r\nmip_formsp($mip_form[3]);		// Komplette Ordnerstruktur anzeigen\r\nmip_formsp($mip_form[5]);		// Anzahl darzustellender Ebenen\r\nmip_formsp($mip_form[4]);		// Startseiten anzeigen\r\nmip_formsp($mip_form[9]);		// Ordner nur als aktiv markieren, wenn Startseite angezeigt wird\r\nmip_formsp($mip_form[11]);		// Pfad als aktiv verfolgen\r\nmip_formsp($mip_form[7]);		// Ordner ausschliessen\r\nmip_formsp($mip_form[8]);		// Seiten ausschliessen\r\nmip_formsp($mip_form[6]);		// Ausgeschlossene Seiten und Ordner auch im Backend verbergen\r\nmip_formsp($mip_form[12]);		// Einleitung/Ende der Navigation verbergen, falls Navigation "leer"\r\nmip_formsp($mip_form[13]);		// Startnummer Tabindex\r\nmip_formsp($mip_form[17]);		// Links zu Startseiten, statt Ordnerlinks benutzen\r\nmip_formsp($mip_form[20]);		// Template: Einleitung der Navigation\r\nmip_formsp($mip_form[21]);		// Template: Ende der Navigation\r\nmip_formsp($mip_form[26]);		// Template: Ebene\r\nmip_formsp($mip_form[22]);		// Template: Seite\r\nmip_formsp($mip_form[23]);		// Template: Aktuelle Seite\r\nmip_formsp($mip_form[24]);		// Template: Ordner\r\nmip_formsp($mip_form[25]);		// Template: Aktiver Ordner\r\n\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n\r\n// Vorbereitung auf DeDi v1.1 (?)\r\nglobal $evil_global_variable_for_easy_tabindex_implementation, $mod;\r\n\r\n$mod[''desc''] = array();\r\n\r\n// idcat des Start-Ordners besorgen\r\n<DEDIPHP:CACHE>\r\nif ($dedi_mod[''value''][1] == ''root'')\r\n{\r\n	$dedi_mod[''value''][1] = ''0'';\r\n}\r\nelseif ($dedi_mod[''value''][1] == ''this'')\r\n{\r\n	$dedi_mod[''value''][1] = $idcat;\r\n}\r\n\r\nif (!$dedi_mod[''value''][14])\r\n{\r\n	// Update von einer Version kleiner als 0.9-dev => Diese Variablen wurden noch nicht durch die Modulkonfiguration gesetzt\r\n	$dedi_mod[''value''][14] = ''sortindex'';\r\n	$dedi_mod[''value''][15] = ''SORT_ASC'';\r\n}\r\n\r\n\r\n// Anzahl darzustellender Ebenen auf 0 setzen, falls unsinnige Werte angegeben wurden\r\nif (!is_numeric($dedi_mod[''value''][5]) || ($dedi_mod[''value''][5] < 0))\r\n{\r\n	$dedi_mod[''value''][5] = 0;\r\n}\r\n\r\n// Startnummer fuer tabindex auf 1 setzen, falls unsinnige Werte angegeben wurden\r\nif (!is_numeric($dedi_mod[''value''][13]) || ($dedi_mod[''value''][13] < 1))\r\n{\r\n	$dedi_mod[''value''][13] = 1;\r\n}\r\n</DEDIPHP:CACHE>\r\n\r\n\r\n/*\r\n * Hilfs-Funktionen\r\n */\r\n\r\nfunction print_folder_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth)\r\n{\r\n	<DEDIPHP:CACHE>\r\n	if ($dedi_mod[''value''][16] == ''true'')\r\n	{\r\n	</DEDIPHP:CACHE>\r\n		$output = print_folder_helper_folders_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth);\r\n		$output .= print_folder_helper_pages_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth);\r\n	<DEDIPHP:CACHE>\r\n	}\r\n	else\r\n	{\r\n	</DEDIPHP:CACHE>\r\n		$output = print_folder_helper_pages_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth);\r\n		$output .= print_folder_helper_folders_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth);\r\n	<DEDIPHP:CACHE>\r\n	}\r\n	</DEDIPHP:CACHE>\r\n	\r\n	if (strlen($output) > 0)\r\n	{\r\n		$tpl = str_replace(''{id}'', $folder[''idcat''], "MOD_VALUE[26]"); \r\n		$output = str_replace(''{layer}'', $output, $tpl);\r\n	}\r\n	\r\n	return $output;\r\n}\r\n\r\n\r\nfunction print_folder_helper_pages_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth)\r\n{\r\n	global $evil_global_variable_for_easy_tabindex_implementation, $con_side, $mod, $cfg_dedi;\r\n	\r\n	// Seiten ausgeben\r\n	if (isset($folder[''pages'']))\r\n	{\r\n		foreach ($folder[''pages''] as $idcatside)\r\n		{\r\n			$template = ($idcatside == <DEDIPHP:CACHE>echo $idcatside;</DEDIPHP:CACHE>) ? "MOD_VALUE[23]" : "MOD_VALUE[22]";\r\n			$item = str_replace(''{name}'', htmlspecialchars($con_side[$idcatside][''name'']), $template);\r\n			$item = str_replace(''{created}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_side[$idcatside][''created'']) , $item);\r\n			$item = str_replace(''{lastmodified}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_side[$idcatside][''lastmodified'']) , $item);\r\n			$item = str_replace(''{desc}'', htmlspecialchars($mod[''desc''][$idcatside]), $item);\r\n			$item = str_replace(''{link}'', $con_side[$idcatside][''link''], $item);\r\n			$item = str_replace(''{id}'', $idcatside, $item);\r\n			$item = str_replace(''{depth}'', $depth, $item);\r\n			if (strstr($item, ''{tabindex}'') !== false)\r\n			{\r\n				$item = str_replace(''{tabindex}'', $evil_global_variable_for_easy_tabindex_implementation++, $item);\r\n			}\r\n\r\n			<DEDIPHP:CACHE>\r\n			if (strstr($dedi_mod[''value''][22], ''{first}'') || strstr($dedi_mod[''value''][23], ''{first}''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				if ($folder[''first''])\r\n				{\r\n					$folder[''first''] = false;\r\n					$item = preg_replace("/{first}(.*?)({else}(.*?))?{\\/first}/", "\\\\1", $item);\r\n				}\r\n				else\r\n				{\r\n					$item = preg_replace("/{first}(.*?)({else}(.*?))?{\\/first}/", "\\\\3", $item);\r\n				}\r\n			<DEDIPHP:CACHE>\r\n			}\r\n\r\n			if (strstr($dedi_mod[''value''][22], ''{last}'') || strstr($dedi_mod[''value''][23], ''{last}''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				if (($folder[''last_thing''] == ''page'') && ($folder[''last''] == $idcatside))\r\n				{\r\n					$item = preg_replace("/{last}(.*?)({else}(.*?))?{\\/last}/", "\\\\1", $item);\r\n				}\r\n				else\r\n				{\r\n					$item = preg_replace("/{last}(.*?)({else}(.*?))?{\\/last}/", "\\\\3", $item);\r\n				}\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			</DEDIPHP:CACHE>\r\n\r\n			$temp .= $item;\r\n		}\r\n	}\r\n	\r\n	return $temp;\r\n}\r\n\r\n\r\nfunction print_folder_helper_folders_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($folder, $depth)\r\n{\r\n	global $evil_global_variable_for_easy_tabindex_implementation, $con_tree, $mod, $cfg_dedi, $con_side;\r\n\r\n	// Ordner ausgeben\r\n	if (is_array($folder[''children'']))\r\n	{\r\n		// Alle Unterordner dieses Ordners durchgehen\r\n		foreach ($folder[''children''] as $subfolder)\r\n		{\r\n			// Ist dieser Ordner ein Blatt des dargestellten Navigationsbaumes?\r\n			$empty = !is_array($subfolder[''children'']) && !is_array($subfolder[''pages'']);\r\n\r\n			$idcat = $subfolder[''idcat''];\r\n\r\n			<DEDIPHP:CACHE>\r\n			// Falls "Ordner nur als aktiv markieren, wenn Startseite angezeigt wird" gewaehlt wurde\r\n			// und die aktuelle (die angezeigte) Seite keine Startseite ist, ...\r\n			if (($dedi_mod[''value''][9] == ''true'') && ($con_side[$idcatside][''is_start''] != ''1''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				// ... die Vorlage (Template) "Ordner" nehmen, ...\r\n				$template = "MOD_VALUE[24]";\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			else\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				// ... andernfalls die Vorlage "Aktiver Ordner" benutzen, wenn der Unterordner\r\n				// der aktuelle ("angezeigte") Ordner ist und sonst die Vorlage "Ordner" verwenden.\r\n				$template = ($idcat == <DEDIPHP:CACHE>echo $idcat;</DEDIPHP:CACHE>) ? "MOD_VALUE[25]" : "MOD_VALUE[24]";\r\n				<DEDIPHP:CACHE>\r\n				if ($dedi_mod[''value''][11] == ''true'')\r\n				{\r\n				</DEDIPHP:CACHE>\r\n					if (in_array($idcat, $mod[''active'']))\r\n					{\r\n						$template = "MOD_VALUE[25]";\r\n					}\r\n				<DEDIPHP:CACHE>\r\n				}\r\n			}\r\n			</DEDIPHP:CACHE>\r\n\r\n			$item = str_replace(''{name}'', htmlspecialchars($con_tree[$idcat][''name'']), $template);\r\n			$item = str_replace(''{created}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_tree[$idcat][''created'']) , $item);\r\n			$item = str_replace(''{lastmodified}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_tree[$idcat][''lastmodified'']) , $item);\r\n			$item = str_replace(''{desc}'', htmlspecialchars($con_tree[$idcat][''description'']), $item);\r\n			<DEDIPHP:CACHE>\r\n			// Links zu Startseiten, statt Ordnerlinks benutzen?\r\n			if (($dedi_mod[''value''][17] == ''true''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				$idcatside = $mod[''idcat''][$idcat];\r\n				$item = str_replace(''{link}'', $con_side[$idcatside][''link''], $item);\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			else\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				$item = str_replace(''{link}'', $con_tree[$idcat][''link''], $item);\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			</DEDIPHP:CACHE>\r\n\r\n			$item = str_replace(''{id}'', $idcat, $item);\r\n			$item = str_replace(''{depth}'', $depth, $item);\r\n			if (strstr($item, ''{tabindex}'') !== false)\r\n			{\r\n				$item = str_replace(''{tabindex}'', $evil_global_variable_for_easy_tabindex_implementation++, $item);\r\n			}\r\n\r\n			<DEDIPHP:CACHE>\r\n			if (strstr($dedi_mod[''value''][24], ''{first}'') || strstr($dedi_mod[''value''][25], ''{first}''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				if ($folder[''first''])\r\n				{\r\n					$folder[''first''] = false;\r\n					$item = preg_replace("/{first}(.*?)({else}(.*?))?{\\/first}/", "\\\\1", $item);\r\n				}\r\n				else\r\n				{\r\n					$item = preg_replace("/{first}(.*?)({else}(.*?))?{\\/first}/", "\\\\3", $item);\r\n				}\r\n			<DEDIPHP:CACHE>\r\n			}\r\n\r\n			if (strstr($dedi_mod[''value''][24], ''{last}'') || strstr($dedi_mod[''value''][25], ''{last}''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				if (($folder[''last_thing''] == ''folder'') && ($folder[''last''] == $idcat))\r\n				{\r\n					$item = preg_replace("/{last}(.*?)({else}(.*?))?{\\/last}/", "\\\\1", $item);\r\n				}\r\n				else\r\n				{\r\n					$item = preg_replace("/{last}(.*?)({else}(.*?))?{\\/last}/", "\\\\3", $item);\r\n				}\r\n			<DEDIPHP:CACHE>\r\n			}\r\n\r\n			if (strstr($dedi_mod[''value''][24], ''{empty}'') || strstr($dedi_mod[''value''][25], ''{empty}''))\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				$item = preg_replace("/{empty}(.*?)({else}(.*?))?{\\/empty}/", ($empty) ? "\\\\1" : "\\\\3", $item);\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			</DEDIPHP:CACHE>\r\n\r\n			$subfolder_data = print_folder_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($subfolder, $depth+1);\r\n						\r\n			$temp .= str_replace("{folder}", $subfolder_data, $item);\r\n		}\r\n	}\r\n\r\n	return $temp;	\r\n}\r\n\r\n\r\nfunction build_navi_tree_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($start, $depth, $first = false)\r\n{\r\n	global $catlist, $con_tree, $con_side, $dedi_side, $db, $mod, $dedi_db, $lang;\r\n\r\n	$entry[''idcat''] = $start;\r\n	\r\n	if ($first)\r\n	{\r\n		$entry[''first''] = true;\r\n	}\r\n\r\n	<DEDIPHP:CACHE>\r\n	if ($dedi_mod[''value''][3] != ''true'')\r\n	{\r\n		echo ''else if (!in_array($start, $mod[\\''path\\''])) return $entry;'';\r\n	}\r\n\r\n	if ($dedi_mod[''value''][5] > 0)\r\n	{\r\n		echo ''if ($depth >= '' . (int)$dedi_mod[''value''][5] . '') return $entry;'';\r\n	}\r\n	</DEDIPHP:CACHE>\r\n	\r\n\r\n	// $hide == true <=> Ausgeschlossene Seiten und Ordner verbergen\r\n	$hide = <DEDIPHP:CACHE>echo ($dedi_mod[''value''][6] == ''true'') ? ''true'' : ''(!isset($dedi_side[\\''view\\'']))'';</DEDIPHP:CACHE>;\r\n\r\n	<DEDIPHP:CACHE>\r\n	if ($dedi_mod[''value''][2] != ''folders'')\r\n	{\r\n	</DEDIPHP:CACHE>\r\n		// Alle zu diesem Ordner gehoerigen Seiten zusammensuchen\r\n		foreach ($con_side as $idcatside=>$page)\r\n		{\r\n			// Seite ins Array aufnehmen, wenn ...\r\n			if ( ($page[''idcat''] == $start) &&\r\n                 (\r\n				   <DEDIPHP:CACHE>\r\n				   // ... es keine Startseite ist (nur wenn keine Startseiten angezeigt werden sollen) und ...\r\n				   if ($dedi_mod[''value''][4] != ''true'')\r\n				   {\r\n			         echo ''($con_side[$idcatside][\\''is_start\\''] == \\''0\\'') &&'';\r\n				   }\r\n				   </DEDIPHP:CACHE>\r\n				   (\r\n				     // ... wir im Backend sind, oder ...\r\n				     isset($dedi_side[''view'']) ||\r\n				     // ... diese online ist ...\r\n				     ($con_side[$idcatside][''online''] != 0)\r\n				   )\r\n				 ) &&\r\n				 // ... und diese Seite nicht ausgeschlossen wurde (oder wir im Backend sind und ausgeschlossene Seiten dort angezeigt werden sollen)\r\n				 (!$hide || !strstr('',<DEDIPHP:CACHE>echo str_replace('' '', '''', $dedi_mod[''value''][8]);</DEDIPHP:CACHE>,'', ",$idcatside,"))\r\n			   )\r\n			{\r\n				$entry[''pages''][] = $idcatside;\r\n				\r\n				<DEDIPHP:CACHE>\r\n				// "Notizen"-Felder der Seiten lesen, falls diese verwendet werden\r\n				if (strstr($dedi_mod[''value''][22], ''{desc}'') || strstr($dedi_mod[''value''][23], ''{desc}''))\r\n				{\r\n				</DEDIPHP:CACHE>\r\n\r\n					$db->query("SELECT summary FROM `" . $dedi_db[''side_lang''] . "` WHERE idlang=''" . $lang . "'' AND idside=''" . $idcatside . "''" );\r\n					if ($db->next_record())\r\n					{\r\n						$mod[''desc''][$idcatside] = $db->f(''summary'');\r\n					}\r\n\r\n				<DEDIPHP:CACHE>\r\n				}\r\n				</DEDIPHP:CACHE>\r\n			}\r\n		}\r\n\r\n		// Seiten sortieren\r\n		if (is_array($entry[''pages'']))\r\n		{\r\n			foreach ($entry[''pages''] as $idcatside)\r\n			{\r\n				$sortarray[] = $con_side[$idcatside][''<DEDIPHP:CACHE>echo $dedi_mod[''value''][14];</DEDIPHP:CACHE>''];\r\n			}\r\n			array_multisort($sortarray, <DEDIPHP:CACHE>echo (($dedi_mod[''value''][14] == ''name'') ? "SORT_STRING" : "SORT_NUMERIC") . ", " . $dedi_mod[''value''][15];</DEDIPHP:CACHE>, $entry[''pages'']);\r\n		}\r\n\r\n	<DEDIPHP:CACHE>\r\n	}\r\n	</DEDIPHP:CACHE>\r\n\r\n\r\n	<DEDIPHP:CACHE>\r\n	if ($dedi_mod[''value''][2] != ''pages'')\r\n	{\r\n	</DEDIPHP:CACHE>\r\n		\r\n		// Lokale Kopie von $catlist, weil der "foreach zeiger" fuer\r\n		// das globale Array durch die Rekursion verloren gehen wuerde\r\n		$catlist2 = $catlist;\r\n\r\n		// Fuer jeden Unterordner dieses Ordners diese Funktion aufrufen (Seiten und Unterordner zusammensuchen)\r\n		foreach ($catlist2 as $idcat)\r\n		{\r\n			// Unterordner ins Array aufnehmen, wenn ...\r\n			if ( ($con_tree[$idcat][''parent''] == $start) &&\r\n			     (\r\n			       // ... wir im Backend sind, oder ...\r\n			       isset($dedi_side[''view'']) ||\r\n			       // ... dieser sichtbar/online ist ...\r\n			       ($con_tree[$idcat][''visible''] != 0)\r\n			     ) &&\r\n			     // ... und dieser Ordner nicht ausgeschlossen wurde (oder wir im Backend sind und ausgeschlossene Ordner dort angezeigt werden sollen)\r\n			     (!$hide || !strstr('',<DEDIPHP:CACHE>echo str_replace('' '', '''', $dedi_mod[''value''][7]);</DEDIPHP:CACHE>,'', ",$idcat,"))\r\n			   )\r\n			{\r\n				$entry[''children''][$idcat] = build_navi_tree_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>($idcat, $depth+1);\r\n			}\r\n		}\r\n\r\n\r\n		// Ordner sortieren\r\n		if (is_array($entry[''children'']))\r\n		{\r\n			unset($sortarray);\r\n			<DEDIPHP:CACHE>\r\n			if ($dedi_mod[''value''][14] == ''sortindex'')\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				$catlist2 = array();\r\n				foreach ($catlist as $key=>$value)\r\n				{\r\n					if (is_array($entry[''children''][$value]))\r\n					{\r\n						$catlist2[$value] = $key;\r\n					}\r\n				}\r\n	\r\n				foreach ($entry[''children''] as $idcat => $v)\r\n				{\r\n					$sortarray[] = $catlist2[$idcat];\r\n				}\r\n				\r\n				array_multisort($sortarray, SORT_NUMERIC, <DEDIPHP:CACHE>echo $dedi_mod[''value''][15];</DEDIPHP:CACHE>, $entry[''children'']);\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			else\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				foreach ($entry[''children''] as $idcat => $v)\r\n				{\r\n					$sortarray[] = $con_tree[$idcat][''<DEDIPHP:CACHE>echo $dedi_mod[''value''][14];</DEDIPHP:CACHE>''];\r\n				}\r\n				array_multisort($sortarray, <DEDIPHP:CACHE>echo (($dedi_mod[''value''][14] == ''name'') ? "SORT_STRING" : "SORT_NUMERIC") . ", " . $dedi_mod[''value''][15];</DEDIPHP:CACHE>, $entry[''children'']);\r\n			<DEDIPHP:CACHE>\r\n			}\r\n			</DEDIPHP:CACHE>\r\n		}\r\n\r\n	<DEDIPHP:CACHE>\r\n	}\r\n	</DEDIPHP:CACHE>\r\n\r\n	if ($first)\r\n	{\r\n		<DEDIPHP:CACHE>\r\n		if (strstr($dedi_mod[''value''][22], ''{last}'') || strstr($dedi_mod[''value''][23], ''{last}'') ||\r\n		    strstr($dedi_mod[''value''][24], ''{last}'') || strstr($dedi_mod[''value''][25], ''{last}''))\r\n		{\r\n			if ($dedi_mod[''value''][16] == true)\r\n			{\r\n			</DEDIPHP:CACHE>\r\n				$current = &$entry;\r\n				$parent = &$entry;\r\n				$last = false;\r\n				do\r\n				{\r\n					if (is_array($current[''pages'']))\r\n					{\r\n						$temp = $current[''pages''];\r\n						$current[''last''] = array_pop($temp);\r\n						$current[''last_thing''] = ''page'';\r\n						$last = true;\r\n					}\r\n					else if (is_array($current[''children'']))\r\n					{\r\n						$index = array_pop(array_keys($current[''children'']));\r\n						$parent = &$current;\r\n						$current = &$current[''children''][$index];\r\n					}\r\n					else\r\n					{\r\n						$parent[''last_thing''] = ''folder'';\r\n						$parent[''last''] = $current[''idcat''];\r\n						$last = true;\r\n					}\r\n				}\r\n				while (!$last);\r\n			<DEDIPHP:CACHE>\r\n			} else {\r\n			</DEDIPHP:CACHE>\r\n				$current =& $entry;\r\n				$parent =& $entry;\r\n				$last = false;\r\n				do\r\n				{\r\n					if (is_array($current[''children'']))\r\n					{\r\n						$index = array_pop(array_keys($current[''children'']));\r\n						$parent =& $current;\r\n						$current =& $current[''children''][$index];\r\n					}\r\n					else if (is_array($current[''pages'']))\r\n					{\r\n						$temp = $current[''pages''];\r\n						$current[''last''] = array_pop($temp);\r\n						$current[''last_thing''] = ''page'';\r\n						$last = true;\r\n					}\r\n					else\r\n					{\r\n						$parent[''last_thing''] = ''folder'';\r\n						$parent[''last''] = $current[''idcat''];\r\n						$last = true;\r\n					}\r\n				}\r\n				while (!$last);\r\n		<DEDIPHP:CACHE>\r\n			}\r\n		}\r\n		</DEDIPHP:CACHE>\r\n	}\r\n\r\n	return $entry;\r\n}\r\n\r\n\r\n/*\r\n * "Hauptprogramm"\r\n */\r\n\r\n<DEDIPHP:CACHE>\r\n// Die idcatsides (Startseiten) zu den idcats (Ordnern) suchen, falls auch Ordner angezeigt werden sollen\r\nif (($dedi_mod[''value''][17] == ''true'') && ($dedi_mod[''value''][2] != ''pages''))\r\n{\r\n</DEDIPHP:CACHE>\r\n	foreach ($con_side as $mod[''page''])\r\n	{\r\n		if ($mod[''page''][''is_start''])\r\n		{\r\n			$mod[''idcat''][$mod[''page''][''idcat'']] = $mod[''page''][''idside''];\r\n		}\r\n	}\r\n<DEDIPHP:CACHE>\r\n}\r\n\r\n// Falls nicht alle Unterordner angezeigt werden sollen oder der Pfad als aktiv verfolgt werden soll...\r\nif (($dedi_mod[''value''][2] != ''pages'') && (($dedi_mod[''value''][3] != ''true'') || ($dedi_mod[''value''][11] == ''true'')))\r\n{\r\n</DEDIPHP:CACHE>\r\n	// Pfad vom aktuellen Ordner zum Start-Ordner "berechnen"\r\n	$mod[''current_idcat''] = <DEDIPHP:CACHE>echo $idcat;</DEDIPHP:CACHE>;\r\n	$mod[''path''] = array();\r\n	<DEDIPHP:CACHE>\r\n	if ($dedi_mod[''value''][11] == ''true'')\r\n	{\r\n	</DEDIPHP:CACHE>\r\n		$mod[''flag''] = true;\r\n	<DEDIPHP:CACHE>\r\n	}\r\n	</DEDIPHP:CACHE>\r\n	\r\n	while ($mod[''current_idcat''] != <DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>)\r\n	{\r\n		$mod[''path''][] = $mod[''current_idcat''];\r\n		$mod[''current_idcat''] = $con_tree[$mod[''current_idcat'']][''parent''];\r\n\r\n		<DEDIPHP:CACHE>\r\n		// Falls der Start-Ordner nicht "root" ist, ...\r\n		if ($dedi_mod[''value''][1] != ''0'')\r\n		{\r\n		</DEDIPHP:CACHE>\r\n\r\n			if ($mod[''current_idcat''] == 0)\r\n			{\r\n				// ... aber wir dort angekommen sind und den Startordner noch nicht gefunden haben,\r\n				// liegt die aktuelle Seite nicht im "Pfad"\r\n				<DEDIPHP:CACHE>\r\n				if ($dedi_mod[''value''][11] == ''true'')\r\n				{\r\n				</DEDIPHP:CACHE>\r\n					$mod[''active''] = $mod[''path''];\r\n					$mod[''flag''] = false;\r\n				<DEDIPHP:CACHE>\r\n				}\r\n				</DEDIPHP:CACHE>\r\n				$mod[''path''] = array();\r\n				break;\r\n			}\r\n\r\n		<DEDIPHP:CACHE>\r\n		}\r\n		</DEDIPHP:CACHE>\r\n	}\r\n	\r\n	<DEDIPHP:CACHE>\r\n	if ($dedi_mod[''value''][11] == ''true'') {\r\n	</DEDIPHP:CACHE>\r\n\r\n		if ($mod[''flag''])\r\n		{\r\n			$mod[''active''] = $mod[''path''];\r\n		}\r\n\r\n	<DEDIPHP:CACHE>\r\n	}\r\n}\r\n</DEDIPHP:CACHE>\r\n\r\n// Mit tabindex + 1 anfangen, wenn der Startordner ungleich Root ist, da in "Einleitung der Navigation" der tabindex benutzt werden koennte\r\n$evil_global_variable_for_easy_tabindex_implementation = <DEDIPHP:CACHE>echo ($dedi_mod[''value''][13] + (($dedi_mod[''value''][1] != 0) ? 1 : 0));</DEDIPHP:CACHE>;\r\n\r\n// Die Liste gemaess den gewaehlten Einstellungen aufbauen\r\n$mod[''output''] = print_folder_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>(build_navi_tree_<DEDIPHP:CACHE>echo $dedi_mod[''container''][''id''];</DEDIPHP:CACHE>(<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>, 0, true), 1);\r\n\r\n<DEDIPHP:CACHE>\r\n\r\nif ($dedi_mod[''value''][12] != ''true'')\r\n{\r\n	echo ''if ($mod[\\''output\\''] != "") {'';\r\n}\r\n\r\n</DEDIPHP:CACHE>\r\n\r\n$mod[''intro''] = "MOD_VALUE[20]";\r\n$mod[''outro''] = "MOD_VALUE[21]";\r\n\r\n// Templatevariablen in Einleitung/Ende der Navigation ersetzen, falls der Startordner ungleich "root" ist und der Ordner sichtbar ist.\r\nif (<DEDIPHP:CACHE>echo ($dedi_mod[''value''][1] != 0) ? ''true'' : ''false'';</DEDIPHP:CACHE> &&\r\n    ((isset($dedi_side[''view'']) && <DEDIPHP:CACHE>echo ($dedi_mod[''value''][6] != ''true'') ? ''true'' : ''false'';</DEDIPHP:CACHE>) ||\r\n    ($con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''visible''] != 0)) )\r\n{\r\n	$mod[''intro''] = str_replace(''{name}'', htmlspecialchars($con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''name'']), $mod[''intro'']);\r\n	$mod[''intro''] = str_replace(''{desc}'', htmlspecialchars($con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''description'']), $mod[''intro'']);\r\n	$mod[''intro''] = str_replace(''{created}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''created'']) , $mod[''intro'']);\r\n	$mod[''intro''] = str_replace(''{lastmodified}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''lastmodified'']) , $mod[''intro'']);\r\n	$mod[''intro''] = str_replace(''{link}'', $con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''link''], $mod[''intro'']);\r\n	$mod[''intro''] = str_replace(''{id}'', ''<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>'', $mod[''intro'']);\r\n	$mod[''intro''] = str_replace(''{tabindex}'', ''<DEDIPHP:CACHE>echo $dedi_mod[''value''][13];</DEDIPHP:CACHE>'', $mod[''intro'']);\r\n	\r\n	$mod[''outro''] = str_replace(''{name}'', htmlspecialchars($con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''name'']), $mod[''outro'']);\r\n	$mod[''outro''] = str_replace(''{desc}'', htmlspecialchars($con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''description'']), $mod[''outro'']);\r\n	$mod[''outro''] = str_replace(''{created}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''created'']) , $mod[''outro'']);\r\n	$mod[''outro''] = str_replace(''{lastmodified}'', date($cfg_dedi[''FormatDate''] . " " . $cfg_dedi[''FormatTime''], $con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''lastmodified'']) , $mod[''outro'']);\r\n	$mod[''outro''] = str_replace(''{link}'', $con_tree[<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>][''link''], $mod[''outro'']);\r\n	$mod[''outro''] = str_replace(''{id}'', ''<DEDIPHP:CACHE>echo $dedi_mod[''value''][1];</DEDIPHP:CACHE>'', $mod[''outro'']);\r\n	$mod[''outro''] = str_replace(''{tabindex}'', $evil_global_variable_for_easy_tabindex_implementation, $mod[''outro'']);\r\n}\r\n\r\n// Navigation ausgeben\r\necho $mod[''intro''] . $mod[''output''] . $mod[''outro''];\r\n\r\n<DEDIPHP:CACHE>\r\nif ($dedi_mod[''value''][12] != ''true'')\r\n{\r\n	echo ''}'';\r\n}\r\n</DEDIPHP:CACHE>\r\n\r\nunset ($mod, $evil_global_variable_for_easy_tabindex_implementation);\r\n\r\n</DEDIPHP>', '', 0, 1, 1, 1095300905, 1149815921, 'mod:cc080bc8e2dbf4cdb277a68dbbad8561:78c0074d', '', '', '', 0, '0', 'Listen-Navigation', '1');
INSERT INTO `dedi_mod` VALUES (40, 'Druckversion', '1.0', 'System', 'Das Modul ermöglicht es einzelne Container auszuwählen und deren Inhalte innerhalb eines eigenen Templates ohne Verwendung des erstellten Layouts auszugeben.', '<?php\r\n//configmode\r\n$mip_form[''13''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''13''][''cat''] = ''option'';\r\n$mip_form[''13''][''size''] = ''1'';\r\n$mip_form[''13''][''option_desc''][] = ''Normal'';\r\n$mip_form[''13''][''option_val''][] =  '''';\r\n$mip_form[''13''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''13''][''option_val''][] =  ''advanced'';\r\n$mip_form[''13''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''13''][''option_val''][] =  ''hidden'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''13'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(1,2);\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''13''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''13''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple and advanced config\r\nelse if($dedi_mod[''value''][''13''] == '''' || $dedi_mod[''value''][''13''] == ''advanced''){\r\n\r\n// Container auswählen\r\n$config[''number''] = 0;\r\n$mip_form[''0''][''desc''] = ''Container, welche angezeigt werden sollen: '';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''size''] = ''5'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\nforeach ($list[''id''] as $config[''value'']) {\r\n	$config[''_container_name''] = !empty($list[$config[''value'']][''title'']) ? $list[$config[''value'']][''title''] : $config[''value''].''&nbsp;''.$dedi_lang[''tpl_container''];\r\n	$mip_form[''0''][''option_desc''][$config[''number'']] = $config[''_container_name''];\r\n	$mip_form[''0''][''option_val''][$config[''number'']] = $config[''value''];\r\n	$config[''number''] = $config[''number'']+1;\r\n}\r\n$mip_form[''0''][''flag''] = ''multiple'';\r\n\r\n// Template\r\n$mip_form[''1''][''desc''] = ''Block für Druckversionlayout<br>\r\n<small>Mögliche Blockvariablen:<br> angezeigte Container: {head}, {inhalt}</small>'';\r\n$mip_form[''1''][''cat''] = ''txtarea'';\r\n$mip_form[''1''][''rows''] = ''6'';\r\n$mip_form[''1''][''type''] = ''long'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''<html>\r\n<head>\r\n{head}\r\n</head>\r\n<body>\r\n{inhalt}\r\n</body>\r\n</html>'';\r\n\r\n// Template\r\n$mip_form[''2''][''desc''] = ''Block für Druckversionlinks<br>\r\n<small>Mögliche Blockvariablen: Url zur Druckversion: {url}, Idcatside der aktuellen Seite: {idcatside}</small>'';\r\n$mip_form[''2''][''cat''] = ''txtarea'';\r\n$mip_form[''2''][''rows''] = ''6'';\r\n$mip_form[''2''][''type''] = ''long'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''<a href="{url}" target="_blank">Druckversion</a>'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''13''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\n}\r\nunset($mip_form, $config);\r\n?>', '<DEDIPHP>\r\nif(${''mod''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id'']} == ''print'') {\r\n	// Druckversionsausgabe\r\n	<?PHP\r\n	$mod[''tpl_copy''] = $dedi_mod[''value''][''1''];\r\n\r\n	// {head} ersetzen\r\n	while ($mod[''tpl_pos''] = strpos ('' ''.$mod[''tpl_copy''], ''{head}'')) $mod[''tpl_copy''] = substr_replace ($mod[''tpl_copy''], ''$print_head'', $mod[''tpl_pos'']-1, 6);\r\n\r\n	// {inhalt} ersetzen\r\n	while ($mod[''tpl_pos''] = strpos ('' ''.$mod[''tpl_copy''], ''{inhalt}'')) $mod[''tpl_copy''] = substr_replace ($mod[''tpl_copy''], ''$print_area'', $mod[''tpl_pos'']-1, 8);\r\n	?>\r\n	$mod[''manipulate_output''] = ''$print_cont = explode(\\'',\\'', \\''<?PHP echo $dedi_mod[''value''][''0'']; ?>\\'');'';\r\n	$mod[''manipulate_output''] .= ''$print_area = \\''\\'';'';\r\n	$mod[''manipulate_output''] .= ''if (is_array($print_cont)) {'';\r\n	$mod[''manipulate_output''] .= ''	foreach ($print_cont as $cont_nr) {'';\r\n	$mod[''manipulate_output''] .= ''		$start = strpos($output, "<!--START $cont_nr//-->");'';\r\n	$mod[''manipulate_output''] .= ''		$ende = strpos($output, "<!--END $cont_nr//-->");'';\r\n	$mod[''manipulate_output''] .= ''		$ende = $ende - $start;'';\r\n	$mod[''manipulate_output''] .= ''		$print_area .= substr($output, $start, $ende);'';\r\n	$mod[''manipulate_output''] .= ''	}'';\r\n	$mod[''manipulate_output''] .= ''}'';\r\n	$mod[''manipulate_output''] .= ''$start = strpos($output, "<!--START head//-->");'';\r\n	$mod[''manipulate_output''] .= ''$ende = strpos($output, "<!--END head//-->");'';\r\n	$mod[''manipulate_output''] .= ''$ende = $ende - $start;'';\r\n	$mod[''manipulate_output''] .= ''$print_head .= substr($output, $start, $ende);'';\r\n	$mod[''manipulate_output''] .= ''$output = "<?PHP echo addslashes($mod[''tpl_copy'']); ?>";'';\r\n	$cfg_client[''manipulate_output''] = $mod[''manipulate_output''].$cfg_client[''manipulate_output''];\r\n} else {\r\n	// Druckversions Link\r\n         $mod[''tpl_link''] = str_replace(''{url}'', $con_side[$idcatside][''link''].''&mod''.$dedi_mod[''container''][''id''].''_''.$dedi_mod[''modul''][''id''].''=print'', "MOD_VALUE[2]");\r\n         $mod[''tpl_link''] = str_replace(''{idcatside}'', $idcatside, $mod[''tpl_link'']);\r\n         echo $mod[''tpl_link''];\r\n}\r\nunset($mod);\r\n</DEDIPHP>', '', 0, 1, 1, 1066927900, 1132969155, 'mod:88953b0f14170e8ce929064e618b2ff7:0c7598c4', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (41, 'CacheControl', '1.0', 'Tools', 'Löscht gecachte Seiten nach XXX- Sekunden', '<?PHP\r\n$mip_form[''1''][''cat''] = ''txt'';\r\n$mip_form[''1''][''desc''] = ''Cache wir alle X Sekunden gelöscht<br><small>86400 Sekunden entspricht 24 Stunden</small>'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''86400'';\r\n\r\nmip_formsp($mip_form[''1'']);\r\nunset($mip_form);\r\n?>', '<dedi:mod type = "cache" expires="MOD_VALUE[1]" />', '', 0, 1, 1, 1066927900, 1132967511, 'mod:cc9d03f1b60e292d96f8f3e6f6ebf440:b698ef0d', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (42, 'Info', '1.0', 'Sonstiges', 'Zeigt allgemeine Informationen zu den Seiten und Ordnern an.', '<?php\r\n// Schriftart normal\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font''];\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''cms_val_default''] = ''font2'';\r\n$mip_form[''0''][''flag''] = ''class_only'';\r\n\r\n// Schriftart Infos\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font''].'' der Infos'';\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''cms_val_default''] = ''font1'';\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Template\r\n$mip_form[''2''][''desc''] = ''Template'';\r\n$mip_form[''2''][''cat''] = ''txtarea'';\r\n$mip_form[''2''][''rows''] = ''6'';\r\n$mip_form[''2''][''type''] = ''long'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''cms_val_default''] = ''letzte Änderung: am {lastmodified_date} um {lastmodified_time} Uhr von {authorname} {authorsurname}'';\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\necho '' <small><b>Legende:</b><br>{author} ID des Redakteurs, {authorusername} Benutzerkennung des Redakteurs, {authorname} Vorname, {authorsurname} Nachname<br>{created} erstellt am, {created_date} erstellt am (Datum), {created_time} erstellt am (Uhrzeit)<br>{lastmodified} letzte Änderung, {lastmodified_date} Datum, {lastmodified_time} Uhrzeit<br>{lastmodified_projekt} letzte Änderung im Projekt, {lastmodified_projekt_date} Datum, {lastmodified_projekt_time} Uhrzeit<br>{name} Seitenname, {notes} Notizen, {summary} Kurzbeschreibung, {catname} Ordnername<br>{time} aktuelle Uhrzeit, {day} aktueller Tag, {date} aktuelles Datum<br>Falls Statistikplugin vorhanden: {visits} Anzahl Aufrufe der aktuellen Seite, {allvisits} Anzahl Aufrufe aller Seiten des Projekts<br> Php-Code: <DEDIPHP> echo "Ich bin phpcode!"; </DEDIPHP></small>'';\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\n<?PHP\r\nif ($dedi_mod[''value''][1]) {\r\n               $formatting_front=''<span class="''.$dedi_mod[''value''][1].''">'';\r\n               $formatting_end=''</span>'';\r\n} else {\r\n               $formatting_front='''';\r\n               $formatting_end='''';\r\n}\r\n$tpl[''code''] = str_replace(''{author}'', $formatting_front.$con_side[$idcatside][''author''].$formatting_end, $dedi_mod[''value''][2]);\r\nif (strpos($tpl[''code''],''{authorusername}'')!==FALSE || strpos($tpl[''code''],''{authorname}'')!==FALSE || strpos($tpl[''code''],''{authorsurname}'')!==FALSE) {\r\n	$db->query(''SELECT username,name,surname FROM ''.$dedi_db[''users''].'' WHERE user_id=''.$con_side[$idcatside][''author'']);\r\n	$db->next_record();\r\n	$tpl[''authorusername''] = $db->f(''username'');\r\n	$tpl[''authorname''] = $db->f(''name'');\r\n	$tpl[''authorsurname''] = $db->f(''surname'');\r\n}\r\n$tpl[''code''] = str_replace(''{authorusername}'', $formatting_front.$tpl[''authorusername''].$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{authorname}'', $formatting_front.$tpl[''authorname''].$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{authorsurname}'', $formatting_front.$tpl[''authorsurname''].$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{created}'', $formatting_front.date($cfg_dedi[''FormatDate''].'' ''.$cfg_dedi[''FormatTime''], $con_side[$idcatside][''created'']).$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{created_date}'', $formatting_front.date($cfg_dedi[''FormatDate''], $con_side[$idcatside][''created'']).$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{created_time}'', $formatting_front.date($cfg_dedi[''FormatTime''], $con_side[$idcatside][''created'']).$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{lastmodified}'', $formatting_front.date($cfg_dedi[''FormatDate''].'' ''.$cfg_dedi[''FormatTime''], $con_side[$idcatside][''lastmodified'']).$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{lastmodified_date}'', $formatting_front.date($cfg_dedi[''FormatDate''], $con_side[$idcatside][''lastmodified'']).$formatting_end, $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{lastmodified_time}'', $formatting_front.date($cfg_dedi[''FormatTime''], $con_side[$idcatside][''lastmodified'']).$formatting_end, $tpl[''code'']);\r\nif ((strpos($tpl[''code''],''{lastmodified_projekt}'')!==FALSE) || (strpos($tpl[''code''],''{lastmodified_projekt_date}'')!==FALSE) || (strpos($tpl[''code''],''{lastmodified_projekt_time}'')!==FALSE)) {\r\n  $db->query(''SELECT max(''.$dedi_db[''content''].''.lastmodified) as lastmodified FROM ''.\r\n      $dedi_db[''content''].'', ''.$dedi_db[''container''].'', ''.$dedi_db[''tpl''].'' WHERE ''.\r\n      $dedi_db[''content''].''.container=''.$dedi_db[''container''].''.container AND ''.\r\n      $dedi_db[''container''].''.idtpl=''.$dedi_db[''tpl''].''.idtpl AND ''.$dedi_db[''tpl''].\r\n      ''.idclient=''.$client);\r\n  $db->next_record();\r\n  $tpl[''lastmodified''] = ($db->affected_rows()) ? $db->f(''lastmodified'') : $con_side[$idcatside][''lastmodified''];\r\n  $tpl[''code''] = str_replace(''{lastmodified_projekt}'', $formatting_front.date($cfg_dedi[''FormatDate''].'' ''.$cfg_dedi[''FormatTime''], $tpl[''lastmodified'']).$formatting_end, $tpl[''code'']);\r\n  $tpl[''code''] = str_replace(''{lastmodified_projekt_date}'', $formatting_front.date($cfg_dedi[''FormatDate''], $tpl[''lastmodified'']).$formatting_end, $tpl[''code'']);\r\n  $tpl[''code''] = str_replace(''{lastmodified_projekt_time}'', $formatting_front.date($cfg_dedi[''FormatTime''], $tpl[''lastmodified'']).$formatting_end, $tpl[''code'']);\r\n}\r\n$tpl[''code''] = str_replace("\\''","''", addslashes($tpl[''code'']));\r\n$tpl[''code''] = str_replace(''{name}'', str_replace("\\''","''", addslashes($formatting_front)).''".$con_side[$idcatside][\\''name\\'']."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{summary}'', str_replace("\\''","''", addslashes($formatting_front)).''".$con_side[$idcatside][\\''meta_description\\'']."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{notes}'', str_replace("\\''","''", addslashes($formatting_front)).''".$con_side[$idcatside][\\''summary\\'']."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{catname}'', str_replace("\\''","''", addslashes($formatting_front)).''".$con_tree[$idcat][\\''name\\'']."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n$tpl[''code''] = str_replace(''{time}'', str_replace("\\''","''", addslashes($formatting_front)).''".date(\\''H:i\\'', time())."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\nif (strpos($tpl[''code''],''{visits}'')!==FALSE) {\r\n?>\r\n	// $dedi_db[''stat''] is set automatically by dedi in backend/config.php at install. Make sure it is correct!\r\n	$db->query(''SELECT visited FROM ''.$dedi_db[''stat''].'' WHERE idcatside=''.$idcatside);\r\n	$db->next_record();\r\n	if ($db->affected_rows()) $tpl[''visits''] = $db->f(''visited'');\r\n         else $tpl[''visits''] = ''0'';\r\n<?PHP\r\n	$tpl[''code''] = str_replace(''{visits}'', str_replace("\\''","''", addslashes($formatting_front)).''".$tpl[\\''visits\\'']."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n}\r\nif (strpos($tpl[''code''],''{allvisits}'')!==FALSE) {\r\n?>\r\n	$db->query(''SELECT SUM(visited) AS allvisited FROM ''.$dedi_db[''stat''].'' WHERE idclient=''.$client);\r\n	$db->next_record();\r\n	if ($db->affected_rows()) $tpl[''allvisits''] = $db->f(''allvisited'');\r\n	else $tpl[''allvisits''] = ''0'';\r\n<?PHP\r\n	$tpl[''code''] = str_replace(''{allvisits}'', str_replace("\\''","''", addslashes($formatting_front)).''".$tpl[\\''allvisits\\'']."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n}\r\nif (strpos($tpl[''code''],''{day}'')!==FALSE) {\r\n?>\r\n	$mod[''day''] = array(''Sonntag'', ''Montag'', ''Dienstag'', ''Mittwoch'', ''Donnerstag'', ''Freitag'', ''Samstag'');\r\n<?PHP\r\n	$tpl[''code''] = str_replace(''{day}'', str_replace("\\''","''", addslashes($formatting_front)).''".$mod[\\''day\\''][date(\\''w\\'')]."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n}\r\nif (strpos($tpl[''code''],''{date}'')!==FALSE) {\r\n?>\r\n	$mod[''month''] = array('''', ''Januar'', ''Februar'', ''M&auml;rz'', ''April'', ''Mai'', ''Juni'', ''Juli'', ''August'', ''September'', ''Oktober'', ''November'', ''Dezember'');\r\n<?PHP\r\n	$tpl[''code''] = str_replace(''{date}'', str_replace("\\''","''", addslashes($formatting_front)).''".date(\\''d\\'', time()).\\''. \\''.$mod[\\''month\\''][date(\\''n\\'')].\\'' \\''.date(\\''Y\\'', time())."''.str_replace("\\''","''", addslashes($formatting_end)), $tpl[''code'']);\r\n}\r\nif ($dedi_mod[''value''][0]) echo ''eval(" ?><span class=\\"''.$dedi_mod[''value''][0].''\\">''.$tpl[''code''].''</span>");''."\\n";\r\nelse echo ''eval(" ?>''.$tpl[''code''].''");''."\\n";\r\n?>\r\nunset($tpl, $mod);\r\n</DEDIPHP>', '', 0, 1, 1, 1095259101, 1132969201, 'mod:caf9b6b99962bf5c2264824231d7a40c:4ae0625a', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (44, 'Entwicklervariablen', '1.2', 'Tools', '', '', '<table cellspacing="1" cellpadding="2" bgcolor="#BBC2CE" border="0">\r\n  <tr>\r\n    <td class="Verdana-10px-bold" bgcolor="#F7F7F7">Beschreibung</td>\r\n    <td class="Verdana-10px-bold" bgcolor="#F7F7F7">Variablenname</td>\r\n    <td class="Verdana-10px-bold" bgcolor="#F7F7F7">Inhalt</td>\r\n  </tr>\r\n<DEDIPHP>\r\necho ''  <tr>''."\\n";\r\necho ''    <td colspan="3" class="Verdana-10px-bold" bgcolor="#FFFFFF">Einträge aus der project0x/cms/inc/config.php</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">Systempfad zum Backend</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$dedi_path:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$dedi_path.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID des eingestellten Projektes</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$client:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$client.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID der voreingestellten Sprache</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$startlang:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$startlang.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td colspan="3" class="Verdana-10px-bold" bgcolor="#FFFFFF">aktuelle Variablen</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID der aktuellen Sprache</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$lang:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$lang.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID des aktuellen Ordners</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$idcat:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$idcat.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><nobr><font color="#666666">aktuellen Seite ohne Ordnerzuweisung</font></nobr></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$idside:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$idside.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID der aktuellen Seite mit Ordnerzuweisung</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$idcatside:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$idcatside.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">aktuelle Session</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$sid:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$sid.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID des aktuellen Layouts</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$idlay:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$idlay.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF"><font color="#666666">ID der aktuellen Templatevorlage</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">$idtpl:string</td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF">''.$idtpl.''</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Namen der Datenbanktabellen</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$dedi_db:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($dedi_db);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Userinformationen</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$auth->auth:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($auth->auth);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Allgemeine Einstellungen</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$cfg_dedi:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($cfg_dedi);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Projekteinstellungen</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$cfg_client:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($cfg_client);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">aktuelles Layout</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$layout:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($layout);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">enthält alle Informationen über die Ordner</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$con_tree:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($con_tree);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Sortierung von $con_tree</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$catlist:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($catlist);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Einrückung der Ordner</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$catlist_level:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($catlist_level);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">enthält alle Informationen über die Seiten</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$con_side:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($con_side);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Konfiguration der DeDi-Tags im Layout</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$list:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($list);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Inhalte aller Container</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$container:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($container);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">aktuelle Sprachübersetzungen</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$dedi_lang:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($dedi_lang);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td colspan="3" class="Verdana-10px-bold" bgcolor="#FFFFFF">Einträge, die besonders für die Modulprogrammierung wichtig sind</td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">aktuelle Sprachübersetzungen</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$mod_lang:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($mod_lang);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\necho ''  <tr>''."\\n";\r\necho ''    <td class="Verdana-10px-bold" bgcolor="#FFFFFF" valign="top"><font color="#666666">Konfiguration des Moduls</font></td>''."\\n";\r\necho ''    <td class="Verdana-10px" bgcolor="#FFFFFF" valign="top">$dedi_mod:array</td>''."\\n";\r\necho ''    <td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;" bgcolor="#FFFFFF"><pre>'';\r\n$mod[''tmp''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\nprint_r($dedi_mod);\r\n$mod[''array''] = ob_get_contents ();\r\nob_end_clean ();\r\nob_start();\r\necho $mod[''tmp''].htmlspecialchars($mod[''array'']);\r\nunset($mod[''tmp''],$mod[''array'']);\r\necho ''</pre></td>''."\\n";\r\necho ''  </tr>''."\\n";\r\nunset($mod);\r\n</DEDIPHP>\r\n</table>', '', 0, 1, 1, 1066927900, 1132968119, 'mod:d11670cae9abe9707e1aca88e9534196:c055c2e8', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (45, 'Login', '1.3.3', 'System', 'Login/out-Formular für die geschützten Bereiche.', '<?PHP\r\n// get page tree for linking to\r\n$sql = "SELECT A.name, B.idcat, B.parent, B.sortindex FROM $dedi_db[cat_lang] AS A, $dedi_db[cat] AS B WHERE A.idcat=B.idcat AND B.idclient=''$client'' ORDER BY B.parent, B.sortindex";\r\n$db->query($sql);\r\nwhile ($db->next_record()){\r\n	$ordner[$db->f(''idcat'')] = $db->f(''name'');\r\n	$tlo_tree[$db->f(''parent'')][$db->f(''sortindex'')] = $db->f(''idcat'');\r\n}\r\n$sql = "SELECT D.idcatside, D.idcat, D.sortindex, D.is_start, F.title FROM $dedi_db[cat_side] AS D, $dedi_db[side] AS E, $dedi_db[side_lang] AS F WHERE D.idside=E.idside AND E.idside=F.idside AND E.idclient=''$client'' AND F.idlang=''$lang'' ORDER BY D.idcatside";\r\n$db->query($sql);\r\nwhile ($db->next_record()){\r\n	$seiten[$db->f(''idcat'')][$db->f(''idcatside'')][''name''] = $db->f(''title'');\r\n	$seiten[$db->f(''idcat'')][$db->f(''idcatside'')][''idcatside''] = $db->f(''idcatside'');\r\n	$seiten[$db->f(''idcat'')][$db->f(''idcatside'')][''is_start''] = $db->f(''is_start'');\r\n	if($db->f(''is_start'') == 1){ $seiten[''start''][$db->f(''idcat'')] = $db->f(''idcatside''); }\r\n	if(!is_array($seiten[''sortarray''][$db->f(''idcat'')])){$seiten[''sortarray''][$db->f(''idcat'')] = array(); }\r\n	array_push($seiten[''sortarray''][$db->f(''idcat'')],$db->f(''sortindex''));\r\n}\r\n$baum = array();\r\nif( function_exists("tree_level_order") ) tree_level_order(''0'',''catlist'');\r\nif( is_array($catlist) ) foreach($catlist as $a){\r\n	$temp[''id''] = $seiten[''start''][$a];\r\n	$temp[''name''] = $ordner[$a];\r\n	$temp[''level''] = $catlist_level[$a];\r\n	array_push($baum, $temp);\r\n	if(is_array($seiten[$a]) && @count($seiten[$a]) == @count($seiten[''sortarray''][$a])){\r\n		array_multisort($seiten[''sortarray''][$a] , SORT_ASC , $seiten[$a] , SORT_ASC);\r\n		foreach(array_keys($seiten[$a]) as $b){\r\n			if($seiten[''start''][$a] != $b){\r\n				$temp[''id''] = $seiten[$a][$b][''idcatside''];\r\n				$temp[''name''] = $seiten[$a][$b][''name''];\r\n				$temp[''level''] = $catlist_level[$a] + 1;\r\n				array_push($baum, $temp);\r\n			}\r\n		}\r\n	}\r\n}\r\n\r\n//Schriftart\r\n$mip_form[''0''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''0''][''cat''] = ''app_css'';\r\n$mip_form[''0''][''output_cat''] = ''option'';\r\n$mip_form[''0''][''cms_val_default''] = ''font4'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n\r\n//Schriftart für Fehlermeldungen\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_errorfont'']." {font2}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_val_default''] = ''font3'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n\r\n//Schriftart für die Eingabefelder\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_inputformfont'']." {font3}";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_val_default''] = ''font21'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n\r\n//Text für Fehlermeldung\r\n$mip_form[''3''][''desc''] = $mod_lang[''login_error''];\r\n$mip_form[''3''][''cat''] = ''txt'';\r\n$mip_form[''3''][''type''] = ''long'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = $mod_lang[''login_errormsg''];\r\n$mip_form[''3''][''tab''] = ''0'';\r\n\r\n//Bild für den Sendebutton\r\n$mip_form[''4''][''cat''] = ''hidden'';\r\n$mip_form[''4''][''cms_var''] = "MOD_VAR[4]";\r\n$mip_form[''4''][''cms_val''] = ''0'';\r\n//$mip_form[''4''][''desc''] = $mod_lang[''gen_picforsend''];\r\n//$mip_form[''4''][''type''] = ''select'';\r\n//$mip_form[''4''][''cms_var''] = "MOD_VAR[4]";\r\n//$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n//$mip_form[''4''][''option''] = ''file'';\r\n//$mip_form[''4''][''file''] = ''img'';\r\n\r\n//Bild für den Logoutbutton\r\n$mip_form[''5''][''cat''] = ''hidden'';\r\n$mip_form[''5''][''cms_var''] = "MOD_VAR[5]";\r\n$mip_form[''5''][''cms_val''] = ''0'';\r\n//$mip_form[''5''][''desc''] = $mod_lang[''login_picforlogout''];\r\n//$mip_form[''5''][''type''] = ''select'';\r\n//$mip_form[''5''][''cms_var''] = "MOD_VAR[5]";\r\n//$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n//$mip_form[''5''][''option''] = ''file'';\r\n//$mip_form[''5''][''file''] = ''img'';\r\n\r\n//Farbwert für MouseOver\r\n$mip_form[''6''][''desc''] = ''Farbwert für MouseOver'';\r\n$mip_form[''6''][''cat''] = ''txt'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''cms_val_default''] = ''#7E89AC'';\r\n\r\n//Farbwert für MouseOut\r\n$mip_form[''7''][''desc''] = ''Farbwert für MouseOut'';\r\n$mip_form[''7''][''cat''] = ''txt'';\r\n$mip_form[''7''][''cms_var''] = ''MOD_VAR[7]'';\r\n$mip_form[''7''][''cms_val''] = $dedi_mod[''value''][''7''];\r\n$mip_form[''7''][''cms_val_default''] = ''#626C8E'';\r\n\r\n// Template Anmeldung\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''rows''] = ''8'';\r\n$mip_form[''8''][''desc''] = ''Template<br><small>Mögliche Templatevariablen: {input_name}, {input_password}, {submit}, {font1}, {font2}, {font3}, {font4}</small>'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''<table cellspacing="0" cellpadding="0" border="0">\r\n  <tr>\r\n    <td class="{font1}">&nbsp;Username :&nbsp;</td>\r\n    <td>&nbsp;{input_name}&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <td class="{font1}">&nbsp;Passwort :&nbsp;</td>\r\n    <td>&nbsp;{input_password}&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <td colspan="2" align="right">{submit}</td>\r\n  </tr>\r\n</table>'';\r\n\r\n// Template Logout\r\n$mip_form[''9''][''cat''] = ''txtarea'';\r\n$mip_form[''9''][''type''] = ''long'';\r\n$mip_form[''9''][''rows''] = ''8'';\r\n$mip_form[''9''][''desc''] = ''Template Logout<br><small>Mögliche Templatevariablen: {name}, {surname}, {firm}, {position}, {salutation}, {street}, {zip}, {location}, {phone}, {fax}, {comment}, {email}, {group}, {group_desc}, {submit}, {font1}, {font2}, {font3}, {font4}</small>'';\r\n$mip_form[''9''][''cms_var''] = ''MOD_VAR[9]'';\r\n$mip_form[''9''][''cms_val''] = $dedi_mod[''value''][''9''];\r\n$mip_form[''9''][''cms_val_default''] = ''<table cellspacing="0" cellpadding="0" border="0">\r\n  <tr>\r\n    <td class="{font1}">Guten Tag {salutation} {name} {surname}! Sie haben die Rechte der Gruppe "{group}".</td>\r\n  </tr>\r\n  <tr>\r\n    <td align="right">{submit}</td>\r\n  </tr>\r\n</table>'';\r\n\r\n// Frontendbearbeitung erlauben\r\n$mip_form[''10''][''desc''] = ''Frontendbearbeitung erlauben'';\r\n$mip_form[''10''][''cat''] = ''chk'';\r\n$mip_form[''10''][''option_var''][''0''] = "MOD_VAR[10]";\r\n$mip_form[''10''][''option_val''][''0''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''10''][''option_val_select''][''0''] = ''true'';\r\n\r\n// mod_rewrite support\r\n$mip_form[''11''][''desc''] = ''mod_rewrite support an?'';\r\n$mip_form[''11''][''cat''] = ''chk'';\r\n$mip_form[''11''][''option_var''][''0''] = "MOD_VAR[11]";\r\n$mip_form[''11''][''option_val''][''0''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''11''][''option_val_select''][''0''] = ''true'';\r\n$mip_form[''11''][''cms_val_default''] = ''true'';\r\n\r\n\r\n//Struktur zur auswahl der Kategorie\r\n$mip_form[''12''][''desc''] = ''Seite die nach erfolgreichem login angezeigt wird:'';\r\n$mip_form[''12''][''cat''] = ''option'';\r\n$mip_form[''12''][''option_desc''][''0''] = ''-- kein --'';\r\n$mip_form[''12''][''option_val''][''0''] = '' '';\r\n$i = 1;\r\nforeach($baum as $a)\r\n{        \r\n	$mip_form[''12''][''option_val''][$i] = $a[''id''];\r\n	$mip_form[''12''][''option_desc''][$i] = (str_repeat(''&nbsp;&nbsp;'',$a[''level''])).$a[''name''];\r\n	$i++;\r\n}\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = '''';\r\n$mip_form[''12''][''flag''] = ''class_only'';\r\nmip_formsp($mip_form[''2'']);\r\n\r\n//Style für Submitbutton\r\n$mip_form[''13''][''desc''] = $mod_lang[''gen_font'']." Submit Button {font4}";\r\n$mip_form[''13''][''cat''] = ''app_css'';\r\n$mip_form[''13''][''output_cat''] = ''option'';\r\n$mip_form[''13''][''cms_val_default''] = ''font21'';\r\n$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n\r\nmip_formsp($mip_form[''0'']);\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''13'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\nmip_formsp($mip_form[''6'']);\r\nmip_formsp($mip_form[''7'']);\r\nmip_formsp($mip_form[''10'']);\r\nmip_formsp($mip_form[''11'']);\r\nmip_formsp($mip_form[''12'']);\r\nmip_formsp($mip_form[''8'']);\r\nmip_formsp($mip_form[''9'']);\r\nunset($mip_form);\r\n?>', '<DEDIPHP>\r\nif ($action == ''login'') {\r\n	if (isset($username)) $auth->auth[''uname''] = $username;\r\n	else if ($auth->nobody) {\r\n		$uid = $auth->auth[''uname''] = $auth->auth[''uid''] = ''nobody'';\r\n		return $uid;\r\n	}\r\n	// User aus der Datenbank suchen\r\n	set_magic_quotes_gpc($username);\r\n		$sql = "SELECT DISTINCT\r\n			firm, position, salutation, street, zip, location, phone, fax, comment, A.user_id, password, A.name, surname, email, C.name AS groupname, C.description\r\n			FROM ".$dedi_db[''users'']." A\r\n			LEFT JOIN ".$dedi_db[''users_groups'']." B USING(user_id)\r\n			LEFT JOIN ".$dedi_db[''groups'']." C USING(idgroup)\r\n			LEFT JOIN ".$dedi_db[''perms'']." D USING(idgroup)\r\n			WHERE A.username=''$username''\r\n			AND A.password=''".md5($password)."''\r\n			AND A.is_active=''1''\r\n			AND C.is_active=''1''\r\n			AND ((D.type=''area_frontend'' AND D.id=''0'' AND (D.perm & 0x04)>0x00) OR C.is_sys_admin=''1'') LIMIT 0, 1";\r\n	$db->query($sql);\r\n	if ($db->next_record() && "MOD_VALUE[10]" == ''true'') {\r\n		// ziel-idcatside setzen\r\n		if ("MOD_VALUE[12]" != "" && "MOD_VALUE[12]" != " ") {\r\n			$original_idcatside = $idcatside;\r\n			$idcatside = "MOD_VALUE[12]";\r\n		}\r\n		// Backenduser Login\r\n		$auth->logout();\r\n		$sess = new dedi_Backend_Session;\r\n		$auth = new dedi_Backend_Auth;\r\n		$_GET[''dedi''] = md5(uniqid($sess->magic));\r\n		$sess->start();\r\n		$auth->auth[''name''] = $db->f(''name'');\r\n		$auth->auth[''surname''] = $db->f(''surname'');\r\n		$auth->auth[''group_name''] = $db->f(''groupname'');\r\n		$auth->auth[''group_desc''] = $db->f(''description'');\r\n		$auth->auth[''email''] = $db->f(''email'');\r\n		$auth->auth[''firm''] = $db->f(''firm'');\r\n		$auth->auth[''position''] = $db->f(''position'');\r\n		$auth->auth[''salutation''] = $db->f(''salutation'');\r\n		$auth->auth[''street''] = $db->f(''street'');\r\n		$auth->auth[''zip''] = $db->f(''zip'');\r\n		$auth->auth[''location''] = $db->f(''location'');\r\n		$auth->auth[''phone''] = $db->f(''phone'');\r\n		$auth->auth[''fax''] = $db->f(''fax'');\r\n		$auth->auth[''comment''] = $db->f(''comment'');\r\n		$auth->auth[''uid''] = $db->f(''user_id'');\r\n		$auth->auth[''uname''] = $username;\r\n		$auth->auth[''exp''] = time() + (60 * $auth->lifetime);\r\n		$auth->auth[''refresh''] = time() + (60 * $auth->refresh);\r\n		$sess->register(''auth'');\r\n		$sess->register(''sid_sniffer'');\r\n		$sess->freeze();\r\n\r\n		// Seite refreshen\r\n		header (''Status: 302 Moved Temporarily'');\r\n		header (''Location: ''.str_replace(''&amp;'', ''&'', $cfg_client[''htmlpath''].$cfg_client[''contentfile'']."?lang=$lang&idcatside=$idcatside&view=preview&".$sess->name.''=''.$sess->id));\r\n		exit;\r\n	} else {\r\n		// ziel-idcatside setzen\r\n		if ("MOD_VALUE[12]" != "" && "MOD_VALUE[12]" != " ") {\r\n			$original_idcatside = $idcatside;\r\n			$idcatside = "MOD_VALUE[12]";\r\n		}\r\n		$sql = "SELECT DISTINCT\r\n		firm, position, salutation, street, zip, location, phone, fax, comment, A.user_id, password, A.name, surname, email, C.name AS groupname, C.description\r\n		FROM ".$dedi_db[''users'']." A\r\n		LEFT JOIN ".$dedi_db[''users_groups'']." B USING(user_id)\r\n		LEFT JOIN ".$dedi_db[''groups'']." C USING(idgroup)\r\n		LEFT JOIN ".$dedi_db[''perms'']." D USING(idgroup)\r\n		WHERE A.username=''$username''\r\n		AND A.password=''".md5($password)."''\r\n		AND A.is_active=''1''\r\n		AND C.is_active=''1''\r\n		AND ((D.type=''dedi_access'' AND D.id=''area_frontend'' AND D.perm=''1'') OR C.is_sys_admin=''1'') LIMIT 0, 1";\r\n		$db->query($sql);\r\n		if ($db->next_record()) {\r\n			// Frontenduser Login\r\n			$auth->auth[''name''] = $db->f(''name'');\r\n			$auth->auth[''surname''] = $db->f(''surname'');\r\n			$auth->auth[''group_name''] = $db->f(''groupname'');\r\n			$auth->auth[''group_desc''] = $db->f(''description'');\r\n			$auth->auth[''email''] = $db->f(''email'');\r\n			$auth->auth[''firm''] = $db->f(''firm'');\r\n			$auth->auth[''position''] = $db->f(''position'');\r\n			$auth->auth[''salutation''] = $db->f(''salutation'');\r\n			$auth->auth[''street''] = $db->f(''street'');\r\n			$auth->auth[''zip''] = $db->f(''zip'');\r\n			$auth->auth[''location''] = $db->f(''location'');\r\n			$auth->auth[''phone''] = $db->f(''phone'');\r\n			$auth->auth[''fax''] = $db->f(''fax'');\r\n			$auth->auth[''comment''] = $db->f(''comment'');\r\n			$auth->auth[''uid''] = $db->f(''user_id'');\r\n			$auth->auth[''uname''] = $username;\r\n			$auth->auth[''exp''] = time() + (60 * $auth->lifetime);\r\n			$auth->auth[''refresh''] = time() + (60 * $auth->refresh);\r\n			$sess->register(''auth'');\r\n			$sess->register(''sid_sniffer'');\r\n			$sess->freeze();\r\n\r\n			// Seite refreshen\r\n			header (''Status: 302 Moved Temporarily'');\r\n			if ("MOD_VALUE[11]" == "true") {\r\n				header (''Location: ''.modrewrite_replace(''http://dedilink/idcatside=''.$idcatside));\r\n			} else {\r\n				header (''Location: ''.str_replace(''&amp;'', ''&'',$cfg_client[''htmlpath''].$cfg_client[''contentfile'']."?lang=$lang&idcatside=$idcatside&view=preview&".$sess->name.''=''.$sess->id));\r\n			}\r\n			exit;\r\n		}\r\n	}\r\n\r\n	// Login fehlgeschlagen\r\n	if ($auth->auth[''uid''] == ''nobody'') {\r\n		$idcatside = $original_idcatside;\r\n		if ("MOD_VALUE[1]" != ''1'') echo ''<span class="MOD_VALUE[1]">MOD_VALUE[3]</span><br>'';\r\n		else echo ''MOD_VALUE[3]<br>'';\r\n	}\r\n}\r\n\r\nif ($action == ''logout'') {\r\n	$auth->logout();\r\n	header (''Location: ''.$cfg_client[''htmlpath''].$cfg_client[''contentfile'']."?lang=$lang");\r\n}\r\n\r\nif ($uid != ''nobody'') $auth->auth[''exp''] = time() + (60 * $auth->lifetime);\r\nif ($auth->auth[''uid''] == ''nobody'') {\r\n	$mod[''usr_input''] = "<input type=\\"text\\" title=\\"".$mod_lang[''login_name'']."\\" name=\\"username\\" value=\\"".htmlspecialchars($username)."\\" size=10 maxlength=32 onFocus=\\"this.style.backgroundColor=''MOD_VALUE[6]''\\" onBlur=\\"this.style.backgroundColor=''MOD_VALUE[7]''\\"";\r\n	if ("MOD_VALUE[2]" != "0") $mod[''usr_input''] .=  " class=\\"MOD_VALUE[2]\\">";\r\n	else $mod[''usr_input''] .=  ">";\r\n	$mod[''pwd_input''] = "<input type=\\"password\\" title=\\"".$mod_lang[''login_password'']."\\" name=\\"password\\" size=10 maxlength=32 onFocus=\\"this.style.backgroundColor=''MOD_VALUE[6]''\\" onBlur=\\"this.style.backgroundColor=''MOD_VALUE[7]''\\"";\r\n	if ("MOD_VALUE[2]" != "0") $mod[''pwd_input''] .=  " class=\\"MOD_VALUE[2]\\">";\r\n	else $mod[''pwd_input''] .=  ">";\r\n//	if ("MOD_VALUE[4]" != "") {\r\n//		$sql = "SELECT * FROM ".$dedi_db[''upl'']." WHERE idupl=''MOD_VALUE[4]''";\r\n//		$db->query($sql);\r\n//		while ($db->next_record()) $mod[''submit''] = "<input type=\\"image\\" src=\\"".$db->f("dirname")."/".$db->f(''filename'')."\\" alt=\\"".$mod_lang[''login_login'']."\\" title=\\"".$mod_lang[''login_login'']."\\"";\r\n//	} else {\r\n		$mod[''submit''] .= "<input type=\\"submit\\" title=\\"".$mod_lang[''login_login'']."\\" name=\\"submitbtn\\" value=\\"".$mod_lang[''login_send'']."\\"";\r\n		if ("MOD_VALUE[13]" != "0") $mod[''submit''] .= " class=\\"MOD_VALUE[13]\\">";\r\n		else $mod[''submit''] .= ">";\r\n//	}\r\n	$mod[''input''] = "<input type=\\"hidden\\" name=\\"action\\" value=\\"login\\">";\r\n	$mod[''tpl_form''] = "MOD_VALUE[8]";\r\n	$mod[''tpl_form''] = str_replace(''{input_name}'', $mod[''usr_input''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{input_password}'', $mod[''pwd_input''], $mod[''tpl_form'']);\r\n} else {\r\n//	if ("MOD_VALUE[5]" != "") {\r\n//		$sql = "SELECT * FROM ".$dedi_db[''upl'']." WHERE idupl=''MOD_VALUE[5]''";\r\n//		$db->query($sql);\r\n//		while ($db->next_record()) $mod[''submit''] .= "<input type=\\"image\\" src=\\"".$db->f("dirname")."/".$db->f(''filename'')."\\" alt=\\"".$mod_lang[''login_logout'']."\\" title=\\"".$mod_lang[''login_logout'']."\\"<br>";\r\n//	} else {\r\n		$mod[''submit''] .= "<input type=\\"submit\\" title=\\"".$mod_lang[''login_logout'']."\\" name=\\"submitbtn\\" value=\\"".$mod_lang[''login_sendout'']."\\"";\r\n		if ("MOD_VALUE[13]" != "0") $mod[''submit''] .= " class=\\"MOD_VALUE[13]\\">";\r\n		else $mod[''submit''] .= ">";\r\n//	}\r\n	$mod[''input''] = "<input type=\\"hidden\\" name=\\"action\\" value=\\"logout\\">";\r\n	$mod[''tpl_form''] = "MOD_VALUE[9]";\r\n	$mod[''tpl_form''] = str_replace(''{id}'', $auth->auth[''uid''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{loginname}'', $auth->auth[''uname''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{name}'', $auth->auth[''name''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{surname}'', $auth->auth[''surname''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{group}'', $auth->auth[''group_name''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{group_desc}'', $auth->auth[''group_desc''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{email}'', $auth->auth[''email''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{firm}'', $auth->auth[''firm''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{position}'', $auth->auth[''position''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{salutation}'', $auth->auth[''salutation''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{street}'', $auth->auth[''street''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{zip}'', $auth->auth[''zip''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{location}'', $auth->auth[''location''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{phone}'', $auth->auth[''phone''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{fax}'', $auth->auth[''fax''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{homepage}'', $auth->auth[''homepage''], $mod[''tpl_form'']);\r\n	$mod[''tpl_form''] = str_replace(''{comment}'', $auth->auth[''comment''], $mod[''tpl_form'']);\r\n}\r\n$mod[''tpl_form''] = str_replace(''{submit}'', $mod[''submit''], $mod[''tpl_form'']);\r\n$mod[''tpl_form''] = str_replace(''{font1}'', "MOD_VALUE[0]", $mod[''tpl_form'']);\r\n$mod[''tpl_form''] = str_replace(''{font2}'', "MOD_VALUE[1]", $mod[''tpl_form'']);\r\n$mod[''tpl_form''] = str_replace(''{font3}'', "MOD_VALUE[2]", $mod[''tpl_form'']);\r\n$mod[''tpl_form''] = str_replace(''{font4}'', "MOD_VALUE[13]", $mod[''tpl_form'']);\r\necho "<form action=\\"".$con_side[$idcatside][''link'']."\\" method=\\"post\\" name=\\"login\\">";\r\necho ''<script language="javascript" src="''.$cfg_dedi[''dedi_html_path''].''tpl/''.$cfg_dedi[''skin''].''/js/sniffer.js"></script>''."\\n";\r\necho $mod[''tpl_form''];\r\necho $mod[''input''];\r\necho "</form>";\r\nunset($mod);\r\n</DEDIPHP>', '', 0, 1, 1, 1102113536, 1149816403, 'mod:d56b699830e77ba53855679cb1d252da:2e7b2e6e', '', '', '', 0, '0', 'Login', '1');
INSERT INTO `dedi_mod` VALUES (46, 'Sprachauswahl', '1.0', 'System', '', '', '<DEDIPHP>\r\n$sql = "SELECT b.idlang, c.name FROM ((".$dedi_db[''cat_side'']." AS a INNER JOIN ".$dedi_db[''side_lang'']." AS b ON a.idside = b.idside) INNER JOIN ".$dedi_db[''lang'']." AS c ON b.idlang = c.idlang) INNER JOIN ".$dedi_db[''side'']. " AS d ON a.idside = d.idside WHERE (a.idcatside=" . $idcatside. " ) AND (d.idclient=" . $client . ") AND (b.online=1)";\r\n$db->query($sql);\r\nif ($db->affected_rows()) {\r\n	echo "<form name=\\"langform\\" method=\\"post\\">\\n";\r\n	echo "<input type=\\"hidden\\" name=\\"idcatside\\" value=\\"" . $idcatside . "\\">\\n";\r\n	echo "<select name=\\"lang\\" onChange=\\"langform.submit()\\">\\n";\r\n	while ($db->next_record()) {\r\n		if ($lang == $db->f(''idlang'')) echo ''<option selected value="''.$db->f(''idlang'').''">''.$db->f(''name'')."</option>\\n";\r\n		else echo ''<option value="''.$db->f(''idlang'').''">''.$db->f(''name'')."</option>\\n";\r\n	}\r\n	echo "</select></form>";\r\n}\r\n</DEDIPHP>', '', 0, 1, 1, 1066927900, 1132968226, 'mod:d3cac1d21bfb93f3a602c393202cd379:1a9cf507', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (48, 'BBCode Fußnoten', '1.0', 'Content Syndication', '', '<?PHP\r\n\r\n $mip_form[''10''][''cat''] = ''chk'';\r\n $mip_form[''10''][''type''] = '''';\r\n $mip_form[''10''][''desc''] = ''Ein-/Ausleitung auch ausgeben wenn keine Einträge vorhanden sind'';\r\n $mip_form[''10''][''option_desc''][''0''] = ''Ja'';\r\n $mip_form[''10''][''option_var''][''0''] = ''MOD_VAR[10]'';\r\n $mip_form[''10''][''option_val''][''0''] = $dedi_mod[''value''][''10''];\r\n $mip_form[''10''][''option_val_select''][''0''] = ''1'';\r\n\r\n $mip_form[''20''][''cat''] = ''chk'';\r\n $mip_form[''20''][''type''] = '''';\r\n $mip_form[''20''][''desc''] = ''Getrennte Templates für Gerade- und Ungrade Zeilen benutzen'';\r\n $mip_form[''20''][''option_desc''][''0''] = ''Ja'';\r\n $mip_form[''20''][''option_var''][''0''] = ''MOD_VAR[20]'';\r\n $mip_form[''20''][''option_val''][''0''] = $dedi_mod[''value''][''20''];\r\n $mip_form[''20''][''option_val_select''][''0''] = ''1'';\r\n\r\n $mip_form[''25''][''cat''] = ''txt'';\r\n $mip_form[''25''][''type''] = ''''; \r\n $mip_form[''25''][''desc''] = ''Backlink-Text <small>Mögliche Templatevariablen: {id} - Gibt die FußnotenID an'';\r\n $mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n $mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25'']; \r\n $mip_form[''25''][''cms_val_default''] = ''[{id}]'';\r\n\r\n $mip_form[''30''][''desc''] = ''Einleitung'';\r\n $mip_form[''30''][''cat''] = ''txtarea'';\r\n $mip_form[''30''][''rows''] = ''4'';\r\n $mip_form[''30''][''type''] = ''long'';\r\n $mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n $mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n $mip_form[''30''][''cms_val_default''] = ''<ul class="footnoteOuter">'';\r\n\r\n $mip_form[''40''][''desc''] = ''Gerade / Normale Zeile<br /><small>Mögliche Templatevariablen: {text} - Gibt den fußnotentext an, {backlink} - erzeugt den Rückverweis zur Fußnote, {id} gibt die Nummer der Fußnote an</small>'';\r\n $mip_form[''40''][''cat''] = ''txtarea'';\r\n $mip_form[''40''][''rows''] = ''4'';\r\n $mip_form[''40''][''type''] = ''long'';\r\n $mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n $mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n $mip_form[''40''][''cms_val_default''] = ''<li class="row">{text} {backlink}</li>'';\r\n\r\n $mip_form[''50''][''desc''] = ''Ungerade Zeile<br /><small>Mögliche Templatevariablen: {text} - Gibt den fußnotentext an, {backlink} - erzeugt den Rückverweis zur Fußnote, {id} gibt die Nummer der Fußnote an</small>'';\r\n $mip_form[''50''][''cat''] = ''txtarea'';\r\n $mip_form[''50''][''rows''] = ''4'';\r\n $mip_form[''50''][''type''] = ''long'';\r\n $mip_form[''50''][''cms_var''] = ''MOD_VAR[40]'';\r\n $mip_form[''50''][''cms_val''] = $dedi_mod[''value''][''50''];\r\n $mip_form[''50''][''cms_val_default''] = ''<li class="oddrow">{text} {backlink}</li>'';\r\n\r\n $mip_form[''60''][''desc''] = ''Ausleitung'';\r\n $mip_form[''60''][''cat''] = ''txtarea'';\r\n $mip_form[''60''][''rows''] = ''4'';\r\n $mip_form[''60''][''type''] = ''long'';\r\n $mip_form[''60''][''cms_var''] = ''MOD_VAR[60]'';\r\n $mip_form[''60''][''cms_val''] = $dedi_mod[''value''][''60''];\r\n $mip_form[''60''][''cms_val_default''] = ''</ul>'';\r\n\r\n mip_formsp($mip_form[''10'']);\r\n mip_formsp($mip_form[''20'']);\r\n print(''<hr /><p>Templates</p>'');\r\n mip_formsp($mip_form[''25'']);\r\n mip_formsp($mip_form[''30'']);\r\n mip_formsp($mip_form[''40'']);\r\n mip_formsp($mip_form[''50'']);\r\n mip_formsp($mip_form[''60'']);\r\n?>', '<?PHP\r\nif(isset($__bbcode_footnotes) && is_array($__bbcode_footnotes)) {\r\n\r\nif((count($__bbcode_footnotes) > 0) || ("MOD_VALUE[10]" == "1")) {\r\n print("MOD_VALUE[30]");\r\n}\r\n\r\nif("MOD_VALUE[20]" == "1") {\r\n $tplEven = "MOD_VALUE[40]";\r\n $tplOdd = "MOD_VALUE[50]";\r\n} else {\r\n $tplEven = "MOD_VALUE[40]";\r\n $tplOdd = $tplEven;\r\n}\r\n\r\nforeach($__bbcode_footnotes as $n => $v) {\r\n if($n % 2 == 0) $tpl = $tplEven; else $tpl = $tplOdd;\r\n $n++;\r\n $tpl = str_replace(''{text}'', $v, $tpl);\r\n $tpl = str_replace(''{id}'', $n, $tpl);\r\n $tpl = str_replace(''{backlink}'', ''<a href="#footnote_o_'' . $n . ''" name="footnote_'' . $n . ''">'' . str_replace(''{id}'', $n, "MOD_VALUE[25]") . ''</a>'', $tpl);\r\n print($tpl);\r\n}\r\n\r\nif((count($__bbcode_footnotes) > 0) || ("MOD_VALUE[10]" == "1")) {\r\n print("MOD_VALUE[60]");\r\n}\r\n\r\n}\r\n?>', '', 0, 1, 1, 1118422632, 1133266760, 'mod:361b10b91441e88ce49c0ed874ece7fb:5113af7f', '', '', '', 0, '0', '', '1');
INSERT INTO `dedi_mod` VALUES (56, 'FotoAlbum', '1.3', 'Content', 'Fotogalerie mit Ordner- oder Dateiauswahl, EXIF + IPTC Unterst&uuml;tzung, Bildbewertung, automatischer Wasserzeichengenerierung, quadratische Thumbnails', '<?\r\n// modulconfig\r\n// einfach oder erweitert?\r\n$mip_form[''0''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''size''] = ''1'';\r\n$mip_form[''0''][''option_desc''][] = ''Normal'';\r\n$mip_form[''0''][''option_val''][] =  '''';\r\n$mip_form[''0''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''0''][''option_val''][] =  ''advanced'';\r\n$mip_form[''0''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''0''][''option_val''][] =  ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''0'']);//configmode\r\n$mip_form[''hide_in_standard_mode''] = array(21,22,23,25,26,75,76,77,78,79,44,48,49,50);\r\n\r\n// inputfelder fï¿½r konfiguration anzeigen\r\nif($dedi_mod[''value''][''0''] == ''hidden''){\r\n	foreach($dedi_mod[''value''] AS $ke=>$va){\r\n		if($ke != ''0''){\r\n			?>\r\n			<input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n			<?php\r\n		}\r\n	}\r\n} else if($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] == ''advanced''){\r\n\r\n	// font 1-5\r\n	//Schriftart 1\r\n	$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n	$mip_form[''1''][''cat''] = ''app_css'';\r\n	$mip_form[''1''][''output_cat''] = ''option'';\r\n	$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n	$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n\r\n	//Schriftart 2\r\n	$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font2} (Walker Seitenlink)";\r\n	$mip_form[''2''][''cat''] = ''app_css'';\r\n	$mip_form[''2''][''output_cat''] = ''option'';\r\n	$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n	$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n\r\n	//Schriftart 3\r\n	$mip_form[''3''][''desc''] = $mod_lang[''gen_font'']." {font3} (Aktueller Walker Seitenlink)<br /><br />\\n";\r\n	$mip_form[''3''][''cat''] = ''app_css'';\r\n	$mip_form[''3''][''output_cat''] = ''option'';\r\n	$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n	$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n\r\n	//Schriftart 4\r\n	$mip_form[''4''][''desc''] = $mod_lang[''gen_font'']." {font4} (Bildtitel)<br /><br />\\n";\r\n	$mip_form[''4''][''cat''] = ''app_css'';\r\n	$mip_form[''4''][''output_cat''] = ''option'';\r\n	$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n	$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n\r\n	//Schriftart 5\r\n	$mip_form[''5''][''desc''] = $mod_lang[''gen_font'']." {font5} (Bildbeschreibung)<br /><br />\\n";\r\n	$mip_form[''5''][''cat''] = ''app_css'';\r\n	$mip_form[''5''][''output_cat''] = ''option'';\r\n	$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n	$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n\r\n	// bilder fï¿½r galerie ordner oder dateiauswahl?\r\n	$mip_form[''10''][''desc''] = ''Auswahl der Galeriedateien Ã¼ber<br />'';\r\n	$mip_form[''10''][''cat''] = ''option'';\r\n	$mip_form[''10''][''option_desc''][''0''] = ''Ordner'';\r\n	$mip_form[''10''][''option_desc''][''1''] = ''Dateiliste'';\r\n	$mip_form[''10''][''option_val''][''0''] = ''folder'';\r\n	$mip_form[''10''][''option_val''][''1''] = ''filelist'';\r\n	$mip_form[''10''][''cms_val_default''] = ''folder'';\r\n	$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n	$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n	$mip_form[''10''][''flag''] = ''reload'';\r\n\r\n	// wenn ordner, \r\n	if($dedi_mod[''value''][''10''] != ''filelist'') {\r\n\r\n		//Ordnerauswahl\r\n		$mip_form[''11''][''desc''] = ''Startverzeichnis: '';\r\n		$mip_form[''11''][''cat''] = ''app_directory'';\r\n		$mip_form[''11''][''output_cat''] = ''option'';\r\n		$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n		$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n		$mip_form[''11''][''flag''] = ''single'';\r\n\r\n		// Unterordner verwenden??\r\n		$mip_form[''12''][''desc''] = ''Unterordner einschlieÃŸen?'';\r\n		$mip_form[''12''][''cat''] = ''option'';\r\n		$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n		$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n		$mip_form[''12''][''option_desc''][''0''] = ''Ja'';\r\n		$mip_form[''12''][''option_desc''][''1''] = ''Nein'';\r\n		$mip_form[''12''][''option_val''][''0''] = true;\r\n		$mip_form[''12''][''option_val''][''1''] = false;\r\n		$mip_form[''12''][''cms_val_default''] = false;\r\n\r\n	} else {\r\n		// wenn datei, dann selectbox multi\r\n		$mip_form[''13''][''desc''] = ''Bilder fÃ¼r Galerie: '';\r\n		$mip_form[''13''][''cat''] = ''app_file'';\r\n		$mip_form[''13''][''output_cat''] = ''option'';\r\n		$mip_form[''13''][''cms_var''] = ''MOD_VAR[13]'';\r\n		$mip_form[''13''][''cms_val''] = $dedi_mod[''value''][''13''];\r\n		$mip_form[''13''][''flag''] = ''multiple'';\r\n		$mip_form[''13''][''with_this_filetype''] = ''jpg,jpeg,gif,tif,tiff,png,bmp,ico'';\r\n		$mip_form[''13''][''size''] = ''8'';\r\n\r\n	}\r\n\r\n	// ï¿½bersichtsseite anzeigen (ja/nein)\r\n	$mip_form[''20''][''desc''] = ''Ãœbersichtsseite anzeigen<br />'';\r\n	$mip_form[''20''][''cat''] = ''option'';\r\n	$mip_form[''20''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''20''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''20''][''option_val''][''0''] = ''true'';\r\n	$mip_form[''20''][''option_val''][''1''] = ''false'';\r\n	$mip_form[''20''][''cms_val_default''] = ''true'';\r\n	$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n	$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n	$mip_form[''20''][''flag''] = ''reload'';\r\n\r\n	// galerieÃ¼bersicht:\r\n	// anzahl bilder pro galerieseite\r\n	$mip_form[''21''][''desc''] = "Anzahl Bilder pro Galerie-Seite";\r\n	$mip_form[''21''][''cat''] = ''txt'';\r\n	$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n	$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n	$mip_form[''21''][''cms_val_default''] = ''9'';\r\n\r\n	// anzahl bilder in einer reihe\r\n	$mip_form[''22''][''desc''] = "Anzahl Bilder in einer Reihe";\r\n	$mip_form[''22''][''cat''] = ''txt'';\r\n	$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n	$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n	$mip_form[''22''][''cms_val_default''] = ''3'';\r\n\r\n	// erste galerieseite\r\n	$mip_form[''23''][''desc''] = "welche Seite bei Galerieaufruf: <br />\\n";\r\n	$mip_form[''23''][''cat''] = ''txt'';\r\n	$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n	$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n	$mip_form[''23''][''cms_val_default''] = ''1'';\r\n\r\n	// sortierreihenfolge dropdown\r\n	$mip_form[''25''][''desc''] = "Sortierreihenfolge";\r\n	$mip_form[''25''][''cat''] = ''option'';\r\n	$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n	$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n	$mip_form[''25''][''option_desc''][''0''] = ''anhand Dateiname'';\r\n	$mip_form[''25''][''option_val''][''0''] = ''filename'';\r\n	$mip_form[''25''][''option_desc''][''1''] = ''anhand Titel'';\r\n	$mip_form[''25''][''option_val''][''1''] = ''titel'';\r\n	$mip_form[''25''][''option_desc''][''2''] = ''anhand &lt;order&gt-Tag; in Beschreibung'';\r\n	$mip_form[''25''][''option_val''][''2''] = ''description'';\r\n	$mip_form[''25''][''option_desc''][''3''] = ''anhand Erstellungsdatum'';\r\n	$mip_form[''25''][''option_val''][''3''] = ''created'';\r\n	$mip_form[''25''][''option_desc''][''4''] = ''anhand ï¿½nderungsdatum'';\r\n	$mip_form[''25''][''option_val''][''4''] = ''lastmodified'';\r\n	$mip_form[''25''][''option_desc''][''5''] = ''anhand Dateigrï¿½ï¿½e'';\r\n	$mip_form[''25''][''option_val''][''5''] = ''filesize'';\r\n	$mip_form[''25''][''option_desc''][''6''] = ''anhand Autor'';\r\n	$mip_form[''25''][''option_val''][''6''] = ''author'';\r\n	$mip_form[''25''][''cms_val_default''] = ''filename'';\r\n\r\n	// aufsteigend-absteigend\r\n	$mip_form[''26''][''cat''] = ''radio'';\r\n	$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n	$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n	$mip_form[''26''][''cms_val_default''] = ''ASC'';\r\n	$mip_form[''26''][''option_desc''][''0''] = ''aufsteigend'';\r\n	$mip_form[''26''][''option_val''][''0''] = ''ASC'';\r\n	$mip_form[''26''][''option_desc''][''1''] = ''absteigend'';\r\n	$mip_form[''26''][''option_val''][''1''] = ''DESC'';\r\n\r\n	// exif (ja/nein)\r\n	$mip_form[''27''][''desc''] = ''EXIF und IPTC Daten aus Bildern auslesen wenn verfÃ¼gbar?<br />'';\r\n	$mip_form[''27''][''cat''] = ''option'';\r\n	$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n	$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n	$mip_form[''27''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''27''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''27''][''option_val''][''0''] = true;\r\n	$mip_form[''27''][''option_val''][''1''] = false;\r\n	$mip_form[''27''][''cms_val_default''] = false;\r\n\r\n	// bildbewertung anzeigen (ja/nein)\r\n	$mip_form[''70''][''desc''] = ''Bildbewertung aktivieren?<br />'';\r\n	$mip_form[''70''][''cat''] = ''option'';\r\n	$mip_form[''70''][''cms_var''] = ''MOD_VAR[70]'';\r\n	$mip_form[''70''][''cms_val''] = $dedi_mod[''value''][''70''];\r\n	$mip_form[''70''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''70''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''70''][''option_val''][''0''] = true;\r\n	$mip_form[''70''][''option_val''][''1''] = false;\r\n	$mip_form[''70''][''cms_val_default''] = false;\r\n	$mip_form[''70''][''flag''] = ''reload'';\r\n\r\n	// doppelvotings per IP blockieren?\r\n	$mip_form[''71''][''desc''] = ''Pro IP und Bild nur eine Stimme?<br />'';\r\n	$mip_form[''71''][''cat''] = ''option'';\r\n	$mip_form[''71''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''71''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''71''][''option_val''][''0''] = ''true'';\r\n	$mip_form[''71''][''option_val''][''1''] = ''false'';\r\n	$mip_form[''71''][''cms_val_default''] = ''true'';\r\n	$mip_form[''71''][''cms_var''] = ''MOD_VAR[71]'';\r\n	$mip_form[''71''][''cms_val''] = $dedi_mod[''value''][''71''];\r\n	$mip_form[''71''][''flag''] = ''reload'';\r\n\r\n	// tabellenname fï¿½r abstimmungsergebnis ohne prefix\r\n	$mip_form[''73''][''desc''] = ''Tabellenname fÃ¼r abstimmungsergebnisse, ohne prefix<br />'';\r\n	$mip_form[''73''][''cat''] = ''txt'';\r\n	$mip_form[''73''][''cms_var''] = ''MOD_VAR[73]'';\r\n	$mip_form[''73''][''cms_val''] = $dedi_mod[''value''][''73''];\r\n	$mip_form[''73''][''cms_val_default''] = ''image_votes'';\r\n\r\n	// darf eine einmal abgegebene bewertung durch erneutes posten eines votes Ã¼berschrieben werden?\r\n	$mip_form[''74''][''desc''] = ''Darf eine abgegebene Bewertung nachtrÃ¤glich geÃ¤ndert werden?<br />'';\r\n	if($dedi_mod[''value''][''71''] != ''false'') {\r\n		$mip_form[''74''][''cat''] = ''option'';\r\n	} else {\r\n		$mip_form[''74''][''cat''] = ''hidden'';\r\n	}\r\n	$mip_form[''74''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''74''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''74''][''option_val''][''0''] = ''true'';\r\n	$mip_form[''74''][''option_val''][''1''] = ''false'';\r\n	$mip_form[''74''][''cms_val_default''] = ''true'';\r\n	$mip_form[''74''][''cms_var''] = ''MOD_VAR[74]'';\r\n	$mip_form[''74''][''cms_val''] = $dedi_mod[''value''][''74''];\r\n\r\n	// $mod[''points_for_option_1''] \r\n	$mip_form[''75''][''desc''] = ''Punktzahl fÃ¼r option 1<br />'';\r\n	$mip_form[''75''][''cat''] = ''txt'';\r\n	$mip_form[''75''][''cms_var''] = ''MOD_VAR[75]'';\r\n	$mip_form[''75''][''cms_val''] = $dedi_mod[''value''][''75''];\r\n	$mip_form[''75''][''cms_val_default''] = ''5'';\r\n\r\n	// $mod[''points_for_option_2'']\r\n	$mip_form[''76''][''desc''] = ''Punktzahl fÃ¼r option 2<br />'';\r\n	$mip_form[''76''][''cat''] = ''txt'';\r\n	$mip_form[''76''][''cms_var''] = ''MOD_VAR[76]'';\r\n	$mip_form[''76''][''cms_val''] = $dedi_mod[''value''][''76''];\r\n	$mip_form[''76''][''cms_val_default''] = ''4'';\r\n\r\n	// $mod[''points_for_option_3'']\r\n	$mip_form[''77''][''desc''] = ''Punktzahl fÃ¼r option 3<br />'';\r\n	$mip_form[''77''][''cat''] = ''txt'';\r\n	$mip_form[''77''][''cms_var''] = ''MOD_VAR[77]'';\r\n	$mip_form[''77''][''cms_val''] = $dedi_mod[''value''][''77''];\r\n	$mip_form[''77''][''cms_val_default''] = ''3'';\r\n\r\n	// $mod[''points_for_option_4'']\r\n	$mip_form[''78''][''desc''] = ''Punktzahl fÃ¼r option 4<br />'';\r\n	$mip_form[''78''][''cat''] = ''txt'';\r\n	$mip_form[''78''][''cms_var''] = ''MOD_VAR[78]'';\r\n	$mip_form[''78''][''cms_val''] = $dedi_mod[''value''][''78''];\r\n	$mip_form[''78''][''cms_val_default''] = ''2'';\r\n\r\n	// $mod[''points_for_option_5'']\r\n	$mip_form[''79''][''desc''] = ''Punktzahl fÃ¼r option 5<br />'';\r\n	$mip_form[''79''][''cat''] = ''txt'';\r\n	$mip_form[''79''][''cms_var''] = ''MOD_VAR[79]'';\r\n	$mip_form[''79''][''cms_val''] = $dedi_mod[''value''][''79''];\r\n	$mip_form[''79''][''cms_val_default''] = ''1'';\r\n\r\n	// templates\r\n	// $mod[''maintemplate'']\r\n	$mip_form[''80''][''desc''] = ''Layout des Umfrageblocks<br /><small>MÃ¶gliche Templatevariablen: {font1},{votescount},{totalpoints},\r\n	{averagepoints},{opturl1},{opturl2},{opturl3},{opturl4},{opturl5},{resultlink},</small>'';\r\n	$mip_form[''80''][''cat''] = ''txtarea'';\r\n	$mip_form[''80''][''type''] = ''long'';\r\n	$mip_form[''80''][''rows''] = ''10'';\r\n	$mip_form[''80''][''cms_var''] = ''MOD_VAR[80]'';\r\n	$mip_form[''80''][''cms_val''] = $dedi_mod[''value''][''80''];\r\n	$mip_form[''80''][''cms_val_default''] = "Ich finde dieses Bild:\r\n	<table width=\\"100%\\">\r\n	  <tr class=\\"{font1}\\">\r\n	    <td align=\\"center\\"><a href=\\"{opturl1}\\">HammermÃ¤ssig</a></td>	    \r\n            <td align=\\"center\\"><a href=\\"{opturl2}\\">Sehr Gut</a></td>\r\n	    <td align=\\"center\\"><a href=\\"{opturl3}\\">Gut</a></td>\r\n	    <td align=\\"center\\"><a href=\\"{opturl4}\\">Schlecht</a></td>\r\n	    <td align=\\"center\\"><a href=\\"{opturl5}\\">Scheusslich</a></td>\r\n	  </tr>\r\n	</table>\r\n	<a href=\\"{resultlink}\\">Ergebnisse anzeigen, ohne abzustimmen</a><br />\r\n	Dieses Bild wurde {votescount} mal bewertet und hat insgesamt {totalpoints} Punkte erhalten.<br />\r\n	Durchschnittlich wurde das Bild mit {averagepoints} Punkten bewertet.<br />";\r\n\r\n	// $mod[''resulttemplate'']\r\n	$mip_form[''81''][''desc''] = ''Layout des Umfrageergebnisses<br /><small>MÃ¶gliche Templatevariablen: {font1},{font2},{font3},\r\n	{votescount},{totalpoints},{averagepoints},{statusmsg},{votelink}. </small>'';\r\n	$mip_form[''81''][''cat''] = ''txtarea'';\r\n	$mip_form[''81''][''type''] = ''long'';\r\n	$mip_form[''81''][''rows''] = ''10'';\r\n	$mip_form[''81''][''cms_var''] = ''MOD_VAR[81]'';\r\n	$mip_form[''81''][''cms_val''] = $dedi_mod[''value''][''81''];\r\n	$mip_form[''81''][''cms_val_default''] = "<b>{statusmsg}</b><br />\r\n	Dieses Bild wurde {votescount} mal bewertet und hat insgesamt {totalpoints} Punkte erhalten.\r\n	Durchschnittlich wurde das Bild mit {averagepoints} Punkten bewertet.<br />\r\n	<a href=\\"{votelink}\\">Bewertung erneut abgeben</a><br />";\r\n\r\n	// maximgsize1\r\n	$mip_form[''35''][''desc''] = ''maximale Bild-GrÃ¶ÃŸe: {maximgsize} (leer = OriginalgrÃ¶ÃŸe)'';\r\n	$mip_form[''35''][''cat''] = ''txt'';\r\n	$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n	$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n	$mip_form[''35''][''cms_val_default''] = '''';\r\n\r\n	// maximgsize2\r\n	$mip_form[''36''][''desc''] = ''maximale Bild-GrÃ¶ÃŸe: {maximgsize2} (leer = OriginalgrÃ¶ÃŸe)'';\r\n	$mip_form[''36''][''cat''] = ''txt'';\r\n	$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n	$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n	$mip_form[''36''][''cms_val_default''] = '''';\r\n\r\n	// walker settings\r\n	// vor/zurÃ¼ck-links anzeigen\r\n	$mip_form[''40''][''desc''] = ''Vor/ZurÃ¼ck-Links anzeigen'';\r\n	$mip_form[''40''][''cat''] = ''option'';\r\n	$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n	$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n	$mip_form[''40''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''40''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''40''][''option_val''][''0''] = ''true'';\r\n	$mip_form[''40''][''option_val''][''1''] = ''false'';\r\n	$mip_form[''40''][''cms_val_default''] = ''false'';\r\n	$mip_form[''40''][''flag''] = ''reload'';\r\n\r\n	// vor/zurÃ¼ck-linktexte definieren\r\n	if ($dedi_mod[''value''][''40''] == ''true'') {\r\n		// zurÃ¼ck-link\r\n		$mip_form[''41''][''desc''] = "ZurÃ¼ck-Linktext";\r\n		$mip_form[''41''][''cat''] = ''txt'';\r\n		$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n		$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n		$mip_form[''41''][''cms_val_default''] = ''&lt;&lt;'';\r\n\r\n		// weiter-link\r\n		$mip_form[''42''][''desc''] = "Weiter-Linktext";\r\n		$mip_form[''42''][''cat''] = ''txt'';\r\n		$mip_form[''42''][''cms_var''] = ''MOD_VAR[42]'';\r\n		$mip_form[''42''][''cms_val''] = $dedi_mod[''value''][''42''];\r\n		$mip_form[''42''][''cms_val_default''] = ''&gt;&gt;'';\r\n	} else {\r\n		// zurÃ¼ck-link\r\n		$mip_form[''41''][''cat''] = ''hidden'';\r\n		$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n		$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n		$mip_form[''41''][''cms_val_default''] = ''&lt;&lt;'';\r\n\r\n		// weiter-link\r\n		$mip_form[''42''][''cat''] = ''hidden'';\r\n		$mip_form[''42''][''cms_var''] = ''MOD_VAR[42]'';\r\n		$mip_form[''42''][''cms_val''] = $dedi_mod[''value''][''42''];\r\n		$mip_form[''42''][''cms_val_default''] = ''&gt;&gt;'';\r\n	}\r\n\r\n	// anzahl der angezeigten Seitenlinks\r\n	$mip_form[''43''][''desc''] = "Floating Galerie-Walker:<br />\\n (0 = Floating aus, 1-n = Max. angezeigter Links)<br /><br />\\n";\r\n	$mip_form[''43''][''cat''] = ''txt'';\r\n	$mip_form[''43''][''cms_var''] = ''MOD_VAR[43]'';\r\n	$mip_form[''43''][''cms_val''] = $dedi_mod[''value''][''43''];\r\n	$mip_form[''43''][''cms_val_default''] = ''0'';\r\n\r\n	// separatoren\r\n	$mip_form[''44''][''desc''] = "Separator zwischen den Seitenlinks im Walker:<br />\\n (leer = default-separator)<br /><br />\\n";\r\n	$mip_form[''44''][''cat''] = ''txt'';\r\n	$mip_form[''44''][''cms_var''] = ''MOD_VAR[44]'';\r\n	$mip_form[''44''][''cms_val''] = $dedi_mod[''value''][''44''];\r\n	$mip_form[''44''][''cms_val_default''] = '''';\r\n\r\n	// aktuell angezeigte seite im walker verlinken (ja/nein)\r\n	$mip_form[''45''][''desc''] = ''Soll die aktuelle Seite im Galerie-Walker verlinkt werden?'';\r\n	$mip_form[''45''][''cat''] = ''option'';\r\n	$mip_form[''45''][''cms_var''] = ''MOD_VAR[45]'';\r\n	$mip_form[''45''][''cms_val''] = $dedi_mod[''value''][''45''];\r\n	$mip_form[''45''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''45''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''45''][''option_val''][''0''] = "true";\r\n	$mip_form[''45''][''option_val''][''1''] = "false";\r\n	$mip_form[''45''][''cms_val_default''] = "false";\r\n	$mip_form[''45''][''flag''] = ''reload'';\r\n\r\n	// layouts\r\n	// galerieÃ¼bersicht\r\n	$mip_form[''46''][''desc''] = ''Layout der Galerie-Tabelle<br /><small>MÃ¶gliche Templatevariablen:\r\n	{font1},{font2},{font3},{id},{walker},<b>{content}</b><br />Bemerkung: {content} ist zwingend erforderlich!</small>'';\r\n	$mip_form[''46''][''cat''] = ''txtarea'';\r\n	$mip_form[''46''][''type''] = ''long'';\r\n	$mip_form[''46''][''rows''] = ''10'';\r\n	$mip_form[''46''][''cms_var''] = ''MOD_VAR[46]'';\r\n	$mip_form[''46''][''cms_val''] = $dedi_mod[''value''][''46''];\r\n	$mip_form[''46''][''cms_val_default''] = "<table width=\\"100%\\">\r\n	  <tr class=\\"{font1}\\">\r\n	    <td align=\\"center\\">Seite {id}</td>\r\n	  </tr>\r\n	  <tr class=\\"{font2}\\">\r\n	    <td align=\\"center\\">{walker}</td>\r\n	   </tr>\r\n	   <tr>\r\n	     <td><table width=\\"100%\\"><tr>{content}</tr></table></td>\r\n	  </tr>\r\n	  <tr class=\\"{font2}\\">\r\n	    <td align=\\"center\\">{walker}</td>\r\n	  </tr>\r\n	</table>";\r\n\r\n	// Ãœbersichtstabellenelement\r\n	$mip_form[''47''][''cat''] = ''txtarea'';\r\n	$mip_form[''47''][''type''] = ''long'';\r\n	$mip_form[''47''][''rows''] = ''10'';\r\n	$mip_form[''47''][''desc''] = ''Layout der einzelnen Tabellenelemente (also {content} im Template oben)<br /><small>\r\n	MÃ¶gliche Templatevariablen: {font1},{font2},{font3},{path},{file},{thumbfile},{filename},{title},{filedesc},{description},\r\n	{urlencode}data{/urlencode},{maximgsize},{maximgsize2},{filesize},{width},{height},{detailurl}<br />\r\n	<b> EXIF-Tags:</b> {exif:make},{exif:model},{exif:iso},{exif:focallength},{exif:aperturenr},{exif:exposuretime},{exif:exposuremode},\r\n	{exif:flash},{exif:exifversion},{exif:meteringmode},{exif:whitebalance},{exif:scenecapturetype},{exif:scenetype},{exif:width},{exif:height},\r\n	{exif:sensingmethod},{exif:exposureprogram},{exif:subjectdistance},{exif:sharpness},{exif:timestamp},{exif:mimetype},{exif:colorspace},\r\n	{exif:orientation},{exif:software}<br />\r\n	<b> IPTC-Tags:</b> {iptc:objectname},{iptc:editstatus},{iptc:priority},{iptc:category},{iptc:supplementalcategories},{iptc:jobid},\r\n	{iptc:keywords},{iptc:releasedate},{iptc:releasetime},{iptc:specialinstructions},{iptc:datecreated},{iptc:timecreated},{iptc:program},\r\n	{iptc:programversion},{iptc:objectcycle},{iptc:byline},{iptc:bylinetitle},{iptc:city},{iptc:sublocation},{iptc:state},{iptc:countrycode},\r\n	{iptc:country},{iptc:originaltransmissionreference},{iptc:headline},{iptc:credits},{iptc:source},{iptc:copyrightnotice},{iptc:caption},\r\n	{iptc:captionwriter}</small>'';\r\n	$mip_form[''47''][''cms_var''] = ''MOD_VAR[47]'';\r\n	$mip_form[''47''][''cms_val''] = $dedi_mod[''value''][''47''];\r\n	$mip_form[''47''][''cms_val_default''] = "<td align=\\"center\\">\r\n	<span class=\\"{font4}\\">{title}</span><br />\r\n	  <a href=\\"{detailurl}\\">\r\n	  <img src=\\"{path}{thumbfile}\\" {maximgsize} border=\\"0\\" alt=\\"{filedesc}\\">\r\n	  </a><br />\r\n	  <span class=\\"{font5}\\">{description}<br />\r\n	  DATEIGRÃ–SSE: {filesize}</span>\r\n	</td>";\r\n\r\n	// zurÃ¼cklink in der detailansicht\r\n	$mip_form[''48''][''desc''] = "ZurÃ¼ck-Link Template in der Detailansicht:<br />\\n\r\n	<small>Mï¿½gliche Templatevariablen: {font1},{font2},{font3},{prevurl}</small>";\r\n	$mip_form[''48''][''cat''] = ''txtarea'';\r\n	$mip_form[''48''][''type''] = ''long'';\r\n	$mip_form[''48''][''rows''] = ''1'';\r\n	$mip_form[''48''][''cms_var''] = ''MOD_VAR[48]'';\r\n	$mip_form[''48''][''cms_val''] = $dedi_mod[''value''][''48''];\r\n	$mip_form[''48''][''cms_val_default''] = "<a href=\\"{prevurl}\\">Bild zurÃ¼ck</a>&nbsp;&nbsp;|";\r\n\r\n	// vor-link in der detailansicht\r\n	$mip_form[''49''][''desc''] = "Vor-Link Template in der Detailansicht:<br />\\n\r\n	<small>Mï¿½gliche Templatevariablen: {font1},{font2},{font3},{nexturl}</small>";\r\n	$mip_form[''49''][''cat''] = ''txtarea'';\r\n	$mip_form[''49''][''type''] = ''long'';\r\n	$mip_form[''49''][''rows''] = ''1'';\r\n	$mip_form[''49''][''cms_var''] = ''MOD_VAR[49]'';\r\n	$mip_form[''49''][''cms_val''] = $dedi_mod[''value''][''49''];\r\n	$mip_form[''49''][''cms_val_default''] = "|&nbsp;&nbsp;<a href=\\"{nexturl}\\">Bild vor</a>";\r\n\r\n	// RÃ¼cklink zur Galerie in der detailansicht\r\n	$mip_form[''50''][''desc''] = "RÃ¼cklink zur Galerie<br />\\n\r\n	<small>Mï¿½gliche Templatevariablen: {font1},{font2},{font3},{page_id},{galerie},{galeriestart}</small>";\r\n	$mip_form[''50''][''cat''] = ''txtarea'';\r\n	$mip_form[''50''][''type''] = ''long'';\r\n	$mip_form[''50''][''rows''] = ''1'';\r\n	$mip_form[''50''][''cms_var''] = ''MOD_VAR[50]'';\r\n	$mip_form[''50''][''cms_val''] = $dedi_mod[''value''][''50''];\r\n	$mip_form[''50''][''cms_val_default''] = "<a href=\\"{galerie}\\">Galerieseite {page_id}</a> <a href=\\"{galeriestart}\\">Galeriestartseite</a>";\r\n\r\n	//Vor und zurÃ¼ck zyklisch oder endend?\r\n	$mip_form[''51''][''desc''] = "Vor- und ZurÃ¼ck-Links in der Detailansicht zyklisch oder endend generieren?<br />\\n";\r\n	$mip_form[''51''][''cat''] = ''radio'';\r\n	$mip_form[''51''][''cms_var''] = ''MOD_VAR[51]'';\r\n	$mip_form[''51''][''cms_val''] = $dedi_mod[''value''][''51''];\r\n	$mip_form[''51''][''cms_val_default''] = ''zykl'';\r\n	$mip_form[''51''][''option_desc''][''0''] = ''zyklisch'';\r\n	$mip_form[''51''][''option_val''][''0''] = ''zykl'';\r\n	$mip_form[''51''][''option_desc''][''1''] = ''endend'';\r\n	$mip_form[''51''][''option_val''][''1''] = ''end'';\r\n\r\n	// detailansicht\r\n	$mip_form[''52''][''cat''] = ''txtarea'';\r\n	$mip_form[''52''][''type''] = ''long'';\r\n	$mip_form[''52''][''rows''] = ''10'';\r\n	$mip_form[''52''][''desc''] = "Layout der optionalen Detailansicht<br /><small>MÃ¶gliche Templatevariablen: {page_id},{pic_count},\r\n	{pic_id},{font1},{font2},{font3},{prev},{next},{prevurl},{nexturl},{galerielink},{path},{file},{thumbfile},{filename},{title},\r\n	{filedesc},{description},{maximgsize},{maximgsize2},{filesize},{width},{height},{voter},{votescount},{totalpoints},{averagepoints}<br />\r\n	<b> EXIF-Tags:</b> {exif:make},{exif:model},{exif:iso},{exif:focallength},{exif:aperturenr},{exif:exposuretime},{exif:exposuremode},\r\n	{exif:flash},{exif:exifversion},{exif:meteringmode},{exif:whitebalance},{exif:scenecapturetype},{exif:scenetype},{exif:width},{exif:height},\r\n	{exif:sensingmethod},{exif:exposureprogram},{exif:subjectdistance},{exif:sharpness},{exif:timestamp},{exif:mimetype},{exif:colorspace},\r\n	{exif:orientation},{exif:software}<br />\r\n	<b> IPTC-Tags:</b> {iptc:objectname},{iptc:editstatus},{iptc:priority},{iptc:category},{iptc:supplementalcategories},{iptc:jobid},\r\n	{iptc:keywords},{iptc:releasedate},{iptc:releasetime},{iptc:specialinstructions},{iptc:datecreated},{iptc:timecreated},{iptc:program},\r\n	{iptc:programversion},{iptc:objectcycle},{iptc:byline},{iptc:bylinetitle},{iptc:city},{iptc:sublocation},{iptc:state},{iptc:countrycode},\r\n	{iptc:country},{iptc:originaltransmissionreference},{iptc:headline},{iptc:credits},{iptc:source},{iptc:copyrightnotice},{iptc:caption},\r\n	{iptc:captionwriter}</small>";\r\n	$mip_form[''52''][''cms_var''] = ''MOD_VAR[52]'';\r\n	$mip_form[''52''][''cms_val''] = $dedi_mod[''value''][''52''];\r\n	$mip_form[''52''][''cms_val_default''] = "<table width=\\"100%\\">\r\n	  <tr class=\\"{font1}\\">\r\n	    <td align=\\"center\\">Bild {pic_id}/{pic_count}</td>\r\n	  </tr>\r\n	  <tr class=\\"{font2}\\">\r\n	    <td align=\\"center\\">{prev}&nbsp;&nbsp;{galerielink}&nbsp;&nbsp;{next}</td>\r\n	   </tr>\r\n	   <tr>\r\n	     <td><table width=\\"100%\\"><tr><td align=\\"center\\">\r\n		 <a href=\\"javascript:new_imagepopup(''{path}{urlencode}{file}{/urlencode}'',''{title}'',''{description}'','''',''{width}'',''{height}'',''true'')\\">\r\n		 <img src=\\"{path}{file}\\" {maximgsize2} border=\\"0\\" alt=\\"{filedesc}\\">\r\n		 </a></td></tr></table></td>\r\n	  </tr>\r\n	  <tr class=\\"{font2}\\">\r\n	    <td align=\\"center\\">{voter}<br />\r\n	    Bild ist von Seite {page_id}</td>\r\n	  </tr>\r\n	</table>";\r\n	\r\n	// GDlib options\r\n	// quadratische thumbnails (ja/nein)\r\n	// Quadratische Thumbnails aktivieren\r\n	$mip_form[''53''][''desc''] = ''<u>Quadratische Thumbnails</u><br /><br />'';\r\n	$mip_form[''53''][''cat''] = ''option'';\r\n	$mip_form[''53''][''cms_var''] = ''MOD_VAR[53]'';\r\n	$mip_form[''53''][''cms_val''] = $dedi_mod[''value''][''53''];\r\n	$mip_form[''53''][''option_desc''][''0''] = ''Ja'';\r\n	$mip_form[''53''][''option_desc''][''1''] = ''Nein'';\r\n	$mip_form[''53''][''option_val''][''0''] = ''true'';\r\n	$mip_form[''53''][''option_val''][''1''] = ''false'';\r\n	$mip_form[''53''][''cms_val_default''] = ''false'';\r\n\r\n	// wasserzeichen fÃ¼r detailbilder (bilder-dropdown)\r\n	$mip_form[''54''][''desc''] = ''<u>Wasserzeichen fÃ¼r Galeriebilder</u>'';\r\n	$mip_form[''54''][''cat''] = ''app_file'';\r\n	$mip_form[''54''][''output_cat''] = ''option'';\r\n	$mip_form[''54''][''cms_var''] = ''MOD_VAR[54]'';\r\n	$mip_form[''54''][''cms_val''] = $dedi_mod[''value''][''54''];\r\n	$mip_form[''54''][''with_this_filetype''] = ''jpg,jpeg,gif,tif,tiff,png,bmp,ico'';\r\n	$mip_form[''54''][''flag''] = ''single'';\r\n\r\n	// ausgangspunkt dropdown detailbild\r\n	$mip_form[''55''][''desc''] = ''Von wo aus sollen die X/Y-Koordinaten ausgehen? (0-Punkt der Achsen wird dorthin verschoben)'';\r\n	$mip_form[''55''][''cat''] = ''option'';\r\n	$mip_form[''55''][''cms_var''] = ''MOD_VAR[55]'';\r\n	$mip_form[''55''][''cms_val''] = $dedi_mod[''value''][''55''];\r\n	$mip_form[''55''][''option_desc''][''0''] = ''links/oben'';\r\n	$mip_form[''55''][''option_desc''][''1''] = ''mitte/oben'';\r\n	$mip_form[''55''][''option_desc''][''2''] = ''rechts/oben'';\r\n	$mip_form[''55''][''option_desc''][''3''] = ''links/mitte'';\r\n	$mip_form[''55''][''option_desc''][''4''] = ''mitte/mitte'';\r\n	$mip_form[''55''][''option_desc''][''5''] = ''rechts/mitte'';\r\n	$mip_form[''55''][''option_desc''][''6''] = ''links/unten'';\r\n	$mip_form[''55''][''option_desc''][''7''] = ''mitte/unten'';\r\n	$mip_form[''55''][''option_desc''][''8''] = ''rechts/unten'';\r\n	$mip_form[''55''][''option_val''][''0''] = ''lo'';\r\n	$mip_form[''55''][''option_val''][''1''] = ''mo'';\r\n	$mip_form[''55''][''option_val''][''2''] = ''ro'';\r\n	$mip_form[''55''][''option_val''][''3''] = ''lm'';\r\n	$mip_form[''55''][''option_val''][''4''] = ''mm'';\r\n	$mip_form[''55''][''option_val''][''5''] = ''rm'';\r\n	$mip_form[''55''][''option_val''][''6''] = ''lu'';\r\n	$mip_form[''55''][''option_val''][''7''] = ''mu'';\r\n	$mip_form[''55''][''option_val''][''8''] = ''ru'';\r\n	$mip_form[''55''][''cms_val_default''] = ''lo'';\r\n\r\n	// watermark x koordinate detailbild\r\n	$mip_form[''56''][''desc''] = ''X Position des Wasserzeichens in den Galeriebildern (leer = 0)'';\r\n	$mip_form[''56''][''cat''] = ''txt'';\r\n	$mip_form[''56''][''cms_var''] = ''MOD_VAR[56]'';\r\n	$mip_form[''56''][''cms_val''] = $dedi_mod[''value''][''56''];\r\n	$mip_form[''56''][''cms_val_default''] = '''';\r\n\r\n\r\n	// watermark y koordinate detailbild\r\n	$mip_form[''57''][''desc''] = ''Y Position des Wasserzeichens in den Galeriebildern (leer = 0)'';\r\n	$mip_form[''57''][''cat''] = ''txt'';\r\n	$mip_form[''57''][''cms_var''] = ''MOD_VAR[57]'';\r\n	$mip_form[''57''][''cms_val''] = $dedi_mod[''value''][''57''];\r\n	$mip_form[''57''][''cms_val_default''] = '''';\r\n\r\n	// watermark transparenz detailbild\r\n	$mip_form[''58''][''desc''] = ''Transparenz des Wasserzeichens (0 = Transparent)<br /><br />'';\r\n	$mip_form[''58''][''cat''] = ''txt'';\r\n	$mip_form[''58''][''cms_var''] = ''MOD_VAR[58]'';\r\n	$mip_form[''58''][''cms_val''] = $dedi_mod[''value''][''58''];\r\n	$mip_form[''58''][''cms_val_default''] = ''80'';\r\n\r\n\r\n	// wasserzeichen fÃ¼r thumbnails (bilder-dropdown)\r\n	$mip_form[''60''][''desc''] = ''<u>Wasserzeichen fÃ¼r Thumbnails</u>'';\r\n	$mip_form[''60''][''cat''] = ''app_file'';\r\n	$mip_form[''60''][''output_cat''] = ''option'';\r\n	$mip_form[''60''][''cms_var''] = ''MOD_VAR[60]'';\r\n	$mip_form[''60''][''cms_val''] = $dedi_mod[''value''][''60''];\r\n	$mip_form[''60''][''with_this_filetype''] = ''jpg,jpeg,gif,tif,tiff,png,bmp,ico'';\r\n	$mip_form[''60''][''flag''] = ''single'';\r\n\r\n	// ausgangspunkt fÃ¼r watermark berechnung thumbnails dropdown\r\n	$mip_form[''61''][''desc''] = ''Von wo aus sollen die X/Y-Koordinaten ausgehen? (0-Punkt der Achsen wird dorthin verschoben)'';\r\n	$mip_form[''61''][''cat''] = ''option'';\r\n	$mip_form[''61''][''cms_var''] = ''MOD_VAR[61]'';\r\n	$mip_form[''61''][''cms_val''] = $dedi_mod[''value''][''61''];\r\n	$mip_form[''61''][''option_desc''][''0''] = ''links/oben'';\r\n	$mip_form[''61''][''option_desc''][''1''] = ''mitte/oben'';\r\n	$mip_form[''61''][''option_desc''][''2''] = ''rechts/oben'';\r\n	$mip_form[''61''][''option_desc''][''3''] = ''links/mitte'';\r\n	$mip_form[''61''][''option_desc''][''4''] = ''mitte/mitte'';\r\n	$mip_form[''61''][''option_desc''][''5''] = ''rechts/mitte'';\r\n	$mip_form[''61''][''option_desc''][''6''] = ''links/unten'';\r\n	$mip_form[''61''][''option_desc''][''7''] = ''mitte/unten'';\r\n	$mip_form[''61''][''option_desc''][''8''] = ''rechts/unten'';\r\n	$mip_form[''61''][''option_val''][''0''] = ''lo'';\r\n	$mip_form[''61''][''option_val''][''1''] = ''mo'';\r\n	$mip_form[''61''][''option_val''][''2''] = ''ro'';\r\n	$mip_form[''61''][''option_val''][''3''] = ''lm'';\r\n	$mip_form[''61''][''option_val''][''4''] = ''mm'';\r\n	$mip_form[''61''][''option_val''][''5''] = ''rm'';\r\n	$mip_form[''61''][''option_val''][''6''] = ''lu'';\r\n	$mip_form[''61''][''option_val''][''7''] = ''mu'';\r\n	$mip_form[''61''][''option_val''][''8''] = ''ru'';\r\n	$mip_form[''61''][''cms_val_default''] = ''lo'';\r\n\r\n	// watermark x koordinate thumbnails\r\n	$mip_form[''62''][''desc''] = ''X Position des Wasserzeichens in den Thumbnails (leer = 0 = Links)'';\r\n	$mip_form[''62''][''cat''] = ''txt'';\r\n	$mip_form[''62''][''cms_var''] = ''MOD_VAR[62]'';\r\n	$mip_form[''62''][''cms_val''] = $dedi_mod[''value''][''62''];\r\n	$mip_form[''62''][''cms_val_default''] = '''';\r\n\r\n\r\n	// watermark y koordinate thumbnails\r\n	$mip_form[''63''][''desc''] = ''Y Position des Wasserzeichens in den Thumbnails (leer = 0 = Oben)'';\r\n	$mip_form[''63''][''cat''] = ''txt'';\r\n	$mip_form[''63''][''cms_var''] = ''MOD_VAR[63]'';\r\n	$mip_form[''63''][''cms_val''] = $dedi_mod[''value''][''63''];\r\n	$mip_form[''63''][''cms_val_default''] = '''';\r\n\r\n	// watermark transparenz thumbnails\r\n	$mip_form[''64''][''desc''] = ''Transparenz des Wasserzeichens (0 = Transparent)'';\r\n	$mip_form[''64''][''cat''] = ''txt'';\r\n	$mip_form[''64''][''cms_var''] = ''MOD_VAR[64]'';\r\n	$mip_form[''64''][''cms_val''] = $dedi_mod[''value''][''64''];\r\n	$mip_form[''64''][''cms_val_default''] = ''80'';\r\n}\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''''){\r\n	foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n		$mip_form[$va][''cat''] = ''hidden'';\r\n	}\r\n}\r\n\r\n\r\n#######################################################################################################################\r\n\r\necho "<hr /><b>Schriftarten</b>";\r\nmip_formsp($mip_form[''1'']);\r\nmip_formsp($mip_form[''2'']);\r\nmip_formsp($mip_form[''3'']);\r\nmip_formsp($mip_form[''4'']);\r\nmip_formsp($mip_form[''5'']);\r\n\r\necho "<hr /><b>generelle Einstellungen</b>";\r\n// bilder fÃ¼r galerie ordner oder dateiauswahl?\r\nmip_formsp($mip_form[''10'']);\r\n\r\nif($dedi_mod[''value''][''10''] != ''filelist'') {\r\n	//Ordnerauswahl\r\n	mip_formsp($mip_form[''11'']);\r\n\r\n	//Unterordner verwenden?\r\n	mip_formsp($mip_form[''12'']);\r\n} else {\r\n	// wenn datei, dann selectbox multi\r\n	mip_formsp($mip_form[''13'']);\r\n}\r\n\r\n// Ãœbersichtsseite anzeigen (ja/nein)\r\nmip_formsp($mip_form[''20'']);\r\n\r\nif($dedi_mod[''value''][''20''] == ''true'') {\r\n	//Anzahl der Bilder pro seite\r\n	mip_formsp($mip_form[''21'']);\r\n\r\n	//Wieviele Bilder nebeneinander?\r\n	mip_formsp($mip_form[''22'']);\r\n\r\n	//Startseite dieser Galerie?\r\n	mip_formsp($mip_form[''23'']);\r\n}\r\n\r\n//Sortierreihenfolge der Bilder\r\nmip_formsp($mip_form[''25'']);\r\n\r\n//Aufsteigend Absteigend?\r\nmip_formsp($mip_form[''26'']);\r\n\r\n//EXIF auslesen?\r\nmip_formsp($mip_form[''27'']);\r\n\r\necho "<hr /><b>Bildbewertung</b>";\r\n// bildbewertung anzeigen (ja/nein)\r\nmip_formsp($mip_form[''70'']);\r\nmip_formsp($mip_form[''71'']);\r\nmip_formsp($mip_form[''73'']);\r\nmip_formsp($mip_form[''74'']);\r\nmip_formsp($mip_form[''75'']);\r\nmip_formsp($mip_form[''76'']);\r\nmip_formsp($mip_form[''77'']);\r\nmip_formsp($mip_form[''78'']);\r\nmip_formsp($mip_form[''79'']);\r\nmip_formsp($mip_form[''80'']);\r\nmip_formsp($mip_form[''81'']);\r\n\r\necho "<hr /><b>Bildergrï¿½ï¿½en</b>";\r\nmip_formsp($mip_form[''35'']);\r\nmip_formsp($mip_form[''36'']);\r\n\r\necho "<hr /><b>Galerie-Walker</b>";\r\n//Vor und Zurï¿½cklinks\r\nmip_formsp($mip_form[''40'']);\r\nmip_formsp($mip_form[''41'']);\r\nmip_formsp($mip_form[''42'']);\r\nmip_formsp($mip_form[''43'']);\r\nmip_formsp($mip_form[''44'']);\r\n\r\n//Aktuelle Seite verlinken?\r\nmip_formsp($mip_form[''45'']);\r\n\r\necho "<hr /><b>Templates</b>";\r\n\r\nif($dedi_mod[''value''][''20''] != ''false'') {\r\n	// galerieï¿½bersicht\r\n	mip_formsp($mip_form[''46'']);\r\n\r\n	// ï¿½bersichtstabellenelement\r\n	mip_formsp($mip_form[''47'']);\r\n}\r\n\r\n// zurÃ¼cklink in der detailansicht\r\nmip_formsp($mip_form[''48'']);\r\n// vor-link in der detailansicht\r\nmip_formsp($mip_form[''49'']);\r\n// RÃ¼cklink zur Galerie in der detailansicht\r\nmip_formsp($mip_form[''50'']);\r\n\r\n// Vor- und ZurÃ¼ck-Links in der Detailansicht zyklisch oder endend generieren?\r\nmip_formsp($mip_form[''51'']);\r\n\r\n// detailansicht\r\nmip_formsp($mip_form[''52'']);\r\n\r\necho "<hr /><b>GD-Options</b><br />";\r\n// Quadratische Thumbnails aktivieren\r\nmip_formsp($mip_form[''53'']);\r\n\r\n// wasserzeichen fÃ¼r detailbilder (bilder-dropdown)\r\nmip_formsp($mip_form[''54'']);\r\nmip_formsp($mip_form[''55'']);\r\nmip_formsp($mip_form[''56'']);\r\nmip_formsp($mip_form[''57'']);\r\nmip_formsp($mip_form[''58'']);\r\n\r\n// wasserzeichen fÃ¼r thumbnails (bilder-dropdown)\r\nmip_formsp($mip_form[''60'']);\r\nmip_formsp($mip_form[''61'']);\r\nmip_formsp($mip_form[''62'']);\r\nmip_formsp($mip_form[''63'']);\r\nmip_formsp($mip_form[''64'']);\r\nunset($mip_form);\r\n?>\r\n', '<DEDIPHP>\r\n\r\n##########################################################################################################################\r\n## Verwendete Funktionen\r\n##########################################################################################################################\r\n\r\n//Funktion zur ermittlung von EXIF-Daten in JPEG/TIFF-Files\r\nif (!function_exists(''get_exif_for_file'')) {\r\n	function get_exif_for_file($image) {\r\n		if (!$errno) {		\r\n			$exif = @exif_read_data($image, true, false);\r\n		}\r\n		if (!empty($exif)) {\r\n			return $exif;\r\n		} else {\r\n			return "";\r\n		}\r\n	}\r\n}\r\n\r\n// Funktion zum auslesen der IPTC Daten in JPEG/TIFF-files\r\nif (!function_exists(''get_iptc_for_file'')) {\r\n	function get_iptc_for_file($image) {\r\n		// IPTC name -> value mapping\r\n		$mod[''iptc_keymap''] = array(	"2#005" => "objectname",\r\n						"2#007" => "editstatus",\r\n						"2#010" => "priority",\r\n						"2#015" => "category",\r\n						"2#020" => "supplementalcategories",\r\n						"2#022" => "jobid",\r\n						"2#025" => "keywords",\r\n						"2#030" => "releasedate",\r\n						"2#035" => "releasetime",\r\n						"2#040" => "specialinstructions",\r\n						"2#055" => "datecreated",\r\n						"2#060" => "timecreated",\r\n						"2#065" => "program",\r\n						"2#070" => "programversion",\r\n						"2#075" => "objectcycle",\r\n						"2#080" => "byline",\r\n						"2#085" => "bylinetitle",\r\n						"2#090" => "city",\r\n						"2#092" => "sublocation",\r\n						"2#095" => "state",\r\n						"2#100" => "countrycode",\r\n						"2#101" => "country",\r\n						"2#103" => "originaltransmissionreference",\r\n						"2#105" => "headline",\r\n						"2#110" => "credits",\r\n						"2#115" => "source",\r\n						"2#116" => "copyrightnotice",\r\n						"2#120" => "caption",\r\n						"2#122" => "captionwriter");\r\n\r\n		$size = getimagesize ($image, $info);\r\n		$iptcout = array();\r\n		if(is_array($info)) {\r\n			$iptc = iptcparse($info["APP13"]);\r\n			if (is_array($iptc)) {\r\n				foreach (array_keys($iptc) as $s) {             \r\n					$c = count($iptc[$s]);\r\n					for ($i=0; $i < $c; $i++) {\r\n						$content .= $iptc[$s][$i];\r\n						if ($i+1 < $c) {\r\n							$content .= ",";\r\n						}\r\n					}\r\n					$iptcout[$mod[''iptc_keymap''][$s]] = $content;\r\n					$content = "";\r\n				}\r\n			}\r\n		}\r\n		return $iptcout;\r\n	}\r\n}\r\n\r\n//Funktion zum ersetzen von exif-zahlencodes durch text\r\nif (!function_exists(''get_exif_description'')) {\r\n	function get_exif_description($name, $value) {\r\n		global $mod;\r\n\r\n		$exifresult = $mod["exif_".$name][$value];\r\n		if (empty($exifresult)) {\r\n			return $value;\r\n		} else {\r\n			return $exifresult;\r\n		}\r\n		unset($exifresult);\r\n	}\r\n}\r\n\r\nif (!function_exists(''calculate'')) {\r\n	function calculate($term, $decimals=''0'') {\r\n		$elem = explode("/", $term);\r\n		if ($elem[1] != "" AND $elem[1] > 0) {\r\n			return round(($elem[0] / $elem[1]), $decimals);\r\n		} else {\r\n			return $term;\r\n		}\r\n	}\r\n}\r\n\r\n// Funktion zum erstellen von Wasserzeichen\r\nif (!function_exists(''make_watermark_image_galerie'')) {\r\n	function make_watermark_image_galerie($image, $watermarkfile, $new_image, $x, $y, $transition) {\r\n		global $cfg_dedi, $cfg_client;\r\n\r\n		require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n		$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n		$dedi_image->load($image);\r\n		$dedi_watermark = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n		$dedi_watermark->load($watermarkfile);\r\n\r\n		$watermark_width = imagesx($dedi_watermark->imageHandle);\r\n		$watermark_height = imagesy($dedi_watermark->imageHandle);\r\n\r\n		//(Bild, Watermark, Position des Watermarks X, Position des Watermarks Y, Breite des Bilds, Hï¿½he des Bilds Y, Breite des Watermarks, Hï¿½he des Bildes, Transparenz)\r\n		imagecopymerge($dedi_image->imageHandle, $dedi_watermark->imageHandle, $x, $y, 0, 0, $watermark_width, $watermark_height, $transition);\r\n		$dedi_image->save($new_image);\r\n		$dedi_image->free();\r\n		unset($dedi_image);\r\n	}\r\n}\r\n\r\n// Funktion zum berechnen der x-koordinate eines wasserzeichens\r\nif (!function_exists(''calculateXPosition'')) {\r\n	function calculateXPosition($x, $width, $location) {\r\n		if ($location == ''lo'' || $location == ''lm'' || $location == ''lu'') {\r\n			return 0;\r\n		} elseif ($location == ''mo'' || $location == ''mm'' || $location == ''mu'') {\r\n			return (($width / 2) + ($x));\r\n		} elseif ($location == ''ro'' || $location == ''rm'' || $location == ''ru'') {\r\n			return (($width) + ($x));\r\n		}\r\n	}\r\n}\r\n\r\n// Funktion zum berechnen der y-koordinate eines wasserzeichens\r\nif (!function_exists(''calculateYPosition'')) {\r\n	function calculateYPosition($y, $height, $location) {\r\n		if ($location == ''lo'' || $location == ''mo'' || $location == ''ro'') {\r\n			return 0;\r\n		} elseif ($location == ''lm'' || $location == ''mm'' || $location == ''rm'') {\r\n			return (($height / 2) + ($y));\r\n		} elseif ($location == ''lu'' || $location == ''mu'' || $location == ''ru'') {\r\n			return (($height) + ($y));\r\n		}\r\n	}\r\n}\r\n\r\n//Funktion zum erstellen von quadratischen Bildern\r\nif (!function_exists(''make_square_image'')) {\r\n	function make_square_image($image, $new_image, $square_split) {\r\n		global $cfg_dedi, $cfg_client;\r\n\r\n		require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n		$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n		$dedi_image->load($image);\r\n		$square_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n		$square_image->load($image);			\r\n		$w= $dedi_image->img_x;\r\n		$h= $dedi_image->img_y;\r\n		if ($w > $h) {\r\n			$x=floor($w/2-$h/2); \r\n			$y=0;\r\n			$s=$h;\r\n		} else {\r\n			$y=floor($h/2-$w/2);\r\n			$x=0;\r\n			$s=$w;\r\n		}\r\n		//echo "s = ",$s,"  w= ",$w,"  h= ",$h,"  x= ",$x,"  y= ",$y;\r\n		$square_image->resize($s,$s);\r\n		//(square_image, Originalbild, Position im Quadrat X, Position im Quardrat Y, Position Ausschnitt X, Position Ausschnitt Y, Breite, Hï¿½he)\r\n		imagecopy($square_image->imageHandle, $dedi_image->imageHandle, 0,0, $x, $y,  $w, $h);\r\n		$square_image->save($new_image);\r\n		$square_image->free();\r\n		unset($dedi_image);\r\n	}\r\n}\r\n\r\n\r\n\r\n//Funktion zum auslesen der Thumbgrï¿½ï¿½en\r\nif (!function_exists(''get_thumb_size'')) {\r\n	function get_thumb_size($xy, $thumb) {\r\n		global $cfg_dedi, $cfg_client;\r\n		require_once $cfg_dedi[''dedi_path''].''external/pear/image/transform.php'';\r\n		$dedi_image = Image_Transform::factory($cfg_dedi[''image_mode'']);\r\n		$dedi_image->load($thumb);\r\n\r\n		$width = imagesx($dedi_image->imageHandle);\r\n		$height = imagesy($dedi_image->imageHandle);\r\n		$dedi_image->free();\r\n		unset($dedi_image);\r\n\r\n		if ($xy == ''x'') {\r\n			return $width;\r\n		}\r\n		elseif ($xy == ''y'') {\r\n			return $height;\r\n		}\r\n	}\r\n}\r\n\r\n\r\n//Funktion zum umwandeln von Bilder IDs in Pfade\r\nif(! function_exists(get_path)) {\r\n	function get_path($id) {\r\n		global $cfg_dedi, $cfg_client, $dedi_db, $db, $dedi_mod;\r\n\r\n		$sql = "SELECT A.*, B.dirname\r\n		FROM\r\n		".$dedi_db[''upl''] ." as A, ". $dedi_db[''directory''] ." as B\r\n		WHERE\r\n		idupl=''".$id."''\r\n		AND\r\n		A.iddirectory = B.iddirectory";\r\n\r\n		$db->query($sql);\r\n		$db->next_record();\r\n		$filepath = $cfg_client["upl_path"].$db->f(''dirname'').$db->f(''filename'');\r\n		return $filepath;\r\n	}\r\n}\r\n\r\n// funktion zur berechnung der bildgrï¿½sse\r\nif(! function_exists(calculateSize)) {\r\n	function calculateSize($width, $height, $maxdimension) {\r\n		if ( ($width > $maxdimension) OR ( $height > $maxdimension) ) {\r\n			if ($width > $height) {\r\n				$result[0] = $maxdimension;\r\n				$result[1] = round($height * $maxdimension / $width);\r\n			} else {\r\n				$result[0] = round($width * $maxdimension / $height);\r\n				$result[1] = $maxdimension;\r\n			}\r\n		} else {\r\n			$result[0] = $width;\r\n			$result[1] = $height;\r\n		}\r\n		return $result;\r\n	}\r\n}\r\n\r\n// walker page navigator funktion\r\nif ( !function_exists(''galeriecreatePageLinks'') ) {\r\nfunction galeriecreatePageLinks($isFloating, $separator, $showNavLinks, $currentpage) {\r\n        global $mod, $cfg_client, $idcatside, $dedi_mod, $picture, $detailid;\r\n        if ($currentpage == "") {\r\n		$currentpage = 1;\r\n	}\r\n	\r\n	if ($isFloating > 0) {\r\n                $floatdiff = ceil($isFloating / 2);\r\n\r\n                $start = $currentpage- $floatdiff;\r\n                if ($start > $mod["anz"]) $start = $mod["anz"] - $floatdiff;\r\n                if ($start < 1) $start = 1;\r\n\r\n                $stop = $currentpage+ $floatdiff;\r\n                if ($stop > $mod["anz"]) $stop = $mod["anz"];\r\n        } else {\r\n                $start = 1;\r\n                $stop = $mod["anz"];\r\n        }\r\n\r\n        if ($currentpage > 1 && $showNavLinks == ''true'') {\r\n                $previd = $currentpage- 1;\r\n                $returnvalue .= "<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$previd.$mod[''query''].\r\n		"&picture=\\">MOD_VALUE[13]</a>&nbsp;&nbsp;&nbsp;";\r\n        }\r\n\r\n	for ( $mod["pagecounter"] = $start; $mod["pagecounter"] <= $stop; $mod["pagecounter"]++ ) {\r\n		if ($mod["pagecounter"] > $start) $returnvalue .= $separator;\r\n		if ($mod["pagecounter"] == $currentpage) {\r\n			if ("MOD_VALUE[45]" == "false"){\r\n				$returnvalue .= "<span class=\\"MOD_VALUE[3]\\">[".$mod["pagecounter"]."]</span>";\r\n			} else {\r\n				$returnvalue .= "<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".\r\n				$mod["pagecounter"].$mod[''query'']."&picture=\\"><span class=\\"MOD_VALUE[3]\\">[".$mod["pagecounter"]."]</span></a>";\r\n			}\r\n		} else {\r\n			$returnvalue .= "<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod["pagecounter"].\r\n			$mod[''query'']."&picture=\\"><span class=\\"MOD_VALUE[2]\\">".$mod["pagecounter"]."</span></a>";\r\n		}\r\n	}\r\n\r\n	if ($currentpage< $mod["anz"] && $showNavLinks == ''true'') {\r\n		$nextid = $currentpage + 1;\r\n		$returnvalue .= "&nbsp;&nbsp;&nbsp;<a href=\\"".$mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".\r\n		$nextid.$mod[''query'']."&picture=\\">MOD_VALUE[14]</a>";\r\n	}\r\n	return $returnvalue;\r\n}  // end function\r\n\r\n} // end if exist\r\n\r\n###########################################################################################################################\r\n## Vom Modul benï¿½tigte Variablen\r\n###########################################################################################################################\r\n// Variablen fï¿½r quadratische Thumbnails\r\n$mod[''square_thumb''] = "MOD_VALUE[53]";\r\n$mod[''square_split''] = "mm";\r\n\r\n\r\n// Der Pfad zum Watermarkbild fï¿½r die Thumbs\r\n$mod[''wm_thumb_id''] = "MOD_VALUE[60]";\r\n$mod[''wm_thumb_path''] = get_path($mod[''wm_thumb_id'']);\r\n$mod[''wm_thumb_location''] = "MOD_VALUE[61]";\r\n$mod[''wm_thumb_positionx''] = "MOD_VALUE[62]";\r\n$mod[''wm_thumb_positiony''] = "MOD_VALUE[63]";\r\n$mod[''wm_thumb_transparent''] = "MOD_VALUE[64]";\r\n\r\n// Der Pfad zum Watermarkbild fï¿½r die Galeriebilder\r\n$mod[''wm_image_id''] = "MOD_VALUE[54]";\r\n$mod[''wm_image_path''] = get_path($mod[''wm_image_id'']);\r\n$mod[''wm_image_location''] = "MOD_VALUE[55]";\r\n$mod[''wm_image_positionx''] = "MOD_VALUE[56]";\r\n$mod[''wm_image_positiony''] = "MOD_VALUE[57]";\r\n$mod[''wm_image_transparent''] = "MOD_VALUE[58]";\r\n\r\n\r\n// Variable fï¿½r den Link zur aktuellen Seite mit Session ID\r\n$mod[''idcatlink''] =  $con_side[$idcatside][''link''];\r\n$mod[''picture''] = explode("_",$picture);\r\n\r\n// Sortierparameter\r\n$mod[''sort''] = "MOD_VALUE[25]";\r\n$mod[''sortorder''] = "MOD_VALUE[26]";\r\n\r\n// galerieparameter\r\n$mod["number_of_pics_per_page"] = "MOD_VALUE[21]";\r\n$mod["break_after_number_of_pics"] = "MOD_VALUE[22]";\r\n$mod["show_overview_page"] = "MOD_VALUE[20]";\r\nif ($mod["show_overview_page"] == "false") {\r\n	$mod["number_of_pics_per_page"] = 1;\r\n}\r\n\r\nif ("MOD_VALUE[27]" == true) {\r\n	// Exif value->description resolution tables\r\n	// [MeteringMode]\r\n	$mod[''exif_meteringmode''] = array("unknown", "Average", "CenterWeightedAverage", "Spot", "MultiSpot", "Pattern", "Partial");\r\n\r\n	// [LightSource]\r\n	$mod[''exif_lightsource''] = array("unknown","Daylight","Fluorescent","Tungsten (incandescent light)","Flash","Fine weather","Cloudy weather",\r\n	"Shade","Daylight fluorescent (D 5700 ï¿½ 7100K)","Day white fluorescent (N 4600 ï¿½ 5400K)","Cool white fluorescent (W 3900 ï¿½ 4500K)",\r\n	"White fluorescent (WW 3200 ï¿½ 3700K)","Standard light A","Standard light B","Standard light C","D55","D65","D75","D50","ISO studio tungsten");\r\n\r\n	// [Flash] decimal to hex conversion necessary\r\n	$mod[''exif_flash''] = array(\r\n	0 => "Flash did not fire",\r\n	1 => "Flash fired",\r\n	5 => "Strobe return light not detected",\r\n	7 => "Strobe return light detected",\r\n	9 => "Flash fired, compulsory flash mode",\r\n	13 => "Flash fired, compulsory flash mode, return light not detected",\r\n	15 => "Flash fired, compulsory flash mode, return light detected",\r\n	16 => "Flash did not fire, compulsory flash mode",\r\n	24 => "Flash did not fire, auto mode",\r\n	25 => "Flash fired, auto mode",\r\n	29 => "Flash fired, auto mode, return light not detected",\r\n	31 => "Flash fired, auto mode, return light detected",\r\n	32 => "No flash function",\r\n	65 => "Flash fired, red-eye reduction mode",\r\n	69 => "Flash fired, red-eye reduction mode, return light not detected",\r\n	71 => "Flash fired, red-eye reduction mode, return light detected",\r\n	73 => "Flash fired, compulsory flash mode, red-eye reduction mode",\r\n	77 => "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",\r\n	79 => "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",\r\n	89 => "Flash fired, auto mode, red-eye reduction mode",\r\n	93 => "Flash fired, auto mode, return light not detected, red-eye reduction mode",\r\n	95 => "Flash fired, auto mode, return light detected, red-eye reduction mode");\r\n\r\n	// [SensingMethod]\r\n	$mod[''exif_sensingmethod''] = array("Not defined","One-chip color area sensor","Two-chip color area sensor","Three-chip color area sensor",\r\n	"Color sequential area sensor","Trilinear sensor","Color sequential linear sensor");\r\n\r\n	// [SceneType]\r\n	$mod[''exif_scenetype''] = array( "1" => "A directly photographed image");\r\n\r\n	// [ExposureMode] the exposure mode set when the image was shot. In auto-bracketing mode, the camera shoots a series of frames of the same scene at different exposure settings.\r\n	$mod[''exif_exposuremode''] = array("Auto exposure","Manual exposure","Auto bracket");\r\n\r\n	// [WhiteBalance]\r\n	$mod[''exif_whitebalance''] = array("Auto white balance","Manual white balance");\r\n\r\n	// [SceneCaptureType]\r\n	$mod[''exif_scenecapturetype''] = array("Standard","Landscape","Portrait","Night scene");\r\n\r\n	// [Contrast]\r\n	$mod[''exif_contrast''] = array("Normal","Soft","Hard");\r\n\r\n	// [Saturation]\r\n	$mod[''exif_saturation''] = array("Normal","Low saturation","High saturation");\r\n\r\n	// [Sharpness]\r\n	$mod[''exif_sharpness''] = array("Normal","Soft","Hard");\r\n\r\n	// [SubjectDistanceRange]\r\n	$mod[''exif_subjectdistancerange''] = array("unknown","Macro","Close view","Distant view");\r\n\r\n	// [ColorSpace] convert to decimal to hex\r\n	$mod[''exif_colorspace''] = array( "1" => "sRGB", "65535" => "AdobeRGB");\r\n\r\n	// Belichtungsprogramm\r\n	$mod[''exif_exposureprogram''] = array("Not defined", "Manual", "Programmautomatik", "Aperture priority (Av)", "Shutter priority (Tv)",\r\n	"Creative program", "Action program", "Portrait mode", "Landscape mode");\r\n}\r\n\r\n##########################################################################################################################\r\n## Logic Block\r\n##########################################################################################################################\r\n// bilderarray sql queries erstellen\r\nif ("MOD_VALUE[10]" == "folder") {\r\n	$mod[''galerie_folder''] = "MOD_VALUE[11]";\r\n	//Unterordner berï¿½cksichtigen?\r\n	if ("MOD_VALUE[12]" == true) {\r\n		//Name des eingestellten Verzeichnisses auslesen\r\n		$sqlsub = "SELECT A.dirname FROM ".$dedi_db[''directory''] ." as A WHERE A.iddirectory=''".$mod[''galerie_folder'']."'' ORDER BY dirname";\r\n		$db -> query($sqlsub);\r\n		$db->next_record();\r\n		$mod[''name_of_galerie_folder''] =  $db->f(''dirname'');\r\n\r\n		//IDs der Unterordner auslesen\r\n		$sqlsub = "SELECT A.iddirectory	FROM ".$dedi_db[''directory''] ." as A WHERE A.idclient=''".$client."''\r\n			   AND A.dirname like ''".$mod[''name_of_galerie_folder'']."%''";\r\n			   $mod[''sub_dirs''] = mysql_query($sqlsub);\r\n\r\n		//array mit den ids fï¿½llen\r\n		$mod[''sub_dirs_ids''] = array();\r\n		while ($row = mysql_fetch_array($mod[''sub_dirs''], MYSQL_ASSOC)) {\r\n			array_push($mod[''sub_dirs_ids''], "OR B.parentid = ".$row[''iddirectory'']."");\r\n		}\r\n		$mod[''sub_dirs_ids''] = implode(" ", $mod[''sub_dirs_ids'']);\r\n\r\n		//SQL Where Abfrage fï¿½r Unterverzeichnisse fï¿½llen\r\n		$mod[''where''] = "(A.iddirectory = ". $mod[''galerie_folder''] ." ".$mod[''sub_dirs_ids''].")";\r\n	} else {\r\n		$mod[''where''] = "A.iddirectory = ". $mod[''galerie_folder''] ." ";\r\n	}\r\n\r\n	//$sql = "SELECT A.*, B.dirname FROM " . $dedi_db[''upl''] . " as A, ". $dedi_db[''directory''] ." as B, "\r\n	//.$dedi_db[''filetype'']." as C WHERE ".$mod[''where'']." AND A.idclient = ''$client'' AND A.iddirectory = B.iddirectory \r\n	//ORDER BY A.".$mod[''sort'']." ".$mod[''sortorder''];\r\n\r\n	$sql = "SELECT A.*, B.dirname FROM ".$dedi_db[''upl'']." as A\r\n		LEFT JOIN ".$dedi_db[''filetype'']." as C USING(idfiletype)\r\n		LEFT JOIN ".$dedi_db[''directory'']." as B ON A.iddirectory=B.iddirectory\r\n		WHERE ".$mod[''where'']." AND A.idclient= ''$client'' AND C.filetype IN (''jpg'',''jpeg'',''gif'',''tif'',''tiff'',''png'',''bmp'',''ico'')\r\n		ORDER BY A.".$mod[''sort'']." ".$mod[''sortorder''];\r\n\r\n} else {\r\n	// wenn dateiliste:\r\n	$mod[''fileidlist''] = explode(",","MOD_VALUE[13]");\r\n\r\n	$sql = "SELECT A.*, B.dirname FROM " . $dedi_db[''upl''] . " as A, ". $dedi_db[''directory''] ." as B WHERE A.idclient = ''$client''\r\n	AND A.iddirectory = B.iddirectory AND (";\r\n	$i=0;\r\n	while($i<count($mod[''fileidlist''])) {\r\n		if ($i < count($mod[''fileidlist'']) && $i > 0) {\r\n			$sql .= " OR ";\r\n		}\r\n		$sql .=	" A.idupl = ".$mod[''fileidlist''][$i];\r\n		$i++;\r\n	}\r\n	$sql .= ") ORDER BY A.".$mod[''sort'']." ".$mod[''sortorder''];\r\n}\r\n\r\n// bilderarray aufbauen	\r\n$db->query($sql);\r\n$i = 0;\r\n//Anfang von while\r\nwhile ($db->next_record() ) { \r\n	$mod["file"][$i]["title"] = $db->f(''titel'');\r\n	$mod["file"][$i]["filename"] = $db->f(''filename'');\r\n	$mod["file"][$i]["description"] = $db->f(''description'');\r\n	$mod["file"][$i]["dirname"] = $db->f(''dirname'');\r\n	$mod["file"][$i]["filesize"] = $db->f(''filesize'');\r\n	$mod["file"][$i]["width"] = $db->f(''pictwidth'');\r\n	$mod["file"][$i]["height"] = $db->f(''pictheight'');\r\n	$mod["file"][$i]["thumbwidth"] = $db->f(''pictthumbwidth'');\r\n	$mod["file"][$i]["thumbheight"] = $db->f(''pictthumbheight'');\r\n\r\n	### BEGIN filter  fï¿½r <order>\r\n	if (strstr($mod["file"][$i]["description"],"<order>")) { \r\n		$mod[''order_firstpos''] = strpos($mod["file"][$i]["description"],"<order>")+7;\r\n		$mod[''order_lastpos'']  = strpos($mod["file"][$i]["description"],"</order>");\r\n		$mod["file"][$i][''order''] = substr($mod["file"][$i]["description"],$mod[''order_firstpos''],$mod[''order_lastpos'']-$mod[''order_firstpos'']);\r\n		$mod[''order_tag''] = "<order>". $mod["file"][$i][''order''] ."</order>";\r\n		$mod["file"][$i]["description"] = str_replace($mod[''order_tag''], "" ,$mod["file"][$i]["description"]);\r\n	} else { \r\n		$mod["file"][$i][''order''] = "ZZZ";   // wenn keine Reihenfolge definiert, dann hinten dran\r\n	}\r\n	### END filter  fï¿½r <order>\r\n\r\n	### BEGIN  maximgsize (wenn square-thumbs, dann gilt height=width)\r\n	if ("MOD_VALUE[35]" != "") {\r\n		if ($mod[''square_thumb'']) {\r\n			$mod[''maxsize1''][0] = "MOD_VALUE[35]";\r\n			$mod[''maxsize1''][1] = "MOD_VALUE[35]";\r\n\r\n		} else {\r\n			$mod[''maxsize1''] = calculateSize($mod["file"][$i]["width"], $mod["file"][$i]["height"], "MOD_VALUE[35]");\r\n		}\r\n		$mod["file"][$i]["maximgsize"] = "width=\\"" . $mod[''maxsize1''][0] . "\\" height=\\"" . $mod[''maxsize1''][1] . "\\"";\r\n	}\r\n	### END maximgsize\r\n\r\n	### BEGIN  maximgsize2\r\n	if ("MOD_VALUE[36]" != "") {\r\n		$mod[''maxsize2''] = calculateSize($mod["file"][$i]["width"], $mod["file"][$i]["height"], "MOD_VALUE[36]", $mod[''square_thumb'']);\r\n		$mod["file"][$i]["maximgsize2"] = "width=\\"" . $mod[''maxsize2''][0] . "\\" height=\\"" . $mod[''maxsize2''][1] . "\\"";\r\n	}\r\n	### END maximgsize2\r\n\r\n	### BEGIN exif + iptc\r\n	if ("MOD_VALUE[27]" == true) {\r\n		// store exif data for each file in the filearray\r\n		$mod["file"][$i]["exif"] = get_exif_for_file($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["filename"]);\r\n		$mod["file"][$i]["iptc"] = get_iptc_for_file($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["filename"]);\r\n\r\n	}\r\n	### END exif + iptc\r\n\r\n	$i++;\r\n\r\n	// Ende von while\r\n}\r\n\r\n################################\r\n// square thumbs prï¿½fen/erzeugen\r\n// watermarks prï¿½fen/erstellen\r\n// thumbs prï¿½fen/erstellen\r\n$i=0;\r\nwhile ($i<count($mod["file"])) {\r\n	$mod["file"][$i]["filename"] = trim($mod["file"][$i]["filename"]);\r\n	$mod["file_ext"] = substr (strrchr ($mod["file"][$i]["filename"], "."), 1);\r\n	$mod["filename"] = substr ($mod["file"][$i]["filename"], 0, -(strlen($mod["file_ext"]))-1 );\r\n	$mod["file"][$i]["wm_image_filename"] = $mod["filename"].$cfg_client[''thumbext'']."_watermarked_original.".strtolower($mod["file_ext"]);\r\n	$mod["file"][$i]["wm_thumb_filename"] = $mod["filename"].$cfg_client[''thumbext'']."_watermarked_thumb.".strtolower($mod["file_ext"]);\r\n	$mod["file"][$i]["square_thumb_filename"] = $mod["filename"].$cfg_client[''thumbext'']."_square.".strtolower($mod["file_ext"]);\r\n	$mod["file"][$i]["thumb_filename"] = $mod["filename"].$cfg_client[''thumbext''].".".strtolower($mod["file_ext"]);\r\n\r\n	// wasserzeichenposition errechnen\r\n	$mod["file"][$i]["wm_image_positionx"] = calculateXPosition($mod[''wm_image_positionx''],$mod["file"][$i]["width"],$mod[''wm_image_location'']);\r\n	$mod["file"][$i]["wm_image_positiony"] = calculateYPosition($mod[''wm_image_positiony''],$mod["file"][$i]["height"],$mod[''wm_image_location'']);\r\n	$mod["file"][$i]["wm_thumb_positionx"] = calculateXPosition($mod[''wm_thumb_positionx''],$mod["file"][$i]["thumbwidth"],$mod[''wm_thumb_location'']);\r\n	$mod["file"][$i]["wm_thumb_positiony"] = calculateYPosition($mod[''wm_thumb_positiony''],$mod["file"][$i]["thumbheight"],$mod[''wm_thumb_location'']);\r\n\r\n	// detailbild mit wasserzeichen versehen\r\n	if (!@file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["wm_image_filename"]) AND\r\n	    @file_exists($mod[''wm_image_path'']) AND\r\n	    $mod[''wm_image_id'']) {\r\n		make_watermark_image_galerie(	$cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["filename"],\r\n						$mod[''wm_image_path''],\r\n						$cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["wm_image_filename"], \r\n						$mod["file"][$i]["wm_image_positionx"],\r\n						$mod["file"][$i]["wm_image_positiony"],\r\n						$mod[''wm_image_transparent'']);\r\n	}\r\n	\r\n	// square thumb erstellen wenn nï¿½tig\r\n	if (!@file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["square_thumb_filename"]) AND\r\n	    @file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["thumb_filename"]) AND\r\n	    $mod[''square_thumb''] == ''true'') {\r\n		make_square_image (	$cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["thumb_filename"],\r\n					$cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["square_thumb_filename"],\r\n					$mod["square_split"]);\r\n	}\r\n\r\n	// thumb mit watermark versehen\r\n	if (!@file_exists($cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["wm_thumb_filename"]) AND\r\n	    @file_exists($mod[''wm_thumb_path'']) AND\r\n	    $mod[''wm_thumb_id'']) {\r\n		make_watermark_image_galerie(	$cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["thumb_filename"],\r\n						$mod[''wm_thumb_path''],\r\n						$cfg_client["upl_path"].$mod["file"][$i]["dirname"].$mod["file"][$i]["wm_thumb_filename"], \r\n						$mod["file"][$i]["wm_thumb_positionx"],\r\n						$mod["file"][$i]["wm_thumb_positiony"],\r\n						$mod[''wm_thumb_transparent'']);\r\n	}\r\n	$i++;\r\n}\r\n\r\n#############################################################################################\r\n## voting component\r\n#############################################################################################\r\n$mod[''vote''] = "";\r\nif ("MOD_VALUE[70]") {\r\n\r\n	// modulvariablen definieren\r\n	$mod[''tablename''] = $cfg_dedi[''db_table_prefix'']."MOD_VALUE[73]";\r\n	$mod[''statusmessage''] = "";\r\n	$mod[''maintemplate''] = "MOD_VALUE[80]";\r\n	$mod[''resulttemplate''] = "MOD_VALUE[81]";\r\n	$mod[''block_double_votes''] = "MOD_VALUE[71]";\r\n	$mod[''allow_vote_modification''] = "MOD_VALUE[74]";\r\n	$mod[''points_for_option''][1] = "MOD_VALUE[75]";\r\n	$mod[''points_for_option''][2] = "MOD_VALUE[76]";\r\n	$mod[''points_for_option''][3] = "MOD_VALUE[77]";\r\n	$mod[''points_for_option''][4] = "MOD_VALUE[78]";\r\n	$mod[''points_for_option''][5] = "MOD_VALUE[79]";\r\n\r\n	// requestvariablen\r\n	$mod[''points''] = $points;\r\n	$mod[''container''] = $mod[''picture''][0];\r\n	$mod[''idcatside''] = $idcatside;\r\n	$mod[''remoteip''] = preg_replace("/[^0-9\\.]*/", "", $_SERVER[''REMOTE_ADDR'']);\r\n	$mod[''optionid''] = preg_replace("/[^0-9]*/", "", $vote);\r\n	$mod[''votefilepath''] = $mod["file"][$mod[''picture''][1]]["dirname"].$mod["file"][$mod[''picture''][1]]["filename"];\r\n\r\n	// noch nicht benutzte variablen fï¿½r das voting\r\n	//$mod[''resettype''] = $resettype;\r\n\r\n	// funktionen\r\n\r\n	// initialisierung\r\n	// tabelle anlegen, falls sie noch nicht existiert\r\n	// spalten: id, pageid, container-id, imagepath, ip, points\r\n	// index auf bildname, IP, points und ID\r\n	$mod[''sql''] =	"CREATE TABLE IF NOT EXISTS ".$mod[''tablename'']." ("\r\n			. " id int(10) NOT NULL auto_increment,"\r\n			. " pageid int(6) default NULL,"\r\n			. " containerid int(6) default NULL,"\r\n			. " imagepath varchar(255) default NULL,"\r\n			. " ip varchar(15) default NULL,"\r\n			. " points int(6) default NULL,"\r\n			. " PRIMARY KEY (id),"\r\n			. " KEY imagepath (imagepath),"\r\n			. " KEY ip (ip),"\r\n			. " KEY points (points)"\r\n			. " ) TYPE=MyISAM AUTO_INCREMENT=1 ";\r\n	$db -> query($mod[''sql'']);\r\n	$db->next_record();\r\n\r\n\r\n	// request verarbeiten\r\n	// wenn admin im frontend eingeloggt ist (noch nicht implementiert)\r\n		// vote reset fï¿½r dieses bild\r\n		// vote reset fï¿½r alle bilder dieser galerie\r\n		// vote reset fï¿½r alle bilder (delete all table content)\r\n\r\n\r\n	if ($mod[''block_double_votes''] == "true") {\r\n		// hat diese IP schon fï¿½r dieses bild abgestimmt?\r\n		$mod[''sql''] =	"SELECT count(id) as ipcount FROM ".$mod[''tablename'']." WHERE imagepath = ''".$mod[''votefilepath'']."'' and pageid = ''".$mod[''idcatside'']\r\n				."'' and containerid=''".$mod[''container'']."'' and ip=''".$mod[''remoteip'']."''";\r\n		$db->query($mod[''sql'']);\r\n		$db->next_record();\r\n		$mod[''ipcount''] = $db->f(''ipcount'');\r\n	}\r\n\r\n	// wenn die IP nicht abgestimmt hat oder vote modifikation aktiviert ist\r\n	if (($mod[''block_double_votes''] == "false" AND $vote != "") OR \r\n	    ($mod[''block_double_votes''] == "true" AND $mod[''ipcount''] == 0 AND $vote != "")) \r\n	{\r\n		$mod[''sql''] = "INSERT INTO ".$mod[''tablename'']." (id, pageid, containerid, imagepath, ip, points) "\r\n		."VALUES ('''', ''".$mod[''idcatside'']."'', ''".$mod[''container'']."'', ''".$mod[''votefilepath'']."'', ''".$mod[''remoteip'']."'', ''".$mod[''points_for_option''][$mod[''optionid'']]."'')";\r\n		$db->query($mod[''sql'']);\r\n		$db->next_record();\r\n		$mod[''statusmessage''] = "Stimme wurde gez&auml;hlt.";\r\n	} else if ($mod[''allow_vote_modification''] == "true" AND $vote != "" AND $mod[''ipcount''] > 0 ) {\r\n		$mod[''sql''] = "UPDATE ".$mod[''tablename'']." SET points = ''".$mod[''points_for_option''][$mod[''optionid'']]."'' WHERE imagepath = ''".$mod[''votefilepath'']\r\n		."'' and pageid = ''".$mod[''idcatside'']."'' and containerid=''".$mod[''container'']."'' and ip=''".$mod[''remoteip'']."'' LIMIT 1";\r\n		$db->query($mod[''sql'']);\r\n		$db->next_record();\r\n		$mod[''statusmessage''] = "Punktzahl wurde aktualisiert.";\r\n	}\r\n\r\n	// summe bewertungspunkte fï¿½r dieses bild in dieser galerie\r\n	$mod[''sql''] =	"SELECT sum(points) as points, count(*) as count FROM ".$mod[''tablename'']." WHERE imagepath = ''".$mod[''votefilepath'']."'' and pageid = ''".$mod[''idcatside'']\r\n			."'' and containerid=''".$mod[''container'']."''";\r\n	$db->query($mod[''sql'']);\r\n	$db->next_record();\r\n	$mod[''totalpoints''] =  $db->f(''points'');\r\n	$mod[''votecount''] =  $db->f(''count'');\r\n	if ($mod[''votecount''] == "") {\r\n		$mod[''votecount''] = "0";\r\n	}\r\n	if ($mod[''totalpoints''] == "") {\r\n		$mod[''totalpoints''] = "0";\r\n	}\r\n\r\n	// output generieren\r\n	// url body erzeugen\r\n	$mod[''optionurl''] = $con_side[$idcatside][''link'']."&galerie=".$galerie."&picture=".$picture;\r\n\r\n	// templatevariablen ersetzen\r\n	if ($showvoteresult == "yes" OR $vote != "" OR ($mod[''ipcount''] > 0 AND $mod[''allow_vote_modification''] == "false")) {\r\n		// wenn flag "ergebnis anzeigen" gesetzt ist\r\n		// ergebnistemplate laden\r\n		$mod[''vote''] = $mod[''resulttemplate''];\r\n\r\n		$mod[''vote''] = str_replace("{statusmsg}", $mod[''statusmessage''], $mod[''vote'']);\r\n		$mod[''vote''] = str_replace("{votelink}", $mod[''optionurl''], $mod[''vote'']);\r\n	} else {\r\n		// sonst formular zur abstimmung anzeigen\r\n		// verbindungstemplate laden\r\n		$mod[''vote''] = $mod[''maintemplate''];\r\n\r\n		// variablen ersetzen\r\n		$mod[''vote''] = str_replace("{opturl1}", $mod[''optionurl'']."&vote=1", $mod[''vote'']);\r\n		$mod[''vote''] = str_replace("{opturl2}", $mod[''optionurl'']."&vote=2", $mod[''vote'']);\r\n		$mod[''vote''] = str_replace("{opturl3}", $mod[''optionurl'']."&vote=3", $mod[''vote'']);\r\n		$mod[''vote''] = str_replace("{opturl4}", $mod[''optionurl'']."&vote=4", $mod[''vote'']);\r\n		$mod[''vote''] = str_replace("{opturl5}", $mod[''optionurl'']."&vote=5", $mod[''vote'']);\r\n		$mod[''vote''] = str_replace("{resultlink}", $mod[''optionurl'']."&showvoteresult=yes", $mod[''vote'']);\r\n	}\r\n\r\n}\r\n#############################################################################################\r\n## end voting component\r\n#############################################################################################\r\n\r\n#######################################################\r\n## output generieren\r\n#######################################################\r\n//ï¿½bersicht oder detailansicht?\r\nif (!empty($picture) OR $mod["show_overview_page"] == "false") {\r\n	// detailseite anzeigen\r\n	// erstes bild der galerie anzeigen, wenn nur-detailansicht und $picture noch nicht definiert ist.\r\n	if ($dedi_mod[''container''][''id''] == $mod[''picture''][0]) {\r\n		$i = $mod[''picture''][1];\r\n	} else {\r\n		$i = 0;\r\n	}\r\n	\r\n	//Id der Galerieseite generieren auf der das Bild ist\r\n	$mod[''pic_is_from_page''] = ceil(($i+1) / $mod["number_of_pics_per_page"]) ;\r\n\r\n	// template einlesen\r\n	$mod[''tpl''] = "MOD_VALUE[52]";\r\n	$mod[''tpl''] = str_replace("{galerielink}","MOD_VALUE[50]" ,$mod[''tpl'']);\r\n	$mod[''tpl''] = str_replace("{prev}","MOD_VALUE[48]" ,$mod[''tpl'']);\r\n	$mod[''tpl''] = str_replace("{next}","MOD_VALUE[49]" ,$mod[''tpl'']);\r\n\r\n	// variablen ersetzen\r\n	// {path}\r\n	$mod[''tpl''] = str_replace("{path}", $cfg_client["upl_htmlpath"].$mod["file"][$i]["dirname"] ,$mod[''tpl'']);\r\n		\r\n	// {file}\r\n	if ($mod[''wm_image_id'']) {\r\n		$mod[''tpl''] = str_replace("{file}", $mod["file"][$i]["wm_image_filename"], $mod[''tpl'']);\r\n	} else {\r\n		$mod[''tpl''] = str_replace("{file}", $mod["file"][$i]["filename"], $mod[''tpl'']);\r\n	}\r\n\r\n	// {thumbfile}\r\n	if ($mod[''wm_thumb_id'']) {\r\n		$mod[''tpl''] = str_replace("{thumbfile}", $mod["file"][$i]["wm_thumb_filename"], $mod[''tpl'']);\r\n	} else {\r\n		if ($mod[''square_thumb''] == "true") {\r\n			$mod[''tpl''] = str_replace("{thumbfile}", $mod["file"][$i]["square_thumb_filename"], $mod[''tpl'']);		\r\n		} else {\r\n			$mod[''tpl''] = str_replace("{thumbfile}", $mod["file"][$i]["thumb_filename"], $mod[''tpl'']);\r\n		}\r\n	}\r\n		\r\n	// {title}\r\n	$mod[''tpl''] = str_replace("{title}", $mod["file"][$i]["title"] ,$mod[''tpl'']);\r\n\r\n	// {filename}\r\n	$mod[''tpl''] = str_replace("{filename}", $mod["file"][$i]["filename"] ,$mod[''tpl'']);\r\n		\r\n	// {filedesc}\r\n	if ($mod["file"][$i]["title"] != "") { \r\n		$mod[''tpl''] = str_replace("{filedesc}",$mod["file"][$i]["title"] ,$mod[''tpl'']);\r\n	} else { \r\n		$mod[''tpl''] = str_replace("{filedesc}",$mod["file"][$i]["filename"] ,$mod[''tpl'']);\r\n	}\r\n\r\n	// {description}\r\n	$mod[''tpl''] = str_replace("{description}",$mod["file"][$i]["description"],$mod[''tpl'']);\r\n	\r\n	// {maximgsize}\r\n	$mod[''tpl''] = str_replace("{maximgsize}", $mod["file"][$i]["maximgsize"] ,$mod[''tpl'']);\r\n\r\n	// {maximgsize2}\r\n	$mod[''tpl''] = str_replace("{maximgsize2}", $mod["file"][$i]["maximgsize2"] ,$mod[''tpl'']);\r\n\r\n	// {filesize}\r\n	$mod[''tpl''] = str_replace("{filesize}", round(($mod["file"][$i]["filesize"]/1024), 1)." kb" ,$mod[''tpl'']);\r\n	\r\n	// {width}\r\n	$mod[''tpl''] = str_replace("{width}", $mod["file"][$i]["width"] ,$mod[''tpl'']);\r\n	\r\n	// {height}\r\n	$mod[''tpl''] = str_replace("{height}", $mod["file"][$i]["height"] ,$mod[''tpl'']);\r\n\r\n	// {pic_id}\r\n	$mod[''tpl''] = str_replace("{pic_id}", $i+1, $mod[''tpl'']);\r\n\r\n	// {pic_count}\r\n	$mod[''tpl''] = str_replace("{pic_count}", count($mod["file"]), $mod[''tpl'']);\r\n\r\n	// {page_id}\r\n	$mod[''tpl''] = str_replace("{page_id}", $mod[''pic_is_from_page''],$mod[''tpl'']);\r\n\r\n	// definieren von next und previous pic_id und page_id\r\n	if ("MOD_VALUE[51]" == "zykl") {\r\n		// previous file\r\n		if ($i-1 < 0) {\r\n			$mod[''prevfile''][0] = count($mod["file"])-1;\r\n			$mod[''prevfile''][1] = ceil(count($mod["file"]) / $mod["number_of_pics_per_page"]) ;\r\n		} else {\r\n			$mod[''prevfile''][0] = ($i-1);\r\n			$mod[''prevfile''][1] = ceil(($i) / $mod["number_of_pics_per_page"]) ;\r\n		}\r\n		// next file\r\n		if ($i+1 > count($mod["file"])-1) {\r\n			$mod[''nextfile''][0] = 0;\r\n			$mod[''nextfile''][1] = 1;\r\n		} else {\r\n			$mod[''nextfile''][0] = ($i+1);\r\n			$mod[''nextfile''][1] = ceil(($i+1) / $mod["number_of_pics_per_page"]) ;\r\n		}\r\n	} else {\r\n		if ($i-1 > -1) {\r\n			$mod[''prevfile''][0] = ($i-1);\r\n			$mod[''prevfile''][1] = ceil(($i) / $mod["number_of_pics_per_page"]) ;\r\n		}\r\n		if ($i+1 < count($mod["file"])+1) {\r\n			$mod[''nextfile''][0] = ($i+1);\r\n			$mod[''nextfile''][1] = ceil(($i+1) / $mod["number_of_pics_per_page"]) ;\r\n		}\r\n	}\r\n\r\n	// {prevurl}\r\n	if ($mod[''prevfile'']) {\r\n		$mod[''tpl''] = str_replace("{prevurl}", $mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod[''prevfile''][1].\r\n		"&picture=".$dedi_mod[''container''][''id'']."_".$mod[''prevfile''][0],$mod[''tpl'']);\r\n	} else {\r\n		$mod[''tpl''] = str_replace("{prevurl}", "", $mod[''tpl'']);\r\n	}\r\n	\r\n\r\n	// {nexturl}\r\n	if ($mod[''nextfile'']) {\r\n		$mod[''tpl''] = str_replace("{nexturl}", $mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod[''nextfile''][1].\r\n		"&picture=".$dedi_mod[''container''][''id'']."_".$mod[''nextfile''][0],$mod[''tpl'']);\r\n	} else {\r\n		$mod[''tpl''] = str_replace("{nexturl}", "", $mod[''tpl'']);\r\n	}\r\n	\r\n	// {galeriestart}\r\n	$mod[''tpl''] = str_replace("{galeriestart}", $mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_1",$mod[''tpl'']);\r\n\r\n	// {galerie} - link zur aktuellen galerieseite, steht im detailansichtsmodus nicht zur verfï¿½gung\r\n	$mod[''tpl''] = str_replace("{galerie}", $mod[''idcatlink'']."&galerie=".$dedi_mod[''container''][''id'']."_".$mod[''pic_is_from_page''],$mod[''tpl'']);\r\n\r\n	// URLencode\r\n	while (strstr($mod[''tpl''],"{urlencode}")) { \r\n		$mod[''url_firstpos''] = strpos($mod[''tpl''],"{urlencode}")+11;\r\n		$mod[''url_lastpos'']  = strpos($mod[''tpl''],"{/urlencode}");\r\n		$mod[''url''] = substr($mod[''tpl''],$mod[''url_firstpos''],$mod[''url_lastpos'']-$mod[''url_firstpos'']);\r\n		$mod[''url_tag''] = "{urlencode}". $mod[''url''] ."{/urlencode}";\r\n		$mod[''url''] = rawurlencode($mod[''url'']);\r\n		$mod[''tpl''] = str_replace($mod[''url_tag''], $mod[''url''] ,$mod[''tpl'']);\r\n	}\r\n\r\n	//{voter}\r\n	$mod[''tpl''] = str_replace("{voter}", $mod[''vote''], $mod[''tpl'']);\r\n\r\n	// anzahl abgegebener stimmen fï¿½r dieses bild in dieser galerie\r\n	$mod[''tpl''] = str_replace("{votescount}", $mod[''votecount''], $mod[''tpl'']);\r\n\r\n	// gesamtergebnis fï¿½r dieses bild in dieser galerie\r\n	$mod[''tpl''] = str_replace("{totalpoints}", $mod[''totalpoints''], $mod[''tpl'']);\r\n\r\n	// gesamtergebnis fï¿½r dieses bild in dieser galerie\r\n	if ($mod[''votecount''] > 0) {\r\n		$mod[''tpl''] = str_replace("{averagepoints}", round(($mod[''totalpoints''] / $mod[''votecount'']), 2), $mod[''tpl'']);\r\n	} else {\r\n		$mod[''tpl''] = str_replace("{averagepoints}", "-", $mod[''tpl'']);\r\n	}\r\n\r\n	if ("MOD_VALUE[27]" == true) {\r\n		// iptc tags ersetzen {iptc:...} mit $mod["file"][$i]["iptc"][...]\r\n		$mod[''tpl''] = preg_replace("/\\{iptc\\:(\\w+)\\}/e", "\\$mod[''file''][$i][''iptc''][''\\\\1'']", $mod[''tpl'']);\r\n		\r\n		// exif tags ersetzen {exif:...} mit $mod["file"][$i]["exif"][...]\r\n		// hersteller\r\n		$mod[''tpl''] = str_replace("{exif:make}", $mod["file"][$i]["exif"]["Make"], $mod[''tpl'']);\r\n		// modell\r\n		$mod[''tpl''] = str_replace("{exif:model}", $mod["file"][$i]["exif"]["Model"], $mod[''tpl'']);\r\n		// isonummer\r\n		$mod[''tpl''] = str_replace("{exif:iso}", $mod["file"][$i]["exif"]["ISOSpeedRatings"], $mod[''tpl'']);\r\n		// brennweite\r\n		$mod[''anexifval''] = calculate($mod[''file''][$i][''exif''][''FocalLength''])." mm";\r\n		$mod[''tpl''] = str_replace("{exif:focallength}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// blende\r\n		$mod[''anexifval''] = "f/".calculate($mod[''file''][$i][''exif''][''FNumber'']);\r\n		$mod[''tpl''] = str_replace("{exif:aperturenr}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// verschlusszeit\r\n		$mod[''tpl''] = str_replace("{exif:exposuretime}", $mod["file"][$i]["exif"]["ExposureTime"]." s", $mod[''tpl'']);\r\n		// aufnahmeprogrammtyp (manuell, auto, blenden/zeitautomatik, etc.)\r\n		$mod[''anexifval''] = get_exif_description(''exposuremode'', $mod[''file''][$i][''exif''][''ExposureMode'']);\r\n		$mod[''tpl''] = str_replace("{exif:exposuremode}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// exif version\r\n		$mod[''tpl''] = str_replace("{exif:exifversion}", $mod["file"][$i]["exif"]["ExifVersion"], $mod[''tpl'']);\r\n		// messmethode (spot, matrix, etc)\r\n		$mod[''anexifval''] = get_exif_description(''meteringmode'', $mod[''file''][$i][''exif''][''MeteringMode'']);\r\n		$mod[''tpl''] = str_replace("{exif:meteringmode}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// weissabgleich\r\n		$mod[''anexifval''] = get_exif_description(''whitebalance'', $mod[''file''][$i][''exif''][''WhiteBalance'']);\r\n		$mod[''tpl''] = str_replace("{exif:whitebalance}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// scene capture type\r\n		$mod[''anexifval''] = get_exif_description(''scenecapturetype'', $mod[''file''][$i][''exif''][''SceneCaptureType'']);\r\n		$mod[''tpl''] = str_replace("{exif:scenecapturetype}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// scene type\r\n		$mod[''anexifval''] = get_exif_description(''scenetype'', $mod[''file''][$i][''exif''][''SceneType'']);\r\n		$mod[''tpl''] = str_replace("{exif:scenetype}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// originalwidth\r\n		$mod[''tpl''] = str_replace("{exif:width}", $mod["file"][$i]["exif"]["ExifImageWidth"], $mod[''tpl'']);\r\n		// originalheight\r\n		$mod[''tpl''] = str_replace("{exif:height}", $mod["file"][$i]["exif"]["ExifImageLength"], $mod[''tpl'']);\r\n		// bildsensortyp\r\n		$mod[''anexifval''] = get_exif_description(''sensingmethod'', $mod[''file''][$i][''exif''][''SensingMethod'']);\r\n		$mod[''tpl''] = str_replace("{exif:sensingmethod}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// belichtungsmodus\r\n		$mod[''anexifval''] = get_exif_description(''exposureprogram'', $mod[''file''][$i][''exif''][''ExposureProgram'']);\r\n		$mod[''tpl''] = str_replace("{exif:exposureprogram}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// objektdistanz\r\n		$mod[''anexifval''] = get_exif_description(''subjectdistancerange'', $mod[''file''][$i][''exif''][''SubjectDistanceRange'']);\r\n		$mod[''tpl''] = str_replace("{exif:subjectdistance}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// schï¿½rfe\r\n		$mod[''anexifval''] = get_exif_description(''sharpness'', $mod[''file''][$i][''exif''][''Sharpness'']);\r\n		$mod[''tpl''] = str_replace("{exif:sharpness}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// zeitstempel\r\n		$mod[''tpl''] = str_replace("{exif:timestamp}", $mod["file"][$i]["exif"]["DateTimeOriginal"], $mod[''tpl'']);\r\n		// MIME type\r\n		$mod[''tpl''] = str_replace("{exif:mimetype}", $mod["file"][$i]["exif"]["MimeType"], $mod[''tpl'']);\r\n		// Color space\r\n		$mod[''anexifval''] = get_exif_description(''colorspace'', $mod[''file''][$i][''exif''][''ColorSpace'']);\r\n		$mod[''tpl''] = str_replace("{exif:colorspace}", $mod[''anexifval''], $mod[''tpl'']);\r\n		// Orientation\r\n		$mod[''tpl''] = str_replace("{exif:orientation}", $mod["file"][$i]["exif"]["Orientation"], $mod[''tpl'']);\r\n		// Software version\r\n		$mod[''tpl''] = str_replace("{exif:software}", $mod["file"][$i]["exif"]["Software"], $mod[''tpl'']);\r\n		// Flash\r\n		$mod[''anexifval''] = get_exif_description(''flash'', $mod[''file''][$i][''exif''][''Flash'']);\r\n		$mod[''tpl''] = str_replace("{exif:flash}", $mod[''anexifval''], $mod[''tpl'']);\r\n	}\r\n\r\n} else {\r\n	// ï¿½bersicht anzeigen\r\n	// variablen definieren\r\n	$mod["separator"] = "MOD_VALUE[44]";\r\n	$mod["tpl"] = "MOD_VALUE[46]";\r\n	\r\n	// walker page navigator erstellen\r\n	// aktuelle galerieseite herausfinden\r\n	$mod[''galerie''] = explode("_",$galerie);\r\n	if ($galerie AND $mod[''galerie''][0]) {\r\n		if ($dedi_mod[''container''][''id''] == $mod["galerie"][0]) {\r\n			$i = (($mod[''galerie''][1] - 1) * $mod["number_of_pics_per_page"]);\r\n		}\r\n	} else {\r\n		$i = 0;\r\n	}\r\n\r\n	// gesamtanzahl der seiten herausfinden\r\n	$mod["anz"] = ceil(count($mod["file"]) / $mod["number_of_pics_per_page"]);\r\n\r\n	// wenn mod_value_44 leer ist, default-separator verwenden.\r\n	if ($mod["separator"] == "") {\r\n		$mod["separator"] = "&nbsp;&nbsp;|&nbsp;&nbsp;";\r\n	}\r\n\r\n	// vor/zurï¿½ck-links anzeigen?\r\n	if ($mod["anz"] > 1){\r\n		$mod["walker"] .= galeriecreatePageLinks("MOD_VALUE[43]", $mod["separator"], "MOD_VALUE[40]", $mod[''galerie''][1]);\r\n	}\r\n\r\n	// variablen ersetzen\r\n	// bestimmen der enthaltenen bild-ids\r\n	$iend = ($i + $mod["number_of_pics_per_page"]);\r\n	if ($iend > count($mod["file"])) {\r\n		$iend = count($mod["file"]);\r\n	}\r\n	// template fï¿½r jedes bild der galerieseite parsen\r\n	for ($i;$i < $iend;$i++) {\r\n\r\n		// template zuweisen\r\n		$mod["tplelement"] = "MOD_VALUE[47]";\r\n\r\n		// {path}\r\n		$mod[''tplelement''] = str_replace("{path}",$cfg_client["upl_htmlpath"]  . $mod["file"][$i]["dirname"] ,$mod[''tplelement'']);\r\n		\r\n		// {file}\r\n		if ($mod[''wm_image_id'']) {\r\n			$mod[''tplelement''] = str_replace("{file}", $mod["file"][$i]["wm_image_filename"], $mod[''tplelement'']);\r\n		} else {\r\n			$mod[''tplelement''] = str_replace("{file}", $mod["file"][$i]["filename"], $mod[''tplelement'']);\r\n		}\r\n\r\n		// {thumbfile}\r\n		if ($mod[''wm_thumb_id'']) {\r\n			$mod[''tplelement''] = str_replace("{thumbfile}", $mod["file"][$i]["wm_thumb_filename"], $mod[''tplelement'']);\r\n		} else {\r\n			if ($mod[''square_thumb''] == "true") {\r\n				$mod[''tplelement''] = str_replace("{thumbfile}", $mod["file"][$i]["square_thumb_filename"], $mod[''tplelement'']);		\r\n			} else {\r\n				$mod[''tplelement''] = str_replace("{thumbfile}", $mod["file"][$i]["thumb_filename"], $mod[''tplelement'']);\r\n			}\r\n		}\r\n		\r\n		// {title}\r\n		$mod[''tplelement''] = str_replace("{title}", $mod["file"][$i]["title"] ,$mod[''tplelement'']);\r\n		\r\n		// {filedesc}\r\n		if ($mod["file"][$i]["title"] != "") { \r\n			$mod[''tplelement''] = str_replace("{filedesc}",$mod["file"][$i]["title"] ,$mod[''tplelement'']);\r\n		} else { \r\n			$mod[''tplelement''] = str_replace("{filedesc}",$mod["file"][$i]["filename"] ,$mod[''tplelement'']);\r\n		}\r\n\r\n		// {description}\r\n		$mod[''tplelement''] = str_replace("{description}",$mod["file"][$i]["description"],$mod[''tplelement'']);\r\n		\r\n		// {maximgsize}\r\n		$mod[''tplelement''] = str_replace("{maximgsize}", $mod["file"][$i]["maximgsize"] ,$mod[''tplelement'']);\r\n\r\n		// {maximgsize2}\r\n		$mod[''tplelement''] = str_replace("{maximgsize2}", $mod["file"][$i]["maximgsize2"] ,$mod[''tplelement'']);\r\n\r\n		// {filesize}\r\n		$mod[''tplelement''] = str_replace("{filesize}", round(($mod["file"][$i]["filesize"]/1024), 1)." kb" ,$mod[''tplelement'']);\r\n		\r\n		// {width}\r\n		$mod[''tplelement''] = str_replace("{width}", $mod["file"][$i]["width"] ,$mod[''tplelement'']);\r\n		\r\n		// {height}\r\n		$mod[''tplelement''] = str_replace("{height}", $mod["file"][$i]["height"] ,$mod[''tplelement'']);\r\n\r\n		// {detailurl}\r\n		$mod[''tplelement''] = str_replace("{detailurl}", $mod[''idcatlink'']."&galerie=".$galerie."&picture=".$dedi_mod[''container''][''id'']."_".$i,$mod[''tplelement'']);\r\n\r\n\r\n		if ("MOD_VALUE[27]" == true) {\r\n			// iptc tags ersetzen {iptc:...} mit $mod["file"][$i]["iptc"][...]\r\n			$mod[''tplelement''] = preg_replace("/\\{iptc\\:(\\w+)\\}/e", "\\$mod[''file''][$i][''iptc''][''\\\\1'']", $mod[''tplelement'']);\r\n\r\n			// exiftags ersetzen {exif:...} mit $mod["file"][$i]["exif"][...]\r\n			// hersteller\r\n			$mod[''tplelement''] = str_replace("{exif:make}", $mod["file"][$i]["exif"]["Make"], $mod[''tplelement'']);\r\n			// modell\r\n			$mod[''tplelement''] = str_replace("{exif:model}", $mod["file"][$i]["exif"]["Model"], $mod[''tplelement'']);\r\n			// isonummer\r\n			$mod[''tplelement''] = str_replace("{exif:iso}", $mod["file"][$i]["exif"]["ISOSpeedRatings"], $mod[''tplelement'']);\r\n			// brennweite\r\n			$mod[''anexifval''] = calculate($mod[''file''][$i][''exif''][''FocalLength''])." mm";\r\n			$mod[''tplelement''] = str_replace("{exif:focallength}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// blende\r\n			$mod[''anexifval''] = "f/".calculate($mod[''file''][$i][''exif''][''FNumber'']);\r\n			$mod[''tplelement''] = str_replace("{exif:aperturenr}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// verschlusszeit\r\n			$mod[''tplelement''] = str_replace("{exif:exposuretime}", $mod["file"][$i]["exif"]["ExposureTime"]." s", $mod[''tplelement'']);\r\n			// aufnahmeprogrammtyp (manuell, auto, blenden/zeitautomatik, etc.)\r\n			$mod[''anexifval''] = get_exif_description(''exposuremode'', $mod[''file''][$i][''exif''][''ExposureMode'']);\r\n			$mod[''tplelement''] = str_replace("{exif:exposuremode}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// exif version\r\n			$mod[''tplelement''] = str_replace("{exif:exifversion}", $mod["file"][$i]["exif"]["ExifVersion"], $mod[''tplelement'']);\r\n			// messmethode (spot, matrix, etc)\r\n			$mod[''anexifval''] = get_exif_description(''meteringmode'', $mod[''file''][$i][''exif''][''MeteringMode'']);\r\n			$mod[''tplelement''] = str_replace("{exif:meteringmode}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// weissabgleich\r\n			$mod[''anexifval''] = get_exif_description(''whitebalance'', $mod[''file''][$i][''exif''][''WhiteBalance'']);\r\n			$mod[''tplelement''] = str_replace("{exif:whitebalance}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// scene capture type\r\n			$mod[''anexifval''] = get_exif_description(''scenecapturetype'', $mod[''file''][$i][''exif''][''SceneCaptureType'']);\r\n			$mod[''tplelement''] = str_replace("{exif:scenecapturetype}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// scene type\r\n			$mod[''anexifval''] = get_exif_description(''scenetype'', $mod[''file''][$i][''exif''][''SceneType'']);\r\n			$mod[''tplelement''] = str_replace("{exif:scenetype}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// originalwidth\r\n			$mod[''tplelement''] = str_replace("{exif:width}", $mod["file"][$i]["exif"]["ExifImageWidth"], $mod[''tplelement'']);\r\n			// originalheight\r\n			$mod[''tplelement''] = str_replace("{exif:height}", $mod["file"][$i]["exif"]["ExifImageLength"], $mod[''tplelement'']);\r\n			// bildsensortyp\r\n			$mod[''anexifval''] = get_exif_description(''sensingmethod'', $mod[''file''][$i][''exif''][''SensingMethod'']);\r\n			$mod[''tplelement''] = str_replace("{exif:sensingmethod}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// belichtungsmodus\r\n			$mod[''anexifval''] = get_exif_description(''exposureprogram'', $mod[''file''][$i][''exif''][''ExposureProgram'']);\r\n			$mod[''tplelement''] = str_replace("{exif:exposureprogram}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// objektdistanz\r\n			$mod[''anexifval''] = get_exif_description(''subjectdistancerange'', $mod[''file''][$i][''exif''][''SubjectDistanceRange'']);\r\n			$mod[''tplelement''] = str_replace("{exif:subjectdistance}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// schï¿½rfe\r\n			$mod[''anexifval''] = get_exif_description(''sharpness'', $mod[''file''][$i][''exif''][''Sharpness'']);\r\n			$mod[''tplelement''] = str_replace("{exif:sharpness}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// zeitstempel\r\n			$mod[''tplelement''] = str_replace("{exif:timestamp}", $mod["file"][$i]["exif"]["DateTimeOriginal"], $mod[''tplelement'']);\r\n			// MIME type\r\n			$mod[''tplelement''] = str_replace("{exif:mimetype}", $mod["file"][$i]["exif"]["MimeType"], $mod[''tplelement'']);\r\n			// Color space\r\n			$mod[''anexifval''] = get_exif_description(''colorspace'', $mod[''file''][$i][''exif''][''ColorSpace'']);\r\n			$mod[''tplelement''] = str_replace("{exif:colorspace}", $mod[''anexifval''], $mod[''tplelement'']);\r\n			// Orientation\r\n			$mod[''tplelement''] = str_replace("{exif:orientation}", $mod["file"][$i]["exif"]["Orientation"], $mod[''tplelement'']);\r\n			// Software version\r\n			$mod[''tplelement''] = str_replace("{exif:software}", $mod["file"][$i]["exif"]["Software"], $mod[''tplelement'']);\r\n			// Flash\r\n			$mod[''anexifval''] = get_exif_description(''flash'', $mod[''file''][$i][''exif''][''Flash'']);\r\n			$mod[''tpl''] = str_replace("{exif:flash}", $mod[''anexifval''], $mod[''tpl'']);\r\n		}\r\n\r\n		// URLencode\r\n		while (strstr($mod[''tplelement''],"{urlencode}")) { \r\n			$mod[''url_firstpos''] = strpos($mod[''tplelement''],"{urlencode}")+11;\r\n			$mod[''url_lastpos'']  = strpos($mod[''tplelement''],"{/urlencode}");\r\n			$mod[''url''] = substr($mod[''tplelement''],$mod[''url_firstpos''],$mod[''url_lastpos'']-$mod[''url_firstpos'']);\r\n			$mod[''url_tag''] = "{urlencode}". $mod[''url''] ."{/urlencode}";\r\n			$mod[''url''] = rawurlencode($mod[''url'']);\r\n			$mod[''tplelement''] = str_replace($mod[''url_tag''], $mod[''url''] ,$mod[''tplelement'']);\r\n		}\r\n		$mod[''out''] .= $mod[''tplelement''];\r\n\r\n		if (((($i+1) / $mod["break_after_number_of_pics"] ) - round((($i+1) / $mod["break_after_number_of_pics"] ),0) ) == 0) {\r\n			$mod[''out''] .= "</tr>\\n";\r\n			$mod[''out''] .= "<tr>\\n";\r\n		}\r\n	}\r\n\r\n	//ausgabe ï¿½bersichtsseite\r\n	$mod[''tpl''] = "MOD_VALUE[46]";\r\n	$mod[''tpl''] = str_replace("{content}",$mod[''out''],$mod[''tpl'']);\r\n	$mod[''tpl''] = str_replace("{id}", $id, $mod[''tpl'']);\r\n	$mod[''tpl''] = str_replace("{walker}", $mod[''walker''],$mod[''tpl'']);\r\n}\r\n\r\n// fonts ersetzen\r\n$mod[''tpl''] = str_replace("{font1}", "MOD_VALUE[1]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font2}", "MOD_VALUE[2]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font3}", "MOD_VALUE[3]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font4}", "MOD_VALUE[4]", $mod[''tpl'']);\r\n$mod[''tpl''] = str_replace("{font5}", "MOD_VALUE[5]", $mod[''tpl'']);\r\n\r\necho $mod[''tpl''];\r\n\r\n// VARIABLEN LEEREN\r\nunset($size);\r\nunset($id);\r\nunset($mod);\r\nunset($detailid);\r\n\r\n</DEDIPHP>', '', 0, 1, 1, 1143680166, 1149816791, 'mod:899e6e607c1f7387d3321e233ee889dc:66242179', '', '', '', 0, '0', NULL, '1');
INSERT INTO `dedi_mod` VALUES (55, 'MrList', '2.0.1', 'Contentliste', 'MrList ermöglicht alle Arten von manuellen Listen (z. B. News, Termine, Blogs, Downloads).\r\nFlexible Gestaltungsmöglichkeiten der Listung, eine umfangreich konfigurierbare Seitenschaltung und vieles mehr, zeichnen dieses Modul aus. (Das Modul sollte weitesgehend kompatibel zum Teaserbuilder 1.0.1 sein)', '<?php\r\n// MrList DeDi-MOD-CONFIG\r\n// Version 2.0.0 build 0325-1\r\n// by mistral / Silverfox / tXz\r\n\r\n//configmode\r\n$mip_form[''0''][''desc''] = ''Konfigurationsmodus'';\r\n$mip_form[''0''][''cat''] = ''option'';\r\n$mip_form[''0''][''size''] = ''1'';\r\n$mip_form[''0''][''option_desc''][] = ''Normal'';\r\n$mip_form[''0''][''option_val''][] =  '''';\r\n$mip_form[''0''][''option_desc''][] = ''Erweitert'';\r\n$mip_form[''0''][''option_val''][] =  ''advanced'';\r\n$mip_form[''0''][''option_desc''][] = ''Alles'';\r\n$mip_form[''0''][''option_val''][] =  ''all'';\r\n$mip_form[''0''][''option_desc''][] = ''Ausgeblendet'';\r\n$mip_form[''0''][''option_val''][] =  ''hidden'';\r\n$mip_form[''0''][''cms_var''] = ''MOD_VAR[0]'';\r\n$mip_form[''0''][''cms_val''] = $dedi_mod[''value''][''0''];\r\n$mip_form[''0''][''flag''] = ''reload'';\r\nmip_formsp($mip_form[''0'']);//configmode\r\n$mip_form[''hide_in_advanced_mode''] = array(20,21,22,23,24,25,26,30,31,32,33,34,35,36,40,41,42,43,44,45,46,50,60,209,210) ;\r\n$mip_form[''hide_in_standard_mode''] = array_merge(array(1,2,13,14,15,16,17,18,19,6,3,4,27,206,207,208,116,117) , $mip_form[''hide_in_advanced_mode''] );\r\n\r\n//hidden config\r\nif($dedi_mod[''value''][''0''] == ''hidden''){\r\n  foreach($dedi_mod[''value''] AS $ke=>$va){\r\n    if($ke != ''0''){\r\n    ?>\r\n      <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">\r\n    <?php\r\n     }\r\n  }\r\n}\r\n//simple, advanced and all config (not hidden config)\r\nelse if($dedi_mod[''value''][''0''] == '''' || $dedi_mod[''value''][''0''] == ''advanced'' || $dedi_mod[''value''][''0''] == ''all''){\r\n\r\n// Schriftart 1\r\n$mip_form[''1''][''desc''] = $mod_lang[''gen_font'']." {font1}";\r\n$mip_form[''1''][''cat''] = ''app_css'';\r\n$mip_form[''1''][''output_cat''] = ''option'';\r\n$mip_form[''1''][''cms_var''] = ''MOD_VAR[1]'';\r\n$mip_form[''1''][''cms_val''] = $dedi_mod[''value''][''1''];\r\n$mip_form[''1''][''flag''] = ''class_only'';\r\n\r\n// Schriftart 2\r\n$mip_form[''2''][''desc''] = $mod_lang[''gen_font'']." {font2}";\r\n$mip_form[''2''][''cat''] = ''app_css'';\r\n$mip_form[''2''][''output_cat''] = ''option'';\r\n$mip_form[''2''][''cms_var''] = ''MOD_VAR[2]'';\r\n$mip_form[''2''][''cms_val''] = $dedi_mod[''value''][''2''];\r\n$mip_form[''2''][''flag''] = ''class_only'';\r\n\r\n// Ergebnisse pro Seite\r\n$mip_form[''5''][''cat''] = ''txt'';\r\n$mip_form[''5''][''type''] = '''';\r\n$mip_form[''5''][''desc''] = ''maximale Einträge pro Seite  <small><strong>(0 = alle / Seitenschaltung deaktiviert)</strong></small>'';\r\n$mip_form[''5''][''cms_var''] = ''MOD_VAR[5]'';\r\n$mip_form[''5''][''cms_val''] = $dedi_mod[''value''][''5''];\r\n$mip_form[''5''][''cms_val_default''] = ''0'';\r\n\r\n// <br>\r\n$mip_form[''7''][''cat''] = ''desc'';\r\n$mip_form[''7''][''type''] = '''';\r\n$mip_form[''7''][''desc''] = ''<small><br/></small>'';\r\n\r\n// Template Eintrag\r\n$mip_form[''8''][''desc''] = ''<small><strong>einzelner Eintrag</strong></small>'';\r\n$mip_form[''8''][''cat''] = ''txtarea'';\r\n$mip_form[''8''][''rows''] = ''7'';\r\n$mip_form[''8''][''type''] = ''long'';\r\n$mip_form[''8''][''cms_var''] = ''MOD_VAR[8]'';\r\n$mip_form[''8''][''cms_val''] = $dedi_mod[''value''][''8''];\r\n$mip_form[''8''][''cms_val_default''] = ''	<div style="float:right;padding:5px;">\r\n		{image:1}\r\n	</div>\r\n	<div>\r\n		<strong>\r\n			{edit}{text:1}<br/>\r\n			<small>\r\n				{date_created}, {time_created}\r\n			</small>\r\n		</strong>\r\n	</div>\r\n	{wysiwyg2:1}<br />\r\n	<span style="text-align:right">\r\n		{link:1}\r\n	</span>\r\n'';\r\n\r\n//beschreibung/ Legende\r\n$mip_form[''9''][''cat''] = ''desc'';\r\n$mip_form[''9''][''type''] = '''';\r\n$mip_form[''9''][''desc''] = ''<div style="text-align:right;"><small><strong>Mögliche Elemente (x = Laufnummer | 1-5 {text:x} | 1-3 alle Anderen)</strong><br/> \r\n{edit}, {colswap}, {username}, {name}, {surname}, {email}<br/>\r\n{date_created}, {time_created}, {date_modified}, {time_modified}<br/>\r\n{text:x}, {textarea:x}, {wysiwyg:x}, {wysiwyg2:x}<br/>\r\n{image:x}, {imageurl:x}, {imagewidth:x}, {imageheight:x}, {imagedesc:x}, {imagethumb:x}<br/>\r\n{linkurl:x}, {linkdesc:x}, {linktarget:x}, {file:x}, {fileurl:x}, {filedesc:x}, {filesize:x}, {link:x}<br /><br /></small></div>'';\r\n\r\n// Template Nav\r\n$mip_form[''10''][''desc''] = ''<small><strong>HTML/XHTML der Seitenschaltung</strong></small>'';\r\n$mip_form[''10''][''cat''] = ''txtarea'';\r\n$mip_form[''10''][''rows''] = ''3'';\r\n$mip_form[''10''][''type''] = ''long'';\r\n$mip_form[''10''][''cms_var''] = ''MOD_VAR[10]'';\r\n$mip_form[''10''][''cms_val''] = $dedi_mod[''value''][''10''];\r\n$mip_form[''10''][''cms_val_default''] = ''<br/>\r\n<br/>\r\n<span style="background-color:#AAA;padding:5px;border:1px solid;">\r\n	{prev}\r\n</span>\r\n<span style="background-color:#EEE;padding:5px;border:1px solid;">\r\n	{page}\r\n</span>\r\n<span style="background-color:#AAA;padding:5px;border:1px solid;">\r\n	{next}\r\n</span>\r\n<br/>\r\n<br/>\r\n'';\r\n\r\n// text für weiter\r\n$mip_form[''11''][''cat''] = ''txt'';\r\n$mip_form[''11''][''type''] = '''';\r\n$mip_form[''11''][''desc''] = ''Bezeichner für Seitenschaltung : Weiter-Link'';\r\n$mip_form[''11''][''cms_var''] = ''MOD_VAR[11]'';\r\n$mip_form[''11''][''cms_val''] = $dedi_mod[''value''][''11''];\r\n$mip_form[''11''][''cms_val_default''] = ''weiter'';\r\n\r\n// text für zurück\r\n$mip_form[''12''][''cat''] = ''txt'';\r\n$mip_form[''12''][''type''] = '''';\r\n$mip_form[''12''][''desc''] = ''Bezeichner für Seitenschaltung : Zurück-Link'';\r\n$mip_form[''12''][''cms_var''] = ''MOD_VAR[12]'';\r\n$mip_form[''12''][''cms_val''] = $dedi_mod[''value''][''12''];\r\n$mip_form[''12''][''cms_val_default''] = ''zurück'';\r\n\r\n//Soll ein Link für die Erstellung neuer News an erster Stelle eingefügt werden\r\n$mip_form[''13''][''desc''] = ''Zusätzlicher Link für das Hinzufügen eines Eintrags an erster Stelle?'';\r\n$mip_form[''13''][''cat''] = ''chk'';\r\n$mip_form[''13''][''option_var''][''0''] = ''MOD_VAR[13]'';\r\n$mip_form[''13''][''option_val''][''0''] = $dedi_mod[''value''][''13''];\r\n$mip_form[''13''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''13''][''option_val_select''][''0''] = ''true'';\r\n\r\n// text für link news an erster Stelle einfügen\r\n$mip_form[''14''][''cat''] = ''txt'';\r\n$mip_form[''14''][''type''] = '''';\r\n$mip_form[''14''][''desc''] = ''Bezeichnung für diesen Link'';\r\n$mip_form[''14''][''cms_var''] = ''MOD_VAR[14]'';\r\n$mip_form[''14''][''cms_val''] = $dedi_mod[''value''][''14''];\r\n$mip_form[''14''][''cms_val_default''] = ''Eintrag hinzufügen'';\r\n\r\n\r\n// ***************************** Bild aus dem Modul Bild 1.0 *********************\r\n//Dateitypen\r\n$mip_form[''15''][''desc''] = ''Typen <small>{image:x},{wysiwyg2:x}</small>'';\r\n$mip_form[''15''][''cat''] = ''option'';\r\n$mip_form[''15''][''flag''] = ''multiple'';\r\n$mip_form[''15''][''size''] = ''5'';\r\n$mip_form[''15''][''cms_var''] = ''MOD_VAR[15]'';\r\n$mip_form[''15''][''cms_val''] = $dedi_mod[''value''][''15''];\r\n$mip_form[''15''][''cms_val_default''] = ''true'';\r\n$mip_form[''15''][''option_desc''][''0''] = ''-- alle --'';\r\n$mip_form[''15''][''option_val''][''0''] = ''true'';\r\n$mip_form[''15''][''option_desc''][''1''] = ''*.gif'';\r\n$mip_form[''15''][''option_val''][''1''] = ''gif'';\r\n$mip_form[''15''][''option_desc''][''2''] = ''*.jpg'';\r\n$mip_form[''15''][''option_val''][''2''] = ''jpg'';\r\n$mip_form[''15''][''option_desc''][''3''] = ''*.jpeg'';\r\n$mip_form[''15''][''option_val''][''3''] = ''jpeg'';\r\n$mip_form[''15''][''option_desc''][''4''] = ''*.png'';\r\n$mip_form[''15''][''option_val''][''4''] = ''png'';\r\n\r\n//Ordner\r\n$mip_form[''16''][''desc''] = ''aus Ordner <small>{image:x},{wysiwyg2:x}</small>'';\r\n$mip_form[''16''][''cat''] = ''app_directory'';\r\n$mip_form[''16''][''output_cat''] = ''option'';\r\n$mip_form[''16''][''cms_var''] = ''MOD_VAR[16]'';\r\n$mip_form[''16''][''cms_val''] = $dedi_mod[''value''][''16''];\r\n$mip_form[''16''][''flag''] = ''multiple'';\r\n$mip_form[''16''][''size''] = ''5'';\r\n\r\n//Unterordner anzeigen\r\n$mip_form[''17''][''cat''] = ''option'';\r\n$mip_form[''17''][''desc''] = ''Unterordner anzeigen <small>{image:x},{wysiwyg2:x}</small>'';\r\n$mip_form[''17''][''cms_var''] = ''MOD_VAR[17]'';\r\n$mip_form[''17''][''cms_val''] = $dedi_mod[''value''][''17''];\r\n$mip_form[''17''][''cms_val_default''] = ''true'';\r\n$mip_form[''17''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''17''][''option_val''][''0''] = ''true'';\r\n$mip_form[''17''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''17''][''option_val''][''1''] = ''false'';\r\n$mip_form[''17''][''tab''] = ''0'';\r\n\r\n// ***************************** Wysiyg2 aus dem Modul wysiwyg2 1.1 *********************\r\n\r\n//Dateilinks Ordner\r\n$mip_form[''18''][''desc''] = ''aus Ordner <small>{file:x},{wysiwyg2:x}</small>'';\r\n$mip_form[''18''][''cat''] = ''app_directory'';\r\n$mip_form[''18''][''output_cat''] = ''option'';\r\n$mip_form[''18''][''cms_var''] = ''MOD_VAR[18]'';\r\n$mip_form[''18''][''cms_val''] = $dedi_mod[''value''][''18''];\r\n$mip_form[''18''][''flag''] = ''multiple'';\r\n$mip_form[''18''][''size''] = ''5'';\r\n\r\n//Mit Unterverzeichnissen\r\n$mip_form[''19''][''cat''] = ''option'';\r\n$mip_form[''19''][''type''] = '''';\r\n$mip_form[''19''][''desc''] = ''Unterordner anzeigen <small>{file:x},{wysiwyg2:x}</small>'';\r\n$mip_form[''19''][''cms_var''] = ''MOD_VAR[19]'';\r\n$mip_form[''19''][''cms_val''] = $dedi_mod[''value''][''19''];\r\n$mip_form[''19''][''cms_val_default''] = ''false'';\r\n$mip_form[''19''][''option_desc''][''0''] = ''Nein'';\r\n$mip_form[''19''][''option_val''][''0''] = ''false'';\r\n$mip_form[''19''][''option_desc''][''1''] = ''Ja'';\r\n$mip_form[''19''][''option_val''][''1''] = ''true'';\r\n$mip_form[''19''][''tab''] = ''0'';\r\n\r\n//Dateilinks -typen\r\n$mip_form[''6''][''desc''] = ''Typen <small>{file:x},{wysiwyg2:x}</small>'';\r\n$mip_form[''6''][''cat''] = ''app_filetype'';\r\n$mip_form[''6''][''output_cat''] = ''option'';\r\n$mip_form[''6''][''cms_var''] = ''MOD_VAR[6]'';\r\n$mip_form[''6''][''cms_val''] = $dedi_mod[''value''][''6''];\r\n$mip_form[''6''][''flag''] = ''multiple'';\r\n$mip_form[''6''][''size''] = ''5'';\r\n\r\n//Featureauswahl\r\n$mip_form[''3''][''desc''] = ''Schaltflächen <small>{wysiwyg2:x}</small>'';\r\n$mip_form[''3''][''cat''] = ''option'';\r\n$mip_form[''3''][''flag''] = ''multiple'';\r\n$mip_form[''3''][''size''] = ''7'';\r\n$mip_form[''3''][''option_desc''][] = ''Alle Felder sichtbar'';\r\n$mip_form[''3''][''option_val''][] =  ''true'';\r\n$mip_form[''3''][''option_desc''][] = ''Fonts'';\r\n$mip_form[''3''][''option_val''][] =  ''font'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontgröße'';\r\n$mip_form[''3''][''option_val''][] =  ''fontsize'';\r\n$mip_form[''3''][''option_desc''][] = ''Stylesheets'';\r\n$mip_form[''3''][''option_val''][] =  ''styles'';\r\n$mip_form[''3''][''option_desc''][] = ''Text zurücksetzten'';\r\n$mip_form[''3''][''option_val''][] =  ''reset'';\r\n$mip_form[''3''][''option_desc''][] = ''Vorschau'';\r\n$mip_form[''3''][''option_val''][] =  ''preview'';\r\n$mip_form[''3''][''option_desc''][] = ''Drucken'';\r\n$mip_form[''3''][''option_val''][] =  ''print'';\r\n$mip_form[''3''][''option_desc''][] = ''Zwischenablagefunktionen'';\r\n$mip_form[''3''][''option_val''][] =  ''clipboardtools'';\r\n$mip_form[''3''][''option_desc''][] = ''HTMLtags entfernen'';\r\n$mip_form[''3''][''option_val''][] =  ''striptag'';\r\n$mip_form[''3''][''option_desc''][] = ''Undo/ Redo'';\r\n$mip_form[''3''][''option_val''][] =  ''undo'';\r\n$mip_form[''3''][''option_desc''][] = ''Suchen und Ersetzen'';\r\n$mip_form[''3''][''option_val''][] =  ''search'';\r\n$mip_form[''3''][''option_desc''][] = ''Upper-, Lowercase'';\r\n$mip_form[''3''][''option_val''][] =  ''changecase'';\r\n$mip_form[''3''][''option_desc''][] = ''Umschalten in HTMLansicht'';\r\n$mip_form[''3''][''option_val''][] =  ''changemode'';\r\n$mip_form[''3''][''option_desc''][] = ''Externes Bearbeitungsfenster'';\r\n$mip_form[''3''][''option_val''][] =  ''popupeditor'';\r\n$mip_form[''3''][''option_desc''][] = ''Tabellen'';\r\n$mip_form[''3''][''option_val''][] =  ''table'';\r\n$mip_form[''3''][''option_desc''][] = ''Fett'';\r\n$mip_form[''3''][''option_val''][] =  ''bold'';\r\n$mip_form[''3''][''option_desc''][] = ''Kursiv'';\r\n$mip_form[''3''][''option_val''][] =  ''italic'';\r\n$mip_form[''3''][''option_desc''][] = ''Unterstrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''underline'';\r\n$mip_form[''3''][''option_desc''][] = ''Durchgestrichen'';\r\n$mip_form[''3''][''option_val''][] =  ''strikethrough'';\r\n$mip_form[''3''][''option_desc''][] = ''Tiefgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''subscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Hochgestellt'';\r\n$mip_form[''3''][''option_val''][] =  ''superscript'';\r\n$mip_form[''3''][''option_desc''][] = ''Ausrichtung'';\r\n$mip_form[''3''][''option_val''][] =  ''align'';\r\n$mip_form[''3''][''option_desc''][] = ''Fontfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''fontcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Hintergrundfarbe'';\r\n$mip_form[''3''][''option_val''][] =  ''backgroundcolor'';\r\n$mip_form[''3''][''option_desc''][] = ''Listen'';\r\n$mip_form[''3''][''option_val''][] =  ''list'';\r\n$mip_form[''3''][''option_desc''][] = ''Einrückung'';\r\n$mip_form[''3''][''option_val''][] =  ''indent'';\r\n$mip_form[''3''][''option_desc''][] = ''Links einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''link'';\r\n$mip_form[''3''][''option_desc''][] = ''Bilder einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''image'';\r\n$mip_form[''3''][''option_desc''][] = ''Dateien einfügen'';\r\n$mip_form[''3''][''option_val''][] =  ''file'';\r\n$mip_form[''3''][''option_desc''][] = ''Liveresize'';\r\n$mip_form[''3''][''option_val''][] =  ''liveresize'';\r\n$mip_form[''3''][''option_desc''][] = ''Mehrfachauswahl'';\r\n$mip_form[''3''][''option_val''][] =  ''multipleselect'';\r\n$mip_form[''3''][''option_desc''][] = ''Trennlinie'';\r\n$mip_form[''3''][''option_val''][] =  ''hr'';\r\n$mip_form[''3''][''option_desc''][] = ''Besondere Zeichen'';\r\n$mip_form[''3''][''option_val''][] =  ''specialchars'';\r\n$mip_form[''3''][''option_desc''][] = ''Aktuelles Datum'';\r\n$mip_form[''3''][''option_val''][] =  ''date'';\r\n$mip_form[''3''][''option_desc''][] = ''Lauftexteditor'';\r\n$mip_form[''3''][''option_val''][] =  ''marquee'';\r\n$mip_form[''3''][''cms_var''] = ''MOD_VAR[3]'';\r\n$mip_form[''3''][''cms_val''] = $dedi_mod[''value''][''3''];\r\n$mip_form[''3''][''cms_val_default''] = ''true'';\r\n\r\n//Auswählbare Stylesheets\r\n$mip_form[''4''][''desc''] = ''auswählbare Stylesheets im Texteditor <small>{wysiwyg2:x}</small>'';\r\n$mip_form[''4''][''cat''] = ''app_css'';\r\n$mip_form[''4''][''output_cat''] = ''option'';\r\n$mip_form[''4''][''output_flag''] = ''multiple'';\r\n$mip_form[''4''][''size''] = ''5'';\r\n$mip_form[''4''][''cms_var''] = ''MOD_VAR[4]'';\r\n$mip_form[''4''][''cms_val''] = $dedi_mod[''value''][''4''];\r\n$mip_form[''4''][''flag''] = ''class_only'';\r\n$mip_form[''4''][''return_val''] = ''idcssupl'';\r\n\r\n// ***************************** Dateilink aus dem Modul Daielink 1.0 *********************\r\n\r\n//target verstecken\r\n$mip_form[''27''][''cat''] = ''option'';\r\n$mip_form[''27''][''type''] = '''';\r\n$mip_form[''27''][''desc''] = ''im Bearbeitungsmodus Zielfensterfeld ausblenden <small>{file:x}</small>'';\r\n$mip_form[''27''][''cms_var''] = ''MOD_VAR[27]'';\r\n$mip_form[''27''][''cms_val''] = $dedi_mod[''value''][''27''];\r\n$mip_form[''27''][''cms_val_default''] = ''false'';\r\n$mip_form[''27''][''option_desc''][''0''] = ''Ja'';\r\n$mip_form[''27''][''option_val''][''0''] = ''true'';\r\n$mip_form[''27''][''option_desc''][''1''] = ''Nein'';\r\n$mip_form[''27''][''option_val''][''1''] = ''false'';\r\n$mip_form[''27''][''tab''] = ''0'';\r\n\r\n// ***************************** TITEL **********************\r\n\r\n// Titel für {text:4}\r\n$mip_form[''50''][''cat''] = ''txt'';\r\n$mip_form[''50''][''type''] = '''';\r\n$mip_form[''50''][''desc''] = ''Element {text:4}'';\r\n$mip_form[''50''][''cms_var''] = ''MOD_VAR[50]'';\r\n$mip_form[''50''][''cms_val''] = $dedi_mod[''value''][''50''];\r\n$mip_form[''50''][''cms_val_default''] = ''Textzeile 4'';\r\n\r\n// Titel für {text:5}\r\n$mip_form[''60''][''cat''] = ''txt'';\r\n$mip_form[''60''][''type''] = '''';\r\n$mip_form[''60''][''desc''] = ''Element {text:5}'';\r\n$mip_form[''60''][''cms_var''] = ''MOD_VAR[60]'';\r\n$mip_form[''60''][''cms_val''] = $dedi_mod[''value''][''60''];\r\n$mip_form[''60''][''cms_val_default''] = ''Textzeile 5'';\r\n\r\n// Titel für {text:1}\r\n$mip_form[''20''][''cat''] = ''txt'';\r\n$mip_form[''20''][''type''] = '''';\r\n$mip_form[''20''][''desc''] = ''Element {text:1}'';\r\n$mip_form[''20''][''cms_var''] = ''MOD_VAR[20]'';\r\n$mip_form[''20''][''cms_val''] = $dedi_mod[''value''][''20''];\r\n$mip_form[''20''][''cms_val_default''] = ''Textzeile 1'';\r\n\r\n// Titel für {textarea:1}\r\n$mip_form[''21''][''cat''] = ''txt'';\r\n$mip_form[''21''][''type''] = '''';\r\n$mip_form[''21''][''desc''] = ''Element {textarea:1}'';\r\n$mip_form[''21''][''cms_var''] = ''MOD_VAR[21]'';\r\n$mip_form[''21''][''cms_val''] = $dedi_mod[''value''][''21''];\r\n$mip_form[''21''][''cms_val_default''] = ''Text 1'';\r\n\r\n// Titel für {wysiwyg:1}\r\n$mip_form[''22''][''cat''] = ''txt'';\r\n$mip_form[''22''][''type''] = '''';\r\n$mip_form[''22''][''desc''] = ''Element {wysiwyg:1}'';\r\n$mip_form[''22''][''cms_var''] = ''MOD_VAR[22]'';\r\n$mip_form[''22''][''cms_val''] = $dedi_mod[''value''][''22''];\r\n$mip_form[''22''][''cms_val_default''] = ''Text (formatiert) 1'';\r\n\r\n// Titel für {wysiwyg2:1}\r\n$mip_form[''23''][''cat''] = ''txt'';\r\n$mip_form[''23''][''type''] = '''';\r\n$mip_form[''23''][''desc''] = ''Element {wysiwyg2:1}'';\r\n$mip_form[''23''][''cms_var''] = ''MOD_VAR[23]'';\r\n$mip_form[''23''][''cms_val''] = $dedi_mod[''value''][''23''];\r\n$mip_form[''23''][''cms_val_default''] = ''Text (formatiert) 1'';\r\n\r\n// Titel für {image:1}\r\n$mip_form[''24''][''cat''] = ''txt'';\r\n$mip_form[''24''][''type''] = '''';\r\n$mip_form[''24''][''desc''] = ''Element {image:1}'';\r\n$mip_form[''24''][''cms_var''] = ''MOD_VAR[24]'';\r\n$mip_form[''24''][''cms_val''] = $dedi_mod[''value''][''24''];\r\n$mip_form[''24''][''cms_val_default''] = ''Bild 1'';\r\n\r\n// Titel für {file:1}\r\n$mip_form[''25''][''cat''] = ''txt'';\r\n$mip_form[''25''][''type''] = '''';\r\n$mip_form[''25''][''desc''] = ''Element {file:1}'';\r\n$mip_form[''25''][''cms_var''] = ''MOD_VAR[25]'';\r\n$mip_form[''25''][''cms_val''] = $dedi_mod[''value''][''25''];\r\n$mip_form[''25''][''cms_val_default''] = ''Datei 1'';\r\n\r\n// Titel für {link:1}\r\n$mip_form[''26''][''cat''] = ''txt'';\r\n$mip_form[''26''][''type''] = '''';\r\n$mip_form[''26''][''desc''] = ''Element {link:1}'';\r\n$mip_form[''26''][''cms_var''] = ''MOD_VAR[26]'';\r\n$mip_form[''26''][''cms_val''] = $dedi_mod[''value''][''26''];\r\n$mip_form[''26''][''cms_val_default''] = ''Link 1'';\r\n\r\n// Titel für {text:2}\r\n$mip_form[''30''][''cat''] = ''txt'';\r\n$mip_form[''30''][''type''] = '''';\r\n$mip_form[''30''][''desc''] = ''Element {text:2}'';\r\n$mip_form[''30''][''cms_var''] = ''MOD_VAR[30]'';\r\n$mip_form[''30''][''cms_val''] = $dedi_mod[''value''][''30''];\r\n$mip_form[''30''][''cms_val_default''] = ''Textzeile 2'';\r\n\r\n// Titel für {textarea:2}\r\n$mip_form[''31''][''cat''] = ''txt'';\r\n$mip_form[''31''][''type''] = '''';\r\n$mip_form[''31''][''desc''] = ''Element {textarea:2}'';\r\n$mip_form[''31''][''cms_var''] = ''MOD_VAR[31]'';\r\n$mip_form[''31''][''cms_val''] = $dedi_mod[''value''][''31''];\r\n$mip_form[''31''][''cms_val_default''] = ''Text 2'';\r\n\r\n// Titel für {wysiwyg:2}\r\n$mip_form[''32''][''cat''] = ''txt'';\r\n$mip_form[''32''][''type''] = '''';\r\n$mip_form[''32''][''desc''] = ''Element {wysiwyg:2}'';\r\n$mip_form[''32''][''cms_var''] = ''MOD_VAR[32]'';\r\n$mip_form[''32''][''cms_val''] = $dedi_mod[''value''][''32''];\r\n$mip_form[''32''][''cms_val_default''] = ''Text (formatiert) 2'';\r\n\r\n// Titel für {wysiwyg2:3}\r\n$mip_form[''33''][''cat''] = ''txt'';\r\n$mip_form[''33''][''type''] = '''';\r\n$mip_form[''33''][''desc''] = ''Element {wysiwyg2:2}'';\r\n$mip_form[''33''][''cms_var''] = ''MOD_VAR[33]'';\r\n$mip_form[''33''][''cms_val''] = $dedi_mod[''value''][''33''];\r\n$mip_form[''33''][''cms_val_default''] = ''Text (formatiert) 2'';\r\n\r\n// Titel für {image:2}\r\n$mip_form[''34''][''cat''] = ''txt'';\r\n$mip_form[''34''][''type''] = '''';\r\n$mip_form[''34''][''desc''] = ''Element {image:2}'';\r\n$mip_form[''34''][''cms_var''] = ''MOD_VAR[34]'';\r\n$mip_form[''34''][''cms_val''] = $dedi_mod[''value''][''34''];\r\n$mip_form[''34''][''cms_val_default''] = ''Bild 2'';\r\n\r\n// Titel für {file:2}\r\n$mip_form[''35''][''cat''] = ''txt'';\r\n$mip_form[''35''][''type''] = '''';\r\n$mip_form[''35''][''desc''] = ''Element {file:2}'';\r\n$mip_form[''35''][''cms_var''] = ''MOD_VAR[35]'';\r\n$mip_form[''35''][''cms_val''] = $dedi_mod[''value''][''35''];\r\n$mip_form[''35''][''cms_val_default''] = ''Datei 2'';\r\n\r\n// Titel für {link:2}\r\n$mip_form[''36''][''cat''] = ''txt'';\r\n$mip_form[''36''][''type''] = '''';\r\n$mip_form[''36''][''desc''] = ''Element {link:2}'';\r\n$mip_form[''36''][''cms_var''] = ''MOD_VAR[36]'';\r\n$mip_form[''36''][''cms_val''] = $dedi_mod[''value''][''36''];\r\n$mip_form[''36''][''cms_val_default''] = ''Link 2'';\r\n\r\n// Titel für {text:3}\r\n$mip_form[''40''][''cat''] = ''txt'';\r\n$mip_form[''40''][''type''] = '''';\r\n$mip_form[''40''][''desc''] = ''Element {text:3}'';\r\n$mip_form[''40''][''cms_var''] = ''MOD_VAR[40]'';\r\n$mip_form[''40''][''cms_val''] = $dedi_mod[''value''][''40''];\r\n$mip_form[''40''][''cms_val_default''] = ''Textzeile 3'';\r\n\r\n// Titel für {textarea:3}\r\n$mip_form[''41''][''cat''] = ''txt'';\r\n$mip_form[''41''][''type''] = '''';\r\n$mip_form[''41''][''desc''] = ''Element {textarea:3}'';\r\n$mip_form[''41''][''cms_var''] = ''MOD_VAR[41]'';\r\n$mip_form[''41''][''cms_val''] = $dedi_mod[''value''][''41''];\r\n$mip_form[''41''][''cms_val_default''] = ''Text 3'';\r\n\r\n// Titel für {wysiwyg:3}\r\n$mip_form[''42''][''cat''] = ''txt'';\r\n$mip_form[''42''][''type''] = '''';\r\n$mip_form[''42''][''desc''] = ''Element {wysiwyg:3}'';\r\n$mip_form[''42''][''cms_var''] = ''MOD_VAR[42]'';\r\n$mip_form[''42''][''cms_val''] = $dedi_mod[''value''][''42''];\r\n$mip_form[''42''][''cms_val_default''] = ''Text (formatiert) 3'';\r\n\r\n// Titel für {wysiwyg2:3}\r\n$mip_form[''43''][''cat''] = ''txt'';\r\n$mip_form[''43''][''type''] = '''';\r\n$mip_form[''43''][''desc''] = ''Element {wysiwyg2:3}'';\r\n$mip_form[''43''][''cms_var''] = ''MOD_VAR[43]'';\r\n$mip_form[''43''][''cms_val''] = $dedi_mod[''value''][''43''];\r\n$mip_form[''43''][''cms_val_default''] = ''Text (formatiert) 3'';\r\n\r\n// Titel für {image:3}\r\n$mip_form[''44''][''cat''] = ''txt'';\r\n$mip_form[''44''][''type''] = '''';\r\n$mip_form[''44''][''desc''] = ''Element {image:3}'';\r\n$mip_form[''44''][''cms_var''] = ''MOD_VAR[44]'';\r\n$mip_form[''44''][''cms_val''] = $dedi_mod[''value''][''44''];\r\n$mip_form[''44''][''cms_val_default''] = ''Bild 3'';\r\n\r\n// Titel für {file:3}\r\n$mip_form[''45''][''cat''] = ''txt'';\r\n$mip_form[''45''][''type''] = '''';\r\n$mip_form[''45''][''desc''] = ''Element {file:3}'';\r\n$mip_form[''45''][''cms_var''] = ''MOD_VAR[45]'';\r\n$mip_form[''45''][''cms_val''] = $dedi_mod[''value''][''45''];\r\n$mip_form[''45''][''cms_val_default''] = ''Datei 3'';\r\n\r\n// Titel für {link:3}\r\n$mip_form[''46''][''cat''] = ''txt'';\r\n$mip_form[''46''][''type''] = '''';\r\n$mip_form[''46''][''desc''] = ''Element {link:3}'';\r\n$mip_form[''46''][''cms_var''] = ''MOD_VAR[46]'';\r\n$mip_form[''46''][''cms_val''] = $dedi_mod[''value''][''46''];\r\n$mip_form[''46''][''cms_val_default''] = ''Link 3'';\r\n\r\n$mip_form[''100''][''desc''] = ''<small><strong>Einleitung</strong> (vor allen Einträgen)</small>'';\r\n$mip_form[''100''][''cat''] = ''txtarea'';\r\n$mip_form[''100''][''rows''] = ''3'';\r\n$mip_form[''100''][''type''] = ''long'';\r\n$mip_form[''100''][''cms_var''] = ''MOD_VAR[100]'';\r\n$mip_form[''100''][''cms_val''] = $dedi_mod[''value''][''100''];\r\n$mip_form[''100''][''cms_val_default''] = ''<div style="width:80%;padding:5px;border:1px solid;background-color:#DDD;">\r\n	<strong>\r\n		meine Liste\r\n	</strong>\r\n	<br/>\r\n	<br/>\r\n'';\r\n\r\n$mip_form[''101''][''desc''] = ''<small><strong>Abschluss</strong> (nach allen Einträgen)</small>'';\r\n$mip_form[''101''][''cat''] = ''txtarea'';\r\n$mip_form[''101''][''rows''] = ''3'';\r\n$mip_form[''101''][''type''] = ''long'';\r\n$mip_form[''101''][''cms_var''] = ''MOD_VAR[101]'';\r\n$mip_form[''101''][''cms_val''] = $dedi_mod[''value''][''101''];\r\n$mip_form[''101''][''cms_val_default''] = ''\r\n</div>\r\n'';\r\n\r\n// Nav Positionierung\r\n$mip_form[''102''][''desc''] = ''Seitenschaltung über den Einträgen anzeigen'';\r\n$mip_form[''102''][''cat''] = ''chk'';\r\n$mip_form[''102''][''desc''] = ''Seitenschaltung über den Einträgen anzeigen'';\r\n$mip_form[''102''][''option_var''][''0''] = ''MOD_VAR[102]'';\r\n$mip_form[''102''][''option_val''][''0''] = $dedi_mod[''value''][''102''];\r\n$mip_form[''102''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''102''][''option_val_select''][''0''] = ''true'';\r\n\r\n// Nav Positionierung\r\n$mip_form[''103''][''desc''] = ''Seitenschaltung unter den Einträgen anzeigen'';\r\n$mip_form[''103''][''cat''] = ''chk'';\r\n$mip_form[''103''][''desc''] = ''Seitenschaltung unter den Einträgen anzeigen'';\r\n$mip_form[''103''][''option_var''][''0''] = ''MOD_VAR[103]'';\r\n$mip_form[''103''][''option_val''][''0''] = $dedi_mod[''value''][''103''];\r\n$mip_form[''103''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''103''][''option_val_select''][''0''] = ''true'';\r\n\r\n// vor / zurück auch wenn anfang/ende erreicht\r\n$mip_form[''104''][''desc''] = ''Vor/Zurück auch wenn Anfang/Ende erreicht?'';\r\n$mip_form[''104''][''cat''] = ''chk'';\r\n$mip_form[''104''][''desc''] = ''Bezeichner immer Anzeigen'';\r\n$mip_form[''104''][''option_var''][''0''] = ''MOD_VAR[104]'';\r\n$mip_form[''104''][''option_val''][''0''] = $dedi_mod[''value''][''104''];\r\n$mip_form[''104''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''104''][''option_val_select''][''0''] = ''true'';\r\n\r\n\r\n//Featureauswahl\r\n$mip_form[''105''][''desc''] = ''Formatierung aktuellen Seitenzahl'';\r\n$mip_form[''105''][''cat''] = ''option'';\r\n$mip_form[''105''][''flag''] = ''multiple'';\r\n$mip_form[''105''][''size''] = ''1'';\r\n$mip_form[''105''][''option_desc''][] = ''-- ohne --'';\r\n$mip_form[''105''][''option_val''][] =  ''0'';\r\n$mip_form[''105''][''option_desc''][] = ''fett'';\r\n$mip_form[''105''][''option_val''][] =  ''1'';\r\n$mip_form[''105''][''option_desc''][] = ''unterstrichen'';\r\n$mip_form[''105''][''option_val''][] =  ''2'';\r\n$mip_form[''105''][''option_desc''][] = ''kursiv'';\r\n$mip_form[''105''][''option_val''][] =  ''3'';\r\n$mip_form[''105''][''option_desc''][] = ''durchgestrichen'';\r\n$mip_form[''105''][''option_val''][] =  ''4'';\r\n$mip_form[''105''][''cms_var''] = ''MOD_VAR[105]'';\r\n$mip_form[''105''][''cms_val''] = $dedi_mod[''value''][''105''];\r\n\r\n// Legende \r\n$mip_form[''106''][''cat''] = ''desc'';\r\n$mip_form[''106''][''type''] = '''';\r\n$mip_form[''106''][''desc''] = ''<div style="text-align:right;"><small><strong>Es können folgende Elemente verwendet werden</strong><br/> \r\n{prev}, {page}, {next}</small></div>'';\r\n\r\n// text für weiter\r\n$mip_form[''107''][''cat''] = ''txt'';\r\n$mip_form[''107''][''type''] = '''';\r\n$mip_form[''107''][''desc''] = ''Trennzeichen zwischen den Seitenzahlen'';\r\n$mip_form[''107''][''cms_var''] = ''MOD_VAR[107]'';\r\n$mip_form[''107''][''cms_val''] = $dedi_mod[''value''][''107''];\r\n$mip_form[''107''][''cms_val_default''] = ''&nbsp;|&nbsp;'';\r\n\r\n// text für weiter\r\n$mip_form[''107''][''cat''] = ''txt'';\r\n$mip_form[''107''][''type''] = '''';\r\n$mip_form[''107''][''desc''] = ''Trennzeichen zwischen den Seitenzahlen'';\r\n$mip_form[''107''][''cms_var''] = ''MOD_VAR[107]'';\r\n$mip_form[''107''][''cms_val''] = $dedi_mod[''value''][''107''];\r\n$mip_form[''107''][''cms_val_default''] = ''&nbsp;|&nbsp;'';\r\n\r\n// anzahl der angezeigten seitenzahlen\r\n$mip_form[''108''][''cat''] = ''txt'';\r\n$mip_form[''108''][''type''] = '''';\r\n$mip_form[''108''][''desc''] = ''wieviele Seitenzahlen maximal anzeigen<br/><small>(mind. 3, 0 = keine Beschränkung)</small>'';\r\n$mip_form[''108''][''cms_var''] = ''MOD_VAR[108]'';\r\n$mip_form[''108''][''cms_val''] = $dedi_mod[''value''][''108''];\r\n$mip_form[''108''][''cms_val_default''] = ''10'';\r\n\r\n\r\n$mip_form[''109''][''desc''] = ''Seitenzahlen in Römischen Zahlen'';\r\n$mip_form[''109''][''cat''] = ''chk'';\r\n$mip_form[''109''][''desc''] = ''Römische Zahlen'';\r\n$mip_form[''109''][''option_var''][''0''] = ''MOD_VAR[109]'';\r\n$mip_form[''109''][''option_val''][''0''] = $dedi_mod[''value''][''109''];\r\n$mip_form[''109''][''option_desc''][''0''] = ''ja'';\r\n$mip_form[''109''][''option_val_select''][''0''] = ''true'';\r\n\r\n\r\n// Schriftart 2\r\n$mip_form[''110''][''desc''] = "Style für alle Links der Seitenschaltung";\r\n$mip_form[''110''][''cat''] = ''app_css'';\r\n$mip_form[''110''][''output_cat''] = ''option'';\r\n$mip_form[''110''][''cms_var''] = ''MOD_VAR[110]'';\r\n$mip_form[''110''][''cms_val''] = $dedi_mod[''value''][''110''];\r\n$mip_form[''110''][''flag''] = ''class_only'';\r\n\r\n// text für weiter\r\n$mip_form[''116''][''cat''] = ''txt'';\r\n$mip_form[''116''][''type''] = '''';\r\n$mip_form[''116''][''desc''] = ''Formatierung der Datumsangaben <small>(analog zur PHP-Funktion <em>date</em>)</small>'';\r\n$mip_form[''116''][''cms_var''] = ''MOD_VAR[116]'';\r\n$mip_form[''116''][''cms_val''] = $dedi_mod[''value''][''116''];\r\n$mip_form[''116''][''cms_val_default''] = ''d.m.Y'';\r\n\r\n// text für weiter\r\n$mip_form[''117''][''cat''] = ''txt'';\r\n$mip_form[''117''][''type''] = '''';\r\n$mip_form[''117''][''desc''] = ''Formatierung der Zeitangaben <small>(analog zur PHP-Funktion <em>date</em>)</small>'';\r\n$mip_form[''117''][''cms_var''] = ''MOD_VAR[117]'';\r\n$mip_form[''117''][''cms_val''] = $dedi_mod[''value''][''117''];\r\n$mip_form[''117''][''cms_val_default''] = ''H:i:s'';\r\n\r\n$mip_form[''202''][''cat''] = ''desc'';\r\n$mip_form[''202''][''type''] = '''';\r\n$mip_form[''202''][''desc''] = ''<strong>Seitenschaltung</strong>'';\r\n\r\n$mip_form[''203''][''cat''] = ''desc'';\r\n$mip_form[''203''][''type''] = '''';\r\n$mip_form[''203''][''desc''] = ''<strong>HTML/XHTML</strong>'';\r\n\r\n$mip_form[''204''][''cat''] = ''desc'';\r\n$mip_form[''204''][''type''] = '''';\r\n$mip_form[''204''][''desc''] = ''<small>(Ist diese Option aktiviert, werden, bei erreichen der ersten/letzten Seite,<br />die angegebene Bezeichner für Zurück/Weiter als "inaktiver Link" mit ausgegeben.)</small>'';\r\n\r\n$mip_form[''205''][''cat''] = ''desc'';\r\n$mip_form[''205''][''type''] = '''';\r\n$mip_form[''205''][''desc''] = ''<div style="text-align:right;"><small><strong>Es können folgende Elemente verwendet werden</strong><br/>{currentpage}, {pagestotal}</small></div>'';\r\n\r\n$mip_form[''206''][''cat''] = ''desc'';\r\n$mip_form[''206''][''type''] = '''';\r\n$mip_form[''206''][''desc''] = ''<strong>Bilder</strong>'';\r\n\r\n$mip_form[''207''][''cat''] = ''desc'';\r\n$mip_form[''207''][''type''] = '''';\r\n$mip_form[''207''][''desc''] = ''<strong>Dateien</strong>'';\r\n\r\n$mip_form[''208''][''cat''] = ''desc'';\r\n$mip_form[''208''][''type''] = '''';\r\n$mip_form[''208''][''desc''] = ''<strong>Texteditor</strong>'';\r\n\r\n$mip_form[''209''][''cat''] = ''desc'';\r\n$mip_form[''209''][''type''] = '''';\r\n$mip_form[''209''][''desc''] = ''<strong>Bezeichner</strong>'';\r\n\r\n// <br>\r\n$mip_form[''210''][''cat''] = ''desc'';\r\n$mip_form[''210''][''type''] = '''';\r\n$mip_form[''210''][''desc''] = ''<small><br/></small>'';\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''''){\r\n   foreach ($mip_form[''hide_in_standard_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n//if simple mode\r\nif($dedi_mod[''value''][''0''] == ''advanced''){\r\n   foreach ($mip_form[''hide_in_advanced_mode'']  AS $ke=>$va){\r\n     $mip_form[$va][''cat''] = ''hidden'';\r\n   }\r\n }\r\n\r\n\r\n\r\nmip_formsp($mip_form[''203'']); //  List\r\nmip_formsp($mip_form[''100'']); // html befor entry\r\nmip_formsp($mip_form[''205'']); // html befor entry legene\r\nmip_formsp($mip_form[''8'']); // html entry\r\nmip_formsp($mip_form[''9'']); // legend\r\nmip_formsp($mip_form[''1'']); // Style Beschreibung {font1}\r\nmip_formsp($mip_form[''2'']); // Style Beschreibung {font2}\r\nmip_formsp($mip_form[''116'']); // date format\r\nmip_formsp($mip_form[''117'']); // date format\r\nmip_formsp($mip_form[''101'']); // html after entry\r\nmip_formsp($mip_form[''205'']); // html befor entry legene\r\nmip_formsp($mip_form[''13'']); //Soll ein Link für die Erstellung neuer News an erster Stelle eingefügt werden\r\nmip_formsp($mip_form[''14'']); // text für link news an erster Stelle einfügen\r\nmip_formsp($mip_form[''7'']); //  leerzeile\r\nmip_formsp($mip_form[''202'']); //  page switch\r\nmip_formsp($mip_form[''5'']); // no of entries\r\nmip_formsp($mip_form[''7'']); //  leerzeile\r\nmip_formsp($mip_form[''10'']); // Template Nav\r\nmip_formsp($mip_form[''106'']); // Legende Nav\r\nmip_formsp($mip_form[''102'']); // anfang\r\nmip_formsp($mip_form[''103'']); // ende\r\nmip_formsp($mip_form[''7'']); //  leerzeile\r\nmip_formsp($mip_form[''11'']); // text für weiter\r\nmip_formsp($mip_form[''12'']); // text für zurück\r\nmip_formsp($mip_form[''104'']); // dead links\r\nmip_formsp($mip_form[''204'']); // dead links\r\nmip_formsp($mip_form[''7'']); //  leerzeile\r\nmip_formsp($mip_form[''109'']); // delimiter\r\nmip_formsp($mip_form[''107'']); // delimiter\r\nmip_formsp($mip_form[''108'']); // max page no\r\nmip_formsp($mip_form[''105'']); // format page\r\nmip_formsp($mip_form[''110'']); // format page\r\nmip_formsp($mip_form[''7'']); //  leerzeile\r\n\r\nmip_formsp($mip_form[''210'']); // leerzeile\r\n\r\n//bild und wysiwyg2\r\nmip_formsp($mip_form[''206'']);// title pics\r\nmip_formsp($mip_form[''16'']);//Ordner\r\nmip_formsp($mip_form[''17'']);//Unterordner anzeigen\r\nmip_formsp($mip_form[''15'']);//Dateitypen\r\n\r\nmip_formsp($mip_form[''207'']);// title files\r\nmip_formsp($mip_form[''18'']);//ordener dateilinks\r\nmip_formsp($mip_form[''19'']);//subfolder\r\nmip_formsp($mip_form[''6'']);//dateitypen\r\n// Dateilink\r\nmip_formsp($mip_form[''27'']);//Target verstecken\r\n\r\n// wysiwyg2\r\nmip_formsp($mip_form[''208'']); // title texted\r\nmip_formsp($mip_form[''3'']);//features\r\nmip_formsp($mip_form[''4'']);//auswählbare styles\r\n\r\n\r\n\r\nmip_formsp($mip_form[''209'']); // title labels\r\nmip_formsp($mip_form[''20'']); // Titel für {text:1}\r\nmip_formsp($mip_form[''30'']); // Titel für {text:2}\r\nmip_formsp($mip_form[''40'']); // Titel für {text:3}\r\nmip_formsp($mip_form[''50'']); // Titel für {text:4}\r\nmip_formsp($mip_form[''60'']); // Titel für {text:5}\r\nmip_formsp($mip_form[''21'']); // Titel für {textarea:1}\r\nmip_formsp($mip_form[''31'']); // Titel für {textarea:2}\r\nmip_formsp($mip_form[''41'']); // Titel für {textarea:3}\r\nmip_formsp($mip_form[''22'']); // Titel für {wysiwyg:1}\r\nmip_formsp($mip_form[''32'']); // Titel für {wysiwyg:2}\r\nmip_formsp($mip_form[''42'']); // Titel für {wysiwyg:3}\r\nmip_formsp($mip_form[''23'']); // Titel für {wysiwyg2:1}\r\nmip_formsp($mip_form[''33'']); // Titel für {wysiwyg2:2}\r\nmip_formsp($mip_form[''43'']); // Titel für {wysiwyg2:3}\r\nmip_formsp($mip_form[''24'']); // Titel für {image:1}\r\nmip_formsp($mip_form[''34'']); // Titel für {image:2}\r\nmip_formsp($mip_form[''44'']); // Titel für {image:3}\r\nmip_formsp($mip_form[''26'']); // Titel für {link:1}\r\nmip_formsp($mip_form[''36'']); // Titel für {link:2}\r\nmip_formsp($mip_form[''46'']); // Titel für {link:3}\r\nmip_formsp($mip_form[''25'']); // Titel für {file:2}\r\nmip_formsp($mip_form[''35'']); // Titel für {file:3}\r\nmip_formsp($mip_form[''45'']); // Titel für {file:3}\r\n\r\n}\r\nunset($mip_form);\r\n?>', '<DEDIPHP:CACHE>\r\n// MrList DeDi-MOD-FRONTEND\r\n// Version 2.0.0 build 0325-1\r\n// by mistral / Silverfox / tXz\r\n// thanx to Ted Kappes for Paginator code\r\n\r\nif (!function_exists(''clear_cache'')) {\r\n	function clear_cache () {\r\n		global $mod, $dedi_mod, $con_side, $cfg_dedi,$db, $dedi_db, $idcatside;\r\n\r\n		// Seitenkopien suchen\r\n		$sql = "SELECT idcatside\r\n                 	FROM ".$dedi_db[''side_lang'']." A\r\n                         LEFT JOIN ".$dedi_db[''cat_side'']." B USING(idside)\r\n                         WHERE A.idsidelang=''".$con_side[$idcatside][''idsidelang'']."''";\r\n		$db->query($sql);\r\n		while ($db->next_record()) $list[] = $db->f(''idcatside'');\r\n\r\n		// Status der Seite auf geaendert stellen\r\n		change_code_status($list, ''1'', ''idcatside'');\r\n	}\r\n}\r\n\r\nif(! function_exists(get_edit_string)){\r\nfunction get_edit_string($type_name, $id)\r\n{\r\nswitch($type_name)\r\n{\r\n case ''text'':\r\n  $out = ''1-''.$id.'','';\r\n  break;\r\n case ''textarea'':\r\n  $out = ''3-''.$id.'','';\r\n  break;\r\n case ''wysiwyg'':\r\n  $out = ''2-''.$id.'','';\r\n  break;\r\n case ''wysiwyg2'':\r\n  $out = ''13-''.$id.'','';\r\n  break;\r\n case ''editimage'':\r\n  $out = ''4-''.$id.'',5-''.$id.'','';\r\n  break;\r\n case ''editlink'':\r\n  $out = ''6-''.$id.'',7-''.$id.'',8-''.$id.'','';\r\n  break;\r\n case ''editfile'':\r\n  $out = ''10-''.$id.'',11-''.$id.'',12-''.$id.'','';\r\n  break;  \r\n}\r\n\r\nreturn $out;\r\n}}\r\n\r\nif(! function_exists(get_typegroup)){\r\nfunction get_typegroup($type_name, $id)\r\n{\r\nswitch($type_name)\r\n{\r\n case ''text'':\r\n  $out = ''text[''.$id.'']''.'','';\r\n  break;\r\n case ''textarea'':\r\n  $out = ''textarea[''.$id.'']''.'','';\r\n  break;\r\n case ''wysiwyg'':\r\n  $out = ''wysiwyg[''.$id.'']''.'','';\r\n  break;\r\n case ''wysiwyg2'':\r\n  $out = ''wysiwyg2[''.$id.'']''.'','';\r\n  break;\r\n case ''editimage'':\r\n  $out = ''image[''.$id.'']''.'','';\r\n  break;\r\n case ''editlink'':\r\n  $out = ''link[''.$id.'']''.'','';\r\n  break;\r\n case ''editfile'':\r\n  $out = ''file[''.$id.'']''.'','';\r\n  break;  \r\n\r\n}\r\nreturn $out;\r\n}}\r\n\r\n// Allgemeine Tags definieren\r\n$sql = "SELECT B.username, B.name, B.surname, B.email, A.created, A.lastmodified FROM ".$dedi_db[''content'']." A, ".$dedi_db[''users'']." B WHERE A.idsidelang=".$con_side[$idcatside][''idsidelang'']." AND A.container=".$dedi_mod[''container''][''id'']." AND A.number=".$dedi_mod[''modul''][''id'']." AND A.author=B.user_id";\r\n$db->query($sql);\r\n$db->next_record();\r\n$elements1[''username''] = $db->f(''username'');\r\n$elements1[''name''] = $db->f(''name'');\r\n$elements1[''surname''] = $db->f(''surname'');\r\n$elements1[''email''] = $db->f(''email'');\r\n$elements1[''loginname''] = $db->f(''uname'');\r\n$elements1[''date''] = date(''d.m.Y'',$db->f(''lastmodified''));\r\n$elements1[''date_modified''] = date(''MOD_VALUE[116]'',$db->f(''lastmodified''));\r\n$elements1[''date_created''] = date(''MOD_VALUE[116]'',$db->f(''created''));\r\n$elements1[''time_modified''] = date(''MOD_VALUE[117]'',$db->f(''lastmodified''));\r\n$elements1[''time_created''] = date(''MOD_VALUE[117]'',$db->f(''created''));\r\n$elements1[''font1''] = ''MOD_VALUE[1]'';\r\n$elements1[''font2''] = ''MOD_VALUE[2]'';\r\n\r\n//Tags definieren\r\n// filesize:1\r\n$elements[''filesize:1''] = <dedi:mod type="file" id=1 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:1''] != '''') {\r\n    if (is_file($elements[''filesize:1''])) {\r\n        $elements[''filesize:1''] = filesize($elements[''filesize:1'']);\r\n        if ($elements[''filesize:1''] > 1048576) $elements[''filesize:1''] = sprintf( "%01.2f", $elements[''filesize:1'']/1048576).'' MByte'';\r\n        else $elements[''filesize:1''] = ($elements[''filesize:1''] > 1024) ? sprintf( "%01.2f", $elements[''filesize:1'']/1024).'' KByte'': $elements[''filesize:1''].'' Byte'';\r\n    } else $elements[''filesize:1''] = '''';\r\n}\r\n// filesize:2\r\n$elements[''filesize:2''] = <dedi:mod type="file" id=2 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:2''] != '''') {\r\n    if (is_file($elements[''filesize:2''])) {\r\n        $elements[''filesize:2''] = filesize($elements[''filesize:2'']);\r\n        if ($elements[''filesize:2''] > 1048576) $elements[''filesize:2''] = sprintf( "%01.2f", $elements[''filesize:2'']/1048576).'' MByte'';\r\n        else $elements[''filesize:2''] = ($elements[''filesize:2''] > 1024) ? sprintf( "%01.1f", $elements[''filesize:2'']/1024).'' kByte'': $elements[''filesize:2''].'' Byte'';\r\n    } else $elements[''filesize:2''] = '''';\r\n}\r\n// filesize:3\r\n$elements[''filesize:3''] = <dedi:mod type="file" id=3 addslashes="true" mode="path" menuoptions="false">;\r\nif ($elements[''filesize:3''] != '''') {\r\n    if (is_file($elements[''filesize:3''])) {\r\n        $elements[''filesize:3''] = filesize($elements[''filesize:3'']);\r\n        if ($elements[''filesize:3''] > 1048576) $elements[''filesize:3''] = sprintf( "%01.2f", $elements[''filesize:3'']/1048576).'' MByte'';\r\n        else $elements[''filesize:3''] = ($elements[''filesize:3''] > 1024) ? sprintf( "%01.1f", $elements[''filesize:3'']/1024).'' kByte'': $elements[''filesize:3''].'' Byte'';\r\n    } else $elements[''filesize:3''] = '''';\r\n}\r\n\r\n//Tags definieren\r\n$elements[''fileurl:1'']     = <dedi:mod type="file"  id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''fileurl:2'']     = <dedi:mod type="file"  id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''fileurl:3'']     = <dedi:mod type="file"  id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''filedesc:1'']    = <dedi:mod type="file"  id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''filedesc:2'']    = <dedi:mod type="file"  id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''filedesc:3'']    = <dedi:mod type="file"  id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''file:1'']        = <dedi:mod type="file"  id="1" addslashes="true" menuoptions="false" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]"/>;\r\n$elements[''file:2'']        = <dedi:mod type="file"  id="2" addslashes="true" menuoptions="false" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]"/>;\r\n$elements[''file:3'']        = <dedi:mod type="file"  id="3" addslashes="true" menuoptions="false" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]"/>;\r\n\r\n$elements[''link:1'']        = <dedi:mod type="link" mode="textlink" id="1" addslashes="true" menuoptions="false" />;\r\n$elements[''link:2'']        = <dedi:mod type="link" mode="textlink" id="2" addslashes="true" menuoptions="false" />;\r\n$elements[''link:3'']        = <dedi:mod type="link" mode="textlink" id="3" addslashes="true" menuoptions="false" />;\r\n$elements[''linkurl:1'']     = <dedi:mod type="link"  id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''linkurl:2'']     = <dedi:mod type="link"  id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''linkurl:3'']     = <dedi:mod type="link"  id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''linkdesc:1'']    = <dedi:mod type="link"  id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''linkdesc:2'']    = <dedi:mod type="link"  id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''linkdesc:3'']    = <dedi:mod type="link"  id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''linktarget:1'']  = <dedi:mod type="link"  id="1" addslashes="true" mode="target" menuoptions="false" />;\r\n$elements[''linktarget:2'']  = <dedi:mod type="link"  id="2" addslashes="true" mode="target" menuoptions="false" />;\r\n$elements[''linktarget:3'']  = <dedi:mod type="link"  id="3" addslashes="true" mode="target" menuoptions="false" />;\r\n\r\n$elements[''imageurl:1'']    = <dedi:mod type="image" id="1" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''imageurl:2'']    = <dedi:mod type="image" id="2" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''imageurl:3'']    = <dedi:mod type="image" id="3" addslashes="true" mode="url" menuoptions="false" />;\r\n$elements[''imagewidth:1'']  = <dedi:mod type="image" id="1" addslashes="true" mode="width" menuoptions="false" />;\r\n$elements[''imagewidth:2'']  = <dedi:mod type="image" id="2" addslashes="true" mode="width" menuoptions="false" />;\r\n$elements[''imagewidth:3'']  = <dedi:mod type="image" id="3" addslashes="true" mode="width" menuoptions="false" />;\r\n$elements[''imageheight:1''] = <dedi:mod type="image" id="1" addslashes="true" mode="height" menuoptions="false" />;\r\n$elements[''imageheight:2''] = <dedi:mod type="image" id="2" addslashes="true" mode="height" menuoptions="false" />;\r\n$elements[''imageheight:3''] = <dedi:mod type="image" id="3" addslashes="true" mode="height" menuoptions="false" />;\r\n$elements[''imagedesc:1'']   = <dedi:mod type="image" id="1" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''imagedesc:2'']   = <dedi:mod type="image" id="2" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''imagedesc:3'']   = <dedi:mod type="image" id="3" addslashes="true" mode="desc" menuoptions="false" />;\r\n$elements[''imagethumb:1'']  = <dedi:mod type="image" id="1" addslashes="true" mode="thumb" menuoptions="false" />;\r\n$elements[''imagethumb:2'']  = <dedi:mod type="image" id="2" addslashes="true" mode="thumb" menuoptions="false" />;\r\n$elements[''imagethumb:3'']  = <dedi:mod type="image" id="3" addslashes="true" mode="thumb" menuoptions="false" />;\r\n$elements[''image:1'']       = <dedi:mod type="image"    id="1" title="MOD_VALUE[24]" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''image:2'']       = <dedi:mod type="image"    id="2" title="MOD_VALUE[34]" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''image:3'']       = <dedi:mod type="image"    id="3" title="MOD_VALUE[44]" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n\r\n//Gibt es mehrere Tags, bei denen type und id gleich sind, ist es wichtig, dass das letzt "gleiche" Element alle erweiterten\r\n//Konfigurationsvariablen enthält (z.B. folders, subfolders) . Den nur die Variablen des "letzten" Tags können im Formular\r\n//weiterverarbeitet werden. Andernfalls bleibt z.B. die Auswahl von bestimmten Dateitypen ohne Wirkung.\r\n\r\n$elements[''text:1'']        = <dedi:mod type="text" id="1" title="MOD_VALUE[20]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:2'']        = <dedi:mod type="text" id="2" title="MOD_VALUE[30]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:3'']        = <dedi:mod type="text" id="3" title="MOD_VALUE[40]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:4'']        = <dedi:mod type="text" id="4" title="MOD_VALUE[50]" addslashes="true" menuoptions="false" />;\r\n$elements[''text:5'']        = <dedi:mod type="text" id="5" title="MOD_VALUE[60]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:1'']    = <dedi:mod type="textarea" id="1" title="MOD_VALUE[21]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:2'']    = <dedi:mod type="textarea" id="2" title="MOD_VALUE[31]" addslashes="true" menuoptions="false" />;\r\n$elements[''textarea:3'']    = <dedi:mod type="textarea" id="3" title="MOD_VALUE[41]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:1'']     = <dedi:mod type="wysiwyg"  id="1" title="MOD_VALUE[22]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:2'']     = <dedi:mod type="wysiwyg"  id="2" title="MOD_VALUE[32]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg:3'']     = <dedi:mod type="wysiwyg"  id="3" title="MOD_VALUE[42]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:1'']    = <dedi:mod type="wysiwyg2" id="1" title="MOD_VALUE[23]" features="MOD_VALUE[3]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:2'']    = <dedi:mod type="wysiwyg2" id="2" title="MOD_VALUE[33]" features="MOD_VALUE[3]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n$elements[''wysiwyg2:3'']    = <dedi:mod type="wysiwyg2" id="3" title="MOD_VALUE[43]" features="MOD_VALUE[3]" selectablestyles = "MOD_VALUE[4]" imagefolders = "MOD_VALUE[16]" imagesubfolders ="MOD_VALUE[17]" imagefiletypes = "MOD_VALUE[15]" filefolders = "MOD_VALUE[18]" filesubfolders ="MOD_VALUE[19]" filefiletypes = "MOD_VALUE[6]" addslashes="true" menuoptions="false" />;\r\n\r\n$elements[''editimage:1'']   = <dedi:mod type="image"    id="1" title="MOD_VALUE[24]" mode="editbutton" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''editimage:2'']   = <dedi:mod type="image"    id="2" title="MOD_VALUE[34]" mode="editbutton" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''editimage:3'']   = <dedi:mod type="image"    id="3" title="MOD_VALUE[44]" mode="editbutton" filetypes = "MOD_VALUE[15]" folders = "MOD_VALUE[16]" subfolders ="MOD_VALUE[17]" addslashes="true" menuoptions="false" />;\r\n$elements[''editlink:1'']    = <dedi:mod type="link"     id="1" title="MOD_VALUE[26]" mode="editbutton" addslashes="true" menuoptions="false" />;\r\n$elements[''editlink:2'']    = <dedi:mod type="link"     id="2" title="MOD_VALUE[36]" mode="editbutton" addslashes="true" menuoptions="false" />;\r\n$elements[''editlink:3'']    = <dedi:mod type="link"     id="3" title="MOD_VALUE[46]" mode="editbutton" addslashes="true" menuoptions="false" />;\r\n$elements[''editfile:1'']    = <dedi:mod type="file"     id="1" title="MOD_VALUE[25]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n$elements[''editfile:2'']    = <dedi:mod type="file"     id="2" title="MOD_VALUE[35]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n$elements[''editfile:3'']    = <dedi:mod type="file"     id="3" title="MOD_VALUE[45]" mode="editbutton" hidetarget ="MOD_VALUE[27]" folders = "MOD_VALUE[18]" subfolders ="MOD_VALUE[19]" filetypes = "MOD_VALUE[16]" addslashes="true" menuoptions="false" />;\r\n\r\n// Template\r\n$modv[''tpl_inner''] = ''MOD_VALUE[8]'';\r\n$modv[''tpl_nav'']   = ''MOD_VALUE[10]'';\r\n$modv[''cpageformat''] = ''MOD_VALUE[105]'';\r\n// define current-page format-tags\r\nif ( strpos($modv[''tpl_nav''],''{page}'') )\r\n{\r\n	// format of the current page\r\n	if ( $modv[''cpageformat''] == ''1'' ) {\r\n		$modv[''tagin'']=''<strong>'';\r\n		$modv[''tagout'']=''</strong>'';\r\n	} elseif ( $modv[''cpageformat''] == ''2'' ) {\r\n		$modv[''tagin'']=''<u>'';\r\n		$modv[''tagout'']=''</u>'';\r\n	} elseif ( $modv[''cpageformat''] == ''3'' ) {\r\n		$modv[''tagin'']=''<em>'';\r\n		$modv[''tagout'']=''</em>'';\r\n	} elseif ( $modv[''cpageformat''] == ''4'' ) {\r\n		$modv[''tagin'']=''<strike>'';\r\n		$modv[''tagout'']=''</strike>'';\r\n	} else {\r\n		$modv[''tagin'']='''';\r\n		$modv[''tagout'']='''';\r\n	}\r\n}\r\n// define others \r\n$modv[''maxpagenumbers'']=''MOD_VALUE[108]'';\r\nif ($modv[''maxpagenumbers'']<''3'')\r\n	$modv[''maxpagenumbers'']=3;\r\n$modv[''linkstyle'']   = ''MOD_VALUE[110]'';\r\n\r\n//Editbutton einfügen, wenn ein File-Element vorhanden ist.\r\n$k = substr_count($modv[''tpl_inner''], ''{file:1}'') + substr_count($modv[''tpl_inner''], "{fileurl:1}") + substr_count($modv[''tpl_inner''], "{filedesc:1}") + substr_count($modv[''tpl_inner''], "{filesize:1}");;\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editfile:1}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{file:2}") + substr_count($modv[''tpl_inner''], "{fileurl:2}") + substr_count($modv[''tpl_inner''], "{filedesc:2}") + substr_count($modv[''tpl_inner''], "{filesize:2}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editfile:2}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{file:3}") + substr_count($modv[''tpl_inner''], "{fileurl:3}") + substr_count($modv[''tpl_inner''], "{filedesc:3}") + substr_count($modv[''tpl_inner''], "{filesize:3}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editfile:3}'';};\r\n\r\n$k = substr_count($modv[''tpl_inner''], ''{link:1}'') + substr_count($modv[''tpl_inner''], "{linkurl:1}") + substr_count($modv[''tpl_inner''], "{linkdesc:1}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editlink:1}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{link:2}") + substr_count($modv[''tpl_inner''], "{linkurl:2}") + substr_count($modv[''tpl_inner''], "{linkdesc:2}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editlink:2}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{link:3}") + substr_count($modv[''tpl_inner''], "{linkurl:3}") + substr_count($modv[''tpl_inner''], "{linkdesc:3}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editlink:3}'';};\r\n\r\n$k = substr_count($modv[''tpl_inner''], ''{image:1}'') + substr_count($modv[''tpl_inner''], "{imageurl:1}") + substr_count($modv[''tpl_inner''], "{imagedesc:1}") + substr_count($modv[''tpl_inner''], "{imagewidth:1}") + substr_count($modv[''tpl_inner''], "{imageheight:1}") + substr_count($modv[''tpl_inner''], "{imagethumb:1}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editimage:1}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{image:2}") + substr_count($modv[''tpl_inner''], "{imageurl:2}") + substr_count($modv[''tpl_inner''], "{imagedesc:2}") + substr_count($modv[''tpl_inner''], "{imagewidth:2}") + substr_count($modv[''tpl_inner''], "{imageheight:2}") + substr_count($modv[''tpl_inner''], "{imagethumb:2}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editimage:2}'';};\r\n$k = substr_count($modv[''tpl_inner''], "{image:3}") + substr_count($modv[''tpl_inner''], "{imageurl:3}") + substr_count($modv[''tpl_inner''], "{imagedesc:3}") + substr_count($modv[''tpl_inner''], "{imagewidth:3}") + substr_count($modv[''tpl_inner''], "{imageheight:3}") + substr_count($modv[''tpl_inner''], "{imagethumb:3}");\r\nif ( $k >= 1) {$modv[''tpl_inner''] .= ''{editimage:3}'';};\r\n\r\n// speicher ob es sich um das erste oder um das letzt Modul handelt\r\n$modv[''is_first'']  = ($dedi_mod[''modul''][''id''] == ''1'') ? true:false;\r\n$modv[''is_last'']   = (bool) $dedi_mod[''modul''][''lastentry''];\r\n// ID die wievielte Wiederholung des Modules es ist\r\n$modv[''repeat_id''] = $dedi_mod[''modul''][''id''];\r\n// Anz Einträge pro Seite\r\n$modv[''max_items''] = ''MOD_VALUE[5]'';\r\n// Nummer des 1 Eintrags der auf diese Seite dargestellt werden soll (wird nicht verwendet ???)\r\n$modv[''page''] = (is_numeric($_REQUEST[$dedi_mod[''key''].''page''])) ? 1:$_REQUEST[$dedi_mod[''key''].''page''];\r\n\r\n// Fuer alle Elemente: preg_match_all(''/\\{([^\\}]+)\\}/im'', $modv[''tpl_inner''], $test);\r\n// Fuer alle Elemente mit : und einer Zahl: preg_match_all(''/\\{(([^\\}]+):\\d)\\}/im'', $modv[''tpl_inner''], $test);\r\npreg_match_all(''/\\{(([^\\}]+):\\d)\\}/im'', $modv[''tpl_inner''], $modtemp[''tags'']);\r\n// prevent duplicates in the edit screen\r\n$modtemp[''tags''][1]=array_unique($modtemp[''tags''][1]);\r\n// Link für "an 1. Position einfügen" erstellen\r\n$modv[''new_at_top''] = ''action=new&entry=0&content='' . $dedi_mod[''container''][''id''] . ''.new.'';\r\n$typegroup_conf = '''';\r\nforeach($modtemp[''tags''][1] AS $v){\r\n    $k = split(":",$v);\r\n		$modv[''new_at_top''] .= get_edit_string($k[0],$k[1]);\r\n    $typegroup_conf .= get_typegroup($k[0],$k[1]);\r\n}\r\n\r\n$modv[''new_at_top''] = substr($modv[''new_at_top''], 0, -1);\r\n$typegroup_conf = substr($typegroup_conf, 0, -1);\r\n$modv[''typegroup''] = <dedi:mod type="typegroup" title="$container[$dedi_mod[container][id]][6]" elements="$typegroup_conf" menuoptions="advanced" addslashes="true" />;\r\n\r\n// Template mit den DeDi-Tags ersetzen\r\n\r\n$nothingflag=1;\r\n\r\nforeach($elements AS $k => $v){\r\n	// contents check - if no contents, except an image\r\n	if (! preg_match("/image/i",$k) && !empty($v) && $nothingflag=1)\r\n		$nothingflag=0;\r\n\r\n	$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n// no real contents delete entry contents (bad solution ... later later )\r\nif ($nothingflag==1)\r\n	$modv[''tpl_inner'']='''';\r\n\r\n// Template mit den allgemeinem Inhalt ersetzen\r\nforeach($elements1 AS $k => $v){\r\n$modv[''tpl_inner''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_inner'']);\r\n}\r\n\r\n// NavTemplate mit den allgemeinem Inhalt ersetzen\r\nforeach($elements1 AS $k => $v){\r\n$modv[''tpl_nav''] = str_replace(''{''.$k.''}'', $v, $modv[''tpl_nav'']);\r\n}\r\n\r\n//Alle Variablen, die nur innerhalb des gecachten PHPs sichtbar sind,\r\n//auch für dynamisches PHP zur Verfügung stellen\r\necho ''<DEDIPHP>'';\r\nforeach($modv AS $k => $v)\r\n	echo ''$mvars["''.$k.''"] = "''. addslashes($v) .''";''."\\n";\r\necho ''</DEDIPHP>'';\r\n\r\nclear_cache();\r\nunset($modv, $modtemp, $elements, $elements1, $typegroup_conf, $k, $v);\r\n</DEDIPHP:CACHE>\r\n\r\n<DEDIPHP>\r\n// Fals eine Nummer für den ersten darzustellenden Eintrag übergeben wurde dies in $page speichern\r\nif(isset($page)) \r\n	$page = (! is_numeric($_REQUEST[$dedi_mod[''key''].''page''])) ? 1:$_REQUEST[$dedi_mod[''key''].''page''];\r\nelse\r\n	$page = 1;\r\n\r\n// Fals eine Nummer für die Anzahl darzustellenden Einträge übergeben wurde die Modulvorgabe überschreiben\r\nif(isset($items))\r\n	$mvars[''max_items''] = (! is_numeric($_REQUEST[''items''])) ? 1:$_REQUEST[''items''];\r\n\r\n// collect entries ... it seems that''s impossible to collect the entries in an array ($entriesstring[]=) ... \r\n// so all entry strings will be collected via string+delimiter > later explode()\r\n\r\n// if the first entry is not empty or there are more entries\r\nif ( !empty($mvars[''tpl_inner'']) || $mvars[''repeat_id'']>1 )\r\n{\r\n	if ( strstr( $mvars[''tpl_inner''] ,''{edit}'') )\r\n		{\r\n			$mvars[''tpl_inner''] = str_replace(''{edit}'', $mvars[''typegroup''], $mvars[''tpl_inner'']);\r\n			$entriesstring .= $mvars[''tpl_inner''].chr(7);\r\n		}	else \r\n			$entriesstring .= $mvars[''tpl_inner''].$mvars[''typegroup''].chr(7);\r\n} else {\r\n		$entriesstring .= $mvars[''typegroup''].chr(7);\r\n		$nocontentsflag=1;\r\n}\r\n\r\n	// if the last entry is reached the output will be generated \r\n	if ($mvars[''is_last''])\r\n	{\r\n		if ( strstr( $entriesstring ,''{colswap}'') )\r\n			$colswap=true;\r\n		else\r\n			unset($colswap);	\r\n\r\n			// make an array of the entries\r\n		$entries=explode(chr(7),$entriesstring);\r\n		// get the number of entries\r\n		$mvars["entries"] = count($entries);\r\n		\r\n		// default if no page switch\r\n		$limit1=0;\r\n		$limit2=$mvars["entries"];\r\n		\r\n		// function for number conversion\r\n		if(! function_exists(arab2rom)){\r\n			function arab2rom($input) {\r\n			if ( $input<=0 )\r\n					return "&nbsp;";\r\n			//Römische Zeichen\r\n			$rz = array(\r\n				 1000    => ''M'',\r\n					900    => ''CM'',\r\n					500    => ''D'',\r\n					400    => ''CD'',\r\n					100    => ''C'',\r\n					 90    => ''XC'',\r\n					 50     => ''L'',\r\n					 40     => ''XL'',\r\n					 10     => ''X'',\r\n						9     => ''IX'',\r\n						5      => ''V'',\r\n						4      => ''IV'',\r\n						1      => ''I''\r\n			);\r\n			//Berechnung\r\n			$out = '''';\r\n			foreach ($rz as $wert => $zeichen) {\r\n				 $b = floor($input / $wert);\r\n				 if ($b > 0){\r\n						$out .= str_repeat($zeichen, $b);\r\n				 }\r\n				 $input = $input % $wert;\r\n			}\r\n			return $out;\r\n			}\r\n		}\r\n		\r\n		// navigation if max_items set\r\n		if ($mvars[''max_items'']!=0)\r\n		{	\r\n			// Paginator-class for simple page-calculation\r\n			if(! class_exists(Paginator)){\r\n				class Paginator {\r\n					//all variables are pivate.\r\n					var $previous;	\r\n					var $current;\r\n					var $next;\r\n					var $page;\r\n					var $total_pages;\r\n					var $link_arr;\r\n					var $range1;\r\n					var $range2;\r\n					var $num_rows;\r\n					var $first;\r\n					var $last;\r\n					var $first_of;\r\n					var $second_of;\r\n					var $limit;\r\n					var $prev_next;\r\n					var $base_page_num;\r\n					var $extra_page_num;\r\n					var $total_items;\r\n					var $pagename;\r\n					//Constructor for Paginator.  Takes the current page and the number of items\r\n					//in the source data and sets the current page ($this->page) and the total\r\n					//items in the source ($this->total_items).\r\n					function Paginator($page,$num_rows) \r\n					{ \r\n							if(!$page)\r\n							{\r\n							$this->page=1;\r\n							} else {\r\n							$this->page=$page;\r\n							}\r\n							$this->num_rows=$num_rows;\r\n							$this->total_items = $this->num_rows;\r\n					}\r\n					//Takes  $limit and sets $this->limit. Calls private mehods\r\n					//setBasePage() and setExtraPage() which use $this->limit.\r\n					function set_Limit($limit=5)\r\n					{\r\n							$this->limit = $limit;\r\n							$this->setBasePage();\r\n							$this->setExtraPage();\r\n					}\r\n					//This method creates a number that setExtraPage() uses to if there are\r\n					//and extra pages after limit has divided the total number of pages.\r\n					function setBasePage()\r\n					{\r\n							$div=$this->num_rows/$this->limit;	\r\n							$this->base_page_num=floor($div);\r\n					}\r\n					function setExtraPage()\r\n					{\r\n							$this->extra_page_num=$this->num_rows - ($this->base_page_num*$this->limit);\r\n					}\r\n					//Used in making numbered links.  Sets the number of links behind and \r\n					//ahead of the current page.  For example if there were a possiblity of\r\n					//20 numbered links and this was set to 5 and the current link was 10\r\n					//the result would be this 5 6 7 8 9 10 11 12 13 14 15.\r\n					\r\n					function set_Links($prev_next=5)\r\n					{\r\n							$this->prev_next = $prev_next;\r\n					}\r\n					//method to get the total items.\r\n					function getTotalItems()\r\n					{\r\n					$this->total_items = $this->num_rows;\r\n					return $this->total_items;\r\n					}\r\n					//method to get the base number to use in queries and such.\r\n					function getRange1()\r\n					{\r\n							$this->range1=($this->limit*$this->page)-$this->limit;	\r\n							return $this->range1;\r\n					}\r\n					//method to get the offset.\r\n					function getRange2()\r\n					{\r\n							if($this->page==$this->base_page_num + 1)\r\n							{\r\n							$this->range2=$this->extra_page_num;\r\n							} else { $this->range2=$this->limit;\r\n							}\r\n							return $this->range2;\r\n					}\r\n					//method to get the first of number as in 5 of .\r\n					function getFirstOf()\r\n					{\r\n							$this->first_of=$this->range1 + 1;\r\n							return $this->first_of;\r\n					}\r\n					//method to get the second number in a series as in 5 of 8.\r\n					function getSecondOf()\r\n					{\r\n							if($this->page==$this->base_page_num + 1)\r\n							{\r\n							$this->second_of=$this->range1 + $this->extra_page_num;\r\n							} else { $this->second_of=$this->range1 + $this->limit;\r\n										 }\r\n							return $this->second_of;\r\n					}\r\n					//method to get the total number of pages.\r\n					function getTotalPages()\r\n					{\r\n							if($this->extra_page_num)\r\n							{\r\n							$this->total_pages = $this->base_page_num + 1;\r\n							} else {\r\n							$this->total_pages = $this->base_page_num;\r\n										 }\r\n							return $this->total_pages;\r\n					}\r\n					//method to get the first link number.\r\n					function getFirst()\r\n					{\r\n							$this->first=1;\r\n							return $this->first;\r\n					}\r\n					//method to get the last link number.\r\n					function getLast()\r\n					{\r\n							if($this->page == $this->total_pages)\r\n							{\r\n							$this->last=0;\r\n							}else { $this->last = $this->total_pages;\r\n										}\r\n							return $this->last;  \r\n					}\r\n					function getPrevious()\r\n					{\r\n							if($this->page > 1)\r\n							{\r\n							$this->previous = $this->page - 1;\r\n							}\r\n							return $this->previous;\r\n					}\r\n					//method to get the number of the link previous to the current link.\r\n					function getCurrent()\r\n					{\r\n							$this->current = $this->page;\r\n							return $this->current;\r\n					}\r\n					//method to get the current page name. Is mostly used in links to the next \r\n					//page.\r\n					function getPageName()\r\n					{\r\n							$this->pagename = $_SERVER[''PHP_SELF''];;\r\n							return $this->pagename;\r\n					}\r\n					//method to get the number of the link after the current link.\r\n					function getNext()\r\n					{   \r\n							$this->getTotalPages();\r\n							if($this->total_pages != $this->page)\r\n							{\r\n							$this->next = $this->page + 1;\r\n							}\r\n							return $this->next;\r\n					}\r\n					//method that returns an array of the numbered links that should be \r\n					//displayed.   \r\n					function getLinkArr()\r\n					{\r\n					 //gets the top range   \r\n					 $top = $this->getTotalPages()- $this->getCurrent();\r\n					 if($top <= $this->prev_next)\r\n						 {\r\n						 $top = $top;\r\n						 $top_range = $this->getCurrent() + $top;\r\n						 } else { $top = $this->prev_next; $top_range = $this->getCurrent() + $top; }\r\n						 \r\n						//gets the bottom range\r\n					 $bottom = $this->getCurrent() -1;\r\n					 if($bottom <= $this->prev_next)\r\n						 {\r\n						 $bottom = $bottom;\r\n						 $bottom_range = $this->getCurrent() - $bottom;\r\n						 } else { $bottom = $this->prev_next; $bottom_range = $this->getCurrent() - $bottom; } \r\n			 \r\n						 $j=0;\r\n					 foreach(range($bottom_range, $top_range) as $i)\r\n						 {\r\n						 $this->link_arr[$j] = $i;\r\n						 $j++;\r\n						 }\r\n					 return $this->link_arr;\r\n					}\r\n					\r\n				}//ends Paginator class\r\n			}\r\n			$a =& new Paginator($page,($mvars["entries"]-1));\r\n			//sets the number of records displayed\r\n			//defaults to five			\r\n			$a->set_Limit($mvars[''max_items'']); \r\n			//if using numbered links this will set the number before and behind \r\n			//the current page.\r\n\r\n			$a->set_Links(floor($mvars[''maxpagenumbers'']/2));  \r\n			//gets starting point.\r\n			$limit1 = $a->getRange1();  \r\n			//gets number of items displayed on page.\r\n			$limit2 = $a->getRange2();  \r\n			\r\n			$links = $a->getLinkArr();\r\n			$current=$a->getCurrent();			\r\n\r\n			//prev link - only if prev-tag	\r\n			if ( strpos($mvars[''tpl_nav''],''{prev}'') )\r\n			{\r\n				if($a->getPrevious())\r\n				{\r\n					if (!empty($mvars[''linkstyle'']))\r\n						$mvars[''repl_prev_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$a->getPrevious().''" class="''.$mvars[''linkstyle''].''">MOD_VALUE[12]</a>'';\r\n					else\r\n						$mvars[''repl_prev_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$a->getPrevious().''">MOD_VALUE[12]</a>'';\r\n					\r\n					$mvars[''tpl_nav''] = str_replace(''{prev}'', $mvars[''repl_prev_string''], $mvars[''tpl_nav'']);\r\n				} else {\r\n					// show me if i''m useless or not\r\n					if (''MOD_VALUE[104]'' == ''true'')\r\n					{		\r\n						$mvars[''repl_prev_string''] = ''MOD_VALUE[12]'';\r\n						$mvars[''tpl_nav''] = str_replace(''{prev}'', $mvars[''repl_prev_string''], $mvars[''tpl_nav'']);\r\n					}\r\n					else\r\n						$mvars[''tpl_nav''] = str_replace(''{prev}'', '''', $mvars[''tpl_nav'']);\r\n				}\r\n			}\r\n			\r\n			// next link	- only if next-tag		\r\n			if ( strpos($mvars[''tpl_nav''],''{next}'') )\r\n			{\r\n				if($a->getNext())\r\n				{\r\n					if (!empty($mvars[''linkstyle'']))\r\n							$mvars[''repl_next_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$a->getNext().''" class="''.$mvars[''linkstyle''].''">MOD_VALUE[11]</a>'';\r\n					else\r\n							$mvars[''repl_next_string''] = ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$a->getNext().''">MOD_VALUE[11]</a>'';\r\n\r\n					$mvars[''tpl_nav''] = str_replace(''{next}'', $mvars[''repl_next_string''], $mvars[''tpl_nav'']);\r\n				} else {\r\n					// show me if i''m useless or not\r\n					if (''MOD_VALUE[104]'' == ''true'')\r\n					{		\r\n						$mvars[''repl_next_string''] = ''MOD_VALUE[11]'';\r\n						$mvars[''tpl_nav''] = str_replace(''{next}'', $mvars[''repl_next_string''], $mvars[''tpl_nav'']);\r\n					} else 		\r\n						$mvars[''tpl_nav''] = str_replace(''{next}'', '''', $mvars[''tpl_nav'']);	\r\n				}\r\n			}\r\n			// page rotation\r\n\r\n				\r\n			// gen page number links\r\n			$displayedpages=count($links);\r\n\r\n			$c=0;\r\n			foreach($links as $link)\r\n			{ \r\n				$pagenumber=$link;\r\n				if (''MOD_VALUE[109]''==''true'')\r\n					$pagenumber=arab2rom($pagenumber);\r\n					\r\n				if($link == $current)\r\n				{\r\n					if (!empty($mvars[''linkstyle'']))				\r\n						$mvars[''tpl_nav_pages_string''] .= ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$link.''" class="''.$mvars[''linkstyle''].''">''.$mvars[''tagin''].$pagenumber.$mvars[''tagout''].''</a>'';\r\n					else\r\n						$mvars[''tpl_nav_pages_string''] .= ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$link.''">''.$mvars[''tagin''].$pagenumber.$mvars[''tagout''].''</a>'';\r\n				} else {\r\n					if (!empty($mvars[''linkstyle'']))	\r\n						$mvars[''tpl_nav_pages_string''] .= ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$link.''" class="''.$mvars[''linkstyle''].''">''.$pagenumber.''</a>'';\r\n					else\r\n						$mvars[''tpl_nav_pages_string''] .= ''<a href="''.$con_side[$idcatside][''link''].''&amp;''.$dedi_mod[''key''].''page=''.$link.''">''.$pagenumber.''</a>'';\r\n				}\r\n				\r\n				if ($c<$displayedpages-1)\r\n					$mvars[''tpl_nav_pages_string''] = $mvars[''tpl_nav_pages_string''].''MOD_VALUE[107]'';\r\n\r\n				$c++;\r\n			}				\r\n			$mvars[''tpl_nav''] = str_replace(''{page}'', $mvars[''tpl_nav_pages_string''], $mvars[''tpl_nav'']);	\r\n		\r\n			// number conversion\r\n			if (''MOD_VALUE[109]''==''true'')\r\n			{\r\n				$mvars[''str_currentpage'']=arab2rom($page);\r\n				$mvars[''str_pagestotal'']=arab2rom($a->getTotalPages());\r\n			} else {\r\n				$mvars[''str_currentpage'']=$page;\r\n				$mvars[''str_pagestotal'']=$a->getTotalPages();\r\n			}\r\n		}	\r\n		// the output \r\n\r\n		// nav on top\r\n		if (''MOD_VALUE[102]'' == ''true'' && $mvars[''max_items'']!=0 )\r\n			$allcontents .= $mvars[''tpl_nav''];\r\n		\r\n		// html intro\r\n		if ($nocontentsflag!=1)\r\n		{\r\n			$introstring=str_replace(''{pagestotal}'',$mvars[''str_pagestotal''], ''MOD_VALUE[100]'');\r\n			$introstring=str_replace(''{currentpage}'',$mvars[''str_currentpage''], $introstring);\r\n			$allcontents .= $introstring;\r\n		}\r\n	\r\n		// add new link at the top\r\n		if($dedi_side[''view''] && "MOD_VALUE[13]" == ''true'')\r\n		   $allcontents .= ''<div><a href="''. $con_side[$idcatside][''link''] . ''&amp;'' . $mvars[''new_at_top''] .''">MOD_VALUE[14]</a></div>'';\r\n\r\n		for ($c=$limit1;$c<$limit1 + $limit2;$c++)\r\n		{	// if {colswap} detected\r\n			if ($colswap===true)\r\n			{\r\n				if ( $c%2 )	\r\n					$entries[$c] = str_replace(''{colswap}'', 1, $entries[$c]);\r\n				else\r\n					$entries[$c] = str_replace(''{colswap}'', 0, $entries[$c]);\r\n			}\r\n			\r\n			if (strpos($entries[$c],$thisentry))\r\n				$special=str_replace(''{special}'',''style="background-color:#EAF3FA;margin-bottom:28px;padding-bottom:1px;"'', $entries[$c]);\r\n			 else\r\n				$allentries .=str_replace(''{special}'','''', $entries[$c]);\r\n		}\r\n		\r\n		$allcontents .=$special.$allentries;\r\n		\r\n		// html outro\r\n		if ($nocontentsflag!=1)\r\n		{\r\n			$outrostring=str_replace(''{pagestotal}'',$mvars[''str_pagestotal''], ''MOD_VALUE[101]'');\r\n			$outrostring=str_replace(''{currentpage}'',$mvars[''str_currentpage''], $outrostring);\r\n			$allcontents .= $outrostring;\r\n		}\r\n		\r\n		// nav on bottom\r\n		if (''MOD_VALUE[103]'' == ''true'' && $mvars[''max_items'']!=0)\r\n			$allcontents .= $mvars[''tpl_nav''];\r\n		\r\n		// the end\r\n		echo stripslashes($allcontents);\r\n		unset($allcontents,$allentries,$entriesstring,$colswap,$nocontentsflag,$entries, $outrostring,$introstring,$a,$limit1,$limit2,$links,$current);\r\n	}\r\nunset($mvars);\r\n</DEDIPHP>\r\n', '', 0, 1, 1, 1138463337, 1149816477, 'mod:7869da6d1032076077734d2a4397ab85:d12e0abb', '', '', '', 0, '0', NULL, '1');
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_perms`
#

DROP TABLE IF EXISTS dedi_perms;
CREATE TABLE dedi_perms (
  idperm int(11) NOT NULL auto_increment,
  idgroup int(11) NOT NULL default '0',
  idlang int(11) NOT NULL default '0',
  type varchar(63) NOT NULL default '',
  id varchar(63) NOT NULL default '0',
  perm varchar(63) NOT NULL default '',
  PRIMARY KEY  (idperm),
  KEY idgroup (idgroup),
  KEY idlang (idlang),
  FULLTEXT KEY type (type),
  FULLTEXT KEY id (id)
) TYPE=MyISAM;



#
# Tabellenstruktur für Tabelle `dedi_plug`
#
DROP TABLE IF EXISTS dedi_plug;
CREATE TABLE dedi_plug (
  idplug int(6) NOT NULL auto_increment,
  name varchar(255) NOT NULL default '',
  version varchar(63) default NULL,
  cat varchar(63) default NULL,
  description text,
  config text,
  idclient int(6) unsigned NOT NULL default '0',
  root_name varchar(150) default NULL,
  index_file varchar(50) default NULL,
  deletable tinyint(1) NOT NULL default '1',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  repository_id varchar(255) default NULL,
  source_id int(6) unsigned NOT NULL default '0',
  is_install enum('0','1') NOT NULL default '0',
  verbose varchar(100) default NULL,
  checked enum('1','0') NOT NULL default '0',
  PRIMARY KEY  (idplug)
) TYPE=MyISAM;


#
# Table structure for table 'dedi_repository'
#

DROP TABLE IF EXISTS dedi_repository;
CREATE TABLE dedi_repository (
  idrepository int(6) unsigned NOT NULL auto_increment,
  source int(6) unsigned NOT NULL default '0',
  idclient int(6) NOT NULL default '0',
  type varchar(25) NOT NULL default '',
  value text NOT NULL,
  PRIMARY KEY  (idrepository),
  KEY idclient (idclient)
) TYPE=MyISAM;


#
# Tabellenstruktur für Tabelle `dedi_sessions`
#

DROP TABLE IF EXISTS dedi_sessions;
CREATE TABLE dedi_sessions (
  sid varchar(32) NOT NULL default '',
  name varchar(32) NOT NULL default '',
  val mediumtext,
  changed varchar(14) NOT NULL default '',
  user_id INT(11) NOT NULL,
  PRIMARY KEY  (name,sid),
  KEY changed (changed)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_sessions`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_side`
#

DROP TABLE IF EXISTS dedi_side;
CREATE TABLE dedi_side (
  idside int(6) NOT NULL auto_increment,
  idclient int(6) NOT NULL default '0',
  PRIMARY KEY  (idside),
  KEY idclient (idclient)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_side`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_side_lang`
#

DROP TABLE IF EXISTS dedi_side_lang;
CREATE TABLE dedi_side_lang (
  idsidelang int(6) NOT NULL auto_increment,
  idside int(6) NOT NULL default '0',
  idlang int(6) NOT NULL default '0',
  idtplconf int(6) NOT NULL default '0',
  title varchar(255) NOT NULL default '',
  summary text,
  online tinyint(1) NOT NULL default '0',
  start int(10) NOT NULL default '0',
  end int(10) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  user_protected int(11) default NULL,
  visited int(6) NOT NULL default '0',
  edit_ttl int(11) default '0',
  meta_author varchar(255) NOT NULL default '',
  meta_description varchar(255) NOT NULL default '',
  meta_keywords varchar(255) NOT NULL default '',
  meta_robots varchar(255) NOT NULL default '',
  meta_redirect int(6) NOT NULL default '0',
  meta_redirect_time int(6) NOT NULL default '0',
  meta_redirect_url varchar(255) NOT NULL default '',
  PRIMARY KEY  (idsidelang),
  KEY idside (idside),
  KEY idlang (idlang),
  KEY idtplconf (idtplconf)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_side_lang`
#

# --------------------------------------------------------


#
# Tabellenstruktur für Tabelle `dedi_tpl`
#

DROP TABLE IF EXISTS dedi_tpl;
CREATE TABLE dedi_tpl (
  idtpl int(6) NOT NULL auto_increment,
  name varchar(255) NOT NULL default '',
  description text NOT NULL,
  deletable tinyint(1) NOT NULL default '1',
  idlay int(6) NOT NULL default '0',
  idclient int(6) NOT NULL default '0',
  author int(6) NOT NULL default '0',
  created int(10) NOT NULL default '0',
  lastmodified int(10) NOT NULL default '0',
  PRIMARY KEY  (idtpl),
  KEY idlay (idlay),
  KEY idclient (idclient)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_tpl`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_tpl_conf`
#

DROP TABLE IF EXISTS dedi_tpl_conf;
CREATE TABLE dedi_tpl_conf (
  idtplconf int(6) NOT NULL auto_increment,
  idtpl int(6) NOT NULL default '0',
  PRIMARY KEY  (idtplconf)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_tpl_conf`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_type`
#

DROP TABLE IF EXISTS dedi_type;
CREATE TABLE dedi_type (
  idtype int(6) NOT NULL auto_increment,
  type varchar(63) NOT NULL default '',
  input text NOT NULL,
  output text NOT NULL,
  description varchar(255) NOT NULL default '',
  author varchar(32) NOT NULL default '',
  created datetime NOT NULL default '0000-00-00 00:00:00',
  lastmodified datetime NOT NULL default '0000-00-00 00:00:00',
  PRIMARY KEY  (idtype),
  KEY type (type)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_type`
#

INSERT INTO dedi_type VALUES (1, 'text', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_text($formname, $content, $type_config, $dedi_side);', '', 'Text', 'paul@twomoons.de', '2002-05-13 19:02:34', '2002-05-13 19:02:34');
INSERT INTO dedi_type VALUES (2, 'wysiwyg', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_wysiwyg($formname, $content, $type_config, $dedi_side);', '', 'Text/HTML', 'paul@twomoons.de', '2002-05-13 19:04:13', '2002-05-13 19:04:13');
INSERT INTO dedi_type VALUES (3, 'textarea', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_textarea($formname, $content, $type_config, $dedi_side);', '', 'Textarea', 'paul@twomoons.de', '2002-05-13 19:04:13', '2002-05-13 19:04:13');
INSERT INTO dedi_type VALUES (4, 'image', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_img($formname, $content, $type_config, $dedi_side);', '', 'Bild', 'paul@twomoons.de', '2002-05-13 19:04:21', '2002-05-13 19:04:21');
INSERT INTO dedi_type VALUES (5, 'imgdescr', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_imgdescr($formname, $content, $type_config, $dedi_side);', '', 'Bildbeschreibung', 'paul@twomoons.de', '2002-05-13 19:04:28', '2002-05-13 19:04:28');
INSERT INTO dedi_type VALUES (6, 'link', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_link($formname, $content, $type_config, $dedi_side);', '', 'Linkadresse (URL)', 'paul@twomoons.de', '2002-05-13 19:04:36', '2002-05-13 19:04:36');
INSERT INTO dedi_type VALUES (7, 'linkdescr', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_linkdescr($formname, $content, $type_config, $dedi_side);', '', 'Linkname', 'paul@twomoons.de', '2002-05-13 19:05:00', '2002-05-13 19:05:00');
INSERT INTO dedi_type VALUES (8, 'linktarget', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_linktarget($formname, $content, $type_config, $dedi_side);', '', 'Zielfenster', 'paul@twomoons.de', '2002-05-13 19:04:43', '2002-05-13 19:04:43');
INSERT INTO dedi_type VALUES (9, 'sourcecode', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_sourcecode($formname, $content, $type_config, $dedi_side);', '', 'Sourcecode', 'paul@twomoons.de', '2002-05-13 19:05:00', '2002-05-13 19:05:00');
INSERT INTO dedi_type VALUES (10, 'file', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_file($formname, $content, $type_config, $dedi_side);', '', 'Dateiauswahl', 'bjoern@project-gooseberry.de', '2002-05-13 19:04:36', '2002-05-13 19:04:36');
INSERT INTO dedi_type VALUES (11, 'filedescr', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_filedescr($formname, $content, $type_config, $dedi_side);', '', 'Beschreibung', 'bjoern@project-gooseberry.de', '2003-07-05 15:42:05', '2003-07-05 15:42:05');
INSERT INTO dedi_type VALUES (12, 'filetarget', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_filetarget($formname, $content, $type_config, $dedi_side);', '', 'Zielfenster', 'bjoern@project-gooseberry.de', '2002-05-13 19:04:43', '2002-05-13 19:04:43');
INSERT INTO dedi_type VALUES (13, 'wysiwyg2', '$type_config = $deditag_config[$con_type[$con_contype][\'type\']][$con_typenumber];\r\n$code .= type_form_wysiwyg2($formname, $content, $type_config, $dedi_side);', '', 'Text/HTML', 'bjoern@project-gooseberry.de', '2003-08-03 08:49:37', '2003-08-03 08:49:37');
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_upl`
#

DROP TABLE IF EXISTS dedi_upl;
CREATE TABLE dedi_upl (
  idupl int(6) NOT NULL auto_increment,
  idclient int(6) NOT NULL default '0',
  titel varchar(200) NOT NULL default '',
  filename varchar(255) NOT NULL default '',
  iddirectory int(6) NOT NULL default '0',
  idfiletype int(6) NOT NULL default '0',
  pictwidth int(6) NOT NULL default '0',
  pictheight int(6) NOT NULL default '0',
  pictcolors int(6) NOT NULL default '0',
  pictthumbwidth int(6) NOT NULL default '0',
  pictthumbheight int(6) NOT NULL default '0',
  filesize int(6) NOT NULL default '0',
  used int(6) NOT NULL default '0',
  status int(6) NOT NULL default '0',
  description text NOT NULL,
  author int(6) NOT NULL default '0',
  lastmodified timestamp(14) NOT NULL,
  created timestamp(14) NOT NULL,
  PRIMARY KEY  (idupl),
  KEY titel (titel)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_upl`
#

INSERT INTO dedi_upl VALUES (1, 0, '', 'standard.js', 2, 2, 0, 0, 0, 0, 0, 0, 0, 5, 'Standardfunktionen für Popups und Bild-Mouseover.', 1, 20030525233600, 20030521025623);
INSERT INTO dedi_upl VALUES (2, 0, '', 'inner_scroll.js', 2, 2, 0, 0, 0, 0, 0, 0, 0, 5, 'Ermöglicht Content in einem bestimmten Bereich zu scrollen.', 1, 20030826173915, 20030826173915);
INSERT INTO dedi_upl VALUES (3, 0, '', 'lib.js', 2, 2, 0, 0, 0, 0, 0, 0, 0, 5, 'Eine ziemlich einfache DHTML-Klasse die es vereinfacht Browserübergreifende Scripte zu schreiben.', 1, 20030826173915, 20030826173915);
INSERT INTO dedi_upl VALUES (4, 0, '', 'side_scroll.js', 2, 2, 0, 0, 0, 0, 0, 0, 0, 5, 'Ermöglicht Content über die Seite zu scrollen.', 1, 20030826173915, 20030826173915);
# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_uplcontent`
#

DROP TABLE IF EXISTS dedi_uplcontent;
CREATE TABLE dedi_uplcontent (
  idupl int(6) NOT NULL default '0',
  uplcontent mediumblob,
  PRIMARY KEY  (idupl)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_uplcontent`
#

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_users`
#

DROP TABLE IF EXISTS dedi_users;
CREATE TABLE dedi_users (
  user_id int(11) NOT NULL auto_increment,
  username varchar(32) NOT NULL default '',
  password varchar(32) NOT NULL default '',
  name varchar(255) default NULL,
  surname varchar(255) default NULL,
  email varchar(255) default NULL,
  is_active tinyint(1) NOT NULL default '0',
  is_deletable tinyint(1) NOT NULL default '1',
  position varchar(255) default NULL,
  salutation varchar(32) default NULL,
  street varchar(255) default NULL,
  zip varchar(15) default NULL,
  location varchar(255) default NULL,
  phone varchar(32) default NULL,
  fax varchar(32) default NULL,
  comment varchar(255) default NULL,
  street_alt varchar(255) default NULL,
  state varchar(255) default NULL,
  country varchar(255) default NULL,
  mobile varchar(50) default NULL,
  pager varchar(50) default NULL,
  homepage varchar(255) default NULL,
  birthday varchar(15) default NULL,
  firm varchar(255) default NULL,
  firm_street varchar(255) default NULL,
  firm_street_alt varchar(255) default NULL,
  firm_zip varchar(15) default NULL,
  firm_location varchar(255) default NULL,
  firm_state varchar(255) default NULL,
  firm_country varchar(255) default NULL,
  firm_email varchar(255) default NULL,
  firm_phone varchar(50) default NULL,
  firm_fax varchar(50) default NULL,
  firm_mobile varchar(50) default NULL,
  firm_pager varchar(50) default NULL,
  firm_homepage varchar(255) default NULL,
  PRIMARY KEY  (user_id),
  UNIQUE KEY username (username),
  KEY user_id (user_id)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_users`
#

INSERT INTO dedi_users (user_id, username, password, name, surname, email, is_active, is_deletable, firm, position, salutation, street, zip, location, phone, fax, comment, street_alt, state, country, mobile, pager, homepage, birthday, firm_street, firm_street_alt, firm_zip, firm_location, firm_state, firm_country, firm_email, firm_phone, firm_fax, firm_mobile, firm_pager, firm_homepage) VALUES (1, 'admin', '{adminpass}', 'der', 'dirigent', 'der-dirigent', 1, 0, '', '', '', '', NULL, '', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO dedi_users (user_id, username, password, name, surname, email, is_active, is_deletable, firm, position, salutation, street, zip, location, phone, fax, comment, street_alt, state, country, mobile, pager, homepage, birthday, firm_street, firm_street_alt, firm_zip, firm_location, firm_state, firm_country, firm_email, firm_phone, firm_fax, firm_mobile, firm_pager, firm_homepage) VALUES (2, '', '', 'nobody', 'nobody', 'nobody', 1, 0, '', '', '', '', NULL, '', '', '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_users_groups`
#

DROP TABLE IF EXISTS dedi_users_groups;
CREATE TABLE dedi_users_groups (
  u_g_id int(11) NOT NULL auto_increment,
  user_id int(11) NOT NULL default '0',
  idgroup int(11) NOT NULL default '0',
  PRIMARY KEY  (u_g_id),
  KEY user_id (user_id),
  KEY idgroup (idgroup),
  KEY user_id_2 (user_id),
  KEY idgroup_2 (idgroup)
) TYPE=MyISAM;

#
# Daten für Tabelle `dedi_users_groups`
#

INSERT INTO dedi_users_groups VALUES (1, 1, 2);

# --------------------------------------------------------

#
# Tabellenstruktur für Tabelle `dedi_cache`
DROP TABLE IF EXISTS dedi_db_cache;
CREATE TABLE dedi_db_cache (
  sid varchar(32) NOT NULL default '',
  name varchar(32) NOT NULL default '',
  val mediumtext,
  changed varchar(14) NOT NULL default '',
  clearing varchar(14) default '0',
  groups varchar(32) NOT NULL default '',
  item varchar(25),
  PRIMARY KEY  (name,sid),
  KEY changed (changed)
) TYPE=MyISAM;