VOD Infomaniak - Version 1.2.4

Version Description

(03/08/2015) = * Fix version

Download this release

Release Info

Developer infomaniak-dev
Plugin Icon wp plugin VOD Infomaniak
Version 1.2.4
Comparing to
See all releases

Code changes from version 1.2.3 to 1.2.4

Files changed (4) hide show
  1. readme.txt +8 -1
  2. vod.class.php +5 -18
  3. vod.php +1 -1
  4. vod.template.php +4 -1
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin Name: Vod Infomaniak
5
Tags: video, manage, infomaniak, vod
6
Requires at least: 2.8.6
7
Tested up to: 4.1
8
- Stable tag: 1.2.2
9
10
11
@@ -72,6 +72,13 @@ Si vous ne trouvez pas de solution à votre question, vous pouvez aussi nous con
72
73
== Changelog ==
74
75
= 1.2.2 (14/04/2015) =
76
* Suppresion des données du plugin lors de sa desinstallation
77
* Fix bug quand on ajoute une vidéo avec lien direct
5
Tags: video, manage, infomaniak, vod
6
Requires at least: 2.8.6
7
Tested up to: 4.1
8
+ Stable tag: 1.2.4
9
10
11
72
73
== Changelog ==
74
75
+ = 1.2.4 (03/08/2015) =
76
+ * Fix version
77
+
78
+ = 1.2.3 (03/08/2015) =
79
+ * Fix accent sur le module de langues
80
+ * Ajout tuto video dans la page de config du plugin
81
+
82
= 1.2.2 (14/04/2015) =
83
* Suppresion des données du plugin lors de sa desinstallation
84
* Fix bug quand on ajoute une vidéo avec lien direct
vod.class.php CHANGED
@@ -5,17 +5,17 @@
5
*
6
* @author Destrem Kevin + Davide Rubini
7
* @link http://statslive.infomaniak.ch/vod/api/
8
- * @version 1.2.2
9
* @copyright infomaniak.ch
10
- *
11
*/
12
define('VOD_RIGHT_CONTRIBUTOR', 1);
13
define('VOD_RIGHT_AUTHOR', 2);
14
define('VOD_RIGHT_EDITOR', 3);
15
define('VOD_RIGHT_ADMIN', 4);
16
17
class EasyVod {
18
- public $version = "1.2.2";
19
private $local_version;
20
private $plugin_url;
21
private $options;
@@ -35,7 +35,7 @@
35
36
function add_filters_and_hooks() {
37
register_activation_hook(__FILE__, array(&$this, 'install_db'));
38
- register_uninstall_hook(__FILE__, array(&$this, 'uninstall_db'));
39
add_action('plugins_loaded', array(&$this, 'update_db'));
40
41
load_plugin_textdomain('vod_infomaniak', FALSE, basename(dirname(__FILE__)) . '/languages');
@@ -135,10 +135,6 @@
135
}
136
}
137
138
- function uninstall_db() {
139
- $this->db->uninstall_db();
140
- }
141
-
142
function add_menu_items() {
143
if ($this->auto_sync) {
144
$this->checkAutoUpdate();
@@ -352,6 +348,7 @@
352
$video_url = $sUrl . "?url=&playlist=" . $file;
353
} else {
354
//Build de l'url finale
355
if (!preg_match('/^http(s)?:\/\//', $file) ) {
356
$sFile = $sAccountBase . "/" . $file;
357
} else {
@@ -1016,16 +1013,6 @@
1016
update_option("vod_db_version", $this->db_version);
1017
}
1018
1019
- function uninstall_db() {
1020
- global $wpdb;
1021
- $wpdb->query("DROP TABLE IF EXISTS " . $this->db_table_player);
1022
- $wpdb->query("DROP TABLE IF EXISTS " . $this->db_table_folder);
1023
- $wpdb->query("DROP TABLE IF EXISTS " . $this->db_table_video);
1024
- $wpdb->query("DROP TABLE IF EXISTS " . $this->db_table_playlist);
1025
- $wpdb->query("DROP TABLE IF EXISTS " . $this->db_table_upload);
1026
- delete_option('vod_db_version');
1027
- }
1028
-
1029
/*
1030
* Gestion des players
1031
*/
5
*
6
* @author Destrem Kevin + Davide Rubini
7
* @link http://statslive.infomaniak.ch/vod/api/
8
+ * @version 1.2.4
9
* @copyright infomaniak.ch
10
*/
11
+
12
define('VOD_RIGHT_CONTRIBUTOR', 1);
13
define('VOD_RIGHT_AUTHOR', 2);
14
define('VOD_RIGHT_EDITOR', 3);
15
define('VOD_RIGHT_ADMIN', 4);
16
17
class EasyVod {
18
+ public $version = "1.2.4";
19
private $local_version;
20
private $plugin_url;
21
private $options;
35
36
function add_filters_and_hooks() {
37
register_activation_hook(__FILE__, array(&$this, 'install_db'));
38
+
39
add_action('plugins_loaded', array(&$this, 'update_db'));
40
41
load_plugin_textdomain('vod_infomaniak', FALSE, basename(dirname(__FILE__)) . '/languages');
135
}
136
}
137
138
function add_menu_items() {
139
if ($this->auto_sync) {
140
$this->checkAutoUpdate();
348
$video_url = $sUrl . "?url=&playlist=" . $file;
349
} else {
350
//Build de l'url finale
351
+ $file = ltrim($file);
352
if (!preg_match('/^http(s)?:\/\//', $file) ) {
353
$sFile = $sAccountBase . "/" . $file;
354
} else {
1013
update_option("vod_db_version", $this->db_version);
1014
}
1015
1016
/*
1017
* Gestion des players
1018
*/
vod.php CHANGED
@@ -4,7 +4,7 @@
4
Plugin URI: http://wordpress.org/extend/plugins/vod-infomaniak/
5
Description: Easily embed and manage videos from Infomaniak VOD in your posts, comments and RSS feeds. You need an Infomaniak VOD account to use this plugin.
6
Author: Infomaniak Staff
7
- Version: 1.2.2
8
Author URI: http://infomaniak.com
9
*/
10
4
Plugin URI: http://wordpress.org/extend/plugins/vod-infomaniak/
5
Description: Easily embed and manage videos from Infomaniak VOD in your posts, comments and RSS feeds. You need an Infomaniak VOD account to use this plugin.
6
Author: Infomaniak Staff
7
+ Version: 1.2.4
8
Author URI: http://infomaniak.com
9
*/
10
vod.template.php CHANGED
@@ -5,7 +5,7 @@
5
*
6
* @author Destrem Kevin + Davide Rubini
7
* @link http://statslive.infomaniak.ch/vod/api/
8
- * @version 1.2
9
* @copyright infomaniak.ch
10
*
11
*/
@@ -332,6 +332,9 @@
332
static function adminMenu($action_url, $options, $sUrl, $aFolders) {
333
?>
334
<h2><?php _e('Administration du plugin VOD', 'vod_infomaniak'); ?></h2>
335
<form name="adminForm" action="<?php echo $action_url; ?>" method="post">
336
<input type="hidden" name="submitted" value="1"/>
337
<?php if ($options['vod_api_connected'] == "on") { ?>
5
*
6
* @author Destrem Kevin + Davide Rubini
7
* @link http://statslive.infomaniak.ch/vod/api/
8
+ * @version 1.2.4
9
* @copyright infomaniak.ch
10
*
11
*/
332
static function adminMenu($action_url, $options, $sUrl, $aFolders) {
333
?>
334
<h2><?php _e('Administration du plugin VOD', 'vod_infomaniak'); ?></h2>
335
+
336
+ <iframe frameborder="0" width="512" height="384" src="http://vod.infomaniak.com/iframe.php?url=https://vod.infomaniak.com/redirect/faq_vod/racine-1594/mp4-319/1539_72_1397483621_2934.mp4&duration=&player=299&vod=86&preloadImage=https://vod.infomaniak.com/redirect/faq_vod/racine-1594/mp4-319/1539_72_1397483621_2934.jpg?1438234073197&lg=fr&wmode=direct"></iframe>
337
+
338
<form name="adminForm" action="<?php echo $action_url; ?>" method="post">
339
<input type="hidden" name="submitted" value="1"/>
340
<?php if ($options['vod_api_connected'] == "on") { ?>