To jeszcze raz ja.
Pomocy!
Trochę tego będzie:
Znalazłam SPAW PHP WYSIWYG, w którym można wybrać język. (
z Tąd
Wypakowane pliki wrzuciłam do katalogu: C:\usr\krasnal\www\nissan6\nissan2\ed
W dokumentacji jest napisane tak:
Installation
Unzip the contents of the distribution to some location on your computer. If the location is not a place you intend to run the control from, upload the spaw directory to the location under your web sites root. As of final version 1.0 of the control you'll need to rename the file spaw_control.default.config.php in config sub-directory to spaw_control.config.php when installing control for the first time. This is done to prevent accidental overwriting of the config file when upgrading from one version to another. If you installed the control to the root of your web site you should be able to run demo.php script from scripts directory.
Z tego, co zrozumiałam ( a przyznam, że angielski nie jest moją mocną stroną) to zrobiłam tak:
1) w katalogu ed\config zmieniłam nazwe pliku spaw_control.default.config.php na spaw_control.config.php
2) w tym że pliku zmieniłam następujące rzeczy: $spaw_dir, $spaw_base_url, $spaw_default_lang
[php]<?php
$spaw_dir = '/
ed/';
// base url for images
$spaw_base_url =
'http://127.0.0.1/~nissan6/nissan2/';
if (!ereg('/$', $HTTP_SERVER_VARS['DOCUMENT_ROOT']))
$spaw_root = $HTTP_SERVER_VARS['DOCUMENT_ROOT'].$spaw_dir;
else
$spaw_root = $HTTP_SERVER_VARS['DOCUMENT_ROOT'].substr($spaw_dir,1,strlen($spaw_dir)-1);
$spaw_default_toolbars = 'default';
$spaw_default_theme = 'default';
$spaw_default_lang = '
pl';
$spaw_default_css_stylesheet = $spaw_dir.'wysiwyg.css';
?>[/php]
3) utworzyłam plik index.php:
[php]<?php
include("config.php");
if(isset($_POST['news_tresc']))
{
$upd = mysql_query("UPDATE news SET tresc='".$_POST['news_tresc']."'");
}
require("./spaw_control.class.php");
$sqll = mysql_query("SELECT * FROM news LIMIT 0, 1");
$roww = mysql_fetch_array($sqll);
echo "<form method=\"post\">\n";
$sw = new SPAW_Wysiwyg('news_tresc' /*name*/,stripslashes($roww['tresc']) /*value*/,
'pl' /*language*/, 'standard' /*toolbar mode*/, '' /*theme*/,
'100%' /*width*/, '550px' /*height*/);
$sw->show();
echo"<br />\n";
echo "<div align=\"center\"><input type=\"submit\" value=\"Zapisz zmiany\" /></div>\n";
echo "</form>\n";
?>[/php]
niestety jak go uruchamiam to wyskakują mi błędy:
Warning: main(c:/usr/apache/httpd/html/ed/class/util.class.php): failed to open stream: No such file or directory in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 18
Warning: main(): Failed opening 'c:/usr/apache/httpd/html/ed/class/util.class.php' for inclusion (include_path='.') in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 18
Warning: main(c:/usr/apache/httpd/html/ed/class/toolbars.class.php): failed to open stream: No such file or directory in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 19
Warning: main(): Failed opening 'c:/usr/apache/httpd/html/ed/class/toolbars.class.php' for inclusion (include_path='.') in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 19
Warning: main(c:/usr/apache/httpd/html/ed/class/lang.class.php): failed to open stream: No such file or directory in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 20
Warning: main(): Failed opening 'c:/usr/apache/httpd/html/ed/class/lang.class.php' for inclusion (include_path='.') in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 20
Fatal error: Cannot instantiate non-existent class: spaw_lang in c:\usr\krasnal\www\nissan6\nissan2\ed\spaw_control.class.php on line 166
Co robię nie tak? Czy ktoś już może wie jak to ustawić, by to działało?
?>[/php]