| 50 |
var $editor_plugin_timeformat=null; |
var $editor_plugin_timeformat=null; |
| 51 |
var $editor_plugin_emotions_acl=null; |
var $editor_plugin_emotions_acl=null; |
| 52 |
var $editor_plugin_print=null; |
var $editor_plugin_print=null; |
|
var $editor_plugin_imgmanager=null; |
|
|
var $editor_plugin_filemanager=null; |
|
| 53 |
var $editor_plugin_searchreplace=null; |
var $editor_plugin_searchreplace=null; |
| 54 |
var $editor_plugin_flash_acl=null; |
var $editor_plugin_flash_acl=null; |
| 55 |
var $editor_plugin_table_acl=null; |
var $editor_plugin_table_acl=null; |
| 60 |
var $editor_onclick_elms=null; |
var $editor_onclick_elms=null; |
| 61 |
var $editor_tmpl_dir=null; |
var $editor_tmpl_dir=null; |
| 62 |
|
|
|
//Plugin Specific - Image Manager |
|
|
var $editor_im_base_dir=null; |
|
|
var $editor_im_base_url=null; |
|
|
var $editor_im_image_class=null; |
|
|
var $editor_im_class_path=null; |
|
|
var $editor_im_thumb_size=null; |
|
|
var $editor_im_max_value=null; |
|
|
var $editor_im_thumb_prefix=null; |
|
|
var $editor_im_thumb_dir=null; |
|
|
var $editor_im_def_vspace=null; |
|
|
var $editor_im_def_hspace=null; |
|
|
var $editor_im_def_border=null; |
|
|
var $editor_im_def_align=null; |
|
|
var $editor_im_thumbs=null; |
|
|
var $editor_im_popup_title=null; |
|
|
var $editor_im_popup_bgcolor=null; |
|
|
var $editor_im_popup_print=null; |
|
|
var $editor_im_popup_mode=null; |
|
|
var $editor_im_mode=null; |
|
|
var $editor_im_userdir_acl=null; |
|
|
var $editor_im_dirtype=null; |
|
|
|
|
|
//Plugin Specific - File Manager |
|
|
var $editor_fm_doc_root=null; |
|
|
var $editor_fm_base_url=null; |
|
|
var $editor_fm_max_size=null; |
|
|
var $editor_fm_allow_ext=null; |
|
|
var $editor_fm_deny_ext=null; |
|
|
|
|
| 63 |
function mosCE_Config() { |
function mosCE_Config() { |
| 64 |
$this->_alias = array( |
$this->_alias = array( |
| 65 |
'editor_themes' =>'editor_themes', |
'editor_themes' =>'editor_themes', |
| 85 |
'editor_plugin_timeformat' =>'editor_plugin_timeformat', |
'editor_plugin_timeformat' =>'editor_plugin_timeformat', |
| 86 |
'editor_plugin_emotions_acl' =>'editor_plugin_emotions_acl', |
'editor_plugin_emotions_acl' =>'editor_plugin_emotions_acl', |
| 87 |
'editor_plugin_print' =>'editor_plugin_print', |
'editor_plugin_print' =>'editor_plugin_print', |
|
'editor_plugin_imgmanager' =>'editor_plugin_imgmanager', |
|
|
'editor_plugin_filemanager' =>'editor_plugin_filemanager', |
|
| 88 |
'editor_plugin_searchreplace' =>'editor_plugin_searchreplace', |
'editor_plugin_searchreplace' =>'editor_plugin_searchreplace', |
| 89 |
'editor_plugin_flash_acl' =>'editor_plugin_flash_acl', |
'editor_plugin_flash_acl' =>'editor_plugin_flash_acl', |
| 90 |
'editor_plugin_table_acl' =>'editor_plugin_table_acl', |
'editor_plugin_table_acl' =>'editor_plugin_table_acl', |
| 93 |
'editor_layout_row3' =>'editor_layout_row3', |
'editor_layout_row3' =>'editor_layout_row3', |
| 94 |
'editor_layout_row4' =>'editor_layout_row4', |
'editor_layout_row4' =>'editor_layout_row4', |
| 95 |
'editor_onclick_elms' =>'editor_onclick_elms', |
'editor_onclick_elms' =>'editor_onclick_elms', |
| 96 |
'editor_tmpl_dir' =>'editor_tmpl_dir', |
'editor_tmpl_dir' =>'editor_tmpl_dir' |
|
|
|
|
//Plugin Specific - Image Manager |
|
|
'editor_im_base_dir' =>'editor_im_base_dir', |
|
|
'editor_im_base_url' =>'editor_im_base_url', |
|
|
'editor_im_image_class' =>'editor_im_image_class', |
|
|
'editor_im_class_path' =>'editor_im_class_path', |
|
|
'editor_im_thumb_size' =>'editor_im_thumb_size', |
|
|
'editor_im_max_value' =>'editor_im_max_value', |
|
|
'editor_im_thumb_prefix' =>'editor_im_thumb_prefix', |
|
|
'editor_im_thumb_dir' =>'editor_im_thumb_dir', |
|
|
'editor_im_def_vspace' =>'editor_im_def_vspace', |
|
|
'editor_im_def_hspace' =>'editor_im_def_hspace', |
|
|
'editor_im_def_border' =>'editor_im_def_border', |
|
|
'editor_im_def_align' =>'editor_im_def_align', |
|
|
'editor_im_thumbs' =>'editor_im_thumbs', |
|
|
'editor_im_popup_title' =>'editor_im_popup_title', |
|
|
'editor_im_popup_bgcolor' =>'editor_im_popup_bgcolor', |
|
|
'editor_im_popup_print' =>'editor_im_popup_print', |
|
|
'editor_im_popup_mode' =>'editor_im_popup_mode', |
|
|
'editor_im_mode' =>'editor_im_mode', |
|
|
'editor_im_userdir_acl' =>'editor_im_userdir_acl', |
|
|
'editor_im_dirtype' =>'editor_im_dirtype', |
|
|
|
|
|
//Plugin Specific - File Manager |
|
|
'editor_fm_doc_root' =>'editor_fm_doc_root', |
|
|
'editor_fm_base_url' =>'editor_fm_base_url', |
|
|
'editor_fm_max_size' =>'editor_fm_max_size', |
|
|
'editor_fm_allow_ext' =>'editor_fm_allow_ext', |
|
|
'editor_fm_deny_ext' =>'editor_fm_deny_ext' |
|
| 97 |
); |
); |
| 98 |
} |
} |
| 99 |
|
|
| 113 |
$this->$k = ""; |
$this->$k = ""; |
| 114 |
} |
} |
| 115 |
} |
} |
|
|
|
|
function get_safe_mode() { |
|
|
$r = (ini_get('safe_mode') == '1' ? 1 : 0); |
|
|
return $r ? 'ON' : 'OFF'; |
|
|
} |
|
|
|
|
|
function get_gd() { |
|
|
$r = (get_extension_funcs('gd') == true ? 1 : 0); |
|
|
return $r ? 'true' : 'false'; |
|
|
} |
|
| 116 |
} |
} |
| 117 |
|
|
| 118 |
require_once( 'components/com_mostlyce/admin.mostlyce.html.php' ); |
require_once( 'components/com_mostlyce/admin.mostlyce.html.php' ); |
| 160 |
); |
); |
| 161 |
|
|
| 162 |
$editor_themes = array( |
$editor_themes = array( |
| 163 |
mosHTML::makeOption( 'advanced', _EDITOR_THEME_ADV ), |
mosHTML::makeOption( 'advanced', 'Advanced' ), |
| 164 |
mosHTML::makeOption( 'simple', _EDITOR_THEME_SIMPLE ) |
mosHTML::makeOption( 'simple', 'Simple' ) |
| 165 |
); |
); |
| 166 |
|
|
| 167 |
$editor_compression = array( |
$editor_compression = array( |
| 168 |
mosHTML::makeOption( '1', _EDITOR_COMPRESSION_ON ), |
mosHTML::makeOption( '1', 'On' ), |
| 169 |
mosHTML::makeOption( '0', _EDITOR_COMPRESSION_OFF ) |
mosHTML::makeOption( '0', 'Off' ) |
| 170 |
); |
); |
| 171 |
|
|
| 172 |
$editor_direction = array( |
$editor_direction = array( |
| 176 |
|
|
| 177 |
$php_settings = new mosCE_Config(); |
$php_settings = new mosCE_Config(); |
| 178 |
|
|
| 179 |
if ($php_settings->get_safe_mode() == 'ON') { |
$editor_plugin_print = array( |
| 180 |
$editor_im_image_class = array( |
mosHTML::makeOption( 'Yes', 'Yes' ), |
| 181 |
mosHTML::makeOption( 'GD', 'GD' ) |
mosHTML::makeOption( 'No','No' ) |
| 182 |
); |
); |
| 183 |
}elseif($php_settings->get_safe_mode() == 'OFF' && $php_settings->get_gd() == 'false'){ |
$editor_plugin_searchreplace = array( |
| 184 |
$editor_im_image_class = array( |
mosHTML::makeOption( 'Yes', 'Yes' ), |
| 185 |
mosHTML::makeOption( 'NetPBM','NetPBM' ), |
mosHTML::makeOption( 'No','No' ) |
|
mosHTML::makeOption( 'IM','Image Magick' ) |
|
|
); |
|
|
}elseif($php_settings->get_safe_mode() == 'OFF' && $php_settings->get_gd() == 'true'){ |
|
|
$editor_im_image_class = array( |
|
|
mosHTML::makeOption( 'GD', 'GD' ), |
|
|
mosHTML::makeOption( 'NetPBM','NetPBM' ), |
|
|
mosHTML::makeOption( 'IM','Image Magick' ) |
|
|
); |
|
|
} |
|
|
|
|
|
$editor_im_popup_mode = array( |
|
|
mosHTML::makeOption( 'basic', _EDITOR_IM_POPUP_MODE_BASIC ), |
|
|
mosHTML::makeOption( 'advanced', _EDITOR_IM_POPUP_MODE_ADV ) |
|
|
); |
|
|
$editor_im_mode = array( |
|
|
mosHTML::makeOption( 'list', _EDITOR_IM_MODE_LIST ), |
|
|
mosHTML::makeOption( 'images', _EDITOR_IM_MODE_IMAGES ) |
|
| 186 |
); |
); |
|
|
|
| 187 |
//No specific, used by several plugins |
//No specific, used by several plugins |
| 188 |
$editor_true_false = array( |
$editor_true_false = array( |
| 189 |
mosHTML::makeOption( 'true', _CMN_YES ), |
mosHTML::makeOption( 'true', 'Yes' ), |
| 190 |
mosHTML::makeOption( 'false', _CMN_NO ) |
mosHTML::makeOption( 'false', 'No' ) |
|
); |
|
|
|
|
|
$editor_im_def_align = array( |
|
|
mosHTML::makeOption( '',_editor_align_default ), |
|
|
mosHTML::makeOption( 'baseline',_editor_align_baseline ), |
|
|
mosHTML::makeOption( 'top',_editor_align_top ), |
|
|
mosHTML::makeOption( 'middle',_editor_align_middle ), |
|
|
mosHTML::makeOption( 'bottom',_editor_align_bottom ), |
|
|
mosHTML::makeOption( 'texttop',_editor_align_texttop ), |
|
|
mosHTML::makeOption( 'absolute middle',_editor_align_absmiddle ), |
|
|
mosHTML::makeOption( 'absolute bottom',_editor_align_absbottom ), |
|
|
mosHTML::makeOption( 'left',_editor_align_left ), |
|
|
mosHTML::makeOption( 'right',_editor_align_right ), |
|
| 191 |
); |
); |
| 192 |
|
|
| 193 |
// build the html select lists |
// build the html select lists |
| 215 |
|
|
| 216 |
$lists['editor_plugin_emotions_acl'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_emotions_acl', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_emotions_acl ); |
$lists['editor_plugin_emotions_acl'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_emotions_acl', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_emotions_acl ); |
| 217 |
|
|
| 218 |
$lists['editor_plugin_print'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_print', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_print ); |
$lists['editor_plugin_print'] = mosHTML::selectList( $editor_plugin_print, 'editor_plugin_print', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_print ); |
| 219 |
|
|
| 220 |
$lists['editor_plugin_imgmanager'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_imgmanager', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_imgmanager ); |
$lists['editor_plugin_searchreplace'] = mosHTML::selectList( $editor_plugin_searchreplace, 'editor_plugin_searchreplace', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_searchreplace ); |
|
|
|
|
$lists['editor_plugin_filemanager'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_filemanager', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_filemanager ); |
|
|
|
|
|
$lists['editor_plugin_searchreplace'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_searchreplace', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_searchreplace ); |
|
| 221 |
|
|
| 222 |
$lists['editor_plugin_flash_acl'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_flash_acl', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_flash_acl ); |
$lists['editor_plugin_flash_acl'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_flash_acl', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_flash_acl ); |
| 223 |
|
|
| 225 |
|
|
| 226 |
$lists['editor_plugin_table_acl'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_table_acl', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_table_acl ); |
$lists['editor_plugin_table_acl'] = mosHTML::selectList( $editor_true_false, 'editor_plugin_table_acl', 'class="inputbox" size="1"', 'value', 'text', $row->editor_plugin_table_acl ); |
| 227 |
|
|
|
//Plugin Specific - Image Manager |
|
|
$lists['editor_im_image_class'] = mosHTML::selectList( $editor_im_image_class, 'editor_im_image_class', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_image_class ); |
|
|
|
|
|
$lists['editor_im_thumbs'] = mosHTML::selectList( $editor_true_false, 'editor_im_thumbs', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_thumbs ); |
|
|
|
|
|
$lists['editor_im_popup_title'] = mosHTML::selectList( $editor_true_false, 'editor_im_popup_title', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_popup_title ); |
|
|
|
|
|
$lists['editor_im_popup_print'] = mosHTML::selectList( $editor_true_false, 'editor_im_popup_print', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_popup_print ); |
|
|
|
|
|
$lists['editor_im_def_align'] = mosHTML::selectList( $editor_im_def_align, 'editor_im_def_align', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_def_align ); |
|
|
|
|
|
$lists['editor_im_popup_mode'] = mosHTML::selectList( $editor_im_popup_mode, 'editor_im_popup_mode', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_popup_mode ); |
|
|
|
|
|
$lists['editor_im_mode'] = mosHTML::selectList( $editor_im_mode, 'editor_im_mode', 'class="inputbox" size="1"', 'value', 'text', $row->editor_im_mode ); |
|
|
|
|
| 228 |
$confightml->showconfig( $row, $lists, $option ); |
$confightml->showconfig( $row, $lists, $option ); |
| 229 |
} |
} |
| 230 |
|
|