From 314e601e441e535fbf2d1406701a0d2be4d18844 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 14 Feb 2018 23:08:17 +0100 Subject: [PATCH] Rename nntmux namespace and folder to Blacklight --- .gitignore | 10 +- {nntmux => Blacklight}/AniDB.php | 6 +- {nntmux => Blacklight}/Backfill.php | 8 +- {nntmux => Blacklight}/Binaries.php | 14 +- {nntmux => Blacklight}/Books.php | 6 +- {nntmux => Blacklight}/Captcha.php | 2 +- {nntmux => Blacklight}/Categorize.php | 4 +- .../CollectionsCleaning.php | 8 +- {nntmux => Blacklight}/ColorCLI.php | 2 +- {nntmux => Blacklight}/Console.php | 6 +- {nntmux => Blacklight}/ConsoleTools.php | 4 +- {nntmux => Blacklight}/Contents.php | 6 +- {nntmux => Blacklight}/CouchPotato.php | 2 +- {nntmux => Blacklight}/Games.php | 6 +- {nntmux => Blacklight}/Genres.php | 6 +- {nntmux => Blacklight}/IRCClient.php | 4 +- {nntmux => Blacklight}/IRCScraper.php | 6 +- {nntmux => Blacklight}/MiscSorter.php | 12 +- {nntmux => Blacklight}/Movie.php | 16 +- {nntmux => Blacklight}/Music.php | 6 +- {nntmux => Blacklight}/NNTP.php | 8 +- {nntmux => Blacklight}/NZB.php | 8 +- {nntmux => Blacklight}/NZBContents.php | 20 +- {nntmux => Blacklight}/NZBExport.php | 8 +- {nntmux => Blacklight}/NZBGet.php | 10 +- {nntmux => Blacklight}/NZBImport.php | 18 +- {nntmux => Blacklight}/NZBMultiGroup.php | 2 +- {nntmux => Blacklight}/NZBVortex.php | 2 +- {nntmux => Blacklight}/NameFixer.php | 18 +- {nntmux => Blacklight}/Nfo.php | 8 +- {nntmux => Blacklight}/Regexes.php | 6 +- {nntmux => Blacklight}/ReleaseCleaning.php | 8 +- {nntmux => Blacklight}/ReleaseExtra.php | 8 +- {nntmux => Blacklight}/ReleaseImage.php | 2 +- {nntmux => Blacklight}/ReleaseRemover.php | 14 +- {nntmux => Blacklight}/ReleaseSearch.php | 6 +- {nntmux => Blacklight}/Releases.php | 12 +- {nntmux => Blacklight}/SABnzbd.php | 2 +- {nntmux => Blacklight}/Sharing.php | 8 +- {nntmux => Blacklight}/Sitemap.php | 2 +- {nntmux => Blacklight}/Sites.php | 2 +- {nntmux => Blacklight}/SphinxSearch.php | 2 +- {nntmux => Blacklight}/Steam.php | 6 +- {nntmux => Blacklight}/Tmux.php | 6 +- {nntmux => Blacklight}/TmuxOutput.php | 8 +- {nntmux => Blacklight}/TmuxRun.php | 6 +- {nntmux => Blacklight}/XXX.php | 18 +- .../build/ComposerScripts.php | 2 +- {nntmux => Blacklight}/config/Configure.php | 2 +- .../config/ircscraper_settings_example.php | 0 .../config/openssl.example.php | 0 .../config/settings.example.php | 2 +- Blacklight/config/settings.php | 343 ++++++++++++++++++ {nntmux => Blacklight}/db/DB.php | 18 +- {nntmux => Blacklight}/db/DbUpdate.php | 10 +- {nntmux => Blacklight}/db/PreDb.php | 2 +- {nntmux => Blacklight}/db/populate/AniDB.php | 6 +- .../db/populate/PopulateTitles.php | 6 +- {nntmux => Blacklight}/http/API.php | 4 +- {nntmux => Blacklight}/http/Capabilities.php | 8 +- {nntmux => Blacklight}/http/RSS.php | 6 +- {nntmux => Blacklight}/http/XML_Response.php | 4 +- {nntmux => Blacklight}/libraries/Cache.php | 16 +- .../libraries/CacheException.php | 2 +- {nntmux => Blacklight}/libraries/FanartTV.php | 2 +- {nntmux => Blacklight}/libraries/Forking.php | 18 +- .../libraries/ForkingException.php | 2 +- .../libraries/ForkingImportNZB.php | 6 +- {nntmux => Blacklight}/libraries/Geary.php | 2 +- {nntmux => Blacklight}/libraries/TraktAPI.php | 8 +- .../processing/PostProcess.php | 42 +-- .../processing/ProcessReleases.php | 36 +- .../processing/ProcessReleasesMultiGroup.php | 4 +- {nntmux => Blacklight}/processing/Videos.php | 6 +- .../processing/adult/ADE.php | 2 +- .../processing/adult/ADM.php | 4 +- .../processing/adult/AEBN.php | 2 +- .../processing/adult/AdultMovies.php | 2 +- .../processing/adult/Hotmovies.php | 2 +- .../processing/adult/Popporn.php | 2 +- .../processing/post/AniDB.php | 12 +- .../processing/post/ProcessAdditional.php | 46 +-- .../post/ProcessAdditionalException.php | 2 +- {nntmux => Blacklight}/processing/tv/TMDB.php | 6 +- {nntmux => Blacklight}/processing/tv/TV.php | 8 +- {nntmux => Blacklight}/processing/tv/TVDB.php | 6 +- .../processing/tv/TVMaze.php | 6 +- .../processing/tv/TraktTv.php | 12 +- {nntmux => Blacklight}/utility/Country.php | 2 +- {nntmux => Blacklight}/utility/Git.php | 2 +- .../utility/SmartyUtils.php | 0 {nntmux => Blacklight}/utility/Time.php | 2 +- {nntmux => Blacklight}/utility/Utility.php | 6 +- {nntmux => Blacklight}/utility/Versions.php | 4 +- Changelog | 1 + app/Console/Commands/NntmuxResetDb.php | 2 +- app/Console/Commands/UpdateNNTmuxDB.php | 2 +- app/Extensions/helper/helpers.php | 4 +- app/Extensions/util/Versions.php | 2 +- .../Controllers/Auth/RegisterController.php | 2 +- app/Models/Group.php | 10 +- app/Models/Predb.php | 4 +- app/Models/Release.php | 4 +- app/Models/ReleaseFile.php | 2 +- app/Models/Settings.php | 2 +- app/Models/User.php | 2 +- bootstrap/autoload.php | 4 +- bootstrap/constants.php | 4 +- build/NewPatches.php | 6 +- build/git-hooks/runHooks.php | 4 +- cli/data/populate_anidb.php | 6 +- cli/data/populate_steam_apps.php | 2 +- cli/data/predb_import_daily_batch.php | 6 +- composer.json | 8 +- libs/PEAR/Net_NNTP/NNTP/Protocol/Client.php | 2 +- misc/IRCScraper/scrape.php | 2 +- misc/sphinxsearch/optimize.php | 2 +- misc/sphinxsearch/populate_rt_indexes.php | 2 +- misc/testing/DB/mysqldump_tables.php | 2 +- misc/testing/DB/populate_nzb_guid.php | 14 +- misc/testing/DB/reset_postprocessing.php | 6 +- misc/testing/DB/reset_truncate.php | 2 +- misc/testing/DB/show_table_sizes.php | 2 +- misc/testing/Dev/clean_nzbs.php | 10 +- misc/testing/Dev/test-ReleaseCleaner.php | 6 +- misc/testing/NZB/nzb-reorg.php | 6 +- misc/testing/PostProc/check_covers.php | 8 +- misc/testing/PostProc/check_previews.php | 12 +- misc/testing/PostProc/getConsole.php | 4 +- misc/testing/PostProc/getGameCovers.php | 6 +- misc/testing/PostProc/getImdb.php | 6 +- misc/testing/PostProc/getMovieCovers.php | 6 +- misc/testing/PostProc/getXXXCovers.php | 6 +- misc/testing/PostProc/getXXXSamples.php | 4 +- misc/testing/PostProc/updateBookImages.php | 2 +- misc/testing/PostProc/updateConsoleImages.php | 4 +- misc/testing/PostProc/updateGamesImages.php | 4 +- misc/testing/PostProc/updateMovieImages.php | 4 +- misc/testing/PostProc/updateMusicImages.php | 2 +- misc/testing/PostProc/updateXXXImages.php | 4 +- misc/testing/Releases/delete_releases.php | 4 +- misc/testing/Releases/fixReleaseNames.php | 8 +- misc/testing/Releases/recategorize.php | 8 +- misc/testing/Releases/removeCrapReleases.php | 4 +- misc/testing/Tests/test_cache_server.php | 2 +- misc/testing/Tests/test_fanarttv_API.php | 4 +- misc/testing/Tests/test_giantbomb_API.php | 4 +- misc/testing/Tests/test_nntp_server.php | 6 +- misc/testing/Tests/test_omdb_API.php | 2 +- misc/testing/Tests/test_tmdb_API.php | 8 +- misc/testing/Tests/test_trakt_API.php | 4 +- misc/testing/Tests/test_tvdb_API.php | 4 +- misc/testing/Tests/test_tvmaze_API.php | 4 +- misc/testing/fix_filesize.php | 4 +- misc/testing/nzb-export.php | 2 +- misc/testing/nzb-import.php | 2 +- misc/testing/refreshMovie.php | 4 +- misc/update/backfill.php | 8 +- misc/update/decrypt_hashes.php | 8 +- misc/update/match_prefiles.php | 4 +- .../multiprocessing/.do_not_run/switch.php | 20 +- misc/update/multiprocessing/backfill.php | 2 +- misc/update/multiprocessing/binaries.php | 2 +- misc/update/multiprocessing/fixrelnames.php | 2 +- misc/update/multiprocessing/import.php | 2 +- misc/update/multiprocessing/postprocess.php | 2 +- misc/update/multiprocessing/releases.php | 2 +- misc/update/multiprocessing/requestid.php | 2 +- misc/update/multiprocessing/safe.php | 2 +- .../multiprocessing/update_per_group.php | 2 +- misc/update/postprocess.php | 8 +- misc/update/tmux/bin/groupfixrelnames.php | 18 +- misc/update/tmux/bin/showsleep.php | 2 +- misc/update/tmux/bin/update_groups.php | 6 +- misc/update/tmux/monitor.php | 12 +- misc/update/tmux/run.php | 10 +- misc/update/tmux/start.php | 4 +- misc/update/tmux/stop.php | 2 +- misc/update/update_binaries.php | 8 +- public/admin/ajax.php | 8 +- public/admin/ajax_binaryblacklist-list.php | 2 +- public/admin/ajax_regex-list.php | 2 +- public/admin/ajax_regex.php | 4 +- public/admin/ajax_sharing_settings.php | 4 +- public/admin/anidb-delete.php | 2 +- public/admin/anidb-edit.php | 2 +- public/admin/anidb-list.php | 2 +- public/admin/binaryblacklist-edit.php | 2 +- public/admin/binaryblacklist-list.php | 2 +- public/admin/book-edit.php | 4 +- public/admin/book-list.php | 4 +- public/admin/category_regexes-edit.php | 2 +- public/admin/category_regexes-list.php | 2 +- public/admin/collection_regexes-edit.php | 2 +- public/admin/collection_regexes-list.php | 2 +- public/admin/collection_regexes-test.php | 2 +- public/admin/console-edit.php | 4 +- public/admin/console-list.php | 4 +- public/admin/content-add.php | 2 +- public/admin/content-delete.php | 2 +- public/admin/content-list.php | 2 +- public/admin/game-edit.php | 4 +- public/admin/game-list.php | 2 +- public/admin/movie-add.php | 2 +- public/admin/movie-edit.php | 2 +- public/admin/movie-list.php | 4 +- public/admin/music-edit.php | 4 +- public/admin/music-list.php | 4 +- public/admin/nzb-export.php | 6 +- public/admin/nzb-import.php | 2 +- public/admin/posters-edit.php | 2 +- public/admin/release-delete.php | 2 +- public/admin/release-edit.php | 2 +- public/admin/release-files.php | 4 +- public/admin/release_naming_regexes-edit.php | 2 +- public/admin/release_naming_regexes-list.php | 2 +- public/admin/release_naming_regexes-test.php | 2 +- public/admin/sharing.php | 2 +- public/admin/site-edit.php | 6 +- public/admin/tmux-edit.php | 2 +- public/pages/BasePage.php | 8 +- public/pages/Page.php | 2 +- public/pages/ajax_mediainfo.php | 2 +- public/pages/ajax_release-admin.php | 2 +- public/pages/ajax_tvinfo.php | 2 +- public/pages/anime.php | 4 +- public/pages/api.php | 6 +- public/pages/bookmodal.php | 2 +- public/pages/books.php | 2 +- public/pages/browse.php | 2 +- public/pages/btc_payment.php | 2 +- public/pages/btc_payment_callback.php | 2 +- public/pages/cart.php | 2 +- public/pages/console.php | 4 +- public/pages/consolemodal.php | 2 +- public/pages/contact-us.php | 2 +- public/pages/content.php | 2 +- public/pages/details.php | 18 +- public/pages/filelist.php | 4 +- public/pages/forgottenpassword.php | 2 +- public/pages/games.php | 4 +- public/pages/getnzb.php | 6 +- public/pages/login.php | 4 +- public/pages/movie.php | 2 +- public/pages/movies.php | 2 +- public/pages/movietrailer.php | 2 +- public/pages/music.php | 4 +- public/pages/musicmodal.php | 2 +- public/pages/mymovies.php | 4 +- public/pages/myshows.php | 2 +- public/pages/nfo.php | 2 +- public/pages/nzbgetqueuedata.php | 4 +- public/pages/nzbvortex.php | 2 +- public/pages/profile.php | 4 +- public/pages/profileedit.php | 6 +- public/pages/queue.php | 4 +- public/pages/register.php | 4 +- public/pages/rss-info.php | 2 +- public/pages/rss.php | 4 +- public/pages/sabqueuedata.php | 2 +- public/pages/search.php | 2 +- public/pages/sendtocouch.php | 2 +- public/pages/sendtonzbget.php | 2 +- public/pages/sendtoqueue.php | 4 +- public/pages/sendtosab.php | 2 +- public/pages/series.php | 2 +- public/pages/sitemap.php | 4 +- public/pages/smartyTV.php | 2 +- public/pages/xxx.php | 2 +- public/pages/xxxmodal.php | 2 +- public/smarty.php | 2 +- tests/Install/InstallTest.php | 4 +- 272 files changed, 1037 insertions(+), 693 deletions(-) rename {nntmux => Blacklight}/AniDB.php (98%) rename {nntmux => Blacklight}/Backfill.php (99%) rename {nntmux => Blacklight}/Binaries.php (99%) rename {nntmux => Blacklight}/Books.php (99%) rename {nntmux => Blacklight}/Captcha.php (99%) rename {nntmux => Blacklight}/Categorize.php (99%) rename {nntmux => Blacklight}/CollectionsCleaning.php (98%) rename {nntmux => Blacklight}/ColorCLI.php (99%) rename {nntmux => Blacklight}/Console.php (99%) rename {nntmux => Blacklight}/ConsoleTools.php (98%) rename {nntmux => Blacklight}/Contents.php (99%) rename {nntmux => Blacklight}/CouchPotato.php (98%) rename {nntmux => Blacklight}/Games.php (99%) rename {nntmux => Blacklight}/Genres.php (98%) rename {nntmux => Blacklight}/IRCClient.php (99%) rename {nntmux => Blacklight}/IRCScraper.php (99%) rename {nntmux => Blacklight}/MiscSorter.php (99%) rename {nntmux => Blacklight}/Movie.php (99%) rename {nntmux => Blacklight}/Music.php (99%) rename {nntmux => Blacklight}/NNTP.php (99%) rename {nntmux => Blacklight}/NZB.php (99%) rename {nntmux => Blacklight}/NZBContents.php (96%) rename {nntmux => Blacklight}/NZBExport.php (98%) rename {nntmux => Blacklight}/NZBGet.php (98%) rename {nntmux => Blacklight}/NZBImport.php (98%) rename {nntmux => Blacklight}/NZBMultiGroup.php (96%) rename {nntmux => Blacklight}/NZBVortex.php (99%) rename {nntmux => Blacklight}/NameFixer.php (99%) rename {nntmux => Blacklight}/Nfo.php (99%) rename {nntmux => Blacklight}/Regexes.php (99%) rename {nntmux => Blacklight}/ReleaseCleaning.php (99%) rename {nntmux => Blacklight}/ReleaseExtra.php (99%) rename {nntmux => Blacklight}/ReleaseImage.php (99%) rename {nntmux => Blacklight}/ReleaseRemover.php (99%) rename {nntmux => Blacklight}/ReleaseSearch.php (97%) rename {nntmux => Blacklight}/Releases.php (99%) rename {nntmux => Blacklight}/SABnzbd.php (99%) rename {nntmux => Blacklight}/Sharing.php (99%) rename {nntmux => Blacklight}/Sitemap.php (94%) rename {nntmux => Blacklight}/Sites.php (97%) rename {nntmux => Blacklight}/SphinxSearch.php (99%) rename {nntmux => Blacklight}/Steam.php (98%) rename {nntmux => Blacklight}/Tmux.php (99%) rename {nntmux => Blacklight}/TmuxOutput.php (99%) rename {nntmux => Blacklight}/TmuxRun.php (99%) rename {nntmux => Blacklight}/XXX.php (98%) rename {nntmux => Blacklight}/build/ComposerScripts.php (98%) rename {nntmux => Blacklight}/config/Configure.php (99%) rename {nntmux => Blacklight}/config/ircscraper_settings_example.php (100%) rename {nntmux => Blacklight}/config/openssl.example.php (100%) rename {nntmux => Blacklight}/config/settings.example.php (99%) create mode 100755 Blacklight/config/settings.php rename {nntmux => Blacklight}/db/DB.php (99%) rename {nntmux => Blacklight}/db/DbUpdate.php (98%) rename {nntmux => Blacklight}/db/PreDb.php (99%) rename {nntmux => Blacklight}/db/populate/AniDB.php (99%) rename {nntmux => Blacklight}/db/populate/PopulateTitles.php (97%) rename {nntmux => Blacklight}/http/API.php (98%) rename {nntmux => Blacklight}/http/Capabilities.php (98%) rename {nntmux => Blacklight}/http/RSS.php (99%) rename {nntmux => Blacklight}/http/XML_Response.php (99%) rename {nntmux => Blacklight}/libraries/Cache.php (96%) rename {nntmux => Blacklight}/libraries/CacheException.php (96%) rename {nntmux => Blacklight}/libraries/FanartTV.php (98%) rename {nntmux => Blacklight}/libraries/Forking.php (99%) rename {nntmux => Blacklight}/libraries/ForkingException.php (96%) rename {nntmux => Blacklight}/libraries/ForkingImportNZB.php (96%) rename {nntmux => Blacklight}/libraries/Geary.php (99%) rename {nntmux => Blacklight}/libraries/TraktAPI.php (98%) rename {nntmux => Blacklight}/processing/PostProcess.php (95%) rename {nntmux => Blacklight}/processing/ProcessReleases.php (99%) rename {nntmux => Blacklight}/processing/ProcessReleasesMultiGroup.php (96%) rename {nntmux => Blacklight}/processing/Videos.php (99%) rename {nntmux => Blacklight}/processing/adult/ADE.php (99%) rename {nntmux => Blacklight}/processing/adult/ADM.php (99%) rename {nntmux => Blacklight}/processing/adult/AEBN.php (99%) rename {nntmux => Blacklight}/processing/adult/AdultMovies.php (98%) rename {nntmux => Blacklight}/processing/adult/Hotmovies.php (99%) rename {nntmux => Blacklight}/processing/adult/Popporn.php (99%) rename {nntmux => Blacklight}/processing/post/AniDB.php (98%) rename {nntmux => Blacklight}/processing/post/ProcessAdditional.php (99%) rename {nntmux => Blacklight}/processing/post/ProcessAdditionalException.php (95%) rename {nntmux => Blacklight}/processing/tv/TMDB.php (99%) rename {nntmux => Blacklight}/processing/tv/TV.php (99%) rename {nntmux => Blacklight}/processing/tv/TVDB.php (99%) rename {nntmux => Blacklight}/processing/tv/TVMaze.php (99%) rename {nntmux => Blacklight}/processing/tv/TraktTv.php (98%) rename {nntmux => Blacklight}/utility/Country.php (97%) rename {nntmux => Blacklight}/utility/Git.php (98%) rename {nntmux => Blacklight}/utility/SmartyUtils.php (100%) rename {nntmux => Blacklight}/utility/Time.php (97%) rename {nntmux => Blacklight}/utility/Utility.php (99%) rename {nntmux => Blacklight}/utility/Versions.php (99%) diff --git a/.gitignore b/.gitignore index 42bed50d2..f6a40ae21 100644 --- a/.gitignore +++ b/.gitignore @@ -16,10 +16,10 @@ test.php /.idea/ /vendor/* /app/resources/tmp/* -/nntmux/config/settings.php -/nntmux/config/ircscraper_settings.php -/nntmux/config/ircscraper.php -/nntmux/config/opensssl.php +/Blacklight/config/settings.php +/Blacklight/config/ircscraper_settings.php +/Blacklight/config/ircscraper.php +/Blacklight/config/opensssl.php /libraries/* /nbproject/ @@ -27,5 +27,5 @@ test.php /resources/covers/* /resources/nzb/* /resources/tmp/* -/templates_c/* +/resources/smarty/templates_c/* /public/themes/shared/assets diff --git a/nntmux/AniDB.php b/Blacklight/AniDB.php similarity index 98% rename from nntmux/AniDB.php rename to Blacklight/AniDB.php index 9c34365bb..b40ec8836 100755 --- a/nntmux/AniDB.php +++ b/Blacklight/AniDB.php @@ -1,14 +1,14 @@ NNTP ; Class NNTP. * 'Nfo' => Nfo ; Class Nfo. * 'NZB' => NZB ; Class NZB. - * 'Settings' => DB ; Class nntmux\db\DB. + * 'Settings' => DB ; Class Blacklight\db\DB. * 'PostProcess' => PostProcess ; Class PostProcess. * ) * diff --git a/nntmux/NZBExport.php b/Blacklight/NZBExport.php similarity index 98% rename from nntmux/NZBExport.php rename to Blacklight/NZBExport.php index 6b519b7ef..75bf55c0b 100755 --- a/nntmux/NZBExport.php +++ b/Blacklight/NZBExport.php @@ -1,9 +1,9 @@ [ + 'host' => '127.0.0.1', + 'port' => 11211, + 'weight' => 0, + ], + ] +)); + +/* + * Optional path to unix socket file, leave '' if to not use. + * If using a unix socket file, the server list is overridden. + * This should be faster than using the host/port if your cache server is local. + * + * @example '/var/run/redis/redis.sock' + * @note By default, redis and memcached do not have a socket file, you must configure them. + * @note Read and write access is required to the socket file. + * @default '' + */ +define('NN_CACHE_SOCKET_FILE', ''); + +/* + * Timeout for connecting to cache server(s). + * + * @default 10 + */ +define('NN_CACHE_TIMEOUT', 10); + +/* + * Memcached allows to compress the data, saving RAM at the expense of CPU time. + * + * @note Does nothing on redis. + * @default false + */ +define('NN_CACHE_COMPRESSION', false); + +/* + * Serialization is a way of converting data in PHP into strings of text which can be stored on the cache server. + * + * 0 - Use the PHP serializer. Recommended for most people. + * 1 - [Requires igbinary] Use igbinary serializer which is faster and uses less memory, works + * on Memcached / Redis / APC, read the notes below. + * 2 - [Redis Only] Use no serializer. + * + * @note igbinary must be compiled and enabled in php.ini + * @note APC/APCu: This setting is ignored, set this in php.ini with apc.serializer + * @note Memcached/Redis must be compiled with igbinary support as well to use igbinary. + * @note Read the igbinary page how to compile / enable. + * @see https://github.com/phadej/igbinary + * @default 0 + * @version 3 + */ +define('NN_CACHE_SERIALIZER', 0); + +/* + * Amount of time in seconds to expire data from the cache server. + * The developers of NN decide what should be set as short/medium/long, depending on the type of data. + * + * @defaults 300/600/900 + */ +define('NN_CACHE_EXPIRY_SHORT', 300); +define('NN_CACHE_EXPIRY_MEDIUM', 600); +define('NN_CACHE_EXPIRY_LONG', 900); + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +//////////////////////////////////////////////// SQL Settings ////////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +/* + * Strip white space (space, carriage return, new line, tab, etc) from queries before sending to MySQL. + * This is useful if you use the MySQL slow query log. + * + * @note This slows down query processing, leave it false unless you turn on the MySQL slow query log. + * @default false + */ +define('NN_QUERY_STRIP_WHITESPACE', false); + +/* + * Use transactions when doing certain SQL jobs. + * This has advantages and disadvantages. + * If there's a problem during a transaction, MySQL can revert the row inserts which is beneficial. + * Transactions can cause deadlocks however if you are trying to insert into the same table from another process. + * + * @note If all your tables are MyISAM you can set this to false, as MyISAM does not support transactions. + * @default true + */ +define('NN_USE_SQL_TRANSACTIONS', true); + +/* + * Allows the use of LOW_PRIORITY in certain DELETE queries. + * This prevents table locks by deleting only when no SELECT queries are active on the table. + * This works on MyISAM/ARIA, not INNODB. + * + * @note Does not cause any errors or warnings if enabled on INNODB. + * @link https://dev.mysql.com/doc/refman/5.7/en/delete.html + * @default false + * @version 1 + */ +define('NN_SQL_DELETE_LOW_PRIORITY', false); + +/* + * Allows the use QUICK in certain DELETE queries. + * This makes DELETE queries faster on MyISAM/ARIA tables by not merging index leaves. + * Only supported on MyISAM/ARIA + * + * @note Does not cause any errors or warnings if enabled on INNODB. + * @link https://dev.mysql.com/doc/refman/5.7/en/delete.html + * @default false + * @version 1 + */ +define('NN_SQL_DELETE_QUICK', false); + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////// PHP Xdebug Settings ////////////////////////////////////////////////////// +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +if (extension_loaded('xdebug')) { + + /* + * Display colors on xdebug CLI output? + * 0 - off, 1 - on only if on a TTY with ansi support, 2 - on regardless of TTY or ansi support. + * @default 0 + * @version 4 + */ + ini_set('xdebug.cli_color', '0'); + + /* + * Replace PHP's var_dump with xdebug's own? + * @default '1' + * @version 4 + */ + ini_set('xdebug.overload_var_dump', '1'); + + /* + * How many items in a array or object to display on var_dump. + * @note Set to '-1' for no limit. + * @default '128' + * @version 4 + */ + ini_set('xdebug.var_display_max_children', '128'); + + /* + * Maximum string length on var_dump. (anything over is truncated) + * @note Set to '-1' for no limit. + * @default '512' + * @version 4 + */ + ini_set('xdebug.var_display_max_data', '512'); + + /* + * How many nested arrays / objects deep to display on var_dump. + * @note Set to '-1' for no limit. + * @note Maximum value is '1023' + * @default '3' + * @version 4 + */ + ini_set('xdebug.var_display_max_depth', '3'); +} + +/*********************************************************************************************************************** + * //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + * //////////////////////////////////////////////// Change log //////////////////////////////////////////////////////////// + * //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + * + * 2017-12-21 v7 Remove custom logging settings, Laravel is handling errors now + * 2017-10-11 v6 Remove settings for PHP web/CLI SAPI's as these are now handled by Laravel + * 2015-08-26 v4 Add settings for PHP web/CLI SAPI's. + * Add settings for Xdebug. + * All new settings start from the "PHP CLI Settings" up to the "Change log", lines ~544 to ~768 + * + * 2015-06-11 v3 Add support for APC or APCu extensions for caching data. Search for @version 3 for the changes. + * + * 2015-05-10 v2 Update path to find_password_hash_cost.php in comments. Search for @version 2 for the changes. + * + * 2015-05-03 v1 Track settings.php.example changes. + * Add support for quick and low_priority on MySQL DELETE queries. + * Search for @version 1 in this file to quickly find these additions. + * + * //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/ diff --git a/nntmux/db/DB.php b/Blacklight/db/DB.php similarity index 99% rename from nntmux/db/DB.php rename to Blacklight/db/DB.php index 4f528e436..6e8d7d58c 100755 --- a/nntmux/db/DB.php +++ b/Blacklight/db/DB.php @@ -1,14 +1,14 @@ */ -namespace nntmux\libraries; +namespace Blacklight\libraries; class FanartTV { diff --git a/nntmux/libraries/Forking.php b/Blacklight/libraries/Forking.php similarity index 99% rename from nntmux/libraries/Forking.php rename to Blacklight/libraries/Forking.php index 9d3791d4d..2ee0432e2 100755 --- a/nntmux/libraries/Forking.php +++ b/Blacklight/libraries/Forking.php @@ -1,17 +1,17 @@ load(); diff --git a/bootstrap/constants.php b/bootstrap/constants.php index 646c9d285..969264de5 100755 --- a/bootstrap/constants.php +++ b/bootstrap/constants.php @@ -1,6 +1,6 @@ optimizeRTIndex(); diff --git a/misc/sphinxsearch/populate_rt_indexes.php b/misc/sphinxsearch/populate_rt_indexes.php index 27d383e9f..ae7efd30d 100644 --- a/misc/sphinxsearch/populate_rt_indexes.php +++ b/misc/sphinxsearch/populate_rt_indexes.php @@ -3,7 +3,7 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; use App\Models\Release; -use nntmux\SphinxSearch; +use Blacklight\SphinxSearch; use Illuminate\Support\Facades\DB; if (! isset($argv[1]) || $argv[1] !== 'releases_rt') { diff --git a/misc/testing/DB/mysqldump_tables.php b/misc/testing/DB/mysqldump_tables.php index 94dfcb249..f0d8180d0 100644 --- a/misc/testing/DB/mysqldump_tables.php +++ b/misc/testing/DB/mysqldump_tables.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; +use Blacklight\db\DB; // This script can dump all tables or just collections/binaries/parts/partrepair/groups. diff --git a/misc/testing/DB/populate_nzb_guid.php b/misc/testing/DB/populate_nzb_guid.php index 585ceb266..b46d3f228 100644 --- a/misc/testing/DB/populate_nzb_guid.php +++ b/misc/testing/DB/populate_nzb_guid.php @@ -2,13 +2,13 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZB; -use nntmux\db\DB; -use nntmux\ColorCLI; -use nntmux\Releases; -use nntmux\ConsoleTools; -use nntmux\ReleaseImage; -use nntmux\utility\Utility; +use Blacklight\NZB; +use Blacklight\db\DB; +use Blacklight\ColorCLI; +use Blacklight\Releases; +use Blacklight\ConsoleTools; +use Blacklight\ReleaseImage; +use Blacklight\utility\Utility; $cli = new ColorCLI(); if (isset($argv[1])) { diff --git a/misc/testing/DB/reset_postprocessing.php b/misc/testing/DB/reset_postprocessing.php index 610a6146d..f3d5f9469 100755 --- a/misc/testing/DB/reset_postprocessing.php +++ b/misc/testing/DB/reset_postprocessing.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\ColorCLI; use App\Models\Category; -use nntmux\ConsoleTools; +use Blacklight\ConsoleTools; $pdo = new DB(); $consoletools = new ConsoleTools(); diff --git a/misc/testing/DB/reset_truncate.php b/misc/testing/DB/reset_truncate.php index 7efacd36e..c64e9e695 100644 --- a/misc/testing/DB/reset_truncate.php +++ b/misc/testing/DB/reset_truncate.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\ColorCLI; +use Blacklight\ColorCLI; use App\Models\Group; use App\Models\Release; use Illuminate\Support\Facades\DB; diff --git a/misc/testing/DB/show_table_sizes.php b/misc/testing/DB/show_table_sizes.php index ed9735b91..efb074802 100644 --- a/misc/testing/DB/show_table_sizes.php +++ b/misc/testing/DB/show_table_sizes.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; +use Blacklight\db\DB; $pdo = new DB(); diff --git a/misc/testing/Dev/clean_nzbs.php b/misc/testing/Dev/clean_nzbs.php index 71e6e4e44..9e5744b13 100644 --- a/misc/testing/Dev/clean_nzbs.php +++ b/misc/testing/Dev/clean_nzbs.php @@ -2,12 +2,12 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZB; -use nntmux\db\DB; -use nntmux\Releases; +use Blacklight\NZB; +use Blacklight\db\DB; +use Blacklight\Releases; use App\Models\Settings; -use nntmux\ReleaseImage; -use nntmux\utility\Utility; +use Blacklight\ReleaseImage; +use Blacklight\utility\Utility; $pdo = new DB(); diff --git a/misc/testing/Dev/test-ReleaseCleaner.php b/misc/testing/Dev/test-ReleaseCleaner.php index 6916a4844..34f00853a 100755 --- a/misc/testing/Dev/test-ReleaseCleaner.php +++ b/misc/testing/Dev/test-ReleaseCleaner.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\SphinxSearch; -use nntmux\ReleaseCleaning; +use Blacklight\db\DB; +use Blacklight\SphinxSearch; +use Blacklight\ReleaseCleaning; $message = 'Shows old searchname vs new searchname for releases in a group using the releaseCleaning class. (Good for testing new regex)'. diff --git a/misc/testing/NZB/nzb-reorg.php b/misc/testing/NZB/nzb-reorg.php index 387b88068..015ff3fb0 100755 --- a/misc/testing/NZB/nzb-reorg.php +++ b/misc/testing/NZB/nzb-reorg.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZB; -use nntmux\db\DB; -use nntmux\ConsoleTools; +use Blacklight\NZB; +use Blacklight\db\DB; +use Blacklight\ConsoleTools; if (! isset($argv[1]) || ! isset($argv[2])) { exit("ERROR: You must supply the level you want to reorganize it to, and the source directory (You would use: 3 .../newznab/resources/nzb/ to move it to 3 levels deep)\n"); diff --git a/misc/testing/PostProc/check_covers.php b/misc/testing/PostProc/check_covers.php index afb489d5f..832f86524 100644 --- a/misc/testing/PostProc/check_covers.php +++ b/misc/testing/PostProc/check_covers.php @@ -5,10 +5,10 @@ // -------------------------------------------------------------- require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\Movie; -use nntmux\ColorCLI; -use nntmux\utility\Utility; +use Blacklight\db\DB; +use Blacklight\Movie; +use Blacklight\ColorCLI; +use Blacklight\utility\Utility; $pdo = new DB(); $movie = new Movie(['Echo' => true, 'Settings' => $pdo]); diff --git a/misc/testing/PostProc/check_previews.php b/misc/testing/PostProc/check_previews.php index 204c19aa7..035829b1a 100644 --- a/misc/testing/PostProc/check_previews.php +++ b/misc/testing/PostProc/check_previews.php @@ -5,12 +5,12 @@ // -------------------------------------------------------------- require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZB; -use nntmux\db\DB; -use nntmux\Releases; -use nntmux\ConsoleTools; -use nntmux\ReleaseImage; -use nntmux\utility\Utility; +use Blacklight\NZB; +use Blacklight\db\DB; +use Blacklight\Releases; +use Blacklight\ConsoleTools; +use Blacklight\ReleaseImage; +use Blacklight\utility\Utility; $pdo = new DB(); diff --git a/misc/testing/PostProc/getConsole.php b/misc/testing/PostProc/getConsole.php index 64adca75f..cef00b9a9 100644 --- a/misc/testing/PostProc/getConsole.php +++ b/misc/testing/PostProc/getConsole.php @@ -4,8 +4,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\Console; +use Blacklight\db\DB; +use Blacklight\Console; use App\Models\Category; $pdo = new DB(); diff --git a/misc/testing/PostProc/getGameCovers.php b/misc/testing/PostProc/getGameCovers.php index 2c2f2bf02..a326628bf 100644 --- a/misc/testing/PostProc/getGameCovers.php +++ b/misc/testing/PostProc/getGameCovers.php @@ -4,9 +4,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\Games; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\Games; +use Blacklight\ColorCLI; $pdo = new DB(); $game = new Games(['Echo' => true, 'Settings' => $pdo]); diff --git a/misc/testing/PostProc/getImdb.php b/misc/testing/PostProc/getImdb.php index a1a97f2bf..c32c205c8 100644 --- a/misc/testing/PostProc/getImdb.php +++ b/misc/testing/PostProc/getImdb.php @@ -3,9 +3,9 @@ //This script will update all records in the movieinfo table require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\Movie; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\Movie; +use Blacklight\ColorCLI; $pdo = new DB(); $movie = new Movie(['Echo' => true, 'Settings' => $pdo]); diff --git a/misc/testing/PostProc/getMovieCovers.php b/misc/testing/PostProc/getMovieCovers.php index af77b3158..9f4b694ad 100644 --- a/misc/testing/PostProc/getMovieCovers.php +++ b/misc/testing/PostProc/getMovieCovers.php @@ -3,9 +3,9 @@ //This script will update all records in the movieinfo table where there is no cover require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\Movie; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\Movie; +use Blacklight\ColorCLI; $pdo = new DB(); diff --git a/misc/testing/PostProc/getXXXCovers.php b/misc/testing/PostProc/getXXXCovers.php index 41c8239dd..35d705042 100644 --- a/misc/testing/PostProc/getXXXCovers.php +++ b/misc/testing/PostProc/getXXXCovers.php @@ -3,9 +3,9 @@ //This script will update all records in the xxxinfo table where there is no cover require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\XXX; -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\XXX; +use Blacklight\db\DB; +use Blacklight\ColorCLI; $pdo = new DB(); $movie = new XXX(); diff --git a/misc/testing/PostProc/getXXXSamples.php b/misc/testing/PostProc/getXXXSamples.php index 250178258..d897c3450 100644 --- a/misc/testing/PostProc/getXXXSamples.php +++ b/misc/testing/PostProc/getXXXSamples.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; +use Blacklight\db\DB; use App\Models\Category; -use nntmux\ReleaseImage; +use Blacklight\ReleaseImage; $pdo = new DB(); diff --git a/misc/testing/PostProc/updateBookImages.php b/misc/testing/PostProc/updateBookImages.php index e37d046cb..c7c5a8ba2 100644 --- a/misc/testing/PostProc/updateBookImages.php +++ b/misc/testing/PostProc/updateBookImages.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; +use Blacklight\db\DB; $pdo = new DB(); $covers = $updated = $deleted = 0; diff --git a/misc/testing/PostProc/updateConsoleImages.php b/misc/testing/PostProc/updateConsoleImages.php index f97b3fcd0..8b869d18f 100644 --- a/misc/testing/PostProc/updateConsoleImages.php +++ b/misc/testing/PostProc/updateConsoleImages.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\ColorCLI; use App\Models\ConsoleInfo; $pdo = new DB(); diff --git a/misc/testing/PostProc/updateGamesImages.php b/misc/testing/PostProc/updateGamesImages.php index 97100f686..0fd1e052d 100644 --- a/misc/testing/PostProc/updateGamesImages.php +++ b/misc/testing/PostProc/updateGamesImages.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\utility\Utility; +use Blacklight\db\DB; +use Blacklight\utility\Utility; $pdo = new DB(); $covers = $updated = $deleted = 0; diff --git a/misc/testing/PostProc/updateMovieImages.php b/misc/testing/PostProc/updateMovieImages.php index 9b9914ff1..47314c634 100644 --- a/misc/testing/PostProc/updateMovieImages.php +++ b/misc/testing/PostProc/updateMovieImages.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\utility\Utility; +use Blacklight\db\DB; +use Blacklight\utility\Utility; $pdo = new DB(); $covers = $updated = $deleted = 0; diff --git a/misc/testing/PostProc/updateMusicImages.php b/misc/testing/PostProc/updateMusicImages.php index 64470b34d..c66bd7c07 100644 --- a/misc/testing/PostProc/updateMusicImages.php +++ b/misc/testing/PostProc/updateMusicImages.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; +use Blacklight\db\DB; $pdo = new DB(); $covers = $updated = $deleted = 0; diff --git a/misc/testing/PostProc/updateXXXImages.php b/misc/testing/PostProc/updateXXXImages.php index 90ae241ea..b7d8fb41a 100644 --- a/misc/testing/PostProc/updateXXXImages.php +++ b/misc/testing/PostProc/updateXXXImages.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\ColorCLI; $pdo = new DB(); $c = new ColorCLI(); diff --git a/misc/testing/Releases/delete_releases.php b/misc/testing/Releases/delete_releases.php index 9e89c25da..ea8ce5a45 100644 --- a/misc/testing/Releases/delete_releases.php +++ b/misc/testing/Releases/delete_releases.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\ColorCLI; -use nntmux\ReleaseRemover; +use Blacklight\ColorCLI; +use Blacklight\ReleaseRemover; // New line for CLI. $n = PHP_EOL; diff --git a/misc/testing/Releases/fixReleaseNames.php b/misc/testing/Releases/fixReleaseNames.php index 8d25a491c..fe53f4c1c 100755 --- a/misc/testing/Releases/fixReleaseNames.php +++ b/misc/testing/Releases/fixReleaseNames.php @@ -9,10 +9,10 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NNTP; -use nntmux\db\DB; -use nntmux\ColorCLI; -use nntmux\NameFixer; +use Blacklight\NNTP; +use Blacklight\db\DB; +use Blacklight\ColorCLI; +use Blacklight\NameFixer; use App\Models\Settings; $pdo = new DB(); diff --git a/misc/testing/Releases/recategorize.php b/misc/testing/Releases/recategorize.php index 77b01087e..d2b679bae 100644 --- a/misc/testing/Releases/recategorize.php +++ b/misc/testing/Releases/recategorize.php @@ -2,11 +2,11 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\ColorCLI; -use nntmux\Categorize; +use Blacklight\db\DB; +use Blacklight\ColorCLI; +use Blacklight\Categorize; use App\Models\Category; -use nntmux\ConsoleTools; +use Blacklight\ConsoleTools; $pdo = new DB(); diff --git a/misc/testing/Releases/removeCrapReleases.php b/misc/testing/Releases/removeCrapReleases.php index 7ad7f19ee..d19505f6c 100755 --- a/misc/testing/Releases/removeCrapReleases.php +++ b/misc/testing/Releases/removeCrapReleases.php @@ -3,8 +3,8 @@ /* This script deletes releases that match certain criteria, type php removeCrapReleases.php false for details. */ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\ColorCLI; -use nntmux\ReleaseRemover; +use Blacklight\ColorCLI; +use Blacklight\ReleaseRemover; $cli = new ColorCLI(); diff --git a/misc/testing/Tests/test_cache_server.php b/misc/testing/Tests/test_cache_server.php index 79bcf8893..2af7c97cc 100755 --- a/misc/testing/Tests/test_cache_server.php +++ b/misc/testing/Tests/test_cache_server.php @@ -3,7 +3,7 @@ // Test the cache server connection. require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Cache; +use Blacklight\libraries\Cache; try { $cache = new Cache(); diff --git a/misc/testing/Tests/test_fanarttv_API.php b/misc/testing/Tests/test_fanarttv_API.php index ba452d67d..b4547ca3c 100644 --- a/misc/testing/Tests/test_fanarttv_API.php +++ b/misc/testing/Tests/test_fanarttv_API.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\ColorCLI; +use Blacklight\ColorCLI; use App\Models\Settings; -use nntmux\libraries\FanartTV; +use Blacklight\libraries\FanartTV; $fanart = new FanartTV(Settings::settingValue('APIs..fanarttvkey')); diff --git a/misc/testing/Tests/test_giantbomb_API.php b/misc/testing/Tests/test_giantbomb_API.php index 46565a52a..2157d3556 100755 --- a/misc/testing/Tests/test_giantbomb_API.php +++ b/misc/testing/Tests/test_giantbomb_API.php @@ -4,8 +4,8 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; // Test if your giantbomb key is working. -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\db\DB; +use Blacklight\ColorCLI; $giantbombkey = (new DB())->getSetting('giantbombkey'); $cli = new ColorCLI(); diff --git a/misc/testing/Tests/test_nntp_server.php b/misc/testing/Tests/test_nntp_server.php index 100e8d477..382f4023f 100755 --- a/misc/testing/Tests/test_nntp_server.php +++ b/misc/testing/Tests/test_nntp_server.php @@ -3,9 +3,9 @@ // To troubleshoot what's actually on usenet. require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NNTP; -use nntmux\Binaries; -use nntmux\ColorCLI; +use Blacklight\NNTP; +use Blacklight\Binaries; +use Blacklight\ColorCLI; $cli = new ColorCLI(); diff --git a/misc/testing/Tests/test_omdb_API.php b/misc/testing/Tests/test_omdb_API.php index 22861d6f0..e079daaa9 100644 --- a/misc/testing/Tests/test_omdb_API.php +++ b/misc/testing/Tests/test_omdb_API.php @@ -3,7 +3,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; use aharen\OMDbAPI; -use nntmux\ColorCLI; +use Blacklight\ColorCLI; $omdb = new OMDbAPI(); diff --git a/misc/testing/Tests/test_tmdb_API.php b/misc/testing/Tests/test_tmdb_API.php index ca0226c43..c1ee17b93 100755 --- a/misc/testing/Tests/test_tmdb_API.php +++ b/misc/testing/Tests/test_tmdb_API.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\processing\tv\TMDB; +use Blacklight\processing\tv\TMDB; $tmdb = new TMDB(); @@ -47,11 +47,11 @@ if (! empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) { } } } else { - exit(\nntmux\ColorCLI::error('Invalid episode data returned from TMDB API.')); + exit(\Blacklight\ColorCLI::error('Invalid episode data returned from TMDB API.')); } } else { - exit(\nntmux\ColorCLI::error('Invalid show data returned from TMDB API.')); + exit(\Blacklight\ColorCLI::error('Invalid show data returned from TMDB API.')); } } else { - exit(\nntmux\ColorCLI::error('Invalid arguments. This script requires a text string (show name) followed by a season and episode number.')); + exit(\Blacklight\ColorCLI::error('Invalid arguments. This script requires a text string (show name) followed by a season and episode number.')); } diff --git a/misc/testing/Tests/test_trakt_API.php b/misc/testing/Tests/test_trakt_API.php index 4a56cb732..cb31c7a76 100755 --- a/misc/testing/Tests/test_trakt_API.php +++ b/misc/testing/Tests/test_trakt_API.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\processing\tv\TraktTv; +use Blacklight\processing\tv\TraktTv; -$c = new nntmux\ColorCLI(); +$c = new Blacklight\ColorCLI(); $trakt = new TraktTv(); if (! empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) { diff --git a/misc/testing/Tests/test_tvdb_API.php b/misc/testing/Tests/test_tvdb_API.php index 9cef5b079..2236b5539 100755 --- a/misc/testing/Tests/test_tvdb_API.php +++ b/misc/testing/Tests/test_tvdb_API.php @@ -2,13 +2,13 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\processing\tv\TVDB; +use Blacklight\processing\tv\TVDB; use Adrenth\Thetvdb\Exception\UnauthorizedException; use Adrenth\Thetvdb\Exception\RequestFailedException; use Adrenth\Thetvdb\Exception\InvalidArgumentException; use Adrenth\Thetvdb\Exception\InvalidJsonInResponseException; -$c = new nntmux\ColorCLI(); +$c = new Blacklight\ColorCLI(); $tvdb = new TVDB(); if (isset($argv[1]) && ! empty($argv[1]) && isset($argv[2]) && is_numeric($argv[2]) && isset($argv[3]) && is_numeric($argv[3])) { diff --git a/misc/testing/Tests/test_tvmaze_API.php b/misc/testing/Tests/test_tvmaze_API.php index 495c58f07..b5e26d732 100755 --- a/misc/testing/Tests/test_tvmaze_API.php +++ b/misc/testing/Tests/test_tvmaze_API.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\processing\tv\TVMaze; +use Blacklight\processing\tv\TVMaze; -$c = new nntmux\ColorCLI(); +$c = new Blacklight\ColorCLI(); $tvmaze = new TVMaze(); if (! empty($argv[1]) && is_numeric($argv[2]) && is_numeric($argv[3])) { diff --git a/misc/testing/fix_filesize.php b/misc/testing/fix_filesize.php index 800422ba0..47a31fd9d 100644 --- a/misc/testing/fix_filesize.php +++ b/misc/testing/fix_filesize.php @@ -8,8 +8,8 @@ Author: lordgnu require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZB; -use nntmux\db\DB; +use Blacklight\NZB; +use Blacklight\db\DB; use App\Models\Settings; $pdo = new DB; diff --git a/misc/testing/nzb-export.php b/misc/testing/nzb-export.php index ea37895d6..d4bdcb01c 100644 --- a/misc/testing/nzb-export.php +++ b/misc/testing/nzb-export.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZBExport; +use Blacklight\NZBExport; $n = PHP_EOL; diff --git a/misc/testing/nzb-import.php b/misc/testing/nzb-import.php index 7c5d79d51..b15f7cdef 100644 --- a/misc/testing/nzb-import.php +++ b/misc/testing/nzb-import.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NZBImport; +use Blacklight\NZBImport; $n = PHP_EOL; diff --git a/misc/testing/refreshMovie.php b/misc/testing/refreshMovie.php index 2b7cad32f..053b752f6 100644 --- a/misc/testing/refreshMovie.php +++ b/misc/testing/refreshMovie.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\Movie; +use Blacklight\db\DB; +use Blacklight\Movie; $db = new DB(); $movie = new Movie(['Echo' => true, 'Settings' => $pdo]); diff --git a/misc/update/backfill.php b/misc/update/backfill.php index 21e745c71..76ad6729f 100644 --- a/misc/update/backfill.php +++ b/misc/update/backfill.php @@ -2,9 +2,9 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NNTP; -use nntmux\db\DB; -use nntmux\Backfill; +use Blacklight\NNTP; +use Blacklight\db\DB; +use Blacklight\Backfill; $pdo = new DB(); @@ -33,7 +33,7 @@ if (isset($argv[1]) && $argv[1] === 'all' && ! isset($argv[2])) { $backfill = new Backfill(['NNTP' => $nntp, 'Settings' => $pdo]); $backfill->safeBackfill($argv[2]); } else { - exit(\nntmux\ColorCLI::error("\nWrong set of arguments.\n" + exit(\Blacklight\ColorCLI::error("\nWrong set of arguments.\n" .'php backfill.php safe 200000 ...: Backfill an active group alphabetically, x articles, the script stops,'."\n" .' ...: if the group has reached reached 2012-06-24, the next group will backfill.'."\n" .'php backfill.php alph 200000 ...: Backfills all groups (sorted alphabetically) by number of articles'."\n" diff --git a/misc/update/decrypt_hashes.php b/misc/update/decrypt_hashes.php index 6ee1fd558..f5d46f9e1 100755 --- a/misc/update/decrypt_hashes.php +++ b/misc/update/decrypt_hashes.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\db\DB; -use nntmux\ColorCLI; -use nntmux\NameFixer; -use nntmux\ConsoleTools; +use Blacklight\db\DB; +use Blacklight\ColorCLI; +use Blacklight\NameFixer; +use Blacklight\ConsoleTools; $pdo = new DB(); diff --git a/misc/update/match_prefiles.php b/misc/update/match_prefiles.php index 892e3051d..6b90058eb 100755 --- a/misc/update/match_prefiles.php +++ b/misc/update/match_prefiles.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\ColorCLI; -use nntmux\NameFixer; +use Blacklight\ColorCLI; +use Blacklight\NameFixer; if (! isset($argv[1]) && ($argv[1] !== 'full' || ! is_numeric($argv[1]))) { exit( diff --git a/misc/update/multiprocessing/.do_not_run/switch.php b/misc/update/multiprocessing/.do_not_run/switch.php index 18333a95e..ce0c70dc1 100644 --- a/misc/update/multiprocessing/.do_not_run/switch.php +++ b/misc/update/multiprocessing/.do_not_run/switch.php @@ -9,15 +9,15 @@ require_once dirname(__DIR__, 4) . DIRECTORY_SEPARATOR . 'bootstrap/autoload.php use App\Models\Group; use App\Models\Settings; use App\Models\Tmux; -use \nntmux\db\DB; -use \nntmux\processing\PostProcess; -use \nntmux\processing\ProcessReleases; -use \nntmux\processing\post\ProcessAdditional; -use nntmux\Backfill; -use nntmux\Binaries; -use nntmux\Nfo; -use nntmux\NNTP; -use nntmux\processing\ProcessReleasesMultiGroup; +use \Blacklight\db\DB; +use \Blacklight\processing\PostProcess; +use \Blacklight\processing\ProcessReleases; +use \Blacklight\processing\post\ProcessAdditional; +use Blacklight\Backfill; +use Blacklight\Binaries; +use Blacklight\Nfo; +use Blacklight\NNTP; +use Blacklight\processing\ProcessReleasesMultiGroup; // Are we coming from python or php ? $options[0] => (string): python|php // The type of process we want to do: $options[1] => (string): releases @@ -308,7 +308,7 @@ function charCheck($char) /** * Check if the group should be processed. * - * @param \nntmux\db\DB $pdo + * @param \Blacklight\db\DB $pdo * @param int $groupID */ function collectionCheck(&$pdo, $groupID) diff --git a/misc/update/multiprocessing/backfill.php b/misc/update/multiprocessing/backfill.php index 71d8264e7..0059753d4 100644 --- a/misc/update/multiprocessing/backfill.php +++ b/misc/update/multiprocessing/backfill.php @@ -2,7 +2,7 @@ declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; // Check if argument 1 is numeric, which is to limit article count. (new Forking())->processWorkType( diff --git a/misc/update/multiprocessing/binaries.php b/misc/update/multiprocessing/binaries.php index 131c8928c..b80d92f1f 100644 --- a/misc/update/multiprocessing/binaries.php +++ b/misc/update/multiprocessing/binaries.php @@ -7,6 +7,6 @@ if (! isset($argv[1]) || ! is_numeric($argv[1])) { } declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; (new Forking())->processWorkType('binaries', [0 => $argv[1]]); diff --git a/misc/update/multiprocessing/fixrelnames.php b/misc/update/multiprocessing/fixrelnames.php index 0e39bde8e..7205f1250 100644 --- a/misc/update/multiprocessing/fixrelnames.php +++ b/misc/update/multiprocessing/fixrelnames.php @@ -10,7 +10,7 @@ if (! isset($argv[1]) || ! in_array($argv[1], ['standard', 'predbft'])) { require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; declare(ticks=1); diff --git a/misc/update/multiprocessing/import.php b/misc/update/multiprocessing/import.php index 99d81a8a8..f180fc1d3 100644 --- a/misc/update/multiprocessing/import.php +++ b/misc/update/multiprocessing/import.php @@ -3,7 +3,7 @@ declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\ForkingImportNZB; +use Blacklight\libraries\ForkingImportNZB; if (! isset($argv[1]) || ! is_dir($argv[1])) { exit( diff --git a/misc/update/multiprocessing/postprocess.php b/misc/update/multiprocessing/postprocess.php index dba795e01..3f9a34d87 100644 --- a/misc/update/multiprocessing/postprocess.php +++ b/misc/update/multiprocessing/postprocess.php @@ -18,7 +18,7 @@ if (! isset($argv[1]) || ! in_array($argv[1], ['ama', 'add', 'mov', 'nfo', 'sha' declare(ticks=1); -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; try { (new Forking())->processWorkType('postProcess_'.$argv[1], (isset($argv[2]) && $argv[2] === 'true' ? [0 => true] : [])); diff --git a/misc/update/multiprocessing/releases.php b/misc/update/multiprocessing/releases.php index df4b4fe8f..1b7541cda 100644 --- a/misc/update/multiprocessing/releases.php +++ b/misc/update/multiprocessing/releases.php @@ -3,6 +3,6 @@ declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; (new Forking())->processWorkType('releases'); diff --git a/misc/update/multiprocessing/requestid.php b/misc/update/multiprocessing/requestid.php index b554989dd..68e22ef21 100644 --- a/misc/update/multiprocessing/requestid.php +++ b/misc/update/multiprocessing/requestid.php @@ -3,6 +3,6 @@ declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; (new Forking())->processWorkType('request_id'); diff --git a/misc/update/multiprocessing/safe.php b/misc/update/multiprocessing/safe.php index 531197272..ed54976e1 100644 --- a/misc/update/multiprocessing/safe.php +++ b/misc/update/multiprocessing/safe.php @@ -11,6 +11,6 @@ if (! isset($argv[1]) || ! in_array($argv[1], ['backfill', 'binaries'])) { declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; (new Forking())->processWorkType('safe_'.$argv[1]); diff --git a/misc/update/multiprocessing/update_per_group.php b/misc/update/multiprocessing/update_per_group.php index 47a272990..cb36b6e7d 100644 --- a/misc/update/multiprocessing/update_per_group.php +++ b/misc/update/multiprocessing/update_per_group.php @@ -3,7 +3,7 @@ declare(ticks=1); require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\libraries\Forking; +use Blacklight\libraries\Forking; // This is the same as the python update_threaded.php (new Forking())->processWorkType('update_per_group'); diff --git a/misc/update/postprocess.php b/misc/update/postprocess.php index 885c61bed..4bdb8fff3 100644 --- a/misc/update/postprocess.php +++ b/misc/update/postprocess.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NNTP; -use nntmux\db\DB; +use Blacklight\NNTP; +use Blacklight\db\DB; use App\Models\Settings; -use nntmux\processing\PostProcess; +use Blacklight\processing\PostProcess; $pdo = new DB(); /** @@ -38,7 +38,7 @@ $bool = [ if (! isset($argv[1]) || ! in_array($argv[1], $args, false) || ! isset($argv[2]) || ! in_array($argv[2], $bool, false)) { exit( - \nntmux\ColorCLI::error( + \Blacklight\ColorCLI::error( "\nIncorrect arguments.\n" ."The second argument (true/false) determines wether to echo or not.\n\n" ."php postprocess.php all true ...: Does all the types of post processing.\n" diff --git a/misc/update/tmux/bin/groupfixrelnames.php b/misc/update/tmux/bin/groupfixrelnames.php index 58afd5e07..92d160ce7 100644 --- a/misc/update/tmux/bin/groupfixrelnames.php +++ b/misc/update/tmux/bin/groupfixrelnames.php @@ -2,18 +2,18 @@ require_once dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\Nfo; -use nntmux\NZB; -use nntmux\NNTP; -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\Nfo; +use Blacklight\NZB; +use Blacklight\NNTP; +use Blacklight\db\DB; +use Blacklight\ColorCLI; use App\Models\Predb; -use nntmux\NameFixer; -use nntmux\MiscSorter; -use nntmux\NZBContents; +use Blacklight\NameFixer; +use Blacklight\MiscSorter; +use Blacklight\NZBContents; use App\Models\Category; use App\Models\Settings; -use nntmux\processing\PostProcess; +use Blacklight\processing\PostProcess; $pdo = new DB(); diff --git a/misc/update/tmux/bin/showsleep.php b/misc/update/tmux/bin/showsleep.php index 156b39535..ced9c3ce4 100644 --- a/misc/update/tmux/bin/showsleep.php +++ b/misc/update/tmux/bin/showsleep.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\ConsoleTools; +use Blacklight\ConsoleTools; // This script is simply so I can show sleep progress in bash script $consoletools = new ConsoleTools(); diff --git a/misc/update/tmux/bin/update_groups.php b/misc/update/tmux/bin/update_groups.php index de70019c5..ba57f3f10 100644 --- a/misc/update/tmux/bin/update_groups.php +++ b/misc/update/tmux/bin/update_groups.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NNTP; -use nntmux\ColorCLI; +use Blacklight\NNTP; +use Blacklight\ColorCLI; use App\Models\Group; -use nntmux\ConsoleTools; +use Blacklight\ConsoleTools; use App\Models\ShortGroup; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\DB; diff --git a/misc/update/tmux/monitor.php b/misc/update/tmux/monitor.php index 1a83f6cbb..c0af1600a 100644 --- a/misc/update/tmux/monitor.php +++ b/misc/update/tmux/monitor.php @@ -2,15 +2,15 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\Tmux; -use nntmux\db\DB; -use nntmux\TmuxRun; -use nntmux\ColorCLI; -use nntmux\TmuxOutput; +use Blacklight\Tmux; +use Blacklight\db\DB; +use Blacklight\TmuxRun; +use Blacklight\ColorCLI; +use Blacklight\TmuxOutput; use App\Models\Release; use App\Models\Category; use App\Models\Settings; -use nntmux\utility\Utility; +use Blacklight\utility\Utility; $pdo = new DB(); $tMain = new Tmux($pdo); diff --git a/misc/update/tmux/run.php b/misc/update/tmux/run.php index 7700eb784..25a4f4b6f 100644 --- a/misc/update/tmux/run.php +++ b/misc/update/tmux/run.php @@ -2,11 +2,11 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\Tmux; -use nntmux\db\DB; -use nntmux\ColorCLI; +use Blacklight\Tmux; +use Blacklight\db\DB; +use Blacklight\ColorCLI; use App\Models\Settings; -use nntmux\utility\Utility; +use Blacklight\utility\Utility; $pdo = new DB(); $DIR = NN_TMUX; @@ -186,7 +186,7 @@ function window_optimize($tmux_session) function window_sharing($tmux_session) { - $pdo = new nntmux\db\DB(); + $pdo = new Blacklight\db\DB(); $sharing = $pdo->queryOneRow('SELECT enabled, posting, fetching FROM sharing'); $t = new Tmux(); $tmux = $t->get(); diff --git a/misc/update/tmux/start.php b/misc/update/tmux/start.php index 55526a263..bb49822ef 100644 --- a/misc/update/tmux/start.php +++ b/misc/update/tmux/start.php @@ -8,8 +8,8 @@ */ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\Tmux; -use nntmux\ColorCLI; +use Blacklight\Tmux; +use Blacklight\ColorCLI; // Ensure compatible tmux version is installed $tmux_version == "tmux 2.1\n" || $tmux_version == "tmux 2.2\n" if (`which tmux`) { diff --git a/misc/update/tmux/stop.php b/misc/update/tmux/stop.php index d3ed8aeeb..9c64dae5a 100644 --- a/misc/update/tmux/stop.php +++ b/misc/update/tmux/stop.php @@ -2,6 +2,6 @@ require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\Tmux; +use Blacklight\Tmux; $restart = (new Tmux())->stopIfRunning(); diff --git a/misc/update/update_binaries.php b/misc/update/update_binaries.php index 933481fdf..e8398ece1 100644 --- a/misc/update/update_binaries.php +++ b/misc/update/update_binaries.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; -use nntmux\NNTP; -use nntmux\db\DB; -use nntmux\Binaries; -use nntmux\ColorCLI; +use Blacklight\NNTP; +use Blacklight\db\DB; +use Blacklight\Binaries; +use Blacklight\ColorCLI; use App\Models\Group; use App\Models\Settings; diff --git a/public/admin/ajax.php b/public/admin/ajax.php index 4728cd50b..b15cad101 100644 --- a/public/admin/ajax.php +++ b/public/admin/ajax.php @@ -1,9 +1,9 @@ $page->pdo]); diff --git a/public/admin/anidb-list.php b/public/admin/anidb-list.php index 9cd2bf82c..75821f4fa 100644 --- a/public/admin/anidb-list.php +++ b/public/admin/anidb-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\AniDB; +use Blacklight\AniDB; $page = new AdminPage(); diff --git a/public/admin/binaryblacklist-edit.php b/public/admin/binaryblacklist-edit.php index e5c940893..661b77e8e 100644 --- a/public/admin/binaryblacklist-edit.php +++ b/public/admin/binaryblacklist-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Binaries; +use Blacklight\Binaries; use App\Models\Category; $page = new AdminPage(); diff --git a/public/admin/binaryblacklist-list.php b/public/admin/binaryblacklist-list.php index 2023838f4..0351ee310 100644 --- a/public/admin/binaryblacklist-list.php +++ b/public/admin/binaryblacklist-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Binaries; +use Blacklight\Binaries; $page = new AdminPage(); diff --git a/public/admin/book-edit.php b/public/admin/book-edit.php index 729994450..f164d2086 100644 --- a/public/admin/book-edit.php +++ b/public/admin/book-edit.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Books; -use nntmux\Genres; +use Blacklight\Books; +use Blacklight\Genres; $page = new AdminPage(); $book = new Books(); diff --git a/public/admin/book-list.php b/public/admin/book-list.php index 13af00f01..4a635eb27 100644 --- a/public/admin/book-list.php +++ b/public/admin/book-list.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Books; -use nntmux\utility\Utility; +use Blacklight\Books; +use Blacklight\utility\Utility; $page = new AdminPage(); diff --git a/public/admin/category_regexes-edit.php b/public/admin/category_regexes-edit.php index b7a6ea7dd..c6cf97297 100644 --- a/public/admin/category_regexes-edit.php +++ b/public/admin/category_regexes-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; use App\Models\Category; $page = new AdminPage(); diff --git a/public/admin/category_regexes-list.php b/public/admin/category_regexes-list.php index 88ef2d7af..fbb3de11a 100644 --- a/public/admin/category_regexes-list.php +++ b/public/admin/category_regexes-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; $page = new AdminPage(); $regexes = new Regexes(['Settings' => $page->pdo, 'Table_Name' => 'category_regexes']); diff --git a/public/admin/collection_regexes-edit.php b/public/admin/collection_regexes-edit.php index 61ffd1042..b5f64e422 100644 --- a/public/admin/collection_regexes-edit.php +++ b/public/admin/collection_regexes-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; use App\Models\Category; $page = new AdminPage(); diff --git a/public/admin/collection_regexes-list.php b/public/admin/collection_regexes-list.php index ddb73ea58..bb6ee7e0e 100644 --- a/public/admin/collection_regexes-list.php +++ b/public/admin/collection_regexes-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; $page = new AdminPage(); $regexes = new Regexes(['Settings' => $page->pdo, 'Table_Name' => 'collection_regexes']); diff --git a/public/admin/collection_regexes-test.php b/public/admin/collection_regexes-test.php index 0496839d2..929200777 100644 --- a/public/admin/collection_regexes-test.php +++ b/public/admin/collection_regexes-test.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; $page = new AdminPage(); diff --git a/public/admin/console-edit.php b/public/admin/console-edit.php index c005b2bdb..5536ef6b5 100644 --- a/public/admin/console-edit.php +++ b/public/admin/console-edit.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Genres; -use nntmux\Console; +use Blacklight\Genres; +use Blacklight\Console; $page = new AdminPage(); $console = new Console(['Settings' => $page->pdo]); diff --git a/public/admin/console-list.php b/public/admin/console-list.php index 242a7f89f..060b5c980 100644 --- a/public/admin/console-list.php +++ b/public/admin/console-list.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Console; -use nntmux\utility\Utility; +use Blacklight\Console; +use Blacklight\utility\Utility; $page = new AdminPage(); $con = new Console(['Settings' => $page->pdo]); diff --git a/public/admin/content-add.php b/public/admin/content-add.php index fd391568d..f2fa0d2ec 100644 --- a/public/admin/content-add.php +++ b/public/admin/content-add.php @@ -3,7 +3,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; use App\Models\User; -use nntmux\Contents; +use Blacklight\Contents; $page = new AdminPage(); $contents = new Contents(['Settings' => $page->pdo]); diff --git a/public/admin/content-delete.php b/public/admin/content-delete.php index 718da94a1..453fb9824 100644 --- a/public/admin/content-delete.php +++ b/public/admin/content-delete.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Contents; +use Blacklight\Contents; $page = new AdminPage(); diff --git a/public/admin/content-list.php b/public/admin/content-list.php index 0530c5879..38f3b7b37 100644 --- a/public/admin/content-list.php +++ b/public/admin/content-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Contents; +use Blacklight\Contents; $page = new AdminPage(); $contents = new Contents(['Settings' => $page->pdo]); diff --git a/public/admin/game-edit.php b/public/admin/game-edit.php index c64ecaad0..72e821d81 100644 --- a/public/admin/game-edit.php +++ b/public/admin/game-edit.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Games; -use nntmux\Genres; +use Blacklight\Games; +use Blacklight\Genres; $page = new AdminPage(); $games = new Games(['Settings' => $page->pdo]); diff --git a/public/admin/game-list.php b/public/admin/game-list.php index 44d021c7d..198bb0b36 100644 --- a/public/admin/game-list.php +++ b/public/admin/game-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Games; +use Blacklight\Games; $page = new AdminPage(); $game = new Games(['Settings' => $page->pdo]); diff --git a/public/admin/movie-add.php b/public/admin/movie-add.php index d513084fc..d491558ef 100644 --- a/public/admin/movie-add.php +++ b/public/admin/movie-add.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Movie; +use Blacklight\Movie; $page = new AdminPage(); $movie = new Movie(['Settings' => $page->pdo]); diff --git a/public/admin/movie-edit.php b/public/admin/movie-edit.php index 42c1ccecf..b55960cd8 100644 --- a/public/admin/movie-edit.php +++ b/public/admin/movie-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Movie; +use Blacklight\Movie; $page = new AdminPage(); $movie = new Movie(); diff --git a/public/admin/movie-list.php b/public/admin/movie-list.php index 75ac0d073..2832d70d6 100644 --- a/public/admin/movie-list.php +++ b/public/admin/movie-list.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Movie; -use nntmux\utility\Utility; +use Blacklight\Movie; +use Blacklight\utility\Utility; $page = new AdminPage(); $movie = new Movie(['Settings' => $page->pdo]); diff --git a/public/admin/music-edit.php b/public/admin/music-edit.php index 56ec0adf1..69a6d031e 100644 --- a/public/admin/music-edit.php +++ b/public/admin/music-edit.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Music; -use nntmux\Genres; +use Blacklight\Music; +use Blacklight\Genres; $page = new AdminPage(); $music = new Music(); diff --git a/public/admin/music-list.php b/public/admin/music-list.php index 77de7fe23..6bcb4b172 100644 --- a/public/admin/music-list.php +++ b/public/admin/music-list.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Music; -use nntmux\utility\Utility; +use Blacklight\Music; +use Blacklight\utility\Utility; $page = new AdminPage(); diff --git a/public/admin/nzb-export.php b/public/admin/nzb-export.php index b468c311d..782855a95 100644 --- a/public/admin/nzb-export.php +++ b/public/admin/nzb-export.php @@ -2,10 +2,10 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Releases; -use nntmux\NZBExport; +use Blacklight\Releases; +use Blacklight\NZBExport; -if (\nntmux\utility\Utility::isCLI()) { +if (\Blacklight\utility\Utility::isCLI()) { exit('This script is only for exporting from the web, use the script in misc/testing'. PHP_EOL); } diff --git a/public/admin/nzb-import.php b/public/admin/nzb-import.php index 52a410cb7..ff2be6dac 100644 --- a/public/admin/nzb-import.php +++ b/public/admin/nzb-import.php @@ -7,7 +7,7 @@ if (PHP_SAPI === 'cli') { require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\NZBImport; +use Blacklight\NZBImport; $page = new AdminPage(); diff --git a/public/admin/posters-edit.php b/public/admin/posters-edit.php index 08335a248..ddbf6c3d3 100644 --- a/public/admin/posters-edit.php +++ b/public/admin/posters-edit.php @@ -3,7 +3,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; use App\Models\MultigroupPoster; -use nntmux\processing\ProcessReleasesMultiGroup; +use Blacklight\processing\ProcessReleasesMultiGroup; $page = new AdminPage(); $relPosters = new ProcessReleasesMultiGroup(['Settings' => $page->pdo]); diff --git a/public/admin/release-delete.php b/public/admin/release-delete.php index 661615695..3b9dde7bf 100644 --- a/public/admin/release-delete.php +++ b/public/admin/release-delete.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Releases; +use Blacklight\Releases; $page = new AdminPage(); diff --git a/public/admin/release-edit.php b/public/admin/release-edit.php index 4390edbd7..69b112e3e 100644 --- a/public/admin/release-edit.php +++ b/public/admin/release-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Releases; +use Blacklight\Releases; use App\Models\Release; use App\Models\Category; diff --git a/public/admin/release-files.php b/public/admin/release-files.php index 5d1466f4b..3a6f2083c 100644 --- a/public/admin/release-files.php +++ b/public/admin/release-files.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\NZB; -use nntmux\db\DB; +use Blacklight\NZB; +use Blacklight\db\DB; use App\Models\User; use App\Models\Release; use App\Models\Settings; diff --git a/public/admin/release_naming_regexes-edit.php b/public/admin/release_naming_regexes-edit.php index 7f186c71b..28e6fae27 100644 --- a/public/admin/release_naming_regexes-edit.php +++ b/public/admin/release_naming_regexes-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; use App\Models\Category; $page = new AdminPage(); diff --git a/public/admin/release_naming_regexes-list.php b/public/admin/release_naming_regexes-list.php index 01e60841b..91e2babd6 100644 --- a/public/admin/release_naming_regexes-list.php +++ b/public/admin/release_naming_regexes-list.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; $page = new AdminPage(); $regexes = new Regexes(['Settings' => $page->pdo, 'Table_Name' => 'release_naming_regexes']); diff --git a/public/admin/release_naming_regexes-test.php b/public/admin/release_naming_regexes-test.php index be5a6ecee..1dc247b5f 100644 --- a/public/admin/release_naming_regexes-test.php +++ b/public/admin/release_naming_regexes-test.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Regexes; +use Blacklight\Regexes; $page = new AdminPage(); diff --git a/public/admin/sharing.php b/public/admin/sharing.php index 3057e3436..37b27bbad 100644 --- a/public/admin/sharing.php +++ b/public/admin/sharing.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\db\DB; +use Blacklight\db\DB; $page = new AdminPage(); $page->title = 'Sharing Settings'; diff --git a/public/admin/site-edit.php b/public/admin/site-edit.php index 40087297f..135e2114b 100644 --- a/public/admin/site-edit.php +++ b/public/admin/site-edit.php @@ -2,11 +2,11 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Sites; -use nntmux\SABnzbd; +use Blacklight\Sites; +use Blacklight\SABnzbd; use App\Models\Category; use App\Models\Settings; -use nntmux\utility\Utility; +use Blacklight\utility\Utility; use App\Models\Category as CategoryModel; $page = new AdminPage(); diff --git a/public/admin/tmux-edit.php b/public/admin/tmux-edit.php index bc59e942a..34fb0708a 100644 --- a/public/admin/tmux-edit.php +++ b/public/admin/tmux-edit.php @@ -2,7 +2,7 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use nntmux\Tmux; +use Blacklight\Tmux; $page = new AdminPage(); $tmux = new Tmux(); diff --git a/public/pages/BasePage.php b/public/pages/BasePage.php index a69fda4e3..7f6f16e67 100644 --- a/public/pages/BasePage.php +++ b/public/pages/BasePage.php @@ -2,8 +2,8 @@ require_once NN_LIB.'utility'.DS.'SmartyUtils.php'; -use nntmux\db\DB; -use nntmux\SABnzbd; +use Blacklight\db\DB; +use Blacklight\SABnzbd; use App\Models\User; use App\Models\Settings; use App\Models\RoleExcludedCategory; @@ -70,7 +70,7 @@ class BasePage /** * Public access to Captcha object for error checking. * - * @var \nntmux\Captcha + * @var \Blacklight\Captcha */ public $captcha; @@ -87,7 +87,7 @@ class BasePage public $token; /** - * @var \nntmux\db\DB + * @var \Blacklight\db\DB */ public $pdo; diff --git a/public/pages/Page.php b/public/pages/Page.php index 4e0ead8e7..1d1710cc9 100644 --- a/public/pages/Page.php +++ b/public/pages/Page.php @@ -2,7 +2,7 @@ use App\Models\Menu; use App\Models\User; -use nntmux\Contents; +use Blacklight\Contents; use App\Models\Category; use App\Models\Settings; use App\Models\Forumpost; diff --git a/public/pages/ajax_mediainfo.php b/public/pages/ajax_mediainfo.php index ad5e39259..828acf83a 100644 --- a/public/pages/ajax_mediainfo.php +++ b/public/pages/ajax_mediainfo.php @@ -1,7 +1,7 @@ show403(); diff --git a/public/pages/ajax_release-admin.php b/public/pages/ajax_release-admin.php index 4b4ecedf4..8194815c2 100644 --- a/public/pages/ajax_release-admin.php +++ b/public/pages/ajax_release-admin.php @@ -1,6 +1,6 @@ $page->settings]); diff --git a/public/pages/btc_payment.php b/public/pages/btc_payment.php index 818509114..c94471a88 100644 --- a/public/pages/btc_payment.php +++ b/public/pages/btc_payment.php @@ -2,7 +2,7 @@ use App\Models\User; use App\Models\UserRole; -use nntmux\libraries\Geary; +use Blacklight\libraries\Geary; $page = new Page(); diff --git a/public/pages/btc_payment_callback.php b/public/pages/btc_payment_callback.php index e0a1af077..925d8e54a 100644 --- a/public/pages/btc_payment_callback.php +++ b/public/pages/btc_payment_callback.php @@ -1,7 +1,7 @@ show403(); diff --git a/public/pages/console.php b/public/pages/console.php index 1f84e2269..188d44645 100644 --- a/public/pages/console.php +++ b/public/pages/console.php @@ -1,7 +1,7 @@ $page->settings]); diff --git a/public/pages/details.php b/public/pages/details.php index 818bd1312..3749e3bf8 100644 --- a/public/pages/details.php +++ b/public/pages/details.php @@ -1,19 +1,19 @@ smarty->assign(['error' => '', 'username' => '', 'rememberme' => '']); diff --git a/public/pages/movie.php b/public/pages/movie.php index 3e27e3e48..70f7b74ae 100644 --- a/public/pages/movie.php +++ b/public/pages/movie.php @@ -1,6 +1,6 @@ show403(); diff --git a/public/pages/nzbgetqueuedata.php b/public/pages/nzbgetqueuedata.php index 7b449ef9b..d7a1b867f 100644 --- a/public/pages/nzbgetqueuedata.php +++ b/public/pages/nzbgetqueuedata.php @@ -1,8 +1,8 @@ show403(); diff --git a/public/pages/nzbvortex.php b/public/pages/nzbvortex.php index c9b19977f..a99cf48d1 100644 --- a/public/pages/nzbvortex.php +++ b/public/pages/nzbvortex.php @@ -5,7 +5,7 @@ use App\Models\User; if (! User::isLoggedIn()) { $page->show403(); } -use nntmux\NZBVortex; +use Blacklight\NZBVortex; try { if (isset($_GET['isAjax'])) { diff --git a/public/pages/profile.php b/public/pages/profile.php index c35918a28..a30cb1a62 100644 --- a/public/pages/profile.php +++ b/public/pages/profile.php @@ -1,7 +1,7 @@ $page->settings]); diff --git a/public/pages/rss.php b/public/pages/rss.php index aea39d827..e3921784b 100755 --- a/public/pages/rss.php +++ b/public/pages/rss.php @@ -1,11 +1,11 @@ $page->settings]); $offset = 0; diff --git a/public/pages/sabqueuedata.php b/public/pages/sabqueuedata.php index 6c9b1592c..ce15330db 100644 --- a/public/pages/sabqueuedata.php +++ b/public/pages/sabqueuedata.php @@ -1,6 +1,6 @@ show403(); diff --git a/public/pages/sendtonzbget.php b/public/pages/sendtonzbget.php index 8851f92b9..9b395e5cc 100644 --- a/public/pages/sendtonzbget.php +++ b/public/pages/sendtonzbget.php @@ -1,6 +1,6 @@ smarty; diff --git a/public/pages/smartyTV.php b/public/pages/smartyTV.php index 86b66fd58..4093d9bd0 100644 --- a/public/pages/smartyTV.php +++ b/public/pages/smartyTV.php @@ -20,7 +20,7 @@ */ require_once '../../nntmux/processing/tv/TV.php'; -use nntmux\processing\tv\TV; +use Blacklight\processing\tv\TV; class smartyTV extends TV { diff --git a/public/pages/xxx.php b/public/pages/xxx.php index f65e8151d..ea0ec44d2 100644 --- a/public/pages/xxx.php +++ b/public/pages/xxx.php @@ -1,6 +1,6 @@