1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00
Daniel Neto 2024-08-28 10:23:30 -03:00
parent 029ac1b5c7
commit d5b5ea9bd8
2 changed files with 9 additions and 2 deletions

View file

@ -10,6 +10,12 @@ $_POST['sort']["created"] = "DESC";
$_POST['current'] = 1; $_POST['current'] = 1;
$_REQUEST['rowCount'] = getRowCount(); $_REQUEST['rowCount'] = getRowCount();
$advancedCustom = AVideoPlugin::getDataObject('CustomizeAdvanced');
if(!empty($advancedCustom->disableFeeds)){
forbiddenPage('Feeds are disabled');
}
if(empty($config)){ if(empty($config)){
require_once $global['systemRootPath'] . 'objects/configuration.php'; require_once $global['systemRootPath'] . 'objects/configuration.php';
$config = new AVideoConf(); $config = new AVideoConf();

View file

@ -487,6 +487,8 @@ Disallow: *action=tagsearch*
$obj->autoConvertVideosToMP3 = false; $obj->autoConvertVideosToMP3 = false;
$obj->allowDownloadMP3 = true; $obj->allowDownloadMP3 = true;
$obj->disableFeeds = false;
return $obj; return $obj;
} }
@ -531,7 +533,6 @@ Disallow: *action=tagsearch*
return $_directUploadFiletypes; return $_directUploadFiletypes;
} }
public function navBar() { public function navBar() {
$obj = $this->getDataObject(); $obj = $this->getDataObject();
$str = ''; $str = '';
@ -781,7 +782,7 @@ Disallow: *action=tagsearch*
return @$externalOptions->redirectVideo; return @$externalOptions->redirectVideo;
} }
public static function setShortSummaryAndMetaDescriptionVideo($videos_id, $ShortSummary, $MetaDescription) { public static function setShortSummaryAndMetaDescriptionVideo($videos_id, $ShortSummary, $MetaDescription) {
if (!Video::canEdit($videos_id)) { if (!Video::canEdit($videos_id)) {
return false; return false;
} }