Sourcecode
Content
1.0
1
1066927900
1085515721
1
HTML- Quelltexteditor
<?PHP
//configmode
$mip_form['13']['desc'] = 'Konfigurationsmodus';
$mip_form['13']['cat'] = 'option';
$mip_form['13']['size'] = '1';
$mip_form['13']['option_desc'][] = 'Normal';
$mip_form['13']['option_val'][] = '';
$mip_form['13']['option_desc'][] = 'Erweitert';
$mip_form['13']['option_val'][] = 'advanced';
$mip_form['13']['option_desc'][] = 'Ausgeblendet';
$mip_form['13']['option_val'][] = 'hidden';
$mip_form['13']['cms_var'] = 'MOD_VAR[13]';
$mip_form['13']['cms_val'] = $dedi_mod['value']['13'];
$mip_form['13']['flag'] = 'reload';
mip_formsp($mip_form['13']);//configmode
$mip_form['hide_in_standard_mode'] = array(0,1);
//hidden config
if($dedi_mod['value']['13'] == 'hidden'){
foreach($dedi_mod['value'] AS $ke=>$va){
if($ke != '13'){
?>
<input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>">
<?php
}
}
}
//simple and advanced config
else if($dedi_mod['value']['13'] == '' || $dedi_mod['value']['13'] == 'advanced'){
//Formularname
$mip_form['0']['cat'] = 'txt';
$mip_form['0']['type'] = '';
$mip_form['0']['desc'] = 'Formularfeldname';
$mip_form['0']['cms_var'] = 'MOD_VAR[0]';
$mip_form['0']['cms_val'] = $dedi_mod['value']['0'];
$mip_form['0']['cms_val_default'] = 'Quelltext';
$mip_form['0']['tab'] = '0';
//Erweitertes Bearbeitungsmenü
$mip_form['1']['cat'] = 'radio';
$mip_form['1']['type'] = '';
$mip_form['1']['desc'] = 'Bearbeitungsmenü<br>
<small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b>
bietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der
Content nicht editierbar.</small>';
$mip_form['1']['cms_var'] = 'MOD_VAR[1]';
$mip_form['1']['cms_val'] = $dedi_mod['value']['1'];
$mip_form['1']['cms_val_default'] = 'true';
$mip_form['1']['option_desc']['0'] = 'Normales Menü';
$mip_form['1']['option_val']['0'] = 'true';
$mip_form['1']['option_desc']['1'] = 'Erweitertes Menü';
$mip_form['1']['option_val']['1'] = 'advanced';
$mip_form['1']['option_desc']['2'] = 'Kein Menü';
$mip_form['1']['option_val']['2'] = 'false';
$mip_form['1']['tab'] = '0';
// Template
$mip_form['2']['desc'] = 'Template';
$mip_form['2']['cat'] = 'txtarea';
$mip_form['2']['rows'] = '6';
$mip_form['2']['type'] = 'long';
$mip_form['2']['cms_var'] = 'MOD_VAR[2]';
$mip_form['2']['cms_val'] = $dedi_mod['value']['2'];
$mip_form['2']['cms_val_default'] = '{sourcecode}';
//if simple mode
if($dedi_mod['value']['13'] == ''){
foreach ($mip_form['hide_in_standard_mode'] AS $ke=>$va){
$mip_form[$va]['cat'] = 'hidden';
}
}
mip_formsp($mip_form['0']);
mip_formsp($mip_form['1']);
mip_formsp($mip_form['2']);
echo ' <small><b>Legende:</b><br>
Quelltexteditor: {sourcecode}<br>
Php-Code: <?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn<br>
es eine Änderung auf der Seite gegeben hat"; ?><br>
<DEDIPHP> echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";</DEDIPHP><br>
</small>';
}
unset($mip_form);
?>
mod:99e4c8121cd7d4b0d4c6f388df4e4c82:65b09a4c