# Tabellen reparieren
REPAIR TABLE `dedi_backendmenu`;
REPAIR TABLE `dedi_cat`;
REPAIR TABLE `dedi_cat_expand`;
REPAIR TABLE `dedi_cat_lang`;
REPAIR TABLE `dedi_cat_side`;
REPAIR TABLE `dedi_clients`;
REPAIR TABLE `dedi_clients_lang`;
REPAIR TABLE `dedi_code`;
REPAIR TABLE `dedi_container`;
REPAIR TABLE `dedi_container_conf`;
REPAIR TABLE `dedi_content`;
REPAIR TABLE `dedi_content_external`;
REPAIR TABLE `dedi_css`;
REPAIR TABLE `dedi_css_upl`;
REPAIR TABLE `dedi_directory`;
REPAIR TABLE `dedi_filetype`;
REPAIR TABLE `dedi_groups`;
REPAIR TABLE `dedi_js`;
REPAIR TABLE `dedi_lang`;
REPAIR TABLE `dedi_lay`;
REPAIR TABLE `dedi_lay_upl`;
REPAIR TABLE `dedi_mod`;
REPAIR TABLE `dedi_perms`;
REPAIR TABLE `dedi_sessions`;
REPAIR TABLE `dedi_side`;
REPAIR TABLE `dedi_side_lang`;
REPAIR TABLE `dedi_tpl`;
REPAIR TABLE `dedi_tpl_conf`;
REPAIR TABLE `dedi_type`;
REPAIR TABLE `dedi_upl`;
REPAIR TABLE `dedi_uplcontent`;
REPAIR TABLE `dedi_users`;
REPAIR TABLE `dedi_users_groups`;
REPAIR TABLE `dedi_values`;

# 09.06.2006 set new versionnumber - fourth bugfix-version for dedi 1.0
UPDATE dedi_values  SET value =  '01.00.04' WHERE group_name =  'cfg' AND key1 =  'version';
ALTER TABLE dedi_db_cache CHANGE `release` `clearing` VARCHAR(14) NULL DEFAULT '0';

# 09.06.2006 Module im Modulpool auf folgende Versionen geupdated:
# Categorywalker - v1.06
# Pic-Galerie - v3.6
# Kontaktformular - v1.1.0
# Listen-Navigation - v0.9.6
# Login - v1.3.3

