Skip to content

Commit

Permalink
Option to do not let users change category
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Nov 2, 2018
1 parent 1f20b5d commit 8cc9953
Show file tree
Hide file tree
Showing 1,155 changed files with 45 additions and 29 deletions.
Empty file modified .gitignore
100755 → 100644
Empty file.
6 changes: 5 additions & 1 deletion objects/login.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@
$object->isAdmin = User::isAdmin();
$object->canUpload = User::canUpload();
$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->streamKey = "";
if($object->isLogged){
Expand Down
4 changes: 3 additions & 1 deletion objects/videoAddNew.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
if(!empty($_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']);
$resp = $obj->save(true);

Expand Down
Empty file modified plugin/AD_Server/AD_Server.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/Objects/VastCampaigns.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/Objects/VastCampaignsLogs.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/Objects/VastCampaignsVideos.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/VAST.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/VMAP.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/footer.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/index.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/install/install.sql
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/log.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/pluginMenu.html
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-ima/videojs.ima.css
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-ima/videojs.ima.js
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-ima/videojs.ima.min.js
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-ima/videojs.ima.scss
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-markers/videojs-markers.js
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-markers/videojs-markers.js.map
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-markers/videojs-markers.min.js
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-markers/videojs.markers.css
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/videojs-markers/videojs.markers.min.css
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/view/addCampaign.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/view/addCampaignVideo.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/view/campaigns.json.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/view/campaignsVideos.json.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/view/deleteCampaign.json.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server/view/deleteCampaignVideo.json.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server_Location/AD_Server_Location.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server_Location/Objects/CampaignLocations.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server_Location/campaignPanel.php
100755 → 100644
Empty file.
Empty file modified plugin/AD_Server_Location/install/install.sql
100755 → 100644
Empty file.
Empty file modified plugin/Audit/Audit.php
100755 → 100644
Empty file.
Empty file modified plugin/Audit/Objects/AuditTable.php
100755 → 100644
Empty file.
Empty file modified plugin/Audit/install/audit.mwb
100755 → 100644
Empty file.
Empty file modified plugin/Audit/install/audit.mwb.bak
100755 → 100644
Empty file.
Empty file modified plugin/Audit/install/install.sql
100755 → 100644
Empty file.
Empty file modified plugin/Audit/page/audits.json.php
100755 → 100644
Empty file.
Empty file modified plugin/Audit/page/editor.php
100755 → 100644
Empty file.
Empty file modified plugin/Audit/pluginMenu.html
100755 → 100644
Empty file.
Empty file modified plugin/Cache/Cache.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/CloneLog.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/CloneSite.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/Objects/Clones.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/Objects/cloneSiteModel.mwb
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/changeStatus.json.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/cloneClient.json.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/cloneServer.json.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/clones.json.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/delete.json.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/functions.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/index.php
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/install/install.sql
100755 → 100644
Empty file.
Empty file modified plugin/CloneSite/pluginMenu.html
100755 → 100644
Empty file.
Empty file modified plugin/CookieAlert/CookieAlert.php
100755 → 100644
Empty file.
Empty file modified plugin/CookieAlert/cookiealert-standalone.js
100755 → 100644
Empty file.
Empty file modified plugin/CookieAlert/cookiealert.css
100755 → 100644
Empty file.
Empty file modified plugin/CookieAlert/cubes.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified plugin/CookieAlert/demo.html
100755 → 100644
Empty file.
Empty file modified plugin/CookieAlert/footer.php
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions plugin/CustomizeAdvanced/CustomizeAdvanced.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function getEmptyDataObject() {
$obj->disableAboutLeftMenu= false;
$obj->disableContactLeftMenu= false;
$obj->disableNavbar= false;
$obj->userCanNotChangeCategory = false;

return $obj;
}
Expand Down
Empty file modified plugin/CustomizeAdvanced/advancedCustom.json.php
100755 → 100644
Empty file.
Empty file modified plugin/FBTube/FBTube.php
100755 → 100644
Empty file.
Empty file modified plugin/FBTube/view/getVideos.php
100755 → 100644
Empty file.
Empty file modified plugin/FBTube/view/modeFacebook.php
100755 → 100644
Empty file.
Empty file modified plugin/FBTube/view/player.css
100755 → 100644
Empty file.
Empty file modified plugin/FBTube/view/style.css
100755 → 100644
Empty file.
Empty file modified plugin/FloatVideo/FloatVideo.php
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/Gallery.php
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/fullscreen.css
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/fullscreen.js
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/functions.php
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/script.js
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/style.css
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/view/BigVideo.php
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/view/Category.php
100755 → 100644
Empty file.
Empty file modified plugin/Gallery/view/modeGallery.php
100755 → 100644
Empty file.
Empty file modified plugin/Hotkeys/Hotkeys.php
100755 → 100644
Empty file.
Empty file modified plugin/Hotkeys/videojs.hotkeys.min.js
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/.gitignore
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/IMDbScrape.php
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/cache/.gitkeep
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/cast/not-found.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified plugin/IMDbScrape/footer.php
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/get.json.php
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/imdb.class.php
100755 → 100644
Empty file.
Empty file modified plugin/IMDbScrape/posters/not-found.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified plugin/LiveChat/Chat.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/LiveChat.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/Objects/LiveChatObj.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/chat-server.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/composer.lock
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/getChat.json.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/index.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/install/install.sql
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/autoload.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/.gitignore
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/.travis.yml
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/Makefile
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/phpunit.xml.dist
100755 → 100644
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/src/Ratchet/App.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/cboden/ratchet/tests/bootstrap.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/ClassLoader.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/autoload_classmap.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/autoload_files.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/autoload_namespaces.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/autoload_psr4.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/autoload_real.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/autoload_static.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/composer/installed.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/.gitignore
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/.travis.yml
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/doc/00-intro.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/doc/01-api.md
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/evenement/evenement/phpunit.xml.dist
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/AppendStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/BufferStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/CachingStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/DroppingStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/FnStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/InflateStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/LazyOpenStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/LimitStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/MessageTrait.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/MultipartStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/NoSeekStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/PumpStream.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/Request.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/Response.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/ServerRequest.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/Stream.php
100755 → 100644
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/StreamWrapper.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/UploadedFile.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/Uri.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/UriNormalizer.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/UriResolver.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/guzzlehttp/psr7/src/functions.php
100755 → 100644
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/psr/http-message/CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/psr/http-message/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/psr/http-message/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/psr/http-message/composer.json
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/psr/http-message/src/UriInterface.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/.gitignore
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/.travis.yml
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/phpunit.xml.dist
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/src/Messaging/Frame.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/tests/AbResultsTest.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/ratchet/rfc6455/tests/bootstrap.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/.gitignore
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/.travis.yml
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/phpunit.xml.dist
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/src/ArrayCache.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/src/CacheInterface.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/tests/ArrayCacheTest.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/tests/CallableStub.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/cache/tests/TestCase.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/.gitignore
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/.travis.yml
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/CHANGELOG.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/LICENSE
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/README.md
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/composer.json
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/examples/01-one.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/examples/02-concurrent.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/examples/03-cached.php
100755 → 100644
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/phpunit.xml.dist
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/src/BadServerException.php
100755 → 100644
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/src/Config/Config.php
100755 → 100644
Empty file.
Empty file.
Empty file modified plugin/LiveChat/ratchet/react/dns/src/Config/HostsFile.php
100755 → 100644
Empty file.
Loading

0 comments on commit 8cc9953

Please sign in to comment.