Last change
on this file since 22118 was
4629,
checked in by patdenice, 15 years ago
|
[Plugin][FCK Editor]
Update to CKEditor v3.0.2
Add simple WYSIWYG editor to category edition, picture edition, NBM.
Still available for Additional Pages and PWG Stuffs.
|
File size:
593 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | define('PHPWG_ROOT_PATH', '../../'); |
---|
4 | include_once(PHPWG_ROOT_PATH . 'include/common.inc.php'); |
---|
5 | check_status(ACCESS_ADMINISTRATOR); |
---|
6 | |
---|
7 | $possible_values = array('on', 'off'); |
---|
8 | |
---|
9 | if (isset($_POST['area']) and isset($_POST['status']) and in_array($_POST['status'], $possible_values)) |
---|
10 | { |
---|
11 | if (!($config = unserialize($conf['FCKEditor']))) |
---|
12 | { |
---|
13 | $config = array(); |
---|
14 | } |
---|
15 | |
---|
16 | $config[$_POST['area']] = $_POST['status'] == 'on' ? true : false; |
---|
17 | |
---|
18 | $query = ' |
---|
19 | UPDATE ' . CONFIG_TABLE . ' |
---|
20 | SET value = "' . addslashes(serialize($config)) . '" |
---|
21 | WHERE param="FCKEditor" |
---|
22 | LIMIT 1'; |
---|
23 | pwg_query($query); |
---|
24 | } |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.