Plugin Directory

Changeset 1289197


Ignore:
Timestamp:
11/19/2015 01:58:57 AM (10 years ago)
Author:
binarystash01
Message:

PDF upload now terminates when it exceeds maximum PHP execution time

Location:
wp-booklet/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-booklet/trunk/assets/js/wpbooklet-editor.js

    r1211263 r1289197  
    150150                    }
    151151                    hidePreloader();
     152                    clearTimeout(termination);
    152153                },'json');
     154               
     155                /* Terminate script if it exceeds PHP timeout */
     156                var termination = setTimeout( function() {
     157                    hidePreloader();
     158                    alert("PDF conversion FAILED because it exceeded allowed PHP execution time. Contact your server administrator for assistance.");
     159                },(verification.max_execution_time * 1000));
     160               
    153161            }
    154162            else {
  • wp-booklet/trunk/classes/class-wp-booklet2-booklet-editor.php

    r1211263 r1289197  
    306306            $result = array( 'wpb_success'=>false, 'wpb_message' => 'Please select a valid PDF file.' );
    307307        }
     308       
     309        //Get maximum_execution_time
     310        $result['max_execution_time'] = ini_get('max_execution_time');
     311       
    308312        echo json_encode($result);
    309313        die();
  • wp-booklet/trunk/readme.txt

    r1288385 r1289197  
    55Requires at least: 3.9
    66Tested up to: 4.2.2
    7 Stable tag: 2.1.0
     7Stable tag: 2.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8787== Changelog ==
    8888
     89= 2.1.1 =
     90* PDF upload now terminates once maxiumum PHP execution time is reached.
     91
    8992= 2.1.0 =
    9093* Booklet images now preload.
     
    180183== Upgrade Notice ==
    181184
     185= 2.1.1 =
     186* PDF upload now terminates once maxiumum PHP execution time is reached.
     187
    182188= 2.1.0 =
    183189* Booklet images now preload.
  • wp-booklet/trunk/wp-booklet.php

    r1288382 r1289197  
    33 * Plugin Name: WP Booklet
    44 * Description: Allows creation of flip books using the jQuery Booklet plugin. Successor to WP Booklet 1.x
    5  * Version: 2.1.0
     5 * Version: 2.1.1
    66 * Author: BinaryStash
    77 * Author URI:  http://www.binarystash.net
Note: See TracChangeset for help on using the changeset viewer.