| version 1.3, 2005/11/26 23:48:48 |
version 1.4, 2006/01/16 13:25:31 |
| Line 20 $ezin_opts['url'] = array('images' => 'i |
|
| Line 20 $ezin_opts['url'] = array('images' => 'i |
|
| $ezin_opts['sort_field'] = array('-datetime', '-id'); |
$ezin_opts['sort_field'] = array('-datetime', '-id'); |
| $ezin_opts['language'] = 'EN'; |
$ezin_opts['language'] = 'EN'; |
| |
|
| |
// Buttons |
| |
|
| |
$ezin_opts['buttons']['C']['up'] = array('save','more','cancel', |
| |
array('name' => 'wordclean', 'value' => 'Word clean', 'css' => 'pme-wordclean', 'disabled' => false)); |
| |
$ezin_opts['buttons']['C']['down'] = $ezin_opts['buttons']['C']['up']; |
| |
|
| // Triggers |
// Triggers |
| |
|
| $ezin_opts['triggers']['insert']['before'][] = 'inc-db/triggers/word-count.trigger'; |
$ezin_opts['triggers']['insert']['before'][] = 'inc-db/triggers/word-count.trigger'; |
| Line 221 if (! ezin_admin_check_list_privileges($ |
|
| Line 227 if (! ezin_admin_check_list_privileges($ |
|
| } */ |
} */ |
| |
|
| require_once 'phpMyEdit/phpMyEdit.class.php'; |
require_once 'phpMyEdit/phpMyEdit.class.php'; |
| new phpMyEdit($ezin_opts); |
$ezin_opts['execute'] = 0; |
| |
$phpMyEdit = new phpMyEdit($ezin_opts); |
| |
if ($phpMyEdit->get_sys_cgi_var('wordclean')) { |
| |
$content = $phpMyEdit->get_data_cgi_var('bodytext'); |
| |
$content = ezin_admin_word_clean($content); |
| |
$phpMyEdit->myQuery(sprintf('UPDATE %s SET bodytext = "%s" WHERE id = %d', |
| |
$ezin_opts['tb'], addslashes($content), $phpMyEdit->rec)); |
| |
$phpMyEdit->operation = $phpMyEdit->labels['Change']; |
| |
$phpMyEdit->recreate_fdd(); |
| |
$phpMyEdit->recreate_displayed(); |
| |
$phpMyEdit->backward_compatibility(); |
| |
} |
| |
|
| |
$phpMyEdit->execute(); |
| } |
} |
| |
|
| ?> |
?> |