Plugin Directory

Changeset 634692


Ignore:
Timestamp:
12/06/2012 04:24:28 AM (13 years ago)
Author:
fstrack
Message:

Update to update to galleria 1.2.8 as well as a bug fix for uploading using user_can instead of session data.

Location:
dm-albums/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dm-albums/trunk/readme.txt

    r610527 r634692  
    55Requires at least: 2.7
    66Tested up to: 3.3.1
    7 Stable tag: 3.1.6
     7Stable tag: 3.1.7
    88
    99DM Albums™ is an inline photo album/gallery plugin that displays high quality images and thumbnails perfectly sized to your blog.
     
    7979
    8080= 3.1.7 =
    81         <ul><li>Added fix for empty existing albums problem. Thanks to Mark Lagendijk for finding the fix.</li></ul>
     81        <ul><li>Added (another) patch to (hopefully) fix some user's issues with albums not appearing when uploading.</li>
     82        <li>Updated to 1.2.8 of galleria; this should resolve many of the JQuery issues some users were experiencing</li></ul>
     83       
    8284= 3.1.6 =
    8385        <ul><li>Added patch to (hopefully) fix some user's issues with albums not appearing when uploading.</li>
  • dm-albums/trunk/wp-dm-albums.php

    r610527 r634692  
    3030
    3131    3.1.7
    32         * Added fix for empty existing albums problem. Thanks to Mark Lagendijk for finding the fix.
    33 
    34     3.1.4
     32        * Added (another) patch to (hopefully) fix some user's issues with albums not appearing when uploading.
     33        * Updated to 1.2.8 of galleria; this should resolve many of the JQuery issues some users were experiencing
     34
     35    3.1.7
    3536        * Added patch to (hopefully) fix some user's issues with albums not appearing when uploading.
    3637        * Fixed versioning of javascript libs
    3738
    38     3.1.4
     39    3.1.6
    3940        * Added Flikr support: enter [dmalbum flikr="setid"/] where setid is the id of your set, i.e. [dmalbum flikr="72157629383149390"/]
    4041        * Fixed positioning of photo counter element so it is visible
    4142
    42     3.1.4
     43    3.1.5
    4344        * Two new options added: Transition Effect and Transition Speed.
    4445
     
    317318
    318319// Global variables
    319 $DM_PHOTOALBUM_APP_VERSION = "3.1.7";
     320$DM_PHOTOALBUM_APP_VERSION = "3.1.4";
    320321$DM_PHOTOALBUM_APP_DOCS = "http://www.dutchmonkey.com/wp-plugins/";
    321322
     
    593594    if(get_option('DM_JQUERY_LIB') == "GOOGLE")
    594595    {
     596        //wp_register_script( 'dm_jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js');
    595597        wp_register_script( 'dm_jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js');
    596598        wp_enqueue_script( 'dm_jquery' );
     
    600602    {
    601603        wp_deregister_script( 'jquery' );
    602         wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js');
    603         wp_enqueue_script( 'jquery' );
    604     }
    605 
    606     wp_register_script( 'dm_galleria', plugins_url() . '/dm-albums/galleria/galleria-1.2.6.min.js', 'dm_jquery');
     604        //wp_register_script( 'dm_jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js');
     605        wp_register_script( 'dm_jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js');
     606        wp_enqueue_script( 'jquery' );
     607    }
     608
     609    wp_register_script( 'dm_galleria', plugins_url() . '/dm-albums/galleria/galleria-1.2.8.min.js', 'dm_jquery');
    607610    wp_enqueue_script( 'dm_galleria' );
    608611
     
    613616    wp_enqueue_script( 'dm_galleria_common' );
    614617
    615     wp_register_script( 'dm_galleria_theme', plugins_url() . '/dm-albums/galleria/themes/classic/galleria.classic.min.js');
    616     wp_enqueue_script( 'dm_galleria_theme' );
     618    //wp_register_script( 'dm_galleria_theme', plugins_url() . '/dm-albums/galleria/themes/dmclassic/galleria.classic.min.js');
     619    //wp_enqueue_script( 'dm_galleria_theme' );
    617620}
    618621
  • dm-albums/trunk/wp-dm-upload.php

    r554955 r634692  
    88 ***************************************************************/
    99
    10 if (isset($_POST["PHPSESSID"])) {
     10/*
     11 if (isset($_POST["PHPSESSID"])) {
    1112    session_id($_POST["PHPSESSID"]);
    1213} else if (isset($_GET["PHPSESSID"])) {
     
    1516
    1617session_start();
    17 
     18*/
    1819require_once('../../../wp-config.php');
    1920require_once('php/includes.php');
    2021
    21 if($_SESSION["DM_AUTH_UPLOAD"] != 1)
     22/*if(!$_SESSION["DM_AUTH_UPLOAD"] != 1)
    2223{
    2324    print("User not authorized.</br>");
    2425    exit(0);
     26}*/
     27
     28if(!current_user_can('upload_files'))
     29{
     30   print("User not authorized.</br>");
     31   exit(0);
    2532}
    2633
Note: See TracChangeset for help on using the changeset viewer.