UPDATE `dedi_mod` SET `name` = 'Categorywalker', `version` = '1.06', `cat` = 'Contentliste', `description` = '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.', `input` = '<?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?>', `output` = '<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>', `config` = '', `idclient` = 0, `deletable` = 1, `author` = 1, `created` = 1081364244, `lastmodified` = 1149815462, `repository_id` = 'mod:9cea6c56aa7b6294ad3b3e44a1ad7ac4:e6ead067', `install_sql` = '', `uninstall_sql` = '', `update_sql` = '', `source_id` = 0, `is_install` = '0', `verbose` = '', `checked` = '1' WHERE `repository_id` LIKE 'mod:9cea6c56aa7b6294ad3b3e44a1ad7ac4:%' AND `idclient` = 0;
UPDATE `dedi_mod` SET `name` = 'Pic-Galerie', `version` = '3.6', `cat` = 'Content', `description` = 'Galerie mit allen Bildern eines Verzeichnisses, integrierter Slideshow.\r\nnur mit GD : Wasserzeichen, quadratische ThumbNails ', `input` = '<?\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?>', `output` = '<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>', `config` = '', `idclient` = 0, `deletable` = 1, `author` = 1, `created` = 1069928216, `lastmodified` = 1149815621, `repository_id` = 'mod:844f16bb5bb7c43344209685afeccea4:70e2f404', `install_sql` = '', `uninstall_sql` = '', `update_sql` = '', `source_id` = 0, `is_install` = '0', `verbose` = 'Pic-Galerie', `checked` = '1' WHERE `repository_id` LIKE 'mod:844f16bb5bb7c43344209685afeccea4:%' AND `idclient` = 0;
UPDATE `dedi_mod` SET `name` = 'Kontaktformular', `version` = '1.1.0', `cat` = 'Interaktion', `description` = 'Realisiert ein Kontaktformular mit beliebig vielen Feldern und Leerzeilen. (mit Formular-Spam-Schutz, XHTML-konform)', `input` = '<?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?>', `output` = '<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>', `config` = '', `idclient` = 0, `deletable` = 1, `author` = 1, `created` = 1099827904, `lastmodified` = 1149815792, `repository_id` = 'mod:c7ec67c74104a45bde479c5d666bdc75:eaa9994a', `install_sql` = '', `uninstall_sql` = '', `update_sql` = '', `source_id` = 0, `is_install` = '0', `verbose` = 'Kontaktformular', `checked` = '1' WHERE `repository_id` LIKE 'mod:c7ec67c74104a45bde479c5d666bdc75:%' AND `idclient` = 0;
UPDATE `dedi_mod` SET `idmod` = 47, `name` = 'Listen-Navigation', `version` = '0.9.6', `cat` = 'Navigation', `description` = '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.', `input` = '<?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?>', `output` = '<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>', `config` = '', `idclient` = 0, `deletable` = 1, `author` = 1, `created` = 1095300905, `lastmodified` = 1149815921, `repository_id` = 'mod:cc080bc8e2dbf4cdb277a68dbbad8561:78c0074d', `install_sql` = '', `uninstall_sql` = '', `update_sql` = '', `source_id` = 0, `is_install` = '0', `verbose` = 'Listen-Navigation', `checked` = '1' WHERE `repository_id` LIKE 'mod:cc080bc8e2dbf4cdb277a68dbbad8561:%' AND `idclient` = 0;
UPDATE `dedi_mod` SET `idmod` = 45, `name` = 'Login', `version` = '1.3.3', `cat` = 'System', `description` = 'Login/out-Formular für die geschützten Bereiche.', `input` = '<?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?>', `output` = '<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>', `config` = '', `idclient` = 0, `deletable` = 1, `author` = 1, `created` = 1102113536, `lastmodified` = 1149816403, `repository_id` = 'mod:d56b699830e77ba53855679cb1d252da:2e7b2e6e', `install_sql` = '', `uninstall_sql` = '', `update_sql` = '', `source_id` = 0, `is_install` = '0', `verbose` = 'Login', `checked` = '1' WHERE `repository_id` LIKE 'mod:d56b699830e77ba53855679cb1d252da:%' AND `idclient` = 0;

# Alten Code entfernen und Tabellen optimieren
DELETE FROM dedi_code;
DELETE FROM dedi_db_cache;
OPTIMIZE TABLE `dedi_backendmenu`;
OPTIMIZE TABLE `dedi_cat`;
OPTIMIZE TABLE `dedi_cat_expand`;
OPTIMIZE TABLE `dedi_cat_lang`;
OPTIMIZE TABLE `dedi_cat_side`;
OPTIMIZE TABLE `dedi_clients`;
OPTIMIZE TABLE `dedi_clients_lang`;
OPTIMIZE TABLE `dedi_code`;
OPTIMIZE TABLE `dedi_container`;
OPTIMIZE TABLE `dedi_container_conf`;
OPTIMIZE TABLE `dedi_content`;
OPTIMIZE TABLE `dedi_content_external`;
OPTIMIZE TABLE `dedi_css`;
OPTIMIZE TABLE `dedi_css_upl`;
OPTIMIZE TABLE `dedi_directory`;
OPTIMIZE TABLE `dedi_filetype`;
OPTIMIZE TABLE `dedi_groups`;
OPTIMIZE TABLE `dedi_js`;
OPTIMIZE TABLE `dedi_lang`;
OPTIMIZE TABLE `dedi_lay`;
OPTIMIZE TABLE `dedi_lay_upl`;
OPTIMIZE TABLE `dedi_mod`;
OPTIMIZE TABLE `dedi_perms`;
OPTIMIZE TABLE `dedi_sessions`;
OPTIMIZE TABLE `dedi_side`;
OPTIMIZE TABLE `dedi_side_lang`;
OPTIMIZE TABLE `dedi_tpl`;
OPTIMIZE TABLE `dedi_tpl_conf`;
OPTIMIZE TABLE `dedi_type`;
OPTIMIZE TABLE `dedi_upl`;
OPTIMIZE TABLE `dedi_uplcontent`;
OPTIMIZE TABLE `dedi_users`;
OPTIMIZE TABLE `dedi_users_groups`;
OPTIMIZE TABLE `dedi_values`;
OPTIMIZE TABLE `dedi_db_cache`;