'; foreach ($help as $value) { $helpTXT .= '
  • ' . $value . '
  • '; } $helpTXT .= ''; } if ($isChecked) { return '
  • ' . $text . $helpTXT . '
  • '; } else { return '
  • ' . $text . $helpTXT . '
  • '; } } $_page = new Page(array('Download Checker')); ?>
    Site Download Configuration
      getAllow_download())) { echo getChecked(__("Your Site Configurations is set to NOT Allow Download"), false, $help); } else { echo getChecked(__("Your Site Configurations is set to Allow Download"), true, $help); } if (User::isAdmin()) { $help = []; $help[] = "Plugins menu / CustomizeUser / nonAdminCannotDownload"; } if ($obj->nonAdminCannotDownload) { echo getChecked(__("Non admin users can download videos"), true, $help); } else { echo getChecked(__("Non admin users can NOT download videos"), false, $help); } } else { echo getChecked(__("This site configuration allow download"), true, $help); if ($obj->nonAdminCannotDownload) { $help[] = "Plugins menu / CustomizeUser / nonAdminCannotDownload"; echo getChecked(__("But only admin can download"), true, $help); } } ?>
    getUsers_id(); $user = new User($users_id); ?>
    User Download Configuration ()
      getType(); if (!in_array($type, $canDownload)) { echo getChecked(__("You cannot download video type") . " {$type}", false, $help); } if (User::isAdmin()) { $help = []; $help[] = "Plugins menu / CustomizeUser / userCanAllowFilesDownload"; } else { $help = []; } if (!empty($obj->userCanAllowFilesDownload)) { $help[] = "My Videos menu / Allow Download My Videos"; if (!empty($user->getExternalOption('userCanAllowFilesDownload'))) { if (!empty($obj->userCanAllowFilesDownloadSelectPerVideo)) { echo getChecked(__("This user do allow download selected videos"), true, $help); } else { echo getChecked(__("This user do allow download all his files"), true, $help); } } else { echo getChecked(__("This user do NOT allow download his files"), false, $help); } } else { echo getChecked(__("The download is controlled by the system, there is nothing to check on the user"), true, $help); } ?>
    Video Download Configuration (getTitle(); ?>)
      getId()); if ($canDownloadVideoFromVideo) { echo getChecked(__("This video can be downloaded"), true); } else { $category = new Category($video->getCategories_id()); $help = []; $help[] = "Categories menu / Edit a category / Meta Data / Allow Download"; if (is_object($category) && !$category->getAllow_download()) { echo getChecked(__("This category do not allow download"), false, $help); } else { echo getChecked(__("This category allow download"), true, $help); } if (!empty($obj->userCanAllowFilesDownloadSelectPerVideo)) { $help = []; $help[] = "My Videos menu / Edit a video / Allow Download This media"; if (empty($video->getCan_download())) { echo getChecked(__("User must allow each video individually, but this video is not marked for download"), false, $help); } else { echo getChecked(__("This video checked for download"), true, $help); } } else { echo getChecked(__("The download permission is site wide, so there is nothing to check on the video"), true); } } ?>
    print(); ?>