Plugin Directory

Changeset 161138


Ignore:
Timestamp:
10/07/2009 07:40:08 AM (16 years ago)
Author:
doni2000
Message:

fancy new feature: now you can foo *and* bar at the same time

Location:
ckeditor-12/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ckeditor-12/trunk/AjexFileManager/ajax/php/ajax.php

    r160917 r161138  
    3333date_default_timezone_set('Europe/Moscow');
    3434
    35 
     35require_once(dirname(__FILE__). '/../../../ckeditor_class.php');
     36if(!$deans_ckeditor->can_upload())
     37    exit();
     38   
    3639define( 'DS', DIRECTORY_SEPARATOR );
    3740$rootFolder = explode(DS,dirname(__FILE__));
  • ckeditor-12/trunk/ckeditor.php

    r160917 r161138  
    11<?php
    22/*
    3 Plugin Name: CKEditor 1.2
     3Plugin Name: CKEditor 1.3
    44Plugin URI: http://www.cmsspace.com/demo.html
    55Description: Replaces the default Wordpress editor with <a href="http://www.ckeditor.com/"> CKEditor</a>
    6 Version: 1.2
     6Version: 1.3
    77Author: Daniar
    88Author URI: http://www.cmsspace.com
  • ckeditor-12/trunk/ckeditor_class.php

    r160917 r161138  
    33require_once(dirname(__FILE__).'/../../../wp-config.php');
    44class deans_ckeditor {
    5     var $version = '1.2';
     5    var $version = '1.3';
    66    var $default_options = array();
    77    var $ckeditor_path = "";
     
    2020        $this->ckeditor_path = $siteurl .'wp-content/plugins/' . basename(dirname(__FILE__)) .'/ckeditor/';
    2121        $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         }
    3022    }
    3123    function deactivate()
     
    131123            uiColor: '#6B6868',
    132124            enterMode       : 1,
    133             shiftEnterMode  : 0,
     125            shiftEnterMode  : 0
    134126            });
    135127       
     
    178170        wp_enqueue_script('AjexFileManager', $this->plugin_path . 'AjexFileManager/ajex.js', array('thickbox'), '20080710');
    179171    }
     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    }
    180180}
    181 
    182181$deans_ckeditor = new deans_ckeditor();
    183182?>
Note: See TracChangeset for help on using the changeset viewer.