spaw_control.config.php statt:
Code: Alles auswählen
if ($styles == false)
{
$spaw_dropdown_data['style']['default'] = 'Normal';
$spaw_dropdown_data['style']['style1'] = 'Style No1';
$spaw_dropdown_data['style']['style2'] = 'Style No2';
} else {
$styles = explode(";",urldecode($styles));
if (is_array($styles))
{
foreach ($styles as $style) // if there are more values
{
$spaw_dropdown_data['style'][$style] = $style;
}
} else {
$spaw_dropdown_data['style'][$styles] = $styles; // for one value
}
}
Code: Alles auswählen
$css_stylesheet = getEffectiveSetting("wysiwyg","spaw-stylesheet-file");
if ($css_stylesheet == false)
{
$css_stylesheet = "";
} else {
$css_stylesheet = $cfgClient[$client]["htmlpath"]["frontend"].$css_stylesheet;
}
$styles = getEffectiveSetting("wysiwyg","spaw-styles");
if ($css_stylesheet != "") // get styles from defined stylesheet file
{
$styles = file ($css_stylesheet);
if ($styles) {
foreach ($styles as $style) {
if (preg_match("/\.([^\s:,{]*)/i", $style, $style_result)) {
// matches all .class in stylesheet, double entries are not possible
$spaw_dropdown_data['style'][trim($style_result[1])] = trim($style_result[1]);
}
}
asort($spaw_dropdown_data['style']); // sort styles alphabetically
} else {
// stylesheet does not exist
}
} else if ($styles != false) // check if any styles are defined
{
if (is_array($styles))
{
foreach ($styles as $style) // if there are more values
{
$spaw_dropdown_data['style'][$style] = $style;
}
} else {
$spaw_dropdown_data['style'][$styles] = $styles; // for one value
}
} else { //default settings
$spaw_dropdown_data['style']['default'] = 'Normal';
$spaw_dropdown_data['style']['style1'] = 'Style No1';
$spaw_dropdown_data['style']['style2'] = 'Style No2';
}
plötzlich werden im drop-down-menü die .classes nicht mehr angezeigt,
das errorlog meldet:
der pfad zum styesheet ist definitiv richtig, die formatierung, wenn über html eingegeben, wird richtig angezeigt, auch ein editieren des stylesheets über contenido ist möglich.[18-Okt-2004 19:57:34] PHP Warning: file(http://www.two4u.at/cms/bbv/): failed to open stream: no suitable wrapper could be found in [...]/contenido/external/wysiwyg/spaw/config/spaw_control.config.php on line 102
[18-Okt-2004 19:57:34] PHP Warning: file(): URL file-access is disabled in the server configuration in [...]/contenido/external/wysiwyg/spaw/config/spaw_control.config.php on line 102
gestern gings noch - wieso kann spaw heute plötzlich nicht mehr zugreifen???
verzweifelt
oma