source: extensions/FCKEditor/update_config.php @ 15185

Last change on this file since 15185 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
3define('PHPWG_ROOT_PATH', '../../');
4include_once(PHPWG_ROOT_PATH . 'include/common.inc.php');
5check_status(ACCESS_ADMINISTRATOR);
6
7$possible_values = array('on', 'off');
8
9if (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 = '
19UPDATE ' . CONFIG_TABLE . '
20SET value = "' . addslashes(serialize($config)) . '"
21WHERE param="FCKEditor"
22LIMIT 1';
23  pwg_query($query);
24}
25
26?>
Note: See TracBrowser for help on using the repository browser.