Plugin Directory

Changeset 507340


Ignore:
Timestamp:
02/19/2012 03:52:26 PM (14 years ago)
Author:
CJ_Jackson
Message:

Updated to 0.2.6

Location:
html5avmanager
Files:
81 added
3 edited

Legend:

Unmodified
Added
Removed
  • html5avmanager/trunk/html5avmanager.php

    r502190 r507340  
    55  Plugin URI: http://cj-jackson.com/
    66  Description: A video manager with a Modal-View-Controller and video uploader.
    7   Version: 0.2.5
     7  Version: 0.2.6
    88  Author: Christopher John Jackson
    99  Author URI: http://cj-jackson.com/
     
    4848}
    4949
     50if (!(is_writable(WP_CONTENT_DIR) && is_readable(WP_CONTENT_DIR))) {
     51    deactivate_plugins(basename(__FILE__));
     52    $wpcontent = WP_CONTENT_DIR;
     53    wp_die("HTML5 AV Manager for Wordpress has detected that '$wpcontent' not
     54            writable or readable, therefore deactivated itself, make sure that
     55            directory is chmoded to '755', thank you!");
     56}
     57
     58if (!function_exists('json_encode')) {
     59    deactivate_plugins(basename(__FILE__));
     60    wp_die("HTML5 AV Manager for Wordpress has detected that your server
     61        installation of PHP does not have 'json' module installed, therefore
     62        deactivated itself!");
     63}
     64
    5065require_once 'lib/time.php';
    5166require_once 'lib/html5av_dbal.php';
     
    8499        self::$view_path = WP_CONTENT_DIR . '/videoaudio/views';
    85100
     101        $uploadify_setting_file = self::$DIR . '/lib/uploadify/' . $_SERVER['HTTP_HOST'] . '.json';
     102        if (!file_exists($uploadify_setting_file)) {
     103            $uploadify_json['dir'] = self::$UPLOAD_DIR;
     104            $uploadify_json = json_encode($uploadify_json);
     105            file_put_contents($uploadify_setting_file, $uploadify_json);
     106        }
     107
    86108        // Set up param
    87109        self::$param = self::cleanParam();
     
    389411        include 'view/admin/message.php';
    390412    }
    391    
     413
    392414    static public function viewEditorPanel() {
    393415        include 'view/admin/view-editor.php';
     
    754776        $title = htmlspecialchars($audio->getTitle());
    755777        $alt = htmlspecialchars($audio->getAlt());
    756        
     778
    757779        //$poster = 'http://upload.wikimedia.org/wikipedia/commons/c/c0/Blank.gif';
    758780        //$width = $height = 1;
  • html5avmanager/trunk/lib/uploadify/custom.php

    r484772 r507340  
    2727if (!empty($_FILES)) {
    2828    $tempFile = $_FILES['Filedata']['tmp_name'];
    29     $targetPath = $_SERVER['DOCUMENT_ROOT'] . '/temp';
     29    $json_file = $_SERVER['HTTP_HOST'] . '.json';
     30    $json = json_decode(file_get_contents($json_file), true);
     31    $targetPath = $json['dir'] . '/temp';
    3032    $targetFileName = $_FILES['Filedata']['name'];
    3133    $targetFile = str_replace('//', '/', $targetPath) . '/' . $targetFileName;
  • html5avmanager/trunk/readme.txt

    r502190 r507340  
    55Requires at least: 2.7
    66Tested up to: 3.3
    7 Stable tag: 0.2.5
     7Stable tag: 0.2.6
    88
    99A HTML5 Audio and Video manager that take full advantage of
     
    6060
    6161== Changelog ==
     62
     63= 0.2.6 =
     64* Fixed caused of 'getType' error, again fingers crossed.
     65* Plugin will deactivate itself if 'wp_content' is not writable or readable.
     66* Plugin will deactivate itself if 'json' is not detected within PHP installtion.
    6267
    6368= 0.2.5 =
Note: See TracChangeset for help on using the changeset viewer.