mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Option to do not let users change category
This commit is contained in:
parent
1f20b5dafb
commit
8cc9953209
1155 changed files with 45 additions and 29 deletions
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
|
@ -132,7 +132,11 @@ $object->isLogged = User::isLogged();
|
||||||
$object->isAdmin = User::isAdmin();
|
$object->isAdmin = User::isAdmin();
|
||||||
$object->canUpload = User::canUpload();
|
$object->canUpload = User::canUpload();
|
||||||
$object->canComment = User::canComment();
|
$object->canComment = User::canComment();
|
||||||
$object->categories = Category::getAllCategories();
|
if (empty($advancedCustom->userCanNotChangeCategory) || User::isAdmin()) {
|
||||||
|
$object->categories = Category::getAllCategories();
|
||||||
|
}else{
|
||||||
|
$object->categories = array();
|
||||||
|
}
|
||||||
$object->streamServerURL = "";
|
$object->streamServerURL = "";
|
||||||
$object->streamKey = "";
|
$object->streamKey = "";
|
||||||
if($object->isLogged){
|
if($object->isLogged){
|
||||||
|
|
|
@ -46,7 +46,9 @@ $obj->setNext_videos_id($_POST['next_videos_id']);
|
||||||
if(!empty($_POST['description'])){
|
if(!empty($_POST['description'])){
|
||||||
$obj->setDescription($_POST['description']);
|
$obj->setDescription($_POST['description']);
|
||||||
}
|
}
|
||||||
$obj->setCategories_id($_POST['categories_id']);
|
if (empty($advancedCustom->userCanNotChangeCategory) || User::isAdmin()) {
|
||||||
|
$obj->setCategories_id($_POST['categories_id']);
|
||||||
|
}
|
||||||
$obj->setVideoGroups(empty($_POST['videoGroups'])?array():$_POST['videoGroups']);
|
$obj->setVideoGroups(empty($_POST['videoGroups'])?array():$_POST['videoGroups']);
|
||||||
$resp = $obj->save(true);
|
$resp = $obj->save(true);
|
||||||
|
|
||||||
|
|
0
plugin/AD_Server/AD_Server.php
Executable file → Normal file
0
plugin/AD_Server/AD_Server.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaigns.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaigns.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsLogs.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsLogs.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsVideos.php
Executable file → Normal file
0
plugin/AD_Server/Objects/VastCampaignsVideos.php
Executable file → Normal file
0
plugin/AD_Server/VAST.php
Executable file → Normal file
0
plugin/AD_Server/VAST.php
Executable file → Normal file
0
plugin/AD_Server/VMAP.php
Executable file → Normal file
0
plugin/AD_Server/VMAP.php
Executable file → Normal file
0
plugin/AD_Server/footer.php
Executable file → Normal file
0
plugin/AD_Server/footer.php
Executable file → Normal file
0
plugin/AD_Server/index.php
Executable file → Normal file
0
plugin/AD_Server/index.php
Executable file → Normal file
0
plugin/AD_Server/install/install.sql
Executable file → Normal file
0
plugin/AD_Server/install/install.sql
Executable file → Normal file
0
plugin/AD_Server/log.php
Executable file → Normal file
0
plugin/AD_Server/log.php
Executable file → Normal file
0
plugin/AD_Server/pluginMenu.html
Executable file → Normal file
0
plugin/AD_Server/pluginMenu.html
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.css
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.css
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.js
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.js
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.scss
Executable file → Normal file
0
plugin/AD_Server/videojs-ima/videojs.ima.scss
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js.map
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.js.map
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs-markers.min.js
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.css
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.css
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.min.css
vendored
Executable file → Normal file
0
plugin/AD_Server/videojs-markers/videojs.markers.min.css
vendored
Executable file → Normal file
0
plugin/AD_Server/view/addCampaign.php
Executable file → Normal file
0
plugin/AD_Server/view/addCampaign.php
Executable file → Normal file
0
plugin/AD_Server/view/addCampaignVideo.php
Executable file → Normal file
0
plugin/AD_Server/view/addCampaignVideo.php
Executable file → Normal file
0
plugin/AD_Server/view/campaigns.json.php
Executable file → Normal file
0
plugin/AD_Server/view/campaigns.json.php
Executable file → Normal file
0
plugin/AD_Server/view/campaignsVideos.json.php
Executable file → Normal file
0
plugin/AD_Server/view/campaignsVideos.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaign.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaign.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaignVideo.json.php
Executable file → Normal file
0
plugin/AD_Server/view/deleteCampaignVideo.json.php
Executable file → Normal file
0
plugin/AD_Server_Location/AD_Server_Location.php
Executable file → Normal file
0
plugin/AD_Server_Location/AD_Server_Location.php
Executable file → Normal file
0
plugin/AD_Server_Location/Objects/CampaignLocations.php
Executable file → Normal file
0
plugin/AD_Server_Location/Objects/CampaignLocations.php
Executable file → Normal file
0
plugin/AD_Server_Location/campaignPanel.php
Executable file → Normal file
0
plugin/AD_Server_Location/campaignPanel.php
Executable file → Normal file
0
plugin/AD_Server_Location/install/install.sql
Executable file → Normal file
0
plugin/AD_Server_Location/install/install.sql
Executable file → Normal file
0
plugin/Audit/Audit.php
Executable file → Normal file
0
plugin/Audit/Audit.php
Executable file → Normal file
0
plugin/Audit/Objects/AuditTable.php
Executable file → Normal file
0
plugin/Audit/Objects/AuditTable.php
Executable file → Normal file
0
plugin/Audit/install/audit.mwb
Executable file → Normal file
0
plugin/Audit/install/audit.mwb
Executable file → Normal file
0
plugin/Audit/install/audit.mwb.bak
Executable file → Normal file
0
plugin/Audit/install/audit.mwb.bak
Executable file → Normal file
0
plugin/Audit/install/install.sql
Executable file → Normal file
0
plugin/Audit/install/install.sql
Executable file → Normal file
0
plugin/Audit/page/audits.json.php
Executable file → Normal file
0
plugin/Audit/page/audits.json.php
Executable file → Normal file
0
plugin/Audit/page/editor.php
Executable file → Normal file
0
plugin/Audit/page/editor.php
Executable file → Normal file
0
plugin/Audit/pluginMenu.html
Executable file → Normal file
0
plugin/Audit/pluginMenu.html
Executable file → Normal file
0
plugin/Cache/Cache.php
Executable file → Normal file
0
plugin/Cache/Cache.php
Executable file → Normal file
0
plugin/CloneSite/CloneLog.php
Executable file → Normal file
0
plugin/CloneSite/CloneLog.php
Executable file → Normal file
0
plugin/CloneSite/CloneSite.php
Executable file → Normal file
0
plugin/CloneSite/CloneSite.php
Executable file → Normal file
0
plugin/CloneSite/Objects/Clones.php
Executable file → Normal file
0
plugin/CloneSite/Objects/Clones.php
Executable file → Normal file
0
plugin/CloneSite/Objects/cloneSiteModel.mwb
Executable file → Normal file
0
plugin/CloneSite/Objects/cloneSiteModel.mwb
Executable file → Normal file
0
plugin/CloneSite/changeStatus.json.php
Executable file → Normal file
0
plugin/CloneSite/changeStatus.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneClient.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneClient.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneServer.json.php
Executable file → Normal file
0
plugin/CloneSite/cloneServer.json.php
Executable file → Normal file
0
plugin/CloneSite/clones.json.php
Executable file → Normal file
0
plugin/CloneSite/clones.json.php
Executable file → Normal file
0
plugin/CloneSite/delete.json.php
Executable file → Normal file
0
plugin/CloneSite/delete.json.php
Executable file → Normal file
0
plugin/CloneSite/functions.php
Executable file → Normal file
0
plugin/CloneSite/functions.php
Executable file → Normal file
0
plugin/CloneSite/index.php
Executable file → Normal file
0
plugin/CloneSite/index.php
Executable file → Normal file
0
plugin/CloneSite/install/install.sql
Executable file → Normal file
0
plugin/CloneSite/install/install.sql
Executable file → Normal file
0
plugin/CloneSite/pluginMenu.html
Executable file → Normal file
0
plugin/CloneSite/pluginMenu.html
Executable file → Normal file
0
plugin/CookieAlert/CookieAlert.php
Executable file → Normal file
0
plugin/CookieAlert/CookieAlert.php
Executable file → Normal file
0
plugin/CookieAlert/cookiealert-standalone.js
Executable file → Normal file
0
plugin/CookieAlert/cookiealert-standalone.js
Executable file → Normal file
0
plugin/CookieAlert/cookiealert.css
Executable file → Normal file
0
plugin/CookieAlert/cookiealert.css
Executable file → Normal file
0
plugin/CookieAlert/cubes.png
Executable file → Normal file
0
plugin/CookieAlert/cubes.png
Executable file → Normal file
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
0
plugin/CookieAlert/demo.html
Executable file → Normal file
0
plugin/CookieAlert/demo.html
Executable file → Normal file
0
plugin/CookieAlert/footer.php
Executable file → Normal file
0
plugin/CookieAlert/footer.php
Executable file → Normal file
1
plugin/CustomizeAdvanced/CustomizeAdvanced.php
Executable file → Normal file
1
plugin/CustomizeAdvanced/CustomizeAdvanced.php
Executable file → Normal file
|
@ -97,6 +97,7 @@ class CustomizeAdvanced extends PluginAbstract {
|
||||||
$obj->disableAboutLeftMenu= false;
|
$obj->disableAboutLeftMenu= false;
|
||||||
$obj->disableContactLeftMenu= false;
|
$obj->disableContactLeftMenu= false;
|
||||||
$obj->disableNavbar= false;
|
$obj->disableNavbar= false;
|
||||||
|
$obj->userCanNotChangeCategory = false;
|
||||||
|
|
||||||
return $obj;
|
return $obj;
|
||||||
}
|
}
|
||||||
|
|
0
plugin/CustomizeAdvanced/advancedCustom.json.php
Executable file → Normal file
0
plugin/CustomizeAdvanced/advancedCustom.json.php
Executable file → Normal file
0
plugin/FBTube/FBTube.php
Executable file → Normal file
0
plugin/FBTube/FBTube.php
Executable file → Normal file
0
plugin/FBTube/view/getVideos.php
Executable file → Normal file
0
plugin/FBTube/view/getVideos.php
Executable file → Normal file
0
plugin/FBTube/view/modeFacebook.php
Executable file → Normal file
0
plugin/FBTube/view/modeFacebook.php
Executable file → Normal file
0
plugin/FBTube/view/player.css
Executable file → Normal file
0
plugin/FBTube/view/player.css
Executable file → Normal file
0
plugin/FBTube/view/style.css
Executable file → Normal file
0
plugin/FBTube/view/style.css
Executable file → Normal file
0
plugin/FloatVideo/FloatVideo.php
Executable file → Normal file
0
plugin/FloatVideo/FloatVideo.php
Executable file → Normal file
0
plugin/Gallery/Gallery.php
Executable file → Normal file
0
plugin/Gallery/Gallery.php
Executable file → Normal file
0
plugin/Gallery/fullscreen.css
Executable file → Normal file
0
plugin/Gallery/fullscreen.css
Executable file → Normal file
0
plugin/Gallery/fullscreen.js
Executable file → Normal file
0
plugin/Gallery/fullscreen.js
Executable file → Normal file
0
plugin/Gallery/functions.php
Executable file → Normal file
0
plugin/Gallery/functions.php
Executable file → Normal file
0
plugin/Gallery/script.js
Executable file → Normal file
0
plugin/Gallery/script.js
Executable file → Normal file
0
plugin/Gallery/style.css
Executable file → Normal file
0
plugin/Gallery/style.css
Executable file → Normal file
0
plugin/Gallery/view/BigVideo.php
Executable file → Normal file
0
plugin/Gallery/view/BigVideo.php
Executable file → Normal file
0
plugin/Gallery/view/Category.php
Executable file → Normal file
0
plugin/Gallery/view/Category.php
Executable file → Normal file
0
plugin/Gallery/view/modeGallery.php
Executable file → Normal file
0
plugin/Gallery/view/modeGallery.php
Executable file → Normal file
0
plugin/Hotkeys/Hotkeys.php
Executable file → Normal file
0
plugin/Hotkeys/Hotkeys.php
Executable file → Normal file
0
plugin/Hotkeys/videojs.hotkeys.min.js
vendored
Executable file → Normal file
0
plugin/Hotkeys/videojs.hotkeys.min.js
vendored
Executable file → Normal file
0
plugin/IMDbScrape/.gitignore
vendored
Executable file → Normal file
0
plugin/IMDbScrape/.gitignore
vendored
Executable file → Normal file
0
plugin/IMDbScrape/IMDbScrape.php
Executable file → Normal file
0
plugin/IMDbScrape/IMDbScrape.php
Executable file → Normal file
0
plugin/IMDbScrape/cache/.gitkeep
vendored
Executable file → Normal file
0
plugin/IMDbScrape/cache/.gitkeep
vendored
Executable file → Normal file
0
plugin/IMDbScrape/cast/not-found.jpg
Executable file → Normal file
0
plugin/IMDbScrape/cast/not-found.jpg
Executable file → Normal file
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 423 B |
0
plugin/IMDbScrape/footer.php
Executable file → Normal file
0
plugin/IMDbScrape/footer.php
Executable file → Normal file
0
plugin/IMDbScrape/get.json.php
Executable file → Normal file
0
plugin/IMDbScrape/get.json.php
Executable file → Normal file
0
plugin/IMDbScrape/imdb.class.php
Executable file → Normal file
0
plugin/IMDbScrape/imdb.class.php
Executable file → Normal file
0
plugin/IMDbScrape/posters/not-found.jpg
Executable file → Normal file
0
plugin/IMDbScrape/posters/not-found.jpg
Executable file → Normal file
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
0
plugin/LiveChat/Chat.php
Executable file → Normal file
0
plugin/LiveChat/Chat.php
Executable file → Normal file
0
plugin/LiveChat/LiveChat.php
Executable file → Normal file
0
plugin/LiveChat/LiveChat.php
Executable file → Normal file
0
plugin/LiveChat/Objects/LiveChatObj.php
Executable file → Normal file
0
plugin/LiveChat/Objects/LiveChatObj.php
Executable file → Normal file
0
plugin/LiveChat/chat-server.php
Executable file → Normal file
0
plugin/LiveChat/chat-server.php
Executable file → Normal file
0
plugin/LiveChat/composer.json
Executable file → Normal file
0
plugin/LiveChat/composer.json
Executable file → Normal file
0
plugin/LiveChat/composer.lock
generated
Executable file → Normal file
0
plugin/LiveChat/composer.lock
generated
Executable file → Normal file
0
plugin/LiveChat/getChat.json.php
Executable file → Normal file
0
plugin/LiveChat/getChat.json.php
Executable file → Normal file
0
plugin/LiveChat/index.php
Executable file → Normal file
0
plugin/LiveChat/index.php
Executable file → Normal file
0
plugin/LiveChat/install/install.sql
Executable file → Normal file
0
plugin/LiveChat/install/install.sql
Executable file → Normal file
0
plugin/LiveChat/ratchet/autoload.php
Executable file → Normal file
0
plugin/LiveChat/ratchet/autoload.php
Executable file → Normal file
0
plugin/LiveChat/ratchet/cboden/ratchet/.gitignore
vendored
Executable file → Normal file
0
plugin/LiveChat/ratchet/cboden/ratchet/.gitignore
vendored
Executable file → Normal file
0
plugin/LiveChat/ratchet/cboden/ratchet/.travis.yml
Executable file → Normal file
0
plugin/LiveChat/ratchet/cboden/ratchet/.travis.yml
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue