Plugin Directory

Changeset 1775329


Ignore:
Timestamp:
11/26/2017 02:40:31 AM (8 years ago)
Author:
reifsnyderb
Message:

Version 1.21 PHP 7.x fixes and file retrieval fix

Location:
dms/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • dms/trunk/dms.php

    r1768471 r1775329  
    44Plugin URI: http://blitzenware.com
    55Description: The complete document management solution.
    6 Version: 1.17
     6Version: 1.21
    77Author: Brian E. Reifsnyder
    88Author URI: http://blitzenware.com
     
    4040}
    4141
    42 define( 'DMS_VERSION', '1.17' );
    43 define( 'DMS_RELEASE_DATE', date_i18n( 'F j, Y', strtotime( '07/28/2017' ) ) );
     42define( 'DMS_VERSION', '1.21' );
     43define( 'DMS_RELEASE_DATE', date_i18n( 'F j, Y', strtotime( '11/25/2017' ) ) );
    4444define( 'DMS_DIR', plugin_dir_path( __FILE__ ) );
    4545define( 'DMS_URL', plugin_dir_url( __FILE__ ) );
  • dms/trunk/includes/general/i_db_upgrade.php

    r1768471 r1775329  
    4141        if ($old_version==1.15) dms_update_0115();
    4242        if ($old_version==1.16) dms_update_0116();
     43        if ($old_version==1.17) dms_update_0117();
     44        if ($old_version==1.20) dms_update_0120();
     45
    4346
    4447        $old_version = dms_get_old_version();
     
    305308    }
    306309
    307 
     310function dms_update_0117()
     311    {
     312    global $dmsdb;
     313
     314    $query  = "UPDATE ".$dmsdb->prefix("dms_config")." ";
     315    $query .= "SET data='1.20' WHERE name='version'";
     316    $dmsdb->query($query);
     317    }
     318
     319function dms_update_0120()
     320    {
     321    global $dmsdb;
     322
     323    $query  = "UPDATE ".$dmsdb->prefix("dms_config")." ";
     324    $query .= "SET data='1.21' WHERE name='version'";
     325    $dmsdb->query($query);
     326    }
    308327
    309328
  • dms/trunk/includes/general/i_dms_functions.php

    r1768471 r1775329  
    521521function dms_document_deletion($purge_limit = 0)
    522522{
    523     global $dms_config, $HTTP_SERVER_VARS, $dmsdb;
     523    global $dms_config, $dmsdb; // removed for php 7 compatibility $HTTP_SERVER_VARS
     524
    524525
    525526    // If document purging is not enabled, then exit.
     
    527528
    528529    // If the page being displayed is the main page (index.php) exit.
    529     if(strpos($HTTP_SERVER_VARS['SCRIPT_FILENAME'],"index.php")) return;
     530    //if(strpos($HTTP_SERVER_VARS['SCRIPT_FILENAME'],"index.php")) return;    Removed for PHP 7 compatibility....probably not needed anyhow.
    530531
    531532    // Determine the time_stamp_delete parameter to query before
  • dms/trunk/includes/general/i_perms_set.php

    r1768471 r1775329  
    187187if( !($obj_id > 0)  )   // If a valid $obj_id doesn't exist, then look for one.
    188188    {
     189    if(dms_get_var("hdn_obj_id") != FALSE)
     190        {
     191        $obj_id = dms_get_var("hdn_obj_id");
     192        }
     193    else
     194        {
     195        $obj_id = dms_get_var("obj_id");
     196        }
     197
     198/*
    189199    if ($HTTP_POST_VARS["hdn_obj_id"]) $obj_id = $HTTP_POST_VARS['hdn_obj_id'];
    190200    else $obj_id = $HTTP_GET_VARS['obj_id'];
     201*/
    191202    }
    192203
  • dms/trunk/pages/file_retrieve.php

    r1768471 r1775329  
    5959if( $dms_global['dms_pro_dir'] != "FALSE" )
    6060    {
     61    print "dms_global dms_pro_dir != false<br>";
     62
     63
    6164    define("DMS_PRO", "INSTALLED");
    6265    define("DMS_PRO_DIR", $dms_global['dms_pro_dir'] );
     
    7376if (!defined("DMS_PRO_DIR") )
    7477    {
    75     if("file_exists(../../dms_pro")
     78    if(file_exists("../../dms_pro"))
    7679        {
    7780        //define("DMS_PRO_DIR",DMS_DIR . "//dms_pro");
     
    8588$includes_dir = DMS_DIR . "includes/general/";
    8689if( defined("DMS_PRO_DIR") ) $includes_dir = DMS_PRO_DIR . "includes/";
     90
     91//print $includes_dir . "i_dms_functions.php<BR>";
     92//    exit(0);
    8793
    8894require_once( DMS_DIR . "/includes/general/i_defines.php" );
  • dms/trunk/pages/search_prop.php

    r1768471 r1775329  
    424424            print "              <option value=''>Do Not Search</option>\r";
    425425
    426             while($option_data = mysql_fetch_array($options))
     426            while($option_data = mysqli_fetch_array($options))
    427427                {
    428428                print "              <option value='".$option_data['row_id']."'";
  • dms/trunk/readme.txt

    r1768471 r1775329  
    9898== Changelog ==
    9999
     100= 1.21 =
     101* Fixed a file retrieval error that resulted in an Internal Server Error 500 when retrieving a file.
     102
     103= 1.20 =
     104* PHP 7.x compatiblity fixes.
     105
    100106= 1.17 =
    101107* Added support for lifecycles in future versions of DMS Pro.
     
    187193== Upgrade Notice ==
    188194
     195= 1.21 =
     196* Fixed a file retrieval error that resulted in an Internal Server Error 500 when retrieving a file.
     197
     198= 1.20 =
     199* PHP 7.x compatiblity fixes.
     200
    189201= 1.17 =
    190202* Added support for lifecycles in future versions of DMS Pro.
Note: See TracChangeset for help on using the changeset viewer.