diff --git a/admin/customize_settings_native.php b/admin/customize_settings_native.php index eda698a875..c64b8d1a09 100644 --- a/admin/customize_settings_native.php +++ b/admin/customize_settings_native.php @@ -107,7 +107,7 @@ logoImgBase64 = resp; $.ajax({ - url: 'admin/customize_settings_nativeUpdate.json.php', + url: webSiteRootURL+'admin/customize_settings_nativeUpdate.json.php', data: { "logoImgBase64": logoImgBase64, "webSiteTitle": $('#inputWebSiteTitle').val(), diff --git a/admin/design_first_page.php b/admin/design_first_page.php index bcce93ad0e..9b543ae322 100644 --- a/admin/design_first_page.php +++ b/admin/design_first_page.php @@ -95,27 +95,27 @@ $delay = 0.5; modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'admin/themeUpdate.json.php', + url: webSiteRootURL+'admin/themeUpdate.json.php', data: {"theme": 'default'}, type: 'post', success: function (response) { @@ -142,27 +142,27 @@ $delay = 0.5; modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": true}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'admin/themeUpdate.json.php', + url: webSiteRootURL+'admin/themeUpdate.json.php', data: {"theme": 'netflix'}, type: 'post', success: function (response) { @@ -189,27 +189,27 @@ $delay = 0.5; modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": true}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'admin/themeUpdate.json.php', + url: webSiteRootURL+'admin/themeUpdate.json.php', data: {"theme": 'default'}, type: 'post', success: function (response) { @@ -236,27 +236,27 @@ $delay = 0.5; modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": true}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'admin/themeUpdate.json.php', + url: webSiteRootURL+'admin/themeUpdate.json.php', data: {"theme": 'default'}, type: 'post', success: function (response) { @@ -285,27 +285,27 @@ $delay = 0.5; modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "a06505bf-3570-4b1f-977a-fd0e5cab205d", "name": "Gallery", "dir": "Gallery", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "e3a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "YouPHPFlix2", "dir": "YouPHPFlix2", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "youu05bf-3570-4b1f-977a-fd0e5cabtube", "name": "YouTube", "dir": "YouTube", "enable": false}, type: 'post', success: function (response) { $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "channel-first-page-977a-fd0e5cab205d", "name": "FirstPageChannelList", "dir": "FirstPageChannelList", "enable": true}, type: 'post', success: function (response) { $.ajax({ - url: 'admin/themeUpdate.json.php', + url: webSiteRootURL+'admin/themeUpdate.json.php', data: {"theme": 'default'}, type: 'post', success: function (response) { diff --git a/admin/design_player.php b/admin/design_player.php index 1b7ca80cf9..75f2af77bc 100644 --- a/admin/design_player.php +++ b/admin/design_player.php @@ -53,12 +53,12 @@ $delay = 0.2; $('.playerSwitch').not(this).prop('checked', false); var skin = $(this).val(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "e9a568e6-ef61-4dcc-aad0-0109e9be8e36", "name": "PlayerSkins", "dir": "PlayerSkins", "enable": true}, type: 'post', success: function (response) { $.ajax({ - url: 'admin/playerUpdate.json.php', + url: webSiteRootURL+'admin/playerUpdate.json.php', data: {"skin": skin}, type: 'post', success: function (response) { diff --git a/admin/design_themes.php b/admin/design_themes.php index 88701290ab..9d79efcb52 100644 --- a/admin/design_themes.php +++ b/admin/design_themes.php @@ -41,7 +41,7 @@ modal.showPleaseWait(); $('.themeSwitch').not(this).prop('checked', false); $.ajax({ - url: 'admin/themeUpdate.json.php', + url: webSiteRootURL+'admin/themeUpdate.json.php', data: {"theme": $(this).val()}, type: 'post', success: function (response) { diff --git a/admin/index.php b/admin/index.php index ad529f1495..011d59cd45 100644 --- a/admin/index.php +++ b/admin/index.php @@ -358,7 +358,7 @@ switch ($_GET['page']) { e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'admin/save.json.php', + url: webSiteRootURL+'admin/save.json.php', data: $(this).serialize(), type: 'post', success: function (response) { @@ -369,7 +369,7 @@ switch ($_GET['page']) { $('.pluginSwitch').change(function (e) { modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": $(this).attr('uuid'), "name": $(this).attr('name'), "dir": $(this).attr('name'), "enable": $(this).is(":checked")}, type: 'post', success: function (response) { diff --git a/admin/mail_all_users.php b/admin/mail_all_users.php index a362b1e85f..4efd06dabe 100644 --- a/admin/mail_all_users.php +++ b/admin/mail_all_users.php @@ -50,7 +50,7 @@ modal.showPleaseWait(); $("#emailMessage").val(tinymce.get('emailMessage').getContent()); $.ajax({ - url: 'objects/emailAllUsers.json.php', + url: webSiteRootURL+'objects/emailAllUsers.json.php', method: 'POST', data: { 'message': $('#emailMessage').val(), diff --git a/locale/index.php b/locale/index.php index fba39d543d..10a79b7d57 100644 --- a/locale/index.php +++ b/locale/index.php @@ -8,17 +8,17 @@ if (isset($_GET['getLanguage'])) { require_once($lngFile); foreach ($t as $key => $value) { - if(empty($value)){ + if (empty($value)) { $t[$key] = $key; } } - if(!empty($_REQUEST['print'])){ + if (!empty($_REQUEST['print'])) { header('Content-Type: text/plain'); foreach ($t as $key => $value) { - echo $value.PHP_EOL; + echo $value . PHP_EOL; } - }else{ + } else { header('Content-Type: application/json'); echo json_encode($t); } @@ -34,178 +34,162 @@ if (!User::isAdmin() || !empty($global['disableAdvancedConfigurations'])) { } $vars = listAllWordsToTranslate(); +$_page = new Page(array('Translate AVideo')); ?> - - - - - - - + +
+
+
+
+
+
+ +
+
+ + -
-
- -
-
- -
-
-

- -
-
-

- -
-
-

- - -
- -
- -
- -
chown www-data:www-data locale && sudo chmod -R 755 locale
-
- -
- -
+ }); + }); +
-
- - - - + }); + }); + +print(); +?> \ No newline at end of file diff --git a/objects/Page.php b/objects/Page.php index b547cba828..5211893cbc 100644 --- a/objects/Page.php +++ b/objects/Page.php @@ -1,6 +1,7 @@ title = $title; $this->bodyClass = $bodyClass; _ob_start(); + if ($loadBasicCSSAndJS) { + $this->loadBasicCSSAndJS(); + } } - public function setTitle(string $title) { + public function loadBasicCSSAndJS() + { + $this->setExtraScripts( + array( + 'view/css/DataTables/datatables.min.js', + 'view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js' + ) + ); + $this->setExtraStyles( + array( + 'view/css/DataTables/datatables.min.css', + 'view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css' + ) + ); + } + + public function setTitle(string $title) + { $this->title = $title; } - public function setBodyClass(string $bodyClass) { + public function setBodyClass(string $bodyClass) + { $this->bodyClass = $bodyClass; } - public function setExtraScripts(array $extraScripts) { + public function setExtraScripts(array $extraScripts) + { $this->extraScripts = $extraScripts; } - public function setExtraStyles(array $extraStyles) { + public function setExtraStyles(array $extraStyles) + { $this->extraStyles = $extraStyles; } - public function setInlineStyles(string $inlineStyles) { + public function setInlineStyles(string $inlineStyles) + { $this->inlineStyles = $inlineStyles; } - public function setInlineScripts(string $inlineScripts) { + public function setInlineScripts(string $inlineScripts) + { $this->inlineScripts = $inlineScripts; } - public function setBodyContent(string $bodyContent) { + public function setBodyContent(string $bodyContent) + { $this->bodyContent = $bodyContent; } - public function setIncludeNavbar(bool $includeNavbar) { + public function setIncludeNavbar(bool $includeNavbar) + { $this->includeNavbar = $includeNavbar; } - public function setIncludeFooter(bool $includeFooter) { + public function setIncludeFooter(bool $includeFooter) + { $this->includeFooter = $includeFooter; } - public function setIncludeInHead(array $includeInHead) { + public function setIncludeInHead(array $includeInHead) + { $this->includeInHead = $includeInHead; } - public function setIncludeInFooter(array $includeInFooter) { + public function setIncludeInFooter(array $includeInFooter) + { $this->includeInFooter = $includeInFooter; } - - public function getHead() { + + public function setIncludeBGAnimation(bool $includeBGAnimation) + { + $this->includeBGAnimation = $includeBGAnimation; + } + + public function getHead() + { global $config, $global; - if(!is_array($this->title)){ + if (!is_array($this->title)) { $this->title = array($this->title); } foreach ($this->title as $key => $value) { $this->title[$key] = __($value); } echo ""; - echo "" . implode($config->getPageTitleSeparator(), $this->title) . getSEOComplement() . $config->getPageTitleSeparator() . $config->getWebSiteTitle() . ""; + echo getHTMLTitle($this->title); + //echo "" . implode($config->getPageTitleSeparator(), $this->title) . getSEOComplement() . $config->getPageTitleSeparator() . $config->getWebSiteTitle() . ""; include $global['systemRootPath'] . 'view/include/head.php'; - if(!empty($this->includeInHead)){ + if (!empty($this->includeInHead)) { foreach ($this->includeInHead as $value) { include $global['systemRootPath'] . $value; } } - if(!empty($this->extraStyles)){ + if (!empty($this->extraStyles)) { foreach ($this->extraStyles as $style) { - echo ""; + echo ""; } } @@ -92,28 +132,37 @@ class Page { echo ""; } - public function getNavBar() { + public function getNavBar() + { global $global; + if($this->includeBGAnimation){ + CustomizeUser::autoIncludeBGAnimationFile(); + } + $redirectUri = getRedirectUri(); + if (stripos($redirectUri, "embed/") !== false) { + $this->includeNavbar = false; + } if ($this->includeNavbar) { // Your navbar HTML include $global['systemRootPath'] . 'view/include/navbar.php'; } } - public function getFooter() { + public function getFooter() + { global $config, $global; if ($this->includeFooter) { // Your footer HTML include $global['systemRootPath'] . 'view/include/footer.php'; } - if(!empty($this->includeInFooter)){ + if (!empty($this->includeInFooter)) { foreach ($this->includeInFooter as $value) { include $global['systemRootPath'] . $value; } } - if(!empty($this->extraScripts)){ + if (!empty($this->extraScripts)) { foreach ($this->extraScripts as $script) { - echo ""; + echo ""; } } if (!empty($this->inlineScripts)) { @@ -121,7 +170,8 @@ class Page { } } - public function getContent() { + public function getContent() + { global $global; $rtl = ''; if (isRTL()) { @@ -131,29 +181,30 @@ class Page { $this->getNavBar(); //echo '
Loading...
'; //echo '
'; - echo $this->bodyContent; + echo $this->bodyContent; //echo '
'; $this->getFooter(); echo ""; } - public function getPage() { + public function getPage() + { echo ""; echo ""; $this->getHead(); $this->getContent(); echo ""; } - - public function print($include_end = true){ + + public function print($include_end = true) + { global $config, $global; $html = _ob_get_clean(); _ob_start(); $this->bodyContent = $html; $this->getPage(); - if($include_end){ - include $global['systemRootPath'].'objects/include_end.php'; + if ($include_end) { + include $global['systemRootPath'] . 'objects/include_end.php'; } } - } diff --git a/objects/emailAllUsers.json.php b/objects/emailAllUsers.json.php index 5f6b108e6c..1c14e026ab 100644 --- a/objects/emailAllUsers.json.php +++ b/objects/emailAllUsers.json.php @@ -8,7 +8,7 @@ if (!isset($global['systemRootPath'])) { require_once $global['systemRootPath'] . 'objects/user.php'; if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } diff --git a/objects/functions.php b/objects/functions.php index b26c1c1c48..1db2d7d8c3 100644 --- a/objects/functions.php +++ b/objects/functions.php @@ -5488,9 +5488,16 @@ function getHTMLTitle($titleArray) if (!is_array($titleArray)) { $titleArray = []; } + $titleArray[] = getSEOComplement(); $titleArray[] = $config->getWebSiteTitle(); - - $title = implode($config->getPageTitleSeparator(), $titleArray); + $cleanTitleArray = array(); + foreach ($titleArray as $value) { + if(!empty($value) && !in_array($value, $cleanTitleArray)){ + $cleanTitleArray[] = $value; + } + } + + $title = implode($config->getPageTitleSeparator(), $cleanTitleArray); $global['pageTitle'] = $title; return "{$title}"; } diff --git a/objects/userRecoverPass.php b/objects/userRecoverPass.php index 65b98e3fab..0e308245ac 100644 --- a/objects/userRecoverPass.php +++ b/objects/userRecoverPass.php @@ -133,7 +133,7 @@ if (!(!empty($_REQUEST['user']) && !empty($_REQUEST['recoverpass']))) { evt.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'objects/userRecoverPassSave.json.php', + url: webSiteRootURL+'objects/userRecoverPassSave.json.php', data: $('#recoverPassForm').serializeArray(), type: 'post', success: function(response) { diff --git a/plugin/AD_Overlay/footer.php b/plugin/AD_Overlay/footer.php index 6915d8356a..33f7c8335c 100644 --- a/plugin/AD_Overlay/footer.php +++ b/plugin/AD_Overlay/footer.php @@ -34,7 +34,7 @@ ad_overlay_users_id = users_id; $('#adsFormModal').modal(); $.ajax({ - url: 'plugin/AD_Overlay/getCode.json.php?users_id=' + users_id, + url: webSiteRootURL+'plugin/AD_Overlay/getCode.json.php?users_id=' + users_id, success: function (response) { $( "#addOverlayCode" ).text(response.msg); if(response.status == 'a'){ diff --git a/plugin/AD_Overlay/profileTabContent.php b/plugin/AD_Overlay/profileTabContent.php index faed4e5298..f82e2766d8 100644 --- a/plugin/AD_Overlay/profileTabContent.php +++ b/plugin/AD_Overlay/profileTabContent.php @@ -10,7 +10,7 @@ $ad->loadFromUser(User::getId()); AD Code
- +
diff --git a/plugin/AD_Server/index.php b/plugin/AD_Server/index.php index 9f498ad2c4..77d9bfd812 100644 --- a/plugin/AD_Server/index.php +++ b/plugin/AD_Server/index.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } diff --git a/plugin/AD_Server/index_body.php b/plugin/AD_Server/index_body.php index 55b80170aa..3ad3b27a82 100644 --- a/plugin/AD_Server/index_body.php +++ b/plugin/AD_Server/index_body.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } ?> @@ -287,7 +287,7 @@ if (!User::isAdmin()) { $(".pluginSwitch").on("change", function (e) { modal.showPleaseWait(); $.ajax({ - url: 'objects/pluginSwitch.json.php', + url: webSiteRootURL+'objects/pluginSwitch.json.php', data: {"uuid": "3f2a707f-3c06-4b78-90f9-a22f2fda92ef", "name": "AD_Server", "dir": "AD_Server", "enable": $('#enable1').is(":checked")}, type: 'post', success: function (response) { @@ -300,7 +300,7 @@ if (!User::isAdmin()) { minLength: 0, source: function (req, res) { $.ajax({ - url: 'videos.json', + url: webSiteRootURL+'videos.json', type: "POST", data: { searchPhrase: req.term, @@ -481,7 +481,7 @@ if (!User::isAdmin()) { e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/AD_Server/view/addCampaign.php', + url: webSiteRootURL+'plugin/AD_Server/view/addCampaign.php', data: $('#panelForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/AD_Server_Location/campaignPanel.php b/plugin/AD_Server_Location/campaignPanel.php index df88743d60..498af22a96 100644 --- a/plugin/AD_Server_Location/campaignPanel.php +++ b/plugin/AD_Server_Location/campaignPanel.php @@ -51,7 +51,7 @@ $countries = IP2Location::getCountries(); $("#country").on("change", function (e) { modal.showPleaseWait(); $.ajax({ - url: 'plugin/User_Location/regions.json.php?country=' + $('#country').val(), + url: webSiteRootURL+'plugin/User_Location/regions.json.php?country=' + $('#country').val(), success: function (response) { $('#region').empty(); $('#region').append($("").text('All')); @@ -68,7 +68,7 @@ $countries = IP2Location::getCountries(); $("#region").on("change", function (e) { modal.showPleaseWait(); $.ajax({ - url: 'plugin/User_Location/cities.json.php?country=' + $('#country').val() + '®ion=' + $('#region').val(), + url: webSiteRootURL+'plugin/User_Location/cities.json.php?country=' + $('#country').val() + '®ion=' + $('#region').val(), success: function (response) { $('#city').empty(); $('#city').append($("").text('All')); diff --git a/plugin/AI/View/Ai_metatags_responses/index_body.php b/plugin/AI/View/Ai_metatags_responses/index_body.php index 3940e52954..6c09a1cf4f 100644 --- a/plugin/AI/View/Ai_metatags_responses/index_body.php +++ b/plugin/AI/View/Ai_metatags_responses/index_body.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } ?> @@ -170,7 +170,7 @@ $('#Ai_metatags_responsesai_responses_id').val(''); $(document).ready(function () { $('#addAi_metatags_responsesBtn').click(function () { $.ajax({ - url: 'plugin/AI/View/addAi_metatags_responsesVideo.php', + url: webSiteRootURL+'plugin/AI/View/addAi_metatags_responsesVideo.php', data: $('#panelAi_metatags_responsesForm').serialize(), type: 'post', success: function (response) { @@ -220,7 +220,7 @@ $('#Ai_metatags_responsesai_responses_id').val(''); e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/AI/View/Ai_metatags_responses/add.json.php', + url: webSiteRootURL+'plugin/AI/View/Ai_metatags_responses/add.json.php', data: $('#panelAi_metatags_responsesForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/AI/View/Ai_responses/index_body.php b/plugin/AI/View/Ai_responses/index_body.php index b7c9c05355..013bf12819 100644 --- a/plugin/AI/View/Ai_responses/index_body.php +++ b/plugin/AI/View/Ai_responses/index_body.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } ?> @@ -94,7 +94,7 @@ $('#Ai_responsesvideos_id').val(''); $('#addAi_responsesBtn').click(function () { modal.showPleaseWait(); $.ajax({ - url: 'plugin/AI/View/addAi_responsesVideo.php', + url: webSiteRootURL+'plugin/AI/View/addAi_responsesVideo.php', data: $('#panelAi_responsesForm').serialize(), type: 'post', success: function (response) { @@ -133,7 +133,7 @@ $('#Ai_responsesvideos_id').val(''); e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/AI/View/Ai_responses/add.json.php', + url: webSiteRootURL+'plugin/AI/View/Ai_responses/add.json.php', data: $('#panelAi_responsesForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/AI/View/Ai_transcribe_responses/index_body.php b/plugin/AI/View/Ai_transcribe_responses/index_body.php index a48d07227d..2f8442e402 100644 --- a/plugin/AI/View/Ai_transcribe_responses/index_body.php +++ b/plugin/AI/View/Ai_transcribe_responses/index_body.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } ?> @@ -138,7 +138,7 @@ $('#Ai_transcribe_responsesai_responses_id').val(''); $(document).ready(function () { $('#addAi_transcribe_responsesBtn').click(function () { $.ajax({ - url: 'plugin/AI/View/addAi_transcribe_responsesVideo.php', + url: webSiteRootURL+'plugin/AI/View/addAi_transcribe_responsesVideo.php', data: $('#panelAi_transcribe_responsesForm').serialize(), type: 'post', success: function (response) { @@ -183,7 +183,7 @@ $('#Ai_transcribe_responsesai_responses_id').val(''); e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/AI/View/Ai_transcribe_responses/add.json.php', + url: webSiteRootURL+'plugin/AI/View/Ai_transcribe_responses/add.json.php', data: $('#panelAi_transcribe_responsesForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/API/info.php b/plugin/API/info.php index 98b8aa529b..fff1fbcf05 100644 --- a/plugin/API/info.php +++ b/plugin/API/info.php @@ -13,134 +13,109 @@ if (empty($plugin)) { forbiddenPage('API Plugin disabled'); } $obj = AVideoPlugin::getObjectData("API"); -?> - - - - - - - - - $method[0]) { + if (preg_match("/(get|set)_api_(.*)/", $method[0], $matches)) { + $methodsList[] = array($method[0], $reflector, $matches[1], $matches[2], ''); + } +} + +$plugins = Plugin::getAllEnabled(); +foreach ($plugins as $value) { + $p = AVideoPlugin::loadPlugin($value['dirName']); + if (class_exists($value['dirName'])) { + $class_methods = get_class_methods($value['dirName']); + $reflector = new ReflectionClass($value['dirName']); foreach ($class_methods as $key => $method[0]) { - if (preg_match("/(get|set)_api_(.*)/", $method[0], $matches)) { - $methodsList[] = array($method[0], $reflector, $matches[1], $matches[2], ''); + if (preg_match("/API_(get|set)_(.*)/", $method[0], $matches)) { + $methodsList[] = array($method[0], $reflector, $matches[1], $matches[2], $value['dirName']); } } + } +} - $plugins = Plugin::getAllEnabled(); - foreach ($plugins as $value) { - $p = AVideoPlugin::loadPlugin($value['dirName']); - if(class_exists($value['dirName'])){ - $class_methods = get_class_methods($value['dirName']); - $reflector = new ReflectionClass($value['dirName']); - foreach ($class_methods as $key => $method[0]) { - if (preg_match("/API_(get|set)_(.*)/", $method[0], $matches)) { - $methodsList[] = array($method[0], $reflector, $matches[1], $matches[2], $value['dirName']); - } - } - } - } +$_page = new Page(array('API')); - /* - usort($class_methods, function ($a, $b) { - if (!preg_match("/(get|set)_api_(.*)/", $a, $matchesA)) { - return 0; - } - if (!preg_match("/(get|set)_api_(.*)/", $b, $matchesB)) { - return 0; - } - return strcasecmp($matchesA[2], $matchesB[2]); - }); - * - */ - ?> -
- +
+print(); +?> \ No newline at end of file diff --git a/plugin/Audit/page/editor.php b/plugin/Audit/page/editor.php index 08222baf1e..f29cf01bde 100644 --- a/plugin/Audit/page/editor.php +++ b/plugin/Audit/page/editor.php @@ -2,86 +2,84 @@ require_once '../../../videos/configuration.php'; require_once $global['systemRootPath'] . 'objects/user.php'; if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not manager plugin Audit")); + forbiddenPage("You can not manager plugin Audit"); exit; } +$_page = new Page(array('Audit')); +$_page->loadBasicCSSAndJS(); ?> - - - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
ClassMethodStatementFormatValuesCreatedUserIP
ClassMethodStatementFormatValuesCreatedUserIP
-
-
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
ClassMethodStatementFormatValuesCreatedUserIP
ClassMethodStatementFormatValuesCreatedUserIP
- - - - - +
+
+ +print(); +?> \ No newline at end of file diff --git a/plugin/AutoPostOnSocialMedia/View/editor.php b/plugin/AutoPostOnSocialMedia/View/editor.php index 2dc238b4cc..f9449437f5 100644 --- a/plugin/AutoPostOnSocialMedia/View/editor.php +++ b/plugin/AutoPostOnSocialMedia/View/editor.php @@ -1,145 +1,134 @@ - - - - <?php echo $config->getWebSiteTitle(); ?> :: AutoPostOnSocialMedia - - - - -
-
-
-
-
- - -
-
- -
-
-
- -
-
-
+
+
+
+
+
+ +
-
- $value) { - ?> -
-
-
- - -
-
- -
- -
- - value="_" id="flexCheckDefault"> - -
- -
- -
-
-
- +
+ +
+
+
+ +
- - - - + ?> +
+
+
+ +print(); +?> \ No newline at end of file diff --git a/plugin/BlockonomicsYPT/invoice.php b/plugin/BlockonomicsYPT/invoice.php index 5a400029ee..a1205befe1 100644 --- a/plugin/BlockonomicsYPT/invoice.php +++ b/plugin/BlockonomicsYPT/invoice.php @@ -2,7 +2,7 @@ require_once '../../videos/configuration.php'; require_once $global['systemRootPath'] . 'objects/user.php'; if (!User::isLogged()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } @@ -10,127 +10,111 @@ $plugin = AVideoPlugin::loadPluginIfEnabled("BlockonomicsYPT"); $obj = AVideoPlugin::getObjectData("BlockonomicsYPT"); $order_id = $plugin->setUpPayment($_GET['value']); $order = new BlockonomicsOrder($order_id); +$_page = new Page(array('Invoice')); +$_page->setExtraScripts(array('plugin/BlockonomicsYPT/jquery.qrcode.min.js')) ?> - - - - - - - - - +
- -
- -
-
-

- Order#: getId()); ?> -

-
-
-
-
-

Bitcoin Address

- -
-
-
-
-
- -
-
-
-
-

To pay, send exact amount of BTC to the given address

-

Amount

-

getFormatedBits(); ?> BTC ⇌ getTotal_value(); ?> getCurrency(); ?>

- -
- -

Payment Details:

- - - - - - - - -
- Received : getFormatedBits_payed(); ?> - BTC -
-
- Transaction : -
+
+
+

+ Order#: getId()); ?> +

+
+
+
+
+

Bitcoin Address

+ +
+
+
+
+
+
-
-
-
-
- 100% -
-
+
+

To pay, send exact amount of BTC to the given address

+

Amount

+

getFormatedBits(); ?> BTC ⇌ getTotal_value(); ?> getCurrency(); ?>

+ +
+ +

Payment Details:

+ + + + + + + + +
+ Received : getFormatedBits_payed(); ?> + BTC +
+
+ Transaction :
- - - - - + function check() { + $.ajax({ + url: webSiteRootURL + 'plugin/BlockonomicsYPT/check.php?addr=getAddr(); ?>', + success: function(response) { + console.log(response); + if (response.status < 2) { + $("#transaction").html('' + response.txid + ''); + $("#received").html((response.bits_payed / 1.0e8)); + setTimeout(function() { + check(); + }, 3000); + } else { + response.status = 2; + } + $(".bstatus").not("#status" + response.status).hide(); + $("#status" + response.status).fadeIn(); + } + }); + } + +print(); +?> \ No newline at end of file diff --git a/plugin/Bookmark/editorVideo.php b/plugin/Bookmark/editorVideo.php index ebad141008..3ff4d01d5b 100644 --- a/plugin/Bookmark/editorVideo.php +++ b/plugin/Bookmark/editorVideo.php @@ -99,7 +99,7 @@ $_page->setExtraScripts( function addBookmark() { modal.showPleaseWait(); $.ajax({ - url: 'plugin/Bookmark/page/bookmarkSave.json.php', + url: webSiteRootURL+'plugin/Bookmark/page/bookmarkSave.json.php', data: { "videos_id": , "timeInSeconds": timeToSeconds($('#currentTime').val()), @@ -146,7 +146,7 @@ $_page->setExtraScripts( var index = $(li).attr('index'); var id = $(li).attr('bookmarkId'); $.ajax({ - url: 'plugin/Bookmark/page/bookmarkDelete.json.php', + url: webSiteRootURL+'plugin/Bookmark/page/bookmarkDelete.json.php', data: { "id": id }, @@ -164,7 +164,7 @@ $_page->setExtraScripts( function loadBookmark() { modal.showPleaseWait(); $.ajax({ - url: 'plugin/Bookmark/getBookmarks.json.php?videos_id=', + url: webSiteRootURL+'plugin/Bookmark/getBookmarks.json.php?videos_id=', success: function(response) { allBookmarksArray = response; bookmarksArray = (allBookmarksArray.rows); diff --git a/plugin/Bookmark/page/editor.php b/plugin/Bookmark/page/editor.php index 3c92a246a8..d984f7c488 100644 --- a/plugin/Bookmark/page/editor.php +++ b/plugin/Bookmark/page/editor.php @@ -2,48 +2,30 @@ require_once '../../../videos/configuration.php'; require_once $global['systemRootPath'] . 'objects/user.php'; if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You are not admin")); + forbiddenPage("You are not admin"); exit; } +$_page = new Page(array('Bookmarks')); +$_page->loadBasicCSSAndJS(); ?> - - - - - - - - - - -
-
-
-
-
- -
-
- -
-
+
+
+
+
+
+ +
+
+
- - - - +
+
+print(); +?> \ No newline at end of file diff --git a/plugin/Bookmark/page/editorForm.php b/plugin/Bookmark/page/editorForm.php index b1da85cad2..54aa728e41 100644 --- a/plugin/Bookmark/page/editorForm.php +++ b/plugin/Bookmark/page/editorForm.php @@ -34,7 +34,7 @@ evt.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/Bookmark/page/bookmarkSave.json.php', + url: webSiteRootURL+'plugin/Bookmark/page/bookmarkSave.json.php', data: $('#bookmarkForm').serializeArray(), type: 'post', success: function (response) { diff --git a/plugin/Bookmark/page/editorTable.php b/plugin/Bookmark/page/editorTable.php index 4f9798c90c..f1cb1a4c35 100644 --- a/plugin/Bookmark/page/editorTable.php +++ b/plugin/Bookmark/page/editorTable.php @@ -45,7 +45,7 @@ console.log(data); modal.showPleaseWait(); $.ajax({ - url: 'plugin/Bookmark/page/bookmarkDelete.json.php', + url: webSiteRootURL+'plugin/Bookmark/page/bookmarkDelete.json.php', data: {'id': data.id}, type: 'post', success: function (response) { diff --git a/plugin/BulkEmbed/search.php b/plugin/BulkEmbed/search.php index 4ccba82eb7..5b3ecc4992 100644 --- a/plugin/BulkEmbed/search.php +++ b/plugin/BulkEmbed/search.php @@ -1,293 +1,336 @@ - - - - - - - - - -
+ .list-right { + float: right; + width: 78%; + } -
-
-
-
-
- - - - -
-
-
-
-
-
- -
-
- -
+ .list-right h3 { + margin: 0; + } + + .list-right p { + margin: 0; + } + + .cTitle { + color: #dd2826; + } + + .button-container { + margin-top: 25px; + + } + + .paging-button { + background: #f4f4f4; + padding: 0 13px; + border: #ccc 1px solid; + border-radius: 5px; + color: #333; + margin: 10px; + cursor: pointer; + } + +
+ +
+
+
+
+
+ + + +
-
-
    -
    + +
    +
    +
    + +
    +
    +
    - - - // Log data - console.log(data); - - $.each(data.items, function (i, item) { - - // Get Output - var output = getOutput(item); - - // display results - $('#results').append(output); - }); - - var buttons = getButtons(prevPageToken, nextPageToken); - - // Display buttons - $('#buttons').append(buttons); - }); - } - -// Build output - function getOutput(item) { - console.log(item); - var videoID; - if(typeof item.snippet.thumbnails === 'undefined'){ - return true; - } - if(item.id.videoId){ - videoID = item.id.videoId; - }else{ - videoID = item.snippet.resourceId.videoId; - } - var title = item.snippet.title; - var description = item.snippet.description; - var thumb = item.snippet.thumbnails.high.url; - var channelTitle = item.snippet.channelTitle; - var videoDate = item.snippet.publishedAt; - - // Build output string - var output = '
  • ' + - '
    ' + - '' + - '
    ' + - '
    ' + - '

    ' + title + '

    ' + - 'By ' + channelTitle + ' on ' + videoDate + '' + - '

    ' + description + '

    ' + - '
    ' + - '
  • ' + - '
    ' + - ''; - return output; - } - - function getButtons(prevPageToken, nextPageToken) { - if (!prevPageToken) { - var btnoutput = '
    ' + - '' + - '
    '; - } else { - var btnoutput = '
    ' + - '' + - '' + - '
    '; - } - - return btnoutput; - } - - - +print(); +?> \ No newline at end of file diff --git a/plugin/CDN/Storage/syncVideo.php b/plugin/CDN/Storage/syncVideo.php index 301bcc83ca..d9e696b5f4 100644 --- a/plugin/CDN/Storage/syncVideo.php +++ b/plugin/CDN/Storage/syncVideo.php @@ -12,31 +12,18 @@ if (!Video::canEdit($videos_id)) { } $video = Video::getVideoLight($videos_id); +$_page = new Page(array('Move Storage')); ?> - - - - <?php echo $config->getWebSiteTitle(); ?> :: Move Storage - - - - -
    - -
    - - - +
    + +
    +print(); +?> \ No newline at end of file diff --git a/plugin/CDN/downloadButtons.php b/plugin/CDN/downloadButtons.php index d6d6bbc4d5..938fccd03d 100644 --- a/plugin/CDN/downloadButtons.php +++ b/plugin/CDN/downloadButtons.php @@ -26,87 +26,73 @@ $height = 'calc(50vh - 50px)'; if (count($downloadOptions) == 1) { $height = 'calc(100vh - 50px)'; } +$_page = new Page(array('Download Video')); +$_page->setExtraScripts(array('view/js/script.download.js')); ?> - - - - <?php echo $config->getWebSiteTitle(); ?> :: Download Video - - - - - - -
    -
    - - - - "; } - ?> -
    -
    - - - - + + "; + } + ?> +
    +
    + - - - \ No newline at end of file + + + + +print(); +?> \ No newline at end of file diff --git a/plugin/CloneSite/index.php b/plugin/CloneSite/index.php index 088c518ac5..b8f7d50d87 100644 --- a/plugin/CloneSite/index.php +++ b/plugin/CloneSite/index.php @@ -7,160 +7,154 @@ if (!isset($global['systemRootPath'])) { $plugin = AVideoPlugin::loadPluginIfEnabled('CloneSite'); if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } -?> - - - - - - - - - -
    -
    -
    - -
    -
    - - - - - - - - - - - - - - - - - - - -
    -
    -
    +$_page = new Page(array('Clone Site')); +$_page->setExtraScripts( + array( + 'view/css/DataTables/datatables.min.js', + 'view/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js' + ) +); +$_page->setExtraStyles( + array( + 'view/css/DataTables/datatables.min.css', + 'view/js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css' + ) +); +?>
    +
    +
    +
    - +
    + + - - - - + }); + }); + +print(); +?> \ No newline at end of file diff --git a/plugin/CustomizeUser/View/Categories_has_users_groups/index_body.php b/plugin/CustomizeUser/View/Categories_has_users_groups/index_body.php index 0f5d5a80f7..a511e5e92d 100644 --- a/plugin/CustomizeUser/View/Categories_has_users_groups/index_body.php +++ b/plugin/CustomizeUser/View/Categories_has_users_groups/index_body.php @@ -105,7 +105,7 @@ if (!User::isAdmin()) { $(document).ready(function () { $('#addCategories_has_users_groupsBtn').click(function () { $.ajax({ - url: 'plugin/CustomizeUser/View/addCategories_has_users_groupsVideo.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/addCategories_has_users_groupsVideo.php', data: $('#panelCategories_has_users_groupsForm').serialize(), type: 'post', success: function (response) { @@ -145,7 +145,7 @@ if (!User::isAdmin()) { e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/View/Categories_has_users_groups/add.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/Categories_has_users_groups/add.json.php', data: $('#panelCategories_has_users_groupsForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/CustomizeUser/View/Users_affiliations/index.php b/plugin/CustomizeUser/View/Users_affiliations/index.php index 4ad98c2fff..4fbffdf1cb 100644 --- a/plugin/CustomizeUser/View/Users_affiliations/index.php +++ b/plugin/CustomizeUser/View/Users_affiliations/index.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } diff --git a/plugin/CustomizeUser/View/Users_affiliations/index_body.php b/plugin/CustomizeUser/View/Users_affiliations/index_body.php index b1a5e7fa1c..2fa03d9dd3 100644 --- a/plugin/CustomizeUser/View/Users_affiliations/index_body.php +++ b/plugin/CustomizeUser/View/Users_affiliations/index_body.php @@ -4,7 +4,7 @@ if (!isset($global['systemRootPath'])) { require_once '../../videos/configuration.php'; } if (!User::isAdmin()) { - header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this")); + forbiddenPage("You can not do this"); exit; } ?> @@ -124,7 +124,7 @@ if (!User::isAdmin()) { $(document).ready(function () { $('#addUsers_affiliationsBtn').click(function () { $.ajax({ - url: 'plugin/CustomizeUser/View/addUsers_affiliationsVideo.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/addUsers_affiliationsVideo.php', data: $('#panelUsers_affiliationsForm').serialize(), type: 'post', success: function (response) { @@ -167,7 +167,7 @@ if (!User::isAdmin()) { e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/View/Users_affiliations/add.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/Users_affiliations/add.json.php', data: $('#panelUsers_affiliationsForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/CustomizeUser/View/Users_extra_info/index_body.php b/plugin/CustomizeUser/View/Users_extra_info/index_body.php index b9ebf1c11f..07cc1a0eb3 100644 --- a/plugin/CustomizeUser/View/Users_extra_info/index_body.php +++ b/plugin/CustomizeUser/View/Users_extra_info/index_body.php @@ -153,7 +153,7 @@ if (!User::isAdmin()) { }); $('#addUsers_extra_infoBtn').click(function () { $.ajax({ - url: 'plugin/CustomizeUser/View/addUsers_extra_infoVideo.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/addUsers_extra_infoVideo.php', data: $('#panelUsers_extra_infoForm').serialize(), type: 'post', success: function (response) { @@ -199,7 +199,7 @@ if (!User::isAdmin()) { e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/View/Users_extra_info/add.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/Users_extra_info/add.json.php', data: $('#panelUsers_extra_infoForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/CustomizeUser/View/editor.php b/plugin/CustomizeUser/View/editor.php index 808f82cccb..fa368fe8cf 100644 --- a/plugin/CustomizeUser/View/editor.php +++ b/plugin/CustomizeUser/View/editor.php @@ -4,54 +4,38 @@ if (!User::isAdmin()) { forbiddenPage("Must be admin"); } AVideoPlugin::loadPlugin("CustomizeUser"); +$_page = new Page(array('Customize User')); +$_page->loadBasicCSSAndJS(); ?> - - - - <?php echo $config->getWebSiteTitle(); ?> :: CustomizeUser - - - - - - -
    -
    -
    -
    - -
    -
    - -
    -
    - -
    -
    - -
    -
    +
    +
    +
    +
    + +
    +
    + +
    +
    + +
    +
    +
    - - - - - +
    +
    +print(); +?> \ No newline at end of file diff --git a/plugin/CustomizeUser/View/tabAffiliation.php b/plugin/CustomizeUser/View/tabAffiliation.php index d8a00c16b3..3b0956547d 100644 --- a/plugin/CustomizeUser/View/tabAffiliation.php +++ b/plugin/CustomizeUser/View/tabAffiliation.php @@ -94,7 +94,7 @@ var data = Users_affiliationstableVar.row(tr).data(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/View/Users_affiliations/confirm.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/Users_affiliations/confirm.json.php', data: {id: data.id, confirm: confirm}, type: 'post', success: function (response) { @@ -108,7 +108,7 @@ $(document).ready(function () { $('#addUsers_affiliationsBtn').click(function () { $.ajax({ - url: 'plugin/CustomizeUser/View/addUsers_affiliationsVideo.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/addUsers_affiliationsVideo.php', data: $('#panelUsers_affiliationsForm').serialize(), type: 'post', success: function (response) { @@ -164,7 +164,7 @@ echo 'var sendConfirmationCancelButton = row.company_agree_date && row.affiliate e.preventDefault(); modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/View/Users_affiliations/add.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/View/Users_affiliations/add.json.php', data: $('#panelUsers_affiliationsForm').serialize(), type: 'post', success: function (response) { diff --git a/plugin/CustomizeUser/actionButton.php b/plugin/CustomizeUser/actionButton.php index 9464fe87df..3e8fb46b4b 100644 --- a/plugin/CustomizeUser/actionButton.php +++ b/plugin/CustomizeUser/actionButton.php @@ -118,7 +118,7 @@ if ($obj->allowWalletDirectTransferDonation && !empty($video['users_id']) && cla function submitDonation() { modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/donate.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/donate.json.php', data: { "value": $('#donationValue').val(), "videos_id": , @@ -144,7 +144,7 @@ if ($obj->allowWalletDirectTransferDonation && !empty($video['users_id']) && cla function submitDonationButton(buttonIndex) { modal.showPleaseWait(); $.ajax({ - url: 'plugin/CustomizeUser/donate.json.php', + url: webSiteRootURL+'plugin/CustomizeUser/donate.json.php', data: { "buttonIndex": buttonIndex, "videos_id": , diff --git a/plugin/CustomizeUser/confirmVideoPassword.php b/plugin/CustomizeUser/confirmVideoPassword.php index 1caa02ece5..ce40c5232b 100644 --- a/plugin/CustomizeUser/confirmVideoPassword.php +++ b/plugin/CustomizeUser/confirmVideoPassword.php @@ -8,97 +8,88 @@ if (!empty($images->posterPortrait) && !ImagesPlaceHolders::isDefaultImage($imag } $imgw = 1280; $imgh = 720; -$ogURL = Video::getLinkToVideo($video['id'], $video['clean_title'], false,false); +$ogURL = Video::getLinkToVideo($video['id'], $video['clean_title'], false, false); +$_page = new Page(array('Confirm Password')); +$_page->setIncludeNavbar(false); ?> - - - - <?php echo __("Confirm Password") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?> - - - - - -
    + +
    + + +