Plugin Directory

Changeset 2417548


Ignore:
Timestamp:
11/12/2020 11:13:01 PM (5 years ago)
Author:
limbcode
Message:

1.4.7 trunk release

Location:
limb-gallery/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • limb-gallery/trunk/ajax/GRSCaptcha.php

    r1897729 r2417548  
    88    // Costructor
    99    public function __construct($action) {             
     10        if ( session_id() == '' ) {
     11            session_start();
     12        }
    1013        if(method_exists($this, $action))
    1114            $this->{$action}();
     
    1316    public function reloadCaptcha() {
    1417        $_SESSION['captcha'] = self::simple_php_captcha();
     18        session_write_close();
    1519        $this->result('success', $_SESSION['captcha']['image_src']);
    1620    }
     
    4448
    4549            unset($_SESSION['_CAPTCHA']);
    46 
     50            session_write_close();
    4751            // Pick random background, get info, and start captcha
    4852            $background = $captcha_config['backgrounds'][mt_rand(0, count($captcha_config['backgrounds']) -1)];
  • limb-gallery/trunk/ajax/GRSComment.php

    r2157201 r2417548  
    2323        $galId       = isset( $_POST['galId'] ) ? (int) $_POST['galId'] : 0;
    2424        $captchaCode = isset( $_POST['captchaCode'] ) ? sanitize_text_field( $_POST['captchaCode'] ) : '';
     25        if ( session_id() == '' ) {
     26            session_start([
     27                'read_and_close' => true,
     28            ]);
     29        }
    2530        if ( $captchaCode === $_SESSION['captcha']['code'] ) {
    2631            if ( $name == '' ) {
  • limb-gallery/trunk/database/GRSGalleryUpdate.php

    r2409863 r2417548  
    4747
    4848        return false;
     49    }
     50
     51    /**
     52     * Alter for 1.4.7
     53     * Fixed session write close issue
     54     *
     55     * @return bool
     56     */
     57    public function alter_4_7() {
     58        return $this->alter_4_6();
    4959    }
    5060
  • limb-gallery/trunk/gallery-rs.php

    r2409863 r2417548  
    55 * Plugin URI: http://limbcode.com
    66 * Description: Limb Gallery is an advanced solution to build gallery with multiple views, create awesome albums, embed social media, view photos and videos via stunning lightboxes and share them to social networks.
    7  * Version: 1.4.6
     7 * Version: 1.4.7
    88 * Author: Limb
    99 * Author URI: http://limbcode.com
     
    2121    protected static $aCsOptName = 'LIMB_gallery_act_status';
    2222    protected static $vOptName = 'LIMB_gallery_version';
    23     protected static $currentVersion = '1.4.6';
     23    protected static $currentVersion = '1.4.7';
    2424    protected static $grsMainFile;
    2525    protected static $uploadDir;
     
    3131    public function __construct() {
    3232        $this->registerHooks();
    33         $this->startSession();
    3433        $this->defineVars();
    3534        $this->createGrsFolder();
     
    3736        // Activate without hook
    3837        // $this->grsActivate();
    39     }
    40 
    41     public function startSession() {
    42         // also we can create session path folder
    43         if ( session_id() == '' ) {
    44             session_start();
    45         }
    4638    }
    4739
  • limb-gallery/trunk/readme.txt

    r2409863 r2417548  
    44Tags: photo gallery, gallery, image gallery, carousel, carousel slider, 3d carousel
    55Requires at least: 3.4
    6 Stable tag: 1.4.6
    7 Tested up to: 5.5.2
     6Stable tag: 1.4.7
     7Tested up to: 5.5.3
    88License: GPLv2
    99
     
    158158== Changelog ==
    159159
     160= 1.4.7 =
     161
     162* Fixed session_write_close issue
     163
    160164= 1.4.6 =
    161165
Note: See TracChangeset for help on using the changeset viewer.