// Links iA vom rufenden Script
switch($ecaller)
{
case "JCT":
$css = "../../jazz-club-trier.de/format/jctStyle.css";
break;
case "PMT":
$css = "../../portabile.de/format/PMT_stile_POS.css";
break;
default:
$css = "format/content.css";
break;
}
$NLstore = "../../WRITE/NL_" . $ecaller . "/";
$backto = "/php/tinymce/editor.php?ecaller=$ecaller&SimpleAdvanced=$SimpleAdvanced";
?>
echo "editor.php - SimpleAdvanced = $SimpleAdvanced *** submit = $submit * Submit = $Submit * ecaller = $ecaller * backto = $backto * NLstore = $NLstore
";
// Default Text to be shown
//$inhalt_def = "";
// Advanced / Simple Viewl
if ($SimpleAdvanced == "Simple View" or $SimpleAdvanced == "Advanced View") {
if ($SimpleAdvanced == "Simple View") {
$typ = "simple";
$butt = "Advanced View";
} else {
$typ = "advanced";
$butt = "Simple View";
}
$inhalt_def = $inhalt;
} else {
if ($SimpleAdvanced != "RESET") {
echo "SICHERN WURDE GEDRā¹CKT - nach RESET:
";
if (trim($inhalt == "")) {
$inhalt_def = "Your text window is empty and therefore cannot be saved!
";
} else {
if (stristr($inhalt, "This is some simple") or stristr($inhalt, "cannot be saved")) {
$inhalt_def = "Your text window contains standard text which cannot be saved!
";
} else {
echo "inhalt = $inhalt=== htmlentities: " . htmlentities($inhalt) . "
=== urlencode: " . urlencode($inhalt) . "
";
$inhalt_def = "";
}
}
}
}
if ($SimpleAdvanced == "RESET") { $typ = "advanced"; $butt = "Simple View"; $inhalt_def = ""; }
// Simple/Advanced Buttons
if ($typ == "") { $typ = "advanced"; $butt = "Simple View"; }
?>