Changeset 161138
- Timestamp:
- 10/07/2009 07:40:08 AM (16 years ago)
- Location:
- ckeditor-12/trunk
- Files:
-
- 3 edited
-
AjexFileManager/ajax/php/ajax.php (modified) (1 diff)
-
ckeditor.php (modified) (1 diff)
-
ckeditor_class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ckeditor-12/trunk/AjexFileManager/ajax/php/ajax.php
r160917 r161138 33 33 date_default_timezone_set('Europe/Moscow'); 34 34 35 35 require_once(dirname(__FILE__). '/../../../ckeditor_class.php'); 36 if(!$deans_ckeditor->can_upload()) 37 exit(); 38 36 39 define( 'DS', DIRECTORY_SEPARATOR ); 37 40 $rootFolder = explode(DS,dirname(__FILE__)); -
ckeditor-12/trunk/ckeditor.php
r160917 r161138 1 1 <?php 2 2 /* 3 Plugin Name: CKEditor 1. 23 Plugin Name: CKEditor 1.3 4 4 Plugin URI: http://www.cmsspace.com/demo.html 5 5 Description: Replaces the default Wordpress editor with <a href="http://www.ckeditor.com/"> CKEditor</a> 6 Version: 1. 26 Version: 1.3 7 7 Author: Daniar 8 8 Author URI: http://www.cmsspace.com -
ckeditor-12/trunk/ckeditor_class.php
r160917 r161138 3 3 require_once(dirname(__FILE__).'/../../../wp-config.php'); 4 4 class deans_ckeditor { 5 var $version = '1. 2';5 var $version = '1.3'; 6 6 var $default_options = array(); 7 7 var $ckeditor_path = ""; … … 20 20 $this->ckeditor_path = $siteurl .'wp-content/plugins/' . basename(dirname(__FILE__)) .'/ckeditor/'; 21 21 $this->default_options['user_file_path'] = 'wp-content/uploads/'; 22 23 $options = get_option('deans_ckeditor');24 if (!$options) {25 $this->build_smiley_images($this->default_options['smiley_path']);26 $this->default_options['smiley_images'] = $this->smiley_images;27 add_option('deans_ckeditor', $this->default_options);28 $options = $this->default_options;29 }30 22 } 31 23 function deactivate() … … 131 123 uiColor: '#6B6868', 132 124 enterMode : 1, 133 shiftEnterMode : 0 ,125 shiftEnterMode : 0 134 126 }); 135 127 … … 178 170 wp_enqueue_script('AjexFileManager', $this->plugin_path . 'AjexFileManager/ajex.js', array('thickbox'), '20080710'); 179 171 } 172 function can_upload() 173 { 174 if ((function_exists('current_user_can') && current_user_can('upload_files')) || (isset($user_level) && $user_level >= 3)) 175 { 176 return true; 177 } 178 return false; 179 } 180 180 } 181 182 181 $deans_ckeditor = new deans_ckeditor(); 183 182 ?>
Note: See TracChangeset
for help on using the changeset viewer.