Exemple #1
0
 public static function getEFMConfig()
 {
     require_once 'modules/Scribite/plugins/Xinha/vendor/xinha/contrib/php-xinha.php';
     $zikulaBaseURI = rtrim(System::getBaseUri(), '/');
     $zikulaBaseURI = ltrim($zikulaBaseURI, '/');
     // define backend configuration for the plugin
     $IMConfig = array();
     $IMConfig['images_dir'] = '/files/';
     $IMConfig['images_url'] = 'files/';
     $IMConfig['files_dir'] = '/files/';
     $IMConfig['files_url'] = 'files';
     $IMConfig['thumbnail_prefix'] = 't_';
     $IMConfig['thumbnail_dir'] = 't';
     $IMConfig['resized_prefix'] = 'resized_';
     $IMConfig['resized_dir'] = '';
     $IMConfig['tmp_prefix'] = '_tmp';
     $IMConfig['max_filesize_kb_image'] = 2000;
     // maximum size for uploading files in 'insert image' mode (2000 kB here)
     $IMConfig['max_filesize_kb_link'] = 5000;
     // maximum size for uploading files in 'insert link' mode (5000 kB here)
     // Maximum upload folder size in Megabytes.
     // Use 0 to disable limit
     $IMConfig['max_foldersize_mb'] = 0;
     $IMConfig['allowed_image_extensions'] = array("jpg", "gif", "png");
     $IMConfig['allowed_link_extensions'] = array("jpg", "gif", "pdf", "ip", "txt", "psd", "png", "html", "swf", "xml", "xls");
     xinha_pass_to_php_backend($IMConfig);
     return $IMConfig;
 }
$docroot = preg_replace('/\\/$/', '', $_SERVER['DOCUMENT_ROOT']);
// define backend configuration for the plugin
$IMConfig = array();
$IMConfig['images_dir'] = $docroot . '/RheinaufCMS/Images/';
$IMConfig['images_url'] = '/Images/';
$IMConfig['files_dir'] = $docroot . '/RheinaufCMS/Download/';
$IMConfig['files_url'] = '/Download/';
$IMConfig['max_filesize_kb_image'] = "300";
$IMConfig['max_filesize_kb_link'] = "max";
$IMConfig['images_enable_styling'] = false;
$IMConfig['link_enable_target'] = false;
$IMConfig['images_enable_align'] = false;
$IMConfig['max_foldersize_mb'] = 0;
$IMConfig['allowed_link_extensions'] = array("doc", "fla", "gif", "gz", "html", "jpg", "js", "mov", "wmv", "avi", "pdf", "php", "png", "ppt", "rar", "txt", "xls", "zip", "mp3");
require_once $docroot . '/RheinaufCMS/Libraries/Xinha/contrib/php-xinha.php';
xinha_pass_to_php_backend($IMConfig);
?>
					}
				}

					xinha_config.SuperClean.show_dialog = true;
				    xinha_config.SuperClean.filters = {
				               "tidy": Xinha._lc("General tidy up and correction of some problems.", "SuperClean"),
				               "word": "Word"
				    }

				    xinha_editors   = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);

					Xinha.startEditors(xinha_editors);

				}
Exemple #3
0
 public function getEFMConfig($args)
 {
     // get editors path and load xinha scripts
     $editors_path = $this->getVar('editors_path');
     require_once $editors_path . '/xinha/contrib/php-xinha.php';
     $zikulaBaseURI = rtrim(System::getBaseUri(), '/');
     $zikulaBaseURI = ltrim($zikulaBaseURI, '/');
     $zikulaRoot = rtrim($_SERVER['DOCUMENT_ROOT'], '/');
     // define backend configuration for the plugin
     $IMConfig = array();
     $IMConfig['images_dir'] = '/files/';
     $IMConfig['images_url'] = 'files/';
     $IMConfig['files_dir'] = '/files/';
     $IMConfig['files_url'] = 'files';
     $IMConfig['thumbnail_prefix'] = 't_';
     $IMConfig['thumbnail_dir'] = 't';
     $IMConfig['resized_prefix'] = 'resized_';
     $IMConfig['resized_dir'] = '';
     $IMConfig['tmp_prefix'] = '_tmp';
     $IMConfig['max_filesize_kb_image'] = 2000;
     // maximum size for uploading files in 'insert image' mode (2000 kB here)
     $IMConfig['max_filesize_kb_link'] = 5000;
     // maximum size for uploading files in 'insert link' mode (5000 kB here)
     // Maximum upload folder size in Megabytes.
     // Use 0 to disable limit
     $IMConfig['max_foldersize_mb'] = 0;
     $IMConfig['allowed_image_extensions'] = array("jpg", "gif", "png");
     $IMConfig['allowed_link_extensions'] = array("jpg", "gif", "pdf", "ip", "txt", "psd", "png", "html", "swf", "xml", "xls");
     xinha_pass_to_php_backend($IMConfig);
     return $IMConfig;
 }