source: extensions/FCKEditor/update_config.php @ 9484

Revision 4629, 593 bytes checked in by patdenice, 10 years ago (diff)

[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.

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.