Source for file admin.mostlyce.php
Documentation is available at admin.mostlyce.php
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// ensure user has access to this function
if (!($acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'all' )
|
$acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_mostlyce' ))) {
mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') );
/*if (file_exists($mosConfig_absolute_path.'/administrator/components/com_mostlyce/language/'.$mosConfig_lang.'.php')){
include ($mosConfig_absolute_path.'/administrator/components/com_mostlyce/language/'.$mosConfig_lang.'.php');
include ($mosConfig_absolute_path.'/administrator/components/com_mostlyce/language/english.php');
if (!file_exists($mosConfig_absolute_path.
'/mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php')){
mosRedirect( 'index2.php', T_('Cannot find mostlyce_config.php! Please install the MOStlyCE mambot.'));
include($mosConfig_absolute_path.
'/mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php');
'editor_themes' =>
'editor_themes',
'editor_compression' =>
'editor_compression',
'editor_lang' =>
'editor_lang',
'editor_lang_list' =>
'editor_lang_list',
'editor_width' =>
'editor_width',
'editor_height' =>
'editor_height',
'editor_css_override' =>
'editor_css_override',
'editor_custom_css' =>
'editor_custom_css',
'editor_newlines' =>
'editor_newlines',
'editor_convert_urls' =>
'editor_convert_urls',
'editor_script_acl' =>
'editor_script_acl',
'editor_script_elms' =>
'editor_script_elms',
'editor_iframe_acl' =>
'editor_iframe_acl',
'editor_iframe_elms' =>
'editor_iframe_elms',
'editor_xtd_elms' =>
'editor_xtd_elms',
'editor_direction' =>
'editor_direction',
'editor_extra_plugins' =>
'editor_extra_plugins',
'editor_font_tools_acl' =>
'editor_font_tools_acl',
'editor_plugin_datetime_acl' =>
'editor_plugin_datetime_acl',
'editor_plugin_dateformat' =>
'editor_plugin_dateformat',
'editor_plugin_timeformat' =>
'editor_plugin_timeformat',
'editor_plugin_emotions_acl' =>
'editor_plugin_emotions_acl',
'editor_plugin_print' =>
'editor_plugin_print',
'editor_plugin_searchreplace' =>
'editor_plugin_searchreplace',
'editor_plugin_media_acl' =>
'editor_plugin_media_acl',
'editor_plugin_table_acl' =>
'editor_plugin_table_acl',
'editor_plugin_spellchecker' =>
'editor_plugin_spellchecker',
'editor_plugin_layer' =>
'editor_plugin_layer',
'editor_mosimage_icon' =>
'editor_mosimage_icon',
'editor_plugin_img_mgr' =>
'editor_plugin_img_mgr',
'editor_layout_row1' =>
'editor_layout_row1',
'editor_layout_row2' =>
'editor_layout_row2',
'editor_layout_row3' =>
'editor_layout_row3',
'editor_layout_row4' =>
'editor_layout_row4',
'editor_tmpl_dir' =>
'editor_tmpl_dir'
foreach ($this->_alias as $k=>
$v) {
$txt .=
"\$$v = '".
addslashes( $this->$k ).
"';\n";
foreach ($this->_alias as $k=>
$v) {
$this->$k =
$GLOBALS[$v];
require_once( 'components/com_mostlyce/admin.mostlyce.html.php' );
function showconfig($confightml, &$database, $option) {
global $database, $mosConfig_absolute_path;
// compile list of the languages
if ($handle=
opendir( "$mosConfig_absolute_path/mambots/editors/mostlyce/jscripts/tiny_mce/langs/" )) {
while (false !==
($file =
readdir($handle))) {
if ($file <>
"." &&
$file <>
"..") {
// sort list of languages
$editor_newlines =
array(
$editor_compression =
array(
$editor_direction =
array(
//Non-specific, used by several plugins
$editor_true_false =
array(
// build the html select lists
//Standard Editor options
$lists['editor_lang'] =
mosHTML::selectList( $editor_lang, 'editor_lang', 'class="inputbox" size="1"', 'value', 'text', $row->editor_lang );
if (!$row->bind( $_POST )) {
if ($fp =
fopen('../mambots/editors/mostlyce/jscripts/tiny_mce/mostlyce_config.php', 'w')) {
mosRedirect( 'index2.php?option=com_mostlyce&task=config', 'The configuration details have been updated!' );
mosRedirect( 'index2.php?option=com_mostlyce&task=config', 'An Error Has Occurred! Unable to open config file to write!' );
Documentation generated on Mon, 05 May 2008 16:15:48 +0400 by phpDocumentor 1.4.0