Changeset 1955446
- Timestamp:
- 10/11/2018 10:13:22 PM (7 years ago)
- Location:
- dmc-media
- Files:
-
- 21 added
- 6 edited
-
tags/2.6 (added)
-
tags/2.6/common (added)
-
tags/2.6/common/lcw_common (added)
-
tags/2.6/common/lcw_common.php (added)
-
tags/2.6/common/lcw_common/Lcw_common_dbMaintenence_plus.php (added)
-
tags/2.6/common/lcw_common/Lcw_common_formgeneration_plus.php (added)
-
tags/2.6/common/lcw_common/Lcw_common_wp_db_driver.php (added)
-
tags/2.6/common/lcw_common/images (added)
-
tags/2.6/common/lcw_common/images/arrows.png (added)
-
tags/2.6/db (added)
-
tags/2.6/db/database.php (added)
-
tags/2.6/dmcmedia.php (added)
-
tags/2.6/images (added)
-
tags/2.6/images/ajax-loader.gif (added)
-
tags/2.6/images/arrows.png (added)
-
tags/2.6/images/notes.png (added)
-
tags/2.6/objects (added)
-
tags/2.6/objects/dmc_admin.php (added)
-
tags/2.6/objects/dmc_client.php (added)
-
tags/2.6/objects/dmc_media_activate.php (added)
-
tags/2.6/readme.txt (added)
-
trunk/common/lcw_common.php (modified) (1 diff)
-
trunk/common/lcw_common/Lcw_common_dbMaintenence_plus.php (modified) (1 diff)
-
trunk/common/lcw_common/Lcw_common_formgeneration_plus.php (modified) (3 diffs)
-
trunk/db/database.php (modified) (3 diffs)
-
trunk/dmcmedia.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dmc-media/trunk/common/lcw_common.php
r1440462 r1955446 2 2 /** 3 3 MU Plugin Name: LCW Common Toola 4 Version: 1. 04 Version: 1.1 5 5 Description: Common Tools Repository 6 6 Author: Larry Wakeman -
dmc-media/trunk/common/lcw_common/Lcw_common_dbMaintenence_plus.php
r1440462 r1955446 189 189 $temp = $this->query($query, __LINE__); 190 190 $tabledata = array(); 191 foreach ($temp as $entry) $tabledata[$entry['Field']] = $entry; 191 if (is_array($temp)) { 192 foreach ($temp as $entry) { 193 $tabledata[$entry['Field']] = $entry; 194 } 195 } 192 196 unset($temp); 193 197 //check for new fields -
dmc-media/trunk/common/lcw_common/Lcw_common_formgeneration_plus.php
r1440462 r1955446 386 386 */ 387 387 protected function _getValues($values, $new='') { 388 if ($values == '') return ''; 389 $return = unserialize($values); 388 if (stripos($values, 'SELECT') !== false) { 389 $array = $this->query(str_replace('#', $this->prefix, $values)); 390 if (!is_array($array)) return ''; 391 $return = array(); 392 foreach ($array as $entry) { 393 $return[$entry['ID']] = $entry['value']; 394 } 395 } else { 396 $return = unserialize($values); 397 } 390 398 if (is_array($return) && is_array($new)) $return = array_merge($new, $return); 391 399 if (is_array($return)) return $return; 392 400 $array = $this->query(str_replace('#', $this->prefix, $values)); 393 if (!is_array($array)) return '';394 $return = array();395 if(is_array($new)) $return = $new;396 foreach ($array as $entry) {397 $return[$entry['ID']] = $entry['value'];398 }399 401 return $return; 400 402 } … … 571 573 } 572 574 $title_margin = '0px'; 573 $URL .= $link."&orderby=".$column['Field']."&order=asc";574 if ( $column['Field'] == $_GET['orderby']) {575 $URL = $link."&orderby=".$column['Field']."&order=asc"; 576 if (isset($_GET['orderby']) && $column['Field'] == $_GET['orderby']) { 575 577 switch ($_GET['order']) { 576 578 case 'asc': … … 734 736 $return .= '<th class="check-column" scope="row"><input type="checkbox" style="margin-left: 14px;" class="selection" id="selection_'.$entry[$primary].'" name="selection_'.$entry[$primary].'"></tn>'; 735 737 } 738 $primary = $entry['id']; 736 739 foreach ($schema as $column) { 737 740 if ($column['label'] != '' && $column['gridDisplay'] == 1) { -
dmc-media/trunk/db/database.php
r1440462 r1955446 18 18 * Table schema_version 19 19 */ 20 $database['tables']['#schema_version']['columns']['major_version'] = array('Field' => 'major_version', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );21 $database['tables']['#schema_version']['columns']['minor_version'] = array('Field' => 'minor_version', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );22 $database['tables']['#schema_version']['columns']['version_edit'] = array('Field' => 'version_edit', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );20 $database['tables']['#schema_version']['columns']['major_version'] = array('Field' => 'major_version', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 21 $database['tables']['#schema_version']['columns']['minor_version'] = array('Field' => 'minor_version', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 22 $database['tables']['#schema_version']['columns']['version_edit'] = array('Field' => 'version_edit', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 23 23 $database['tables']['#schema_version']['columns']['custom_major'] = array('Field' => 'custom_major', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Update' => '', 'Extra' => '', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 24 24 $database['tables']['#schema_version']['columns']['custom_minor'] = array('Field' => 'custom_minor', 'Type' => 'int(11)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '0', 'Update' => '', 'Extra' => '', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); … … 51 51 * Table categories 52 52 */ 53 $database['tables']['#categories']['columns']['categoryid'] = array('Field' => 'categoryid', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );54 $database['tables']['#categories']['columns']['category'] = array('Field' => 'category', 'Type' => 'varchar(50)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );55 $database['tables']['#categories']['columns']['description'] = array('Field' => 'description', 'Type' => 'text', 'Collation' => 'utf8_general_ci', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );53 $database['tables']['#categories']['columns']['categoryid'] = array('Field' => 'categoryid', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 54 $database['tables']['#categories']['columns']['category'] = array('Field' => 'category', 'Type' => 'varchar(50)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 55 $database['tables']['#categories']['columns']['description'] = array('Field' => 'description', 'Type' => 'text', 'Collation' => 'utf8_general_ci', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 56 56 $database['tables']['#categories']['Engine'] = 'MyISAM'; 57 57 $database['tables']['#categories']['Collation'] = 'utf8_general_ci'; … … 60 60 * Table media 61 61 */ 62 $database['tables']['#media']['columns']['id'] = array('Field' => 'id', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );63 $database['tables']['#media']['columns']['title'] = array('Field' => 'title', 'Type' => 'varchar(55)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );64 $database['tables']['#media']['columns']['url'] = array('Field' => 'url', 'Type' => 'varchar(255)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );65 $database['tables']['#media']['columns']['file'] = array('Field' => 'file', 'Type' => 'varchar(255)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );66 $database['tables']['#media']['columns']['description'] = array('Field' => 'description', 'Type' => 'text', 'Collation' => 'utf8_general_ci', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );67 $database['tables']['#media']['columns']['order'] = array('Field' => 'order', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );68 $database['tables']['#media']['columns']['categoryid'] = array('Field' => 'categoryid', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', );62 $database['tables']['#media']['columns']['id'] = array('Field' => 'id', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => 'PRI', 'Default' => '', 'Extra' => 'auto_increment', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 63 $database['tables']['#media']['columns']['title'] = array('Field' => 'title', 'Type' => 'varchar(55)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 64 $database['tables']['#media']['columns']['url'] = array('Field' => 'url', 'Type' => 'varchar(255)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 65 $database['tables']['#media']['columns']['file'] = array('Field' => 'file', 'Type' => 'varchar(255)', 'Collation' => 'utf8_general_ci', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 66 $database['tables']['#media']['columns']['description'] = array('Field' => 'description', 'Type' => 'text', 'Collation' => 'utf8_general_ci', 'Null' => 'YES', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 67 $database['tables']['#media']['columns']['order'] = array('Field' => 'order', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 68 $database['tables']['#media']['columns']['categoryid'] = array('Field' => 'categoryid', 'Type' => 'bigint(20)', 'Collation' => '', 'Null' => 'NO', 'Key' => '', 'Default' => '', 'Extra' => '', 'Privileges' => 'select,insert,update,references', 'Comment' => '', 'label' => '', 'control' => 'text', 'values' => '', 'watermark' => '', 'gridDisplay' => '0', 'keyField' => '0', 'classes' => '', 'other_attributes' => '', 'message'=> '',); 69 69 $database['tables']['#media']['Engine'] = 'MyISAM'; 70 70 $database['tables']['#media']['Collation'] = 'utf8_general_ci'; -
dmc-media/trunk/dmcmedia.php
r1681534 r1955446 2 2 /** 3 3 Plugin Name: DMC Media Play and Download 4 Version: 2. 54 Version: 2.6 5 5 Plugin URI: http://larrywakeman.com/download/dmc-media/ 6 6 Donate URI: http://larrywakeman.com/download/dmc-media/ -
dmc-media/trunk/readme.txt
r1763427 r1955446 6 6 Tags: User Listing 7 7 Requires at least: 4.2. 8 Tested up to: 4. 99 Stable tag: 2. 58 Tested up to: 4.8 9 Stable tag: 2.6 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 * Meta data bug fix 82 82 83 = 2.6 = 84 * PHP 7.1 85 83 86 == Upgrade Notice == 84 87 … … 118 121 * Meta data bug fix 119 122 123 = 2.6 = 124 * PHP 7.1 125 120 126 == Customization == 121 127
Note: See TracChangeset
for help on using the changeset viewer.