Changeset 2417548
- Timestamp:
- 11/12/2020 11:13:01 PM (5 years ago)
- Location:
- limb-gallery/trunk
- Files:
-
- 5 edited
-
ajax/GRSCaptcha.php (modified) (3 diffs)
-
ajax/GRSComment.php (modified) (1 diff)
-
database/GRSGalleryUpdate.php (modified) (1 diff)
-
gallery-rs.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
limb-gallery/trunk/ajax/GRSCaptcha.php
r1897729 r2417548 8 8 // Costructor 9 9 public function __construct($action) { 10 if ( session_id() == '' ) { 11 session_start(); 12 } 10 13 if(method_exists($this, $action)) 11 14 $this->{$action}(); … … 13 16 public function reloadCaptcha() { 14 17 $_SESSION['captcha'] = self::simple_php_captcha(); 18 session_write_close(); 15 19 $this->result('success', $_SESSION['captcha']['image_src']); 16 20 } … … 44 48 45 49 unset($_SESSION['_CAPTCHA']); 46 50 session_write_close(); 47 51 // Pick random background, get info, and start captcha 48 52 $background = $captcha_config['backgrounds'][mt_rand(0, count($captcha_config['backgrounds']) -1)]; -
limb-gallery/trunk/ajax/GRSComment.php
r2157201 r2417548 23 23 $galId = isset( $_POST['galId'] ) ? (int) $_POST['galId'] : 0; 24 24 $captchaCode = isset( $_POST['captchaCode'] ) ? sanitize_text_field( $_POST['captchaCode'] ) : ''; 25 if ( session_id() == '' ) { 26 session_start([ 27 'read_and_close' => true, 28 ]); 29 } 25 30 if ( $captchaCode === $_SESSION['captcha']['code'] ) { 26 31 if ( $name == '' ) { -
limb-gallery/trunk/database/GRSGalleryUpdate.php
r2409863 r2417548 47 47 48 48 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(); 49 59 } 50 60 -
limb-gallery/trunk/gallery-rs.php
r2409863 r2417548 5 5 * Plugin URI: http://limbcode.com 6 6 * 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. 67 * Version: 1.4.7 8 8 * Author: Limb 9 9 * Author URI: http://limbcode.com … … 21 21 protected static $aCsOptName = 'LIMB_gallery_act_status'; 22 22 protected static $vOptName = 'LIMB_gallery_version'; 23 protected static $currentVersion = '1.4. 6';23 protected static $currentVersion = '1.4.7'; 24 24 protected static $grsMainFile; 25 25 protected static $uploadDir; … … 31 31 public function __construct() { 32 32 $this->registerHooks(); 33 $this->startSession();34 33 $this->defineVars(); 35 34 $this->createGrsFolder(); … … 37 36 // Activate without hook 38 37 // $this->grsActivate(); 39 }40 41 public function startSession() {42 // also we can create session path folder43 if ( session_id() == '' ) {44 session_start();45 }46 38 } 47 39 -
limb-gallery/trunk/readme.txt
r2409863 r2417548 4 4 Tags: photo gallery, gallery, image gallery, carousel, carousel slider, 3d carousel 5 5 Requires at least: 3.4 6 Stable tag: 1.4. 67 Tested up to: 5.5. 26 Stable tag: 1.4.7 7 Tested up to: 5.5.3 8 8 License: GPLv2 9 9 … … 158 158 == Changelog == 159 159 160 = 1.4.7 = 161 162 * Fixed session_write_close issue 163 160 164 = 1.4.6 = 161 165
Note: See TracChangeset
for help on using the changeset viewer.