Changeset 398851
- Timestamp:
- 06/19/2011 10:10:22 AM (15 years ago)
- Location:
- html5avmanager
- Files:
-
- 80 added
- 5 edited
-
tags/0.1.10 (added)
-
tags/0.1.10/api.php (added)
-
tags/0.1.10/html5avmanager.php (added)
-
tags/0.1.10/lib (added)
-
tags/0.1.10/lib/blank.js (added)
-
tags/0.1.10/lib/dbal.php (added)
-
tags/0.1.10/lib/jquery.js (added)
-
tags/0.1.10/lib/mediaelement (added)
-
tags/0.1.10/lib/mediaelement/Thumbs.db (added)
-
tags/0.1.10/lib/mediaelement/background.png (added)
-
tags/0.1.10/lib/mediaelement/bigplay.png (added)
-
tags/0.1.10/lib/mediaelement/controls-ted.png (added)
-
tags/0.1.10/lib/mediaelement/controls-wmp-bg.png (added)
-
tags/0.1.10/lib/mediaelement/controls-wmp.png (added)
-
tags/0.1.10/lib/mediaelement/controls.png (added)
-
tags/0.1.10/lib/mediaelement/flashmediaelement.swf (added)
-
tags/0.1.10/lib/mediaelement/jquery.js (added)
-
tags/0.1.10/lib/mediaelement/loading.gif (added)
-
tags/0.1.10/lib/mediaelement/mediaelement-and-player.js (added)
-
tags/0.1.10/lib/mediaelement/mediaelement-and-player.min.js (added)
-
tags/0.1.10/lib/mediaelement/mediaelement.js (added)
-
tags/0.1.10/lib/mediaelement/mediaelement.min.js (added)
-
tags/0.1.10/lib/mediaelement/mediaelementplayer.css (added)
-
tags/0.1.10/lib/mediaelement/mediaelementplayer.js (added)
-
tags/0.1.10/lib/mediaelement/mediaelementplayer.min.css (added)
-
tags/0.1.10/lib/mediaelement/mediaelementplayer.min.js (added)
-
tags/0.1.10/lib/mediaelement/mejs-skins.css (added)
-
tags/0.1.10/lib/mediaelement/silverlightmediaelement.xap (added)
-
tags/0.1.10/lib/model (added)
-
tags/0.1.10/lib/model/html5av_audio_video.php (added)
-
tags/0.1.10/lib/model/html5av_source.php (added)
-
tags/0.1.10/lib/model/html5av_track.php (added)
-
tags/0.1.10/lib/time.php (added)
-
tags/0.1.10/lib/uploadify (added)
-
tags/0.1.10/lib/uploadify/cancel.png (added)
-
tags/0.1.10/lib/uploadify/check.php (added)
-
tags/0.1.10/lib/uploadify/custom.php (added)
-
tags/0.1.10/lib/uploadify/expressInstall.swf (added)
-
tags/0.1.10/lib/uploadify/jquery.uploadify.js (added)
-
tags/0.1.10/lib/uploadify/uploadify.allglyphs.swf (added)
-
tags/0.1.10/lib/uploadify/uploadify.css (added)
-
tags/0.1.10/lib/uploadify/uploadify.fla (added)
-
tags/0.1.10/lib/uploadify/uploadify.swf (added)
-
tags/0.1.10/license.txt (added)
-
tags/0.1.10/readme.txt (added)
-
tags/0.1.10/screenshot-1.png (added)
-
tags/0.1.10/screenshot-2.png (added)
-
tags/0.1.10/screenshot-3.png (added)
-
tags/0.1.10/screenshot-4.png (added)
-
tags/0.1.10/screenshot-5.png (added)
-
tags/0.1.10/screenshot-6.png (added)
-
tags/0.1.10/screenshot-7.png (added)
-
tags/0.1.10/screenshot-8.png (added)
-
tags/0.1.10/sql (added)
-
tags/0.1.10/sql/main.sql (added)
-
tags/0.1.10/sql/update (added)
-
tags/0.1.10/sql/update/2.sql (added)
-
tags/0.1.10/view (added)
-
tags/0.1.10/view/admin (added)
-
tags/0.1.10/view/admin/audio-add-panel.php (added)
-
tags/0.1.10/view/admin/audio-edit-panel.php (added)
-
tags/0.1.10/view/admin/no-av.php (added)
-
tags/0.1.10/view/admin/settings-panel.php (added)
-
tags/0.1.10/view/admin/source-external-panel.php (added)
-
tags/0.1.10/view/admin/source-panel.php (added)
-
tags/0.1.10/view/admin/track-external-panel.php (added)
-
tags/0.1.10/view/admin/track-panel.php (added)
-
tags/0.1.10/view/admin/video-add-panel.php (added)
-
tags/0.1.10/view/admin/video-audio-manager-page.php (added)
-
tags/0.1.10/view/admin/video-audio-manager-pagenation.php (added)
-
tags/0.1.10/view/admin/video-audio-manager-panel.php (added)
-
tags/0.1.10/view/admin/video-edit-panel.php (added)
-
tags/0.1.10/view/admin/widget.php (added)
-
tags/0.1.10/view/videoaudio (added)
-
tags/0.1.10/view/videoaudio/audio-default.php (added)
-
tags/0.1.10/view/videoaudio/audio-xml.php (added)
-
tags/0.1.10/view/videoaudio/setting.php (added)
-
tags/0.1.10/view/videoaudio/video-default.php (added)
-
tags/0.1.10/view/videoaudio/video-xml.php (added)
-
trunk/api.php (modified) (4 diffs)
-
trunk/html5avmanager.php (modified) (1 diff)
-
trunk/lib/dbal.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sql/main.sql (modified) (4 diffs)
-
trunk/sql/update/2.sql (added)
Legend:
- Unmodified
- Added
- Removed
-
html5avmanager/trunk/api.php
r398434 r398851 33 33 $title = self::$param['title']; 34 34 $alt = self::$param['alt']; 35 if($alt == '') {36 $alt = $title;37 }38 35 $tempPath = self::$param['path']; 39 36 $poster_filename = self::$param['file']; … … 72 69 $title = self::$param['title']; 73 70 $alt = self::$param['alt']; 74 if($alt == '') {75 $alt = $title;76 }77 71 $tempPath = self::$param['path']; 78 72 $poster_filename = self::$param['file']; … … 204 198 $title = self::$param['title']; 205 199 $alt = self::$param['alt']; 206 if($alt == '') {207 $alt = $title;208 }209 200 $width = (int) self::$param['width']; 210 201 $height = (int) self::$param['height']; … … 239 230 $title = self::$param['title']; 240 231 $alt = self::$param['alt']; 241 if($alt == '') {242 $alt = $title;243 }244 232 $view = self::$param['view']; 245 233 -
html5avmanager/trunk/html5avmanager.php
r398687 r398851 5 5 Plugin URI: http://cj-jackson.com/ 6 6 Description: A video manager with a Modal-View-Controller and video uploader. 7 Version: 0.1. 97 Version: 0.1.10 8 8 Author: Christopher John Jackson 9 9 Author URI: http://cj-jackson.com/ -
html5avmanager/trunk/lib/dbal.php
r396591 r398851 9 9 * Inherit all features of PHP Data Object (PDO). 10 10 */ 11 12 11 class html5av_dbal extends PDO { 13 12 … … 16 15 private $DB_PASSWD; 17 16 private $DB_HOST; 18 private $DB_CHARSET;19 private $DB_COLLATE;20 17 private $DB_PREFIX; 21 18 22 const DBRev = 1;19 const DBRev = 2; 23 20 24 21 public function __construct() { … … 28 25 $this->DB_PASSWD = DB_PASSWORD; 29 26 $this->DB_HOST = DB_HOST; 30 if (defined('DB_CHARSET')) { 31 $this->DB_CHARSET = DB_CHARSET; 32 $this->DB_COLLATE = DB_COLLATE; 27 $this->DB_PREFIX = $table_prefix . 'html5av_'; 28 $tempHost = explode(':', $this->DB_HOST); 29 if(isset($tempHost[1])) { 30 $port = $tempHost[1]; 33 31 } else { 34 $this->DB_CHARSET = false; 35 $this->DB_COLLATE = false; 32 $port = 3306; 36 33 } 37 $this->DB_PREFIX = $table_prefix . 'html5av_'; 38 $collate = ''; 39 if ($this->DB_COLLATE != '') { 40 $collate = " COLLATE " . $this->DB_COLLATE; 41 } 42 if (preg_match('#.sock([0-9]{0,})$#i', $this->DB_HOST)) { 43 $host = "unix_socket=" . preg_replace('#^([a-z0-9.]{0,}):/#i', '/', $this->DB_HOST); 34 unset($tempHost); 35 if (!is_numeric($port)) { 36 $host = "unix_socket=" . end(explode(':',$this->DB_HOST)); 44 37 } else { 45 38 $array = explode(':', $this->DB_HOST); … … 50 43 unset($array); 51 44 } 52 if ($this->DB_CHARSET) { 53 $options = array( 54 PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES " . $this->DB_CHARSET . $collate 55 ); 56 parent::__construct('mysql:' . $host . ';dbname=' . $this->DB_NAME, $this->DB_USER, $this->DB_PASSWD, $options); 57 } else { 58 parent::__construct('mysql:' . $host . ';dbname=' . $this->DB_NAME, $this->DB_USER, $this->DB_PASSWD); 59 } 45 parent::__construct('mysql:' . $host . ';dbname=' . $this->DB_NAME, 46 $this->DB_USER, $this->DB_PASSWD); 60 47 } 61 48 … … 78 65 public function setUpTables() { 79 66 $this->execFile('main.sql'); 80 update_option('html5av_manager_dbrev', 1);67 update_option('html5av_manager_dbrev', self::DBRev); 81 68 } 82 69 83 70 public function updateTables() { 84 $curRev = get_option('html5av_manager_dbrev');71 $curRev = (int)get_option('html5av_manager_dbrev'); 85 72 if ($curRev == self::DBRev) { 86 73 return; 87 74 } 75 76 if($curRev < 2) { 77 $this->execFile('update/2.sql'); 78 } 79 80 update_option('html5av_manager_dbrev', self::DBRev); 88 81 } 89 82 -
html5avmanager/trunk/readme.txt
r398687 r398851 5 5 Requires at least: 2.7 6 6 Tested up to: 3.2 7 Stable tag: 0.1. 97 Stable tag: 0.1.10 8 8 9 9 A HTML5 Audio and Video manager that take full advantage of … … 62 62 == Changelog == 63 63 64 = 0.1.10 = 65 * Updated SQL to force 'utf8_general_ci', no longer relies on WordPress config 66 for character set or collation because it's does not work on some installation. 67 * No longer uses 'preg_match' in any script, better determination between, 68 unix socket and tcp/ip in WordPress configuration. 69 64 70 = 0.1.9 = 65 71 * Fixed bug with uploadify in add video and audio. -
html5avmanager/trunk/sql/main.sql
r397041 r398851 1 -- rev 11 -- rev 2 2 2 3 3 CREATE TABLE `_prefix_audio_video` ( … … 10 10 `view` varchar(255), 11 11 title varchar(255) NOT NULL, 12 alt varchar(255) NOT NULL,12 alt varchar(255), 13 13 author_id bigint(20) UNSIGNED NOT NULL, 14 14 created_on datetime NOT NULL, 15 15 modified datetime NOT NULL 16 ) ENGINE=innodb ;16 ) ENGINE=innodb CHARACTER SET utf8 COLLATE utf8_general_ci; 17 17 18 18 CREATE TABLE `_prefix_source` ( … … 28 28 FOREIGN KEY (audio_video_id) REFERENCES `_prefix_audio_video`(ID) 29 29 ON UPDATE CASCADE ON DELETE CASCADE 30 ) ENGINE=innodb ;30 ) ENGINE=innodb CHARACTER SET utf8 COLLATE utf8_general_ci; 31 31 32 32 CREATE TABLE `_prefix_track` ( … … 44 44 FOREIGN KEY (audio_video_id) REFERENCES `_prefix_audio_video`(ID) 45 45 ON UPDATE CASCADE ON DELETE CASCADE 46 ) ENGINE=innodb ;46 ) ENGINE=innodb CHARACTER SET utf8 COLLATE utf8_general_ci;
Note: See TracChangeset
for help on using the changeset viewer.