diff --git a/objects/plugin.php b/objects/plugin.php
index f488e2b968..af51c1b522 100644
--- a/objects/plugin.php
+++ b/objects/plugin.php
@@ -436,3 +436,21 @@ class Plugin extends ObjectYPT {
}
}
+
+class PluginTags {
+ static $RECOMMENDED = array('success', 'Recommended', '', 'RECOMMENDED');
+ static $SECURITY = array('warning', 'Security', '', 'SECURITY');
+ static $LIVE = array('primary', 'Live', '', 'LIVE');
+ static $MONETIZATION = array('primary', 'Monetization', '', 'MONETIZATION');
+ static $ADS = array('primary', 'ADS', '', 'ADS');
+ static $STORAGE = array('primary', 'Storage', '', 'STORAGE');
+ static $GALLERY = array('primary', 'Gallery', '', 'GALLERY');
+ static $NETFLIX = array('primary', 'Netflix', '', 'NETFLIX');
+ static $LAYOUT = array('primary', 'Layout', '', 'LAYOUT');
+ static $LOGIN = array('primary', 'Login', '', 'LOGIN');
+ static $MOBILE = array('primary', 'Mobile', '', 'MOBILE');
+ static $PLAYER = array('primary', 'Player', '', 'PLAYER');
+ static $FREE = array('info', 'Free', '', 'FREE');
+ static $PREMIUM = array('info', 'Premium', '', 'PREMIUM');
+ static $DEPRECATED = array('danger', 'Deprecated', '', 'DEPRECATED');
+}
\ No newline at end of file
diff --git a/plugin/AD_Overlay/AD_Overlay.php b/plugin/AD_Overlay/AD_Overlay.php
index 24ecfb23a0..474bcebf9c 100644
--- a/plugin/AD_Overlay/AD_Overlay.php
+++ b/plugin/AD_Overlay/AD_Overlay.php
@@ -5,6 +5,16 @@ require_once $global['systemRootPath'] . 'plugin/AD_Overlay/Objects/AD_Overlay_C
class AD_Overlay extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$MONETIZATION,
+ PluginTags::$ADS,
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
+
public function getDescription() {
$txt = "Display simple overlays - similar to YouTube's \"Annotations\" feature in appearance - during video playback.";
$help = "
Help";
@@ -41,7 +51,7 @@ class AD_Overlay extends PluginAbstract {
';
$obj->adText = $o;
-
+
$o = new stdClass();
$o->type = "textarea";
$o->value = '
@@ -82,10 +92,6 @@ class AD_Overlay extends PluginAbstract {
return $obj;
}
- public function getTags() {
- return array('free');
- }
-
public function getHeadCode() {
if (empty($_GET['videoName']) && empty($_GET['u']) && empty($_GET['link'])) {
return false;
@@ -120,12 +126,12 @@ class AD_Overlay extends PluginAbstract {
}
$obj = $this->getDataObject();
- if(isMobile()){
+ if (isMobile()) {
$adText = $obj->mobileAdText->value;
- }else{
+ } else {
$adText = $obj->adText->value;
}
-
+
if ($obj->allowUserAds) {
if (!empty($video['id'])) {
@@ -155,7 +161,7 @@ class AD_Overlay extends PluginAbstract {
. '';
$js .= '';
-
+
$onPlayerReady = "setTimeout(function(){
\$('#cbb').click(function() {
\$('.vjs-overlay').fadeOut();
@@ -178,8 +184,8 @@ class AD_Overlay extends PluginAbstract {
align: '{$obj->align}'
}]
});";
- $js .= '';
-
+ $js .= '';
+
return $js;
}
diff --git a/plugin/AD_Server/AD_Server.php b/plugin/AD_Server/AD_Server.php
index 7e452ee1ee..d721931d3b 100644
--- a/plugin/AD_Server/AD_Server.php
+++ b/plugin/AD_Server/AD_Server.php
@@ -11,6 +11,14 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaigns.php';
class AD_Server extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$MONETIZATION,
+ PluginTags::$ADS,
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
public function getDescription() {
return "VAST Ad Server
Help";
diff --git a/plugin/AD_Server_Location/AD_Server_Location.php b/plugin/AD_Server_Location/AD_Server_Location.php
index 9bafbd39ff..6384ed7338 100644
--- a/plugin/AD_Server_Location/AD_Server_Location.php
+++ b/plugin/AD_Server_Location/AD_Server_Location.php
@@ -12,6 +12,15 @@ require_once $global['systemRootPath'] . 'plugin/User_Location/Objects/IP2Locati
class AD_Server_Location extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$MONETIZATION,
+ PluginTags::$ADS,
+ PluginTags::$FREE
+ );
+ }
+
public function getDescription() {
$desc = "Enable select location to display each ad
";
diff --git a/plugin/ADs/ADs.php b/plugin/ADs/ADs.php
index e2033f86ba..66102bc30a 100644
--- a/plugin/ADs/ADs.php
+++ b/plugin/ADs/ADs.php
@@ -3,7 +3,13 @@
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class ADs extends PluginAbstract {
-
+ public function getTags() {
+ return array(
+ PluginTags::$MONETIZATION,
+ PluginTags::$ADS,
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
$txt = "Handle the ads system, like Adsense or similar";
//$help = "
Help";
@@ -140,8 +146,4 @@ class ADs extends PluginAbstract {
}
return "";
}
-
- public function getTags() {
- return array('free');
- }
}
\ No newline at end of file
diff --git a/plugin/API/API.php b/plugin/API/API.php
index 0b87944ffd..657737a9fa 100644
--- a/plugin/API/API.php
+++ b/plugin/API/API.php
@@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class API extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$MOBILE
+ );
+ }
public function getDescription() {
return "Handle APIs for third party Applications";
}
diff --git a/plugin/AVideoPlugin.php b/plugin/AVideoPlugin.php
index b70bcc3c6f..03a0721883 100644
--- a/plugin/AVideoPlugin.php
+++ b/plugin/AVideoPlugin.php
@@ -240,28 +240,7 @@ class AVideoPlugin {
return $str;
}
- private static function firstPage() {
- $name = "ThemeSwitcherMenu";
- if (Plugin::isEnabledByName($name)) {
- $p = static::loadPlugin($name);
- if (is_object($p)) {
- $page = $p->getPage();
- if (!empty($page)) {
- $p2 = static::loadPlugin($page);
-
- return $p2->getFirstPage();
- }
- }
- }
- return false;
- }
-
public static function getFirstPage() {
- // if the menu set a different defaul page
- $fp = static::firstPage();
- if (!empty($fp)) {
- return $fp;
- }
return static::getEnabledFirstPage();
}
diff --git a/plugin/AdsForJesus/AdsForJesus.php b/plugin/AdsForJesus/AdsForJesus.php
index 0745221e9d..d372b93eb8 100644
--- a/plugin/AdsForJesus/AdsForJesus.php
+++ b/plugin/AdsForJesus/AdsForJesus.php
@@ -3,6 +3,13 @@ global $global;
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class AdsForJesus extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$ADS,
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
public function getDescription() {
$txt = " We will provide a simple VMAP Ad link for free, these ads will be placed in your videos.
"
diff --git a/plugin/Articles/Articles.php b/plugin/Articles/Articles.php
index b38fdba44c..987ea7e6ce 100644
--- a/plugin/Articles/Articles.php
+++ b/plugin/Articles/Articles.php
@@ -3,6 +3,11 @@ global $global;
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class Articles extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
global $global;
diff --git a/plugin/Audit/Audit.php b/plugin/Audit/Audit.php
index 0fe44e0850..6d318aa4fb 100644
--- a/plugin/Audit/Audit.php
+++ b/plugin/Audit/Audit.php
@@ -5,6 +5,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
require_once $global['systemRootPath'] . 'plugin/Audit/Objects/AuditTable.php';
class Audit extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE,
+ PluginTags::$SECURITY
+ );
+ }
public function getDescription() {
return "Save all insert, update and delete queries for audit";
diff --git a/plugin/BulkEmbed/BulkEmbed.php b/plugin/BulkEmbed/BulkEmbed.php
index 1151406598..f96637a6b0 100644
--- a/plugin/BulkEmbed/BulkEmbed.php
+++ b/plugin/BulkEmbed/BulkEmbed.php
@@ -3,6 +3,12 @@
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class BulkEmbed extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ );
+ }
public function getDescription() {
global $global;
@@ -32,12 +38,7 @@ class BulkEmbed extends PluginAbstract {
$obj->API_KEY = "AIzaSyCIqxE86BawU33Um2HEGtX4PcrUWeCh_6o";
$obj->onlyAdminCanBulkEmbed = true;
return $obj;
- }
-
- public function getTags() {
- return array('free', 'google');
- }
-
+ }
public function getPluginMenu() {
global $global;
diff --git a/plugin/Cache/Cache.php b/plugin/Cache/Cache.php
index 670098bb79..d85a9b43f7 100644
--- a/plugin/Cache/Cache.php
+++ b/plugin/Cache/Cache.php
@@ -3,6 +3,13 @@
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class Cache extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
$txt = "AVideo application accelerator to cache pages.
Your website has 10,000 visitors who are online, and your dynamic page has to send 10,000 times the same queries to database on every page load. With this plugin, your page only sends 1 query to your DB, and uses the cache to serve the 9,999 other visitors.";
@@ -53,10 +60,6 @@ class Cache extends PluginAbstract {
return $obj->cacheDir . $firstPage;
}
- public function getTags() {
- return array('free', 'cache', 'speed up');
- }
-
private function getFileName() {
if (empty($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = "";
diff --git a/plugin/Chromecast/Chromecast.php b/plugin/Chromecast/Chromecast.php
index 21cca5166c..980b8f6dab 100644
--- a/plugin/Chromecast/Chromecast.php
+++ b/plugin/Chromecast/Chromecast.php
@@ -5,6 +5,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class Chromecast extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
return "A plugin that adds a button to the control bar which will cast videos to a Chromecast.";
}
diff --git a/plugin/CloneSite/CloneSite.php b/plugin/CloneSite/CloneSite.php
index 73187d4b8c..18d05a8bd0 100644
--- a/plugin/CloneSite/CloneSite.php
+++ b/plugin/CloneSite/CloneSite.php
@@ -5,6 +5,13 @@ require_once $global['systemRootPath'] . 'plugin/CloneSite/functions.php';
class CloneSite extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$SECURITY,
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
global $global;
$obj = $this->getDataObject();
diff --git a/plugin/CombineSites/CombineSites.php b/plugin/CombineSites/CombineSites.php
index d900546607..c8329c629c 100644
--- a/plugin/CombineSites/CombineSites.php
+++ b/plugin/CombineSites/CombineSites.php
@@ -6,6 +6,12 @@ require_once $global['systemRootPath'] . 'plugin/CombineSites/Objects/CombineSit
class CombineSites extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
$desc = "This plugin will share multiple streamers medias
";
$desc .= $this->isReadyLabel(array('API'));
diff --git a/plugin/CustomizeAdvanced/CustomizeAdvanced.php b/plugin/CustomizeAdvanced/CustomizeAdvanced.php
index ddc46e6827..9d7cb5cfb0 100644
--- a/plugin/CustomizeAdvanced/CustomizeAdvanced.php
+++ b/plugin/CustomizeAdvanced/CustomizeAdvanced.php
@@ -5,6 +5,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class CustomizeAdvanced extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
$txt = "Fine Tuning your AVideo";
$help = "
Help";
@@ -111,10 +118,10 @@ class CustomizeAdvanced extends PluginAbstract {
$obj->autoHideNavbarInSeconds = 0;
$obj->videosCDN = "";
$obj->useFFMPEGToGenerateThumbs = false;
- $obj->thumbsWidthPortrait = 170;
- $obj->thumbsHeightPortrait = 250;
- $obj->thumbsWidthLandscape = 250;
- $obj->thumbsHeightLandscape = 140;
+ $obj->thumbsWidthPortrait = 360;
+ $obj->thumbsHeightPortrait = 640;
+ $obj->thumbsWidthLandscape = 640;
+ $obj->thumbsHeightLandscape = 360;
$obj->showImageDownloadOption = false;
$obj->doNotDisplayViews = false;
$obj->doNotDisplayLikes = false;
@@ -181,11 +188,7 @@ class CustomizeAdvanced extends PluginAbstract {
}
return "";
}
-
- public function getTags() {
- return array('free', 'customization', 'buttons', 'resolutions');
- }
-
+
public function getModeYouTube($videos_id) {
global $global, $config;
$obj = $this->getDataObject();
diff --git a/plugin/CustomizeUser/CustomizeUser.php b/plugin/CustomizeUser/CustomizeUser.php
index 4cb52421c4..5d72e921f4 100644
--- a/plugin/CustomizeUser/CustomizeUser.php
+++ b/plugin/CustomizeUser/CustomizeUser.php
@@ -8,6 +8,13 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class CustomizeUser extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
$txt = "Fine Tuning User Profile";
return $txt;
@@ -216,10 +223,6 @@ class CustomizeUser extends PluginAbstract {
}
}
- public function getTags() {
- return array('free', 'customization', 'users');
- }
-
public function getChannelButton() {
global $global, $isMyChannel;
if (!$isMyChannel) {
diff --git a/plugin/DiscordNotify/DiscordNotify.php b/plugin/DiscordNotify/DiscordNotify.php
index 925058a441..29c9f36f43 100644
--- a/plugin/DiscordNotify/DiscordNotify.php
+++ b/plugin/DiscordNotify/DiscordNotify.php
@@ -8,6 +8,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class DiscordNotify extends PluginAbstract {
+
+ public function getTags() {
+ return array(
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
return "Send video upload notifications to discord webhook";
}
@@ -20,14 +26,6 @@ class DiscordNotify extends PluginAbstract {
return "cf145581-7d5e-4bb6-8c12-848a19j1564g";
}
- public function getTags() {
- return array(
- 'free',
- 'notifications',
- 'webhook'
- );
- }
-
public function getPluginVersion() {
return "1.0";
}
diff --git a/plugin/FBTube/FBTube.php b/plugin/FBTube/FBTube.php
index 37013a7bcb..16a502ea6a 100644
--- a/plugin/FBTube/FBTube.php
+++ b/plugin/FBTube/FBTube.php
@@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class FBTube extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE
+ );
+ }
public function getDescription() {
return "(Deprecated, will be removed in next version) Make the first page works as a facebook page";
}
@@ -30,9 +35,4 @@ class FBTube extends PluginAbstract {
global $global;
return '';
}
-
- public function getTags() {
- return array('free', 'firstPage', 'facebook');
- }
-
}
diff --git a/plugin/FloatVideo/FloatVideo.php b/plugin/FloatVideo/FloatVideo.php
index 4407ecf634..f49fdcfd02 100644
--- a/plugin/FloatVideo/FloatVideo.php
+++ b/plugin/FloatVideo/FloatVideo.php
@@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class FloatVideo extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
public function getDescription() {
return "Enable Or disable Float Video";
}
@@ -46,8 +52,4 @@ class FloatVideo extends PluginAbstract {
}
return $str;
}
-
- public function getTags() {
- return array('free');
- }
}
diff --git a/plugin/Gallery/Gallery.php b/plugin/Gallery/Gallery.php
index 99ca1e7cfb..95fa285643 100644
--- a/plugin/Gallery/Gallery.php
+++ b/plugin/Gallery/Gallery.php
@@ -4,6 +4,14 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
require_once $global['systemRootPath'] . 'plugin/AVideoPlugin.php';
class Gallery extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE,
+ PluginTags::$GALLERY,
+ PluginTags::$LAYOUT,
+ );
+ }
public function getDescription() {
return "Make the first page works as a gallery";
}
@@ -99,10 +107,6 @@ class Gallery extends PluginAbstract {
}
}
- public function getTags() {
- return array('free', 'firstPage', 'gallery');
- }
-
public function getFooterCode() {
$obj = $this->getDataObject();
global $global;
diff --git a/plugin/Hotkeys/Hotkeys.php b/plugin/Hotkeys/Hotkeys.php
index 4a3838eeb9..e7c66a3093 100644
--- a/plugin/Hotkeys/Hotkeys.php
+++ b/plugin/Hotkeys/Hotkeys.php
@@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class Hotkeys extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
public function getDescription() {
global $global;
return "Enable hotkeys for videos, like F for fullscreen, space for play/pause, etc..
Author: Vinzenz Hersche";
@@ -57,12 +63,7 @@ class Hotkeys extends PluginAbstract {
$obj->PlayPauseKey = " ";
$obj->AlwaysCaptureHotkeys = true;
return $obj;
- }
-
- public function getTags() {
- return array('free', 'videos', 'hotkeys');
- }
-
+ }
public function getFooterCode() {
global $global;
diff --git a/plugin/IMDbScrape/IMDbScrape.php b/plugin/IMDbScrape/IMDbScrape.php
index f8d7ecad6a..5d9a2a8263 100644
--- a/plugin/IMDbScrape/IMDbScrape.php
+++ b/plugin/IMDbScrape/IMDbScrape.php
@@ -6,6 +6,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class IMDbScrape extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$DEPRECATED
+ );
+ }
public function getDescription() {
return "Enables you to scrape data from IMDB.com
Your Video title must match with IMDb title
Help";
}
diff --git a/plugin/Live/Live.php b/plugin/Live/Live.php
index f45051ff4d..80b30a5eb5 100644
--- a/plugin/Live/Live.php
+++ b/plugin/Live/Live.php
@@ -13,6 +13,15 @@ $_getStats = array();
class Live extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$LIVE,
+ PluginTags::$FREE,
+ PluginTags::$RECOMMENDED,
+ PluginTags::$PLAYER,
+ );
+ }
+
public function getDescription() {
$desc = "Broadcast a RTMP video from your computer
and receive HLS streaming from servers";
$lu = AVideoPlugin::loadPlugin("LiveUsers");
@@ -532,10 +541,6 @@ class Live extends PluginAbstract {
return false;
}
- public function getTags() {
- return array('free', 'live', 'streaming', 'live stream');
- }
-
public function getChartTabs() {
return '
nohup php {$global['systemRootPath']}plugin/LiveChat/chat-server.php &
";
@@ -62,11 +70,6 @@ class LiveChat extends PluginAbstract{
$o = $this->getDataObject();
return $o->websocket;
}
-
-
- public function getTags() {
- return array('free', 'live', 'streaming', 'live stream', 'chat');
- }
public function canSendMessage($isLogged=false){
$obj = $this->getDataObject();
diff --git a/plugin/LiveLinks/LiveLinks.php b/plugin/LiveLinks/LiveLinks.php
index 61874b0cbe..a63d599610 100644
--- a/plugin/LiveLinks/LiveLinks.php
+++ b/plugin/LiveLinks/LiveLinks.php
@@ -6,6 +6,14 @@ require_once $global['systemRootPath'] . 'plugin/LiveLinks/Objects/LiveLinksTabl
class LiveLinks extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$LIVE,
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
+
public function getDescription() {
$desc = "Register Livestreams external Links from any HLS provider, Wowza and others";
$desc .= $this->isReadyLabel(array('Live'));
diff --git a/plugin/LoginFacebook/LoginFacebook.php b/plugin/LoginFacebook/LoginFacebook.php
index 3e288a9d61..b90599b7f2 100644
--- a/plugin/LoginFacebook/LoginFacebook.php
+++ b/plugin/LoginFacebook/LoginFacebook.php
@@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class LoginFacebook extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ );
+ }
public function getDescription() {
global $global;
$obj = $this->getLogin();
@@ -34,11 +39,6 @@ class LoginFacebook extends PluginAbstract {
$obj->key = "";
return $obj;
}
-
- public function getTags() {
- return array('free', 'login', 'facebook');
- }
-
public function getLogin() {
$obj = new stdClass();
$obj->class = "btn btn-primary btn-block";
diff --git a/plugin/LoginGoogle/LoginGoogle.php b/plugin/LoginGoogle/LoginGoogle.php
index 4b9b460a7d..9aedeecfdb 100644
--- a/plugin/LoginGoogle/LoginGoogle.php
+++ b/plugin/LoginGoogle/LoginGoogle.php
@@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class LoginGoogle extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$LOGIN,
+ );
+ }
public function getDescription() {
global $global;
$obj = $this->getLogin();
@@ -36,10 +42,6 @@ class LoginGoogle extends PluginAbstract {
return $obj;
}
- public function getTags() {
- return array('free', 'login', 'google');
- }
-
public function getLogin() {
$obj = new stdClass();
$obj->class = "btn btn-danger btn-block";
diff --git a/plugin/LoginLinkedin/LoginLinkedin.php b/plugin/LoginLinkedin/LoginLinkedin.php
index fe8dfc4dcc..4bde80d8eb 100644
--- a/plugin/LoginLinkedin/LoginLinkedin.php
+++ b/plugin/LoginLinkedin/LoginLinkedin.php
@@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class LoginLinkedin extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$LOGIN,
+ );
+ }
public function getDescription() {
global $global;
$obj = $this->getLogin();
@@ -34,11 +40,6 @@ class LoginLinkedin extends PluginAbstract {
$obj->key = "";
return $obj;
}
-
- public function getTags() {
- return array('free', 'login', 'linkedin');
- }
-
public function getLogin() {
$obj = new stdClass();
$obj->class = "btn btn-primary btn-block";
diff --git a/plugin/LoginTwitter/LoginTwitter.php b/plugin/LoginTwitter/LoginTwitter.php
index 274f47030c..18d60c0965 100644
--- a/plugin/LoginTwitter/LoginTwitter.php
+++ b/plugin/LoginTwitter/LoginTwitter.php
@@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class LoginTwitter extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$LOGIN,
+ );
+ }
public function getDescription() {
global $global;
$obj = $this->getLogin();
@@ -34,11 +40,6 @@ class LoginTwitter extends PluginAbstract {
$obj->key = "";
return $obj;
}
-
- public function getTags() {
- return array('free', 'login', 'twitter');
- }
-
public function getLogin() {
$obj = new stdClass();
$obj->class = "btn btn-info btn-block";
diff --git a/plugin/LoginYahoo/LoginYahoo.php b/plugin/LoginYahoo/LoginYahoo.php
index f3b4283bbb..f85c515e88 100644
--- a/plugin/LoginYahoo/LoginYahoo.php
+++ b/plugin/LoginYahoo/LoginYahoo.php
@@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class LoginYahoo extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$LOGIN,
+ );
+ }
public function getDescription() {
global $global;
$obj = $this->getLogin();
@@ -35,10 +41,6 @@ class LoginYahoo extends PluginAbstract {
return $obj;
}
- public function getTags() {
- return array('free', 'login', 'yahoo');
- }
-
public function getLogin() {
$obj = new stdClass();
$obj->class = "btn btn-primary btn-block";
diff --git a/plugin/MaintenanceMode/MaintenanceMode.php b/plugin/MaintenanceMode/MaintenanceMode.php
index 109ff77892..9dc9f4228e 100644
--- a/plugin/MaintenanceMode/MaintenanceMode.php
+++ b/plugin/MaintenanceMode/MaintenanceMode.php
@@ -4,6 +4,11 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class MaintenanceMode extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ );
+ }
public function getDescription() {
global $global;
$desc = "Put your site in Maintenance Mode";
diff --git a/plugin/Meet/Meet.php b/plugin/Meet/Meet.php
index 7890070644..f476e95cc6 100644
--- a/plugin/Meet/Meet.php
+++ b/plugin/Meet/Meet.php
@@ -14,6 +14,13 @@ User::loginFromRequest();
//require_once $global['systemRootPath'] . 'objects/php-jwt/src/JWT.php';
//use \Firebase\JWT\JWT;
class Meet extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$RECOMMENDED,
+ PluginTags::$FREE,
+ PluginTags::$LIVE,
+ );
+ }
public function getDescription() {
$txt = "AVideo Meet/Conference software";
diff --git a/plugin/Meet/iframe.php b/plugin/Meet/iframe.php
index f3504871aa..a643bae3d7 100644
--- a/plugin/Meet/iframe.php
+++ b/plugin/Meet/iframe.php
@@ -17,12 +17,12 @@ if (empty($objM)) {
$meet_schedule_id = intval($_GET['meet_schedule_id']);
if (empty($meet_schedule_id)) {
- die("meet schedule id cannot be empty");
+ forbiddenPage("meet schedule id cannot be empty");
}
$meet = new Meet_schedule($meet_schedule_id);
if(empty($meet->getName())){
- die("meet not found");
+ forbiddenPage("meet not found");
}
$userCredentials = User::loginFromRequestToGet();
diff --git a/plugin/Meet/index.php b/plugin/Meet/index.php
index b673114d61..e83ebd2724 100644
--- a/plugin/Meet/index.php
+++ b/plugin/Meet/index.php
@@ -9,12 +9,11 @@ if (!isset($global['systemRootPath'])) {
$obj = AVideoPlugin::getObjectDataIfEnabled("Meet");
//_error_log(json_encode($_SERVER));
if (empty($obj)) {
- die("Plugin disabled");
+ forbiddenPage("Plugin disabled");
}
if (!User::isLogged()) {
- header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this"));
- exit;
+ forbiddenPage("You can not do this");
}
$userCredentials = User::loginFromRequestToGet();
if (User::isAdmin() && !empty($_GET['newServer'])) {
diff --git a/plugin/MobileManager/MobileManager.php b/plugin/MobileManager/MobileManager.php
index 7c50f23bc6..ec4efcfc7d 100644
--- a/plugin/MobileManager/MobileManager.php
+++ b/plugin/MobileManager/MobileManager.php
@@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'objects/video.php';
class MobileManager extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$MOBILE
+ );
+ }
public static function getVersion(){
return 2;
}
@@ -27,10 +33,6 @@ class MobileManager extends PluginAbstract {
return "1.0";
}
- public function getTags() {
- return array('free', 'mobile', 'android', 'ios');
- }
-
public function getEmptyDataObject() {
global $global;
$obj = new stdClass();
diff --git a/plugin/MonetizeUsers/MonetizeUsers.php b/plugin/MonetizeUsers/MonetizeUsers.php
index 3641da4f27..792e1d88c0 100644
--- a/plugin/MonetizeUsers/MonetizeUsers.php
+++ b/plugin/MonetizeUsers/MonetizeUsers.php
@@ -4,6 +4,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class MonetizeUsers extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$MONETIZATION,
+ PluginTags::$FREE,
+ );
+ }
public function getDescription() {
$txt = "This plugin will reward your users based on their videos view, each view will affect the user's walled balance";
@@ -31,10 +37,6 @@ class MonetizeUsers extends PluginAbstract {
return $obj;
}
- public function getTags() {
- return array('free', 'monetize', 'wallet');
- }
-
public function addView($videos_id, $total) {
global $global;
$obj = $this->getDataObject();
diff --git a/plugin/NextButton/NextButton.php b/plugin/NextButton/NextButton.php
index 47092d1bdb..c3894cf129 100644
--- a/plugin/NextButton/NextButton.php
+++ b/plugin/NextButton/NextButton.php
@@ -5,6 +5,12 @@ require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
class NextButton extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ PluginTags::$PLAYER,
+ );
+ }
public function getDescription() {
return "Add next button to the control bar";
}
@@ -43,11 +49,6 @@ class NextButton extends PluginAbstract {
return $js;
}
}
-
- public function getTags() {
- return array('free', 'buttons', 'video player');
- }
-
}
diff --git a/plugin/OptionsTest/OptionsTest.php b/plugin/OptionsTest/OptionsTest.php
index 8356219a2c..ccead1acb7 100644
--- a/plugin/OptionsTest/OptionsTest.php
+++ b/plugin/OptionsTest/OptionsTest.php
@@ -6,6 +6,11 @@ use Pecee\SimpleRouter\SimpleRouter; //required if we want to define routes on o
class OptionsTest extends PluginAbstract {
+ public function getTags() {
+ return array(
+ PluginTags::$FREE,
+ );
+ }
public function getDescription() {
global $global;
return "Salmple object for new features