From b3e5d5c37c22e0b439b7d0f965c5fe21c92daa18 Mon Sep 17 00:00:00 2001 From: Olu Amey Date: Wed, 18 Jan 2023 22:12:10 -0500 Subject: [PATCH] first commit --- .gitignore | 127 + LICENSE | 22 + README.md | 56 + apache_log/error.log | 2 + apache_log/other_vhosts_access.log | 53 + app/.htaccess | 6 + app/Common.php | 15 + app/Config/App.php | 465 + app/Config/Autoload.php | 87 + app/Config/Boot/development.php | 32 + app/Config/Boot/production.php | 21 + app/Config/Boot/testing.php | 32 + app/Config/CURLRequest.php | 22 + app/Config/Cache.php | 181 + app/Config/Constants.php | 94 + app/Config/ContentSecurityPolicy.php | 188 + app/Config/Cookie.php | 119 + app/Config/Database.php | 91 + app/Config/DocTypes.php | 33 + app/Config/Email.php | 170 + app/Config/Encryption.php | 67 + app/Config/Events.php | 48 + app/Config/Exceptions.php | 60 + app/Config/Feature.php | 32 + app/Config/Filters.php | 72 + app/Config/ForeignCharacters.php | 9 + app/Config/Format.php | 77 + app/Config/Generators.php | 40 + app/Config/Honeypot.php | 43 + app/Config/Images.php | 35 + app/Config/Kint.php | 51 + app/Config/Logger.php | 154 + app/Config/Migrations.php | 55 + app/Config/Mimes.php | 535 + app/Config/Modules.php | 53 + app/Config/Pager.php | 39 + app/Config/Paths.php | 85 + app/Config/Publisher.php | 28 + app/Config/Routes.php | 57 + app/Config/Security.php | 117 + app/Config/Services.php | 32 + app/Config/Toolbar.php | 99 + app/Config/UserAgents.php | 252 + app/Config/Validation.php | 44 + app/Config/View.php | 56 + app/Controllers/BaseController.php | 52 + app/Controllers/Dash.php | 13 + app/Controllers/Home.php | 16 + app/Database/Migrations/.gitkeep | 0 app/Database/Seeds/.gitkeep | 0 app/Filters/.gitkeep | 0 app/Helpers/.gitkeep | 0 app/Language/.gitkeep | 0 app/Language/en/Validation.php | 4 + app/Libraries/.gitkeep | 0 app/Models/.gitkeep | 0 app/ThirdParty/.gitkeep | 0 app/Views/errors/cli/error_404.php | 7 + app/Views/errors/cli/error_exception.php | 65 + app/Views/errors/cli/production.php | 5 + app/Views/errors/html/debug.css | 197 + app/Views/errors/html/debug.js | 116 + app/Views/errors/html/error_404.php | 84 + app/Views/errors/html/error_exception.php | 397 + app/Views/errors/html/production.php | 25 + app/Views/view_dash.php | 8581 +++++++++++++++++ app/Views/welcome_message.php | 75 + app/index.html | 11 + composer.json | 48 + composer.lock | 4190 ++++++++ docker-compose.yml | 19 + docker/apache/000-default.conf | 11 + docker/apache/Dockerfile | 57 + env | 138 + phpunit.xml.dist | 57 + public/.htaccess | 49 + public/assets/css/style.bundle.css | 1 + public/assets/img/logo-myfit.png | Bin 0 -> 64168 bytes .../assets/plugins/global/plugins.bundle.css | 9 + public/favicon.ico | Bin 0 -> 5430 bytes public/index.php | 55 + public/robots.txt | 2 + spark | 90 + system/.htaccess | 6 + system/API/ResponseTrait.php | 355 + system/Autoloader/Autoloader.php | 376 + system/Autoloader/FileLocator.php | 373 + system/BaseModel.php | 1700 ++++ system/CLI/BaseCommand.php | 219 + system/CLI/CLI.php | 1018 ++ system/CLI/CommandRunner.php | 75 + system/CLI/Commands.php | 181 + system/CLI/Console.php | 63 + system/CLI/Exceptions/CLIException.php | 34 + system/CLI/GeneratorTrait.php | 352 + system/Cache/CacheFactory.php | 84 + system/Cache/CacheInterface.php | 106 + system/Cache/Exceptions/CacheException.php | 64 + .../Cache/Exceptions/ExceptionInterface.php | 24 + system/Cache/Handlers/BaseHandler.php | 106 + system/Cache/Handlers/DummyHandler.php | 115 + system/Cache/Handlers/FileHandler.php | 423 + system/Cache/Handlers/MemcachedHandler.php | 271 + system/Cache/Handlers/PredisHandler.php | 227 + system/Cache/Handlers/RedisHandler.php | 263 + system/Cache/Handlers/WincacheHandler.php | 144 + system/CodeIgniter.php | 1108 +++ system/Commands/Cache/ClearCache.php | 87 + system/Commands/Cache/InfoCache.php | 88 + system/Commands/Database/CreateDatabase.php | 155 + system/Commands/Database/Migrate.php | 102 + system/Commands/Database/MigrateRefresh.php | 87 + system/Commands/Database/MigrateRollback.php | 110 + system/Commands/Database/MigrateStatus.php | 165 + system/Commands/Database/Seed.php | 82 + system/Commands/Database/ShowTableInfo.php | 284 + system/Commands/Encryption/GenerateKey.php | 188 + .../Commands/Generators/CommandGenerator.php | 119 + .../Commands/Generators/ConfigGenerator.php | 98 + .../Generators/ControllerGenerator.php | 134 + .../Commands/Generators/EntityGenerator.php | 84 + .../Commands/Generators/FilterGenerator.php | 84 + system/Commands/Generators/MigrateCreate.php | 90 + .../Generators/MigrationGenerator.php | 121 + system/Commands/Generators/ModelGenerator.php | 134 + .../Commands/Generators/ScaffoldGenerator.php | 121 + .../Commands/Generators/SeederGenerator.php | 84 + .../Generators/SessionMigrationGenerator.php | 110 + .../Generators/ValidationGenerator.php | 84 + .../Commands/Generators/Views/command.tpl.php | 76 + .../Commands/Generators/Views/config.tpl.php | 10 + .../Generators/Views/controller.tpl.php | 177 + .../Commands/Generators/Views/entity.tpl.php | 12 + .../Commands/Generators/Views/filter.tpl.php | 47 + .../Generators/Views/migration.tpl.php | 50 + .../Commands/Generators/Views/model.tpl.php | 42 + .../Commands/Generators/Views/seeder.tpl.php | 13 + .../Generators/Views/validation.tpl.php | 11 + system/Commands/Help.php | 85 + .../Commands/Housekeeping/ClearDebugbar.php | 70 + system/Commands/Housekeeping/ClearLogs.php | 91 + system/Commands/ListCommands.php | 134 + system/Commands/Server/Serve.php | 117 + system/Commands/Server/rewrite.php | 44 + system/Commands/Utilities/Environment.php | 155 + system/Commands/Utilities/Namespaces.php | 95 + system/Commands/Utilities/Publish.php | 104 + system/Commands/Utilities/Routes.php | 159 + .../Utilities/Routes/AutoRouteCollector.php | 66 + .../AutoRouterImproved/AutoRouteCollector.php | 138 + .../ControllerMethodReader.php | 182 + .../Utilities/Routes/ControllerFinder.php | 76 + .../Routes/ControllerMethodReader.php | 176 + .../Utilities/Routes/FilterCollector.php | 79 + .../Utilities/Routes/FilterFinder.php | 72 + .../Utilities/Routes/SampleURIGenerator.php | 61 + system/Common.php | 1225 +++ system/ComposerScripts.php | 161 + system/Config/AutoloadConfig.php | 151 + system/Config/BaseConfig.php | 216 + system/Config/BaseService.php | 382 + system/Config/Config.php | 50 + system/Config/DotEnv.php | 233 + system/Config/Factories.php | 332 + system/Config/Factory.php | 48 + system/Config/ForeignCharacters.php | 113 + system/Config/Publisher.php | 42 + system/Config/Routes.php | 23 + system/Config/Services.php | 725 ++ system/Config/View.php | 115 + system/Controller.php | 186 + system/Cookie/CloneableCookieInterface.php | 107 + system/Cookie/Cookie.php | 781 ++ system/Cookie/CookieInterface.php | 168 + system/Cookie/CookieStore.php | 256 + system/Cookie/Exceptions/CookieException.php | 127 + system/Database/BaseBuilder.php | 2924 ++++++ system/Database/BaseConnection.php | 1606 +++ system/Database/BasePreparedQuery.php | 189 + system/Database/BaseResult.php | 512 + system/Database/BaseUtils.php | 321 + system/Database/Config.php | 145 + system/Database/ConnectionInterface.php | 156 + system/Database/Database.php | 138 + system/Database/Exceptions/DataException.php | 85 + .../Database/Exceptions/DatabaseException.php | 24 + .../Exceptions/ExceptionInterface.php | 22 + system/Database/Forge.php | 1099 +++ system/Database/Migration.php | 73 + system/Database/MigrationRunner.php | 868 ++ system/Database/ModelFactory.php | 52 + system/Database/MySQLi/Builder.php | 56 + system/Database/MySQLi/Connection.php | 605 ++ system/Database/MySQLi/Forge.php | 239 + system/Database/MySQLi/PreparedQuery.php | 87 + system/Database/MySQLi/Result.php | 162 + system/Database/MySQLi/Utils.php | 45 + system/Database/OCI8/Builder.php | 230 + system/Database/OCI8/Connection.php | 720 ++ system/Database/OCI8/Forge.php | 301 + system/Database/OCI8/PreparedQuery.php | 109 + system/Database/OCI8/Result.php | 115 + system/Database/OCI8/Utils.php | 38 + system/Database/Postgre/Builder.php | 316 + system/Database/Postgre/Connection.php | 516 + system/Database/Postgre/Forge.php | 193 + system/Database/Postgre/PreparedQuery.php | 111 + system/Database/Postgre/Result.php | 128 + system/Database/Postgre/Utils.php | 45 + system/Database/PreparedQueryInterface.php | 54 + system/Database/Query.php | 429 + system/Database/QueryInterface.php | 87 + system/Database/RawSql.php | 49 + system/Database/ResultInterface.php | 164 + system/Database/SQLSRV/Builder.php | 626 ++ system/Database/SQLSRV/Connection.php | 541 ++ system/Database/SQLSRV/Forge.php | 403 + system/Database/SQLSRV/PreparedQuery.php | 114 + system/Database/SQLSRV/Result.php | 170 + system/Database/SQLSRV/Utils.php | 53 + system/Database/SQLite3/Builder.php | 73 + system/Database/SQLite3/Connection.php | 410 + system/Database/SQLite3/Forge.php | 254 + system/Database/SQLite3/PreparedQuery.php | 91 + system/Database/SQLite3/Result.php | 152 + system/Database/SQLite3/Table.php | 373 + system/Database/SQLite3/Utils.php | 38 + system/Database/Seeder.php | 191 + system/Debug/Exceptions.php | 491 + system/Debug/Iterator.php | 130 + system/Debug/Timer.php | 129 + system/Debug/Toolbar.php | 526 + .../Toolbar/Collectors/BaseCollector.php | 232 + system/Debug/Toolbar/Collectors/Config.php | 41 + system/Debug/Toolbar/Collectors/Database.php | 251 + system/Debug/Toolbar/Collectors/Events.php | 141 + system/Debug/Toolbar/Collectors/Files.php | 102 + system/Debug/Toolbar/Collectors/History.php | 139 + system/Debug/Toolbar/Collectors/Logs.php | 93 + system/Debug/Toolbar/Collectors/Routes.php | 157 + system/Debug/Toolbar/Collectors/Timers.php | 71 + system/Debug/Toolbar/Collectors/Views.php | 147 + system/Debug/Toolbar/Views/_config.tpl | 48 + system/Debug/Toolbar/Views/_database.tpl | 26 + system/Debug/Toolbar/Views/_events.tpl | 18 + system/Debug/Toolbar/Views/_files.tpl | 16 + system/Debug/Toolbar/Views/_history.tpl | 28 + system/Debug/Toolbar/Views/_logs.tpl | 20 + system/Debug/Toolbar/Views/_routes.tpl | 52 + system/Debug/Toolbar/Views/toolbar.css | 802 ++ system/Debug/Toolbar/Views/toolbar.js | 687 ++ system/Debug/Toolbar/Views/toolbar.tpl.php | 271 + system/Debug/Toolbar/Views/toolbarloader.js | 87 + system/Email/Email.php | 2199 +++++ system/Encryption/EncrypterInterface.php | 46 + system/Encryption/Encryption.php | 172 + .../Exceptions/EncryptionException.php | 86 + system/Encryption/Handlers/BaseHandler.php | 84 + system/Encryption/Handlers/OpenSSLHandler.php | 110 + system/Encryption/Handlers/SodiumHandler.php | 137 + system/Entity.php | 23 + system/Entity/Cast/ArrayCast.php | 38 + system/Entity/Cast/BaseCast.php | 44 + system/Entity/Cast/BooleanCast.php | 26 + system/Entity/Cast/CSVCast.php | 34 + system/Entity/Cast/CastInterface.php | 38 + system/Entity/Cast/DatetimeCast.php | 48 + system/Entity/Cast/FloatCast.php | 26 + system/Entity/Cast/IntegerCast.php | 26 + system/Entity/Cast/JsonCast.php | 65 + system/Entity/Cast/ObjectCast.php | 26 + system/Entity/Cast/StringCast.php | 26 + system/Entity/Cast/TimestampCast.php | 34 + system/Entity/Cast/URICast.php | 28 + system/Entity/Entity.php | 566 ++ system/Entity/Exceptions/CastException.php | 78 + system/Events/Events.php | 273 + system/Exceptions/AlertError.php | 21 + system/Exceptions/CastException.php | 54 + system/Exceptions/ConfigException.php | 32 + system/Exceptions/CriticalError.php | 21 + system/Exceptions/DebugTraceableTrait.php | 41 + system/Exceptions/DownloadException.php | 47 + system/Exceptions/EmergencyError.php | 21 + system/Exceptions/ExceptionInterface.php | 22 + system/Exceptions/FrameworkException.php | 66 + system/Exceptions/ModelException.php | 33 + system/Exceptions/PageNotFoundException.php | 63 + system/Exceptions/TestException.php | 25 + system/Files/Exceptions/FileException.php | 46 + .../Exceptions/FileNotFoundException.php | 26 + system/Files/File.php | 186 + system/Files/FileCollection.php | 363 + system/Filters/CSRF.php | 74 + system/Filters/DebugToolbar.php | 42 + system/Filters/Exceptions/FilterException.php | 42 + system/Filters/FilterInterface.php | 49 + system/Filters/Filters.php | 543 ++ system/Filters/Honeypot.php | 48 + system/Filters/InvalidChars.php | 123 + system/Filters/SecureHeaders.php | 71 + system/Format/Exceptions/FormatException.php | 71 + system/Format/Format.php | 72 + system/Format/FormatterInterface.php | 27 + system/Format/JSONFormatter.php | 46 + system/Format/XMLFormatter.php | 99 + system/HTTP/CLIRequest.php | 217 + system/HTTP/CURLRequest.php | 662 ++ system/HTTP/ContentSecurityPolicy.php | 808 ++ system/HTTP/DownloadResponse.php | 326 + system/HTTP/Exceptions/HTTPException.php | 218 + system/HTTP/Files/FileCollection.php | 255 + system/HTTP/Files/UploadedFile.php | 345 + system/HTTP/Files/UploadedFileInterface.php | 140 + system/HTTP/Header.php | 182 + system/HTTP/IncomingRequest.php | 766 ++ system/HTTP/Message.php | 124 + system/HTTP/MessageInterface.php | 101 + system/HTTP/MessageTrait.php | 239 + system/HTTP/Negotiate.php | 346 + system/HTTP/RedirectResponse.php | 168 + system/HTTP/Request.php | 139 + system/HTTP/RequestInterface.php | 61 + system/HTTP/RequestTrait.php | 335 + system/HTTP/Response.php | 256 + system/HTTP/ResponseInterface.php | 382 + system/HTTP/ResponseTrait.php | 783 ++ system/HTTP/URI.php | 1059 ++ system/HTTP/UserAgent.php | 371 + system/Helpers/array_helper.php | 215 + system/Helpers/cookie_helper.php | 99 + system/Helpers/date_helper.php | 66 + system/Helpers/filesystem_helper.php | 450 + system/Helpers/form_helper.php | 725 ++ system/Helpers/html_helper.php | 543 ++ system/Helpers/inflector_helper.php | 322 + system/Helpers/number_helper.php | 213 + system/Helpers/security_helper.php | 51 + system/Helpers/test_helper.php | 68 + system/Helpers/text_helper.php | 674 ++ system/Helpers/url_helper.php | 565 ++ system/Helpers/xml_helper.php | 59 + .../Honeypot/Exceptions/HoneypotException.php | 38 + system/Honeypot/Honeypot.php | 92 + system/I18n/Exceptions/I18nException.php | 97 + system/I18n/Time.php | 1185 +++ system/I18n/TimeDifference.php | 302 + system/Images/Exceptions/ImageException.php | 68 + system/Images/Handlers/BaseHandler.php | 777 ++ system/Images/Handlers/GDHandler.php | 508 + system/Images/Handlers/ImageMagickHandler.php | 476 + system/Images/Image.php | 133 + system/Images/ImageHandlerInterface.php | 140 + system/Language/Language.php | 262 + system/Language/en/CLI.php | 48 + system/Language/en/Cache.php | 18 + system/Language/en/Cast.php | 23 + system/Language/en/Cookie.php | 24 + system/Language/en/Core.php | 20 + system/Language/en/Database.php | 31 + system/Language/en/Email.php | 33 + system/Language/en/Encryption.php | 20 + system/Language/en/Fabricator.php | 17 + system/Language/en/Files.php | 18 + system/Language/en/Filters.php | 16 + system/Language/en/Format.php | 18 + system/Language/en/HTTP.php | 78 + system/Language/en/Images.php | 34 + system/Language/en/Log.php | 16 + system/Language/en/Migrations.php | 58 + system/Language/en/Number.php | 26 + system/Language/en/Pager.php | 23 + system/Language/en/Publisher.php | 22 + system/Language/en/RESTful.php | 15 + system/Language/en/Router.php | 18 + system/Language/en/Security.php | 18 + system/Language/en/Session.php | 22 + system/Language/en/Test.php | 15 + system/Language/en/Time.php | 33 + system/Language/en/Validation.php | 73 + system/Language/en/View.php | 21 + system/Log/Exceptions/LogException.php | 27 + system/Log/Handlers/BaseHandler.php | 70 + system/Log/Handlers/ChromeLoggerHandler.php | 164 + system/Log/Handlers/ErrorlogHandler.php | 84 + system/Log/Handlers/FileHandler.php | 122 + system/Log/Handlers/HandlerInterface.php | 42 + system/Log/Logger.php | 431 + system/Model.php | 858 ++ system/Modules/Modules.php | 53 + system/Pager/Exceptions/PagerException.php | 27 + system/Pager/Pager.php | 434 + system/Pager/PagerInterface.php | 118 + system/Pager/PagerRenderer.php | 378 + system/Pager/Views/default_full.php | 47 + system/Pager/Views/default_head.php | 27 + system/Pager/Views/default_simple.php | 23 + .../Exceptions/PublisherException.php | 49 + system/Publisher/Publisher.php | 438 + system/RESTful/BaseResource.php | 61 + system/RESTful/ResourceController.php | 110 + system/RESTful/ResourcePresenter.php | 110 + system/Router/AutoRouter.php | 293 + system/Router/AutoRouterImproved.php | 324 + system/Router/AutoRouterInterface.php | 25 + .../Router/Exceptions/RedirectException.php | 27 + system/Router/Exceptions/RouterException.php | 81 + system/Router/RouteCollection.php | 1469 +++ system/Router/RouteCollectionInterface.php | 187 + system/Router/Router.php | 659 ++ system/Router/RouterInterface.php | 70 + .../Security/Exceptions/SecurityException.php | 48 + system/Security/Security.php | 571 ++ system/Security/SecurityInterface.php | 78 + .../Session/Exceptions/SessionException.php | 52 + system/Session/Handlers/ArrayHandler.php | 91 + system/Session/Handlers/BaseHandler.php | 166 + .../Handlers/Database/MySQLiHandler.php | 53 + .../Handlers/Database/PostgreHandler.php | 100 + system/Session/Handlers/DatabaseHandler.php | 294 + system/Session/Handlers/FileHandler.php | 339 + system/Session/Handlers/MemcachedHandler.php | 303 + system/Session/Handlers/RedisHandler.php | 329 + system/Session/Session.php | 913 ++ system/Session/SessionInterface.php | 184 + system/Test/CIDatabaseTestCase.php | 24 + system/Test/CIUnitTestCase.php | 539 ++ system/Test/ConfigFromArrayTrait.php | 46 + system/Test/Constraints/SeeInDatabase.php | 118 + system/Test/ControllerResponse.php | 99 + system/Test/ControllerTestTrait.php | 297 + system/Test/ControllerTester.php | 293 + system/Test/DOMParser.php | 283 + system/Test/DatabaseTestTrait.php | 326 + system/Test/Fabricator.php | 542 ++ system/Test/FeatureResponse.php | 25 + system/Test/FeatureTestCase.php | 402 + system/Test/FeatureTestTrait.php | 397 + system/Test/FilterTestTrait.php | 266 + system/Test/Filters/CITestStreamFilter.php | 50 + system/Test/Interfaces/FabricatorModel.php | 84 + system/Test/Mock/MockAppConfig.php | 42 + system/Test/Mock/MockAutoload.php | 26 + system/Test/Mock/MockBuilder.php | 23 + system/Test/Mock/MockCLIConfig.php | 40 + system/Test/Mock/MockCURLRequest.php | 54 + system/Test/Mock/MockCache.php | 297 + system/Test/Mock/MockCodeIgniter.php | 24 + system/Test/Mock/MockCommon.php | 32 + system/Test/Mock/MockConnection.php | 233 + system/Test/Mock/MockEmail.php | 40 + system/Test/Mock/MockEvents.php | 40 + system/Test/Mock/MockFileLogger.php | 34 + system/Test/Mock/MockIncomingRequest.php | 22 + system/Test/Mock/MockLanguage.php | 56 + system/Test/Mock/MockLogger.php | 103 + system/Test/Mock/MockQuery.php | 18 + system/Test/Mock/MockResourceController.php | 32 + system/Test/Mock/MockResourcePresenter.php | 35 + system/Test/Mock/MockResponse.php | 39 + system/Test/Mock/MockResult.php | 96 + system/Test/Mock/MockSecurity.php | 30 + system/Test/Mock/MockSecurityConfig.php | 31 + system/Test/Mock/MockServices.php | 34 + system/Test/Mock/MockSession.php | 70 + system/Test/Mock/MockTable.php | 28 + system/Test/ReflectionHelper.php | 96 + system/Test/TestLogger.php | 84 + system/Test/TestResponse.php | 496 + system/Test/bootstrap.php | 101 + system/ThirdParty/Escaper/Escaper.php | 412 + .../Escaper/Exception/ExceptionInterface.php | 9 + .../Exception/InvalidArgumentException.php | 13 + .../Escaper/Exception/RuntimeException.php | 13 + system/ThirdParty/Escaper/LICENSE.md | 26 + system/ThirdParty/Kint/CallFinder.php | 517 + system/ThirdParty/Kint/Kint.php | 729 ++ system/ThirdParty/Kint/LICENSE | 20 + .../Kint/Parser/ArrayLimitPlugin.php | 142 + .../Kint/Parser/ArrayObjectPlugin.php | 63 + .../ThirdParty/Kint/Parser/Base64Plugin.php | 94 + .../ThirdParty/Kint/Parser/BinaryPlugin.php | 49 + .../Kint/Parser/BlacklistPlugin.php | 91 + .../Kint/Parser/ClassMethodsPlugin.php | 113 + .../Kint/Parser/ClassStaticsPlugin.php | 134 + .../ThirdParty/Kint/Parser/ClosurePlugin.php | 94 + system/ThirdParty/Kint/Parser/ColorPlugin.php | 63 + .../Kint/Parser/DOMDocumentPlugin.php | 337 + .../ThirdParty/Kint/Parser/DateTimePlugin.php | 55 + system/ThirdParty/Kint/Parser/EnumPlugin.php | 86 + .../ThirdParty/Kint/Parser/FsPathPlugin.php | 72 + .../ThirdParty/Kint/Parser/IteratorPlugin.php | 105 + system/ThirdParty/Kint/Parser/JsonPlugin.php | 73 + .../Kint/Parser/MicrotimePlugin.php | 105 + .../ThirdParty/Kint/Parser/MysqliPlugin.php | 189 + system/ThirdParty/Kint/Parser/Parser.php | 628 ++ system/ThirdParty/Kint/Parser/Plugin.php | 55 + system/ThirdParty/Kint/Parser/ProxyPlugin.php | 66 + .../Kint/Parser/SerializePlugin.php | 108 + .../Kint/Parser/SimpleXMLElementPlugin.php | 217 + .../Kint/Parser/SplFileInfoPlugin.php | 55 + .../Kint/Parser/SplObjectStoragePlugin.php | 54 + .../ThirdParty/Kint/Parser/StreamPlugin.php | 81 + system/ThirdParty/Kint/Parser/TablePlugin.php | 87 + .../Kint/Parser/ThrowablePlugin.php | 60 + .../Kint/Parser/TimestampPlugin.php | 75 + .../ThirdParty/Kint/Parser/ToStringPlugin.php | 67 + system/ThirdParty/Kint/Parser/TracePlugin.php | 120 + system/ThirdParty/Kint/Parser/XmlPlugin.php | 157 + .../ThirdParty/Kint/Renderer/CliRenderer.php | 183 + .../Kint/Renderer/PlainRenderer.php | 237 + system/ThirdParty/Kint/Renderer/Renderer.php | 185 + .../Kint/Renderer/Rich/ArrayLimitPlugin.php | 36 + .../Kint/Renderer/Rich/BinaryPlugin.php | 56 + .../Kint/Renderer/Rich/BlacklistPlugin.php | 36 + .../Kint/Renderer/Rich/CallablePlugin.php | 174 + .../Kint/Renderer/Rich/ClosurePlugin.php | 59 + .../Kint/Renderer/Rich/ColorPlugin.php | 100 + .../Kint/Renderer/Rich/DepthLimitPlugin.php | 36 + .../Kint/Renderer/Rich/DocstringPlugin.php | 70 + .../Kint/Renderer/Rich/MicrotimePlugin.php | 68 + .../ThirdParty/Kint/Renderer/Rich/Plugin.php | 89 + .../Kint/Renderer/Rich/PluginInterface.php | 33 + .../Kint/Renderer/Rich/RecursionPlugin.php | 36 + .../Renderer/Rich/SimpleXMLElementPlugin.php | 77 + .../Kint/Renderer/Rich/SourcePlugin.php | 79 + .../Kint/Renderer/Rich/TabPluginInterface.php | 36 + .../Kint/Renderer/Rich/TablePlugin.php | 133 + .../Kint/Renderer/Rich/TimestampPlugin.php | 42 + .../Kint/Renderer/Rich/TraceFramePlugin.php | 68 + .../Renderer/Rich/ValuePluginInterface.php | 36 + .../ThirdParty/Kint/Renderer/RichRenderer.php | 633 ++ .../Kint/Renderer/Text/ArrayLimitPlugin.php | 44 + .../Kint/Renderer/Text/BlacklistPlugin.php | 44 + .../Kint/Renderer/Text/DepthLimitPlugin.php | 44 + .../Kint/Renderer/Text/EnumPlugin.php | 44 + .../Kint/Renderer/Text/MicrotimePlugin.php | 128 + .../ThirdParty/Kint/Renderer/Text/Plugin.php | 44 + .../Kint/Renderer/Text/RecursionPlugin.php | 44 + .../Kint/Renderer/Text/TracePlugin.php | 111 + .../ThirdParty/Kint/Renderer/TextRenderer.php | 352 + system/ThirdParty/Kint/Utils.php | 275 + system/ThirdParty/Kint/Zval/BlobValue.php | 177 + system/ThirdParty/Kint/Zval/ClosureValue.php | 68 + system/ThirdParty/Kint/Zval/DateTimeValue.php | 53 + system/ThirdParty/Kint/Zval/EnumValue.php | 62 + system/ThirdParty/Kint/Zval/InstanceValue.php | 78 + system/ThirdParty/Kint/Zval/MethodValue.php | 253 + .../ThirdParty/Kint/Zval/ParameterValue.php | 99 + .../Representation/ColorRepresentation.php | 573 ++ .../DocstringRepresentation.php | 73 + .../MicrotimeRepresentation.php | 71 + .../Zval/Representation/Representation.php | 71 + .../Representation/SourceRepresentation.php | 72 + .../SplFileInfoRepresentation.php | 177 + system/ThirdParty/Kint/Zval/ResourceValue.php | 49 + .../Kint/Zval/SimpleXMLElementValue.php | 48 + system/ThirdParty/Kint/Zval/StreamValue.php | 54 + .../ThirdParty/Kint/Zval/ThrowableValue.php | 54 + .../ThirdParty/Kint/Zval/TraceFrameValue.php | 105 + system/ThirdParty/Kint/Zval/TraceValue.php | 45 + system/ThirdParty/Kint/Zval/Value.php | 248 + system/ThirdParty/Kint/init.php | 64 + system/ThirdParty/Kint/init_helpers.php | 86 + .../Kint/resources/compiled/aante-light.css | 1 + .../Kint/resources/compiled/microtime.js | 1 + .../Kint/resources/compiled/original.css | 1 + .../Kint/resources/compiled/plain.css | 1 + .../Kint/resources/compiled/plain.js | 1 + .../Kint/resources/compiled/rich.js | 1 + .../Kint/resources/compiled/shared.js | 1 + .../resources/compiled/solarized-dark.css | 1 + .../Kint/resources/compiled/solarized.css | 1 + system/ThirdParty/PSR/Log/AbstractLogger.php | 128 + .../PSR/Log/InvalidArgumentException.php | 7 + system/ThirdParty/PSR/Log/LICENSE | 19 + system/ThirdParty/PSR/Log/LogLevel.php | 18 + .../PSR/Log/LoggerAwareInterface.php | 18 + .../ThirdParty/PSR/Log/LoggerAwareTrait.php | 26 + system/ThirdParty/PSR/Log/LoggerInterface.php | 125 + system/ThirdParty/PSR/Log/LoggerTrait.php | 142 + system/ThirdParty/PSR/Log/NullLogger.php | 30 + system/Throttle/Throttler.php | 181 + system/Throttle/ThrottlerInterface.php | 44 + system/Typography/Typography.php | 335 + system/Validation/CreditCardRules.php | 282 + .../Exceptions/ValidationException.php | 42 + system/Validation/FileRules.php | 248 + system/Validation/FormatRules.php | 349 + system/Validation/Rules.php | 309 + .../StrictRules/CreditCardRules.php | 54 + system/Validation/StrictRules/FileRules.php | 23 + system/Validation/StrictRules/FormatRules.php | 409 + system/Validation/StrictRules/Rules.php | 279 + system/Validation/Validation.php | 785 ++ system/Validation/ValidationInterface.php | 86 + system/Validation/Views/list.php | 9 + system/Validation/Views/single.php | 1 + system/View/Cell.php | 213 + system/View/Exceptions/ViewException.php | 52 + system/View/Filters.php | 244 + system/View/Parser.php | 719 ++ system/View/Plugins.php | 122 + system/View/RendererInterface.php | 71 + system/View/Table.php | 485 + system/View/View.php | 463 + system/View/ViewDecoratorInterface.php | 26 + system/View/ViewDecoratorTrait.php | 36 + system/bootstrap.php | 122 + system/index.html | 11 + tests/README.md | 113 + .../2020-02-22-222222_example_migration.php | 37 + .../_support/Database/Seeds/ExampleSeeder.php | 41 + tests/_support/Libraries/ConfigReader.php | 17 + tests/_support/Models/ExampleModel.php | 24 + tests/database/ExampleDatabaseTest.php | 45 + tests/session/ExampleSessionTest.php | 18 + tests/unit/HealthTest.php | 50 + writable/.htaccess | 6 + writable/cache/index.html | 11 + writable/logs/index.html | 11 + writable/session/index.html | 11 + writable/uploads/index.html | 11 + 623 files changed, 116333 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 apache_log/error.log create mode 100644 apache_log/other_vhosts_access.log create mode 100644 app/.htaccess create mode 100644 app/Common.php create mode 100644 app/Config/App.php create mode 100644 app/Config/Autoload.php create mode 100644 app/Config/Boot/development.php create mode 100644 app/Config/Boot/production.php create mode 100644 app/Config/Boot/testing.php create mode 100644 app/Config/CURLRequest.php create mode 100644 app/Config/Cache.php create mode 100644 app/Config/Constants.php create mode 100644 app/Config/ContentSecurityPolicy.php create mode 100644 app/Config/Cookie.php create mode 100644 app/Config/Database.php create mode 100644 app/Config/DocTypes.php create mode 100644 app/Config/Email.php create mode 100644 app/Config/Encryption.php create mode 100644 app/Config/Events.php create mode 100644 app/Config/Exceptions.php create mode 100644 app/Config/Feature.php create mode 100644 app/Config/Filters.php create mode 100644 app/Config/ForeignCharacters.php create mode 100644 app/Config/Format.php create mode 100644 app/Config/Generators.php create mode 100644 app/Config/Honeypot.php create mode 100644 app/Config/Images.php create mode 100644 app/Config/Kint.php create mode 100644 app/Config/Logger.php create mode 100644 app/Config/Migrations.php create mode 100644 app/Config/Mimes.php create mode 100644 app/Config/Modules.php create mode 100644 app/Config/Pager.php create mode 100644 app/Config/Paths.php create mode 100644 app/Config/Publisher.php create mode 100644 app/Config/Routes.php create mode 100644 app/Config/Security.php create mode 100644 app/Config/Services.php create mode 100644 app/Config/Toolbar.php create mode 100644 app/Config/UserAgents.php create mode 100644 app/Config/Validation.php create mode 100644 app/Config/View.php create mode 100644 app/Controllers/BaseController.php create mode 100644 app/Controllers/Dash.php create mode 100644 app/Controllers/Home.php create mode 100644 app/Database/Migrations/.gitkeep create mode 100644 app/Database/Seeds/.gitkeep create mode 100644 app/Filters/.gitkeep create mode 100644 app/Helpers/.gitkeep create mode 100644 app/Language/.gitkeep create mode 100644 app/Language/en/Validation.php create mode 100644 app/Libraries/.gitkeep create mode 100644 app/Models/.gitkeep create mode 100644 app/ThirdParty/.gitkeep create mode 100644 app/Views/errors/cli/error_404.php create mode 100644 app/Views/errors/cli/error_exception.php create mode 100644 app/Views/errors/cli/production.php create mode 100644 app/Views/errors/html/debug.css create mode 100644 app/Views/errors/html/debug.js create mode 100644 app/Views/errors/html/error_404.php create mode 100644 app/Views/errors/html/error_exception.php create mode 100644 app/Views/errors/html/production.php create mode 100644 app/Views/view_dash.php create mode 100644 app/Views/welcome_message.php create mode 100644 app/index.html create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 docker-compose.yml create mode 100644 docker/apache/000-default.conf create mode 100644 docker/apache/Dockerfile create mode 100644 env create mode 100644 phpunit.xml.dist create mode 100644 public/.htaccess create mode 100644 public/assets/css/style.bundle.css create mode 100644 public/assets/img/logo-myfit.png create mode 100644 public/assets/plugins/global/plugins.bundle.css create mode 100644 public/favicon.ico create mode 100644 public/index.php create mode 100644 public/robots.txt create mode 100644 spark create mode 100644 system/.htaccess create mode 100644 system/API/ResponseTrait.php create mode 100644 system/Autoloader/Autoloader.php create mode 100644 system/Autoloader/FileLocator.php create mode 100644 system/BaseModel.php create mode 100644 system/CLI/BaseCommand.php create mode 100644 system/CLI/CLI.php create mode 100644 system/CLI/CommandRunner.php create mode 100644 system/CLI/Commands.php create mode 100644 system/CLI/Console.php create mode 100644 system/CLI/Exceptions/CLIException.php create mode 100644 system/CLI/GeneratorTrait.php create mode 100644 system/Cache/CacheFactory.php create mode 100644 system/Cache/CacheInterface.php create mode 100644 system/Cache/Exceptions/CacheException.php create mode 100644 system/Cache/Exceptions/ExceptionInterface.php create mode 100644 system/Cache/Handlers/BaseHandler.php create mode 100644 system/Cache/Handlers/DummyHandler.php create mode 100644 system/Cache/Handlers/FileHandler.php create mode 100644 system/Cache/Handlers/MemcachedHandler.php create mode 100644 system/Cache/Handlers/PredisHandler.php create mode 100644 system/Cache/Handlers/RedisHandler.php create mode 100644 system/Cache/Handlers/WincacheHandler.php create mode 100644 system/CodeIgniter.php create mode 100644 system/Commands/Cache/ClearCache.php create mode 100644 system/Commands/Cache/InfoCache.php create mode 100644 system/Commands/Database/CreateDatabase.php create mode 100644 system/Commands/Database/Migrate.php create mode 100644 system/Commands/Database/MigrateRefresh.php create mode 100644 system/Commands/Database/MigrateRollback.php create mode 100644 system/Commands/Database/MigrateStatus.php create mode 100644 system/Commands/Database/Seed.php create mode 100644 system/Commands/Database/ShowTableInfo.php create mode 100644 system/Commands/Encryption/GenerateKey.php create mode 100644 system/Commands/Generators/CommandGenerator.php create mode 100644 system/Commands/Generators/ConfigGenerator.php create mode 100644 system/Commands/Generators/ControllerGenerator.php create mode 100644 system/Commands/Generators/EntityGenerator.php create mode 100644 system/Commands/Generators/FilterGenerator.php create mode 100644 system/Commands/Generators/MigrateCreate.php create mode 100644 system/Commands/Generators/MigrationGenerator.php create mode 100644 system/Commands/Generators/ModelGenerator.php create mode 100644 system/Commands/Generators/ScaffoldGenerator.php create mode 100644 system/Commands/Generators/SeederGenerator.php create mode 100644 system/Commands/Generators/SessionMigrationGenerator.php create mode 100644 system/Commands/Generators/ValidationGenerator.php create mode 100644 system/Commands/Generators/Views/command.tpl.php create mode 100644 system/Commands/Generators/Views/config.tpl.php create mode 100644 system/Commands/Generators/Views/controller.tpl.php create mode 100644 system/Commands/Generators/Views/entity.tpl.php create mode 100644 system/Commands/Generators/Views/filter.tpl.php create mode 100644 system/Commands/Generators/Views/migration.tpl.php create mode 100644 system/Commands/Generators/Views/model.tpl.php create mode 100644 system/Commands/Generators/Views/seeder.tpl.php create mode 100644 system/Commands/Generators/Views/validation.tpl.php create mode 100644 system/Commands/Help.php create mode 100644 system/Commands/Housekeeping/ClearDebugbar.php create mode 100644 system/Commands/Housekeeping/ClearLogs.php create mode 100644 system/Commands/ListCommands.php create mode 100644 system/Commands/Server/Serve.php create mode 100644 system/Commands/Server/rewrite.php create mode 100644 system/Commands/Utilities/Environment.php create mode 100644 system/Commands/Utilities/Namespaces.php create mode 100644 system/Commands/Utilities/Publish.php create mode 100644 system/Commands/Utilities/Routes.php create mode 100644 system/Commands/Utilities/Routes/AutoRouteCollector.php create mode 100644 system/Commands/Utilities/Routes/AutoRouterImproved/AutoRouteCollector.php create mode 100644 system/Commands/Utilities/Routes/AutoRouterImproved/ControllerMethodReader.php create mode 100644 system/Commands/Utilities/Routes/ControllerFinder.php create mode 100644 system/Commands/Utilities/Routes/ControllerMethodReader.php create mode 100644 system/Commands/Utilities/Routes/FilterCollector.php create mode 100644 system/Commands/Utilities/Routes/FilterFinder.php create mode 100644 system/Commands/Utilities/Routes/SampleURIGenerator.php create mode 100644 system/Common.php create mode 100644 system/ComposerScripts.php create mode 100644 system/Config/AutoloadConfig.php create mode 100644 system/Config/BaseConfig.php create mode 100644 system/Config/BaseService.php create mode 100644 system/Config/Config.php create mode 100644 system/Config/DotEnv.php create mode 100644 system/Config/Factories.php create mode 100644 system/Config/Factory.php create mode 100644 system/Config/ForeignCharacters.php create mode 100644 system/Config/Publisher.php create mode 100644 system/Config/Routes.php create mode 100644 system/Config/Services.php create mode 100644 system/Config/View.php create mode 100644 system/Controller.php create mode 100644 system/Cookie/CloneableCookieInterface.php create mode 100644 system/Cookie/Cookie.php create mode 100644 system/Cookie/CookieInterface.php create mode 100644 system/Cookie/CookieStore.php create mode 100644 system/Cookie/Exceptions/CookieException.php create mode 100644 system/Database/BaseBuilder.php create mode 100644 system/Database/BaseConnection.php create mode 100644 system/Database/BasePreparedQuery.php create mode 100644 system/Database/BaseResult.php create mode 100644 system/Database/BaseUtils.php create mode 100644 system/Database/Config.php create mode 100644 system/Database/ConnectionInterface.php create mode 100644 system/Database/Database.php create mode 100644 system/Database/Exceptions/DataException.php create mode 100644 system/Database/Exceptions/DatabaseException.php create mode 100644 system/Database/Exceptions/ExceptionInterface.php create mode 100644 system/Database/Forge.php create mode 100644 system/Database/Migration.php create mode 100644 system/Database/MigrationRunner.php create mode 100644 system/Database/ModelFactory.php create mode 100644 system/Database/MySQLi/Builder.php create mode 100644 system/Database/MySQLi/Connection.php create mode 100644 system/Database/MySQLi/Forge.php create mode 100644 system/Database/MySQLi/PreparedQuery.php create mode 100644 system/Database/MySQLi/Result.php create mode 100644 system/Database/MySQLi/Utils.php create mode 100644 system/Database/OCI8/Builder.php create mode 100644 system/Database/OCI8/Connection.php create mode 100644 system/Database/OCI8/Forge.php create mode 100644 system/Database/OCI8/PreparedQuery.php create mode 100644 system/Database/OCI8/Result.php create mode 100644 system/Database/OCI8/Utils.php create mode 100644 system/Database/Postgre/Builder.php create mode 100644 system/Database/Postgre/Connection.php create mode 100644 system/Database/Postgre/Forge.php create mode 100644 system/Database/Postgre/PreparedQuery.php create mode 100644 system/Database/Postgre/Result.php create mode 100644 system/Database/Postgre/Utils.php create mode 100644 system/Database/PreparedQueryInterface.php create mode 100644 system/Database/Query.php create mode 100644 system/Database/QueryInterface.php create mode 100644 system/Database/RawSql.php create mode 100644 system/Database/ResultInterface.php create mode 100644 system/Database/SQLSRV/Builder.php create mode 100644 system/Database/SQLSRV/Connection.php create mode 100644 system/Database/SQLSRV/Forge.php create mode 100644 system/Database/SQLSRV/PreparedQuery.php create mode 100644 system/Database/SQLSRV/Result.php create mode 100644 system/Database/SQLSRV/Utils.php create mode 100644 system/Database/SQLite3/Builder.php create mode 100644 system/Database/SQLite3/Connection.php create mode 100644 system/Database/SQLite3/Forge.php create mode 100644 system/Database/SQLite3/PreparedQuery.php create mode 100644 system/Database/SQLite3/Result.php create mode 100644 system/Database/SQLite3/Table.php create mode 100644 system/Database/SQLite3/Utils.php create mode 100644 system/Database/Seeder.php create mode 100644 system/Debug/Exceptions.php create mode 100644 system/Debug/Iterator.php create mode 100644 system/Debug/Timer.php create mode 100644 system/Debug/Toolbar.php create mode 100644 system/Debug/Toolbar/Collectors/BaseCollector.php create mode 100644 system/Debug/Toolbar/Collectors/Config.php create mode 100644 system/Debug/Toolbar/Collectors/Database.php create mode 100644 system/Debug/Toolbar/Collectors/Events.php create mode 100644 system/Debug/Toolbar/Collectors/Files.php create mode 100644 system/Debug/Toolbar/Collectors/History.php create mode 100644 system/Debug/Toolbar/Collectors/Logs.php create mode 100644 system/Debug/Toolbar/Collectors/Routes.php create mode 100644 system/Debug/Toolbar/Collectors/Timers.php create mode 100644 system/Debug/Toolbar/Collectors/Views.php create mode 100644 system/Debug/Toolbar/Views/_config.tpl create mode 100644 system/Debug/Toolbar/Views/_database.tpl create mode 100644 system/Debug/Toolbar/Views/_events.tpl create mode 100644 system/Debug/Toolbar/Views/_files.tpl create mode 100644 system/Debug/Toolbar/Views/_history.tpl create mode 100644 system/Debug/Toolbar/Views/_logs.tpl create mode 100644 system/Debug/Toolbar/Views/_routes.tpl create mode 100644 system/Debug/Toolbar/Views/toolbar.css create mode 100644 system/Debug/Toolbar/Views/toolbar.js create mode 100644 system/Debug/Toolbar/Views/toolbar.tpl.php create mode 100644 system/Debug/Toolbar/Views/toolbarloader.js create mode 100644 system/Email/Email.php create mode 100644 system/Encryption/EncrypterInterface.php create mode 100644 system/Encryption/Encryption.php create mode 100644 system/Encryption/Exceptions/EncryptionException.php create mode 100644 system/Encryption/Handlers/BaseHandler.php create mode 100644 system/Encryption/Handlers/OpenSSLHandler.php create mode 100644 system/Encryption/Handlers/SodiumHandler.php create mode 100644 system/Entity.php create mode 100644 system/Entity/Cast/ArrayCast.php create mode 100644 system/Entity/Cast/BaseCast.php create mode 100644 system/Entity/Cast/BooleanCast.php create mode 100644 system/Entity/Cast/CSVCast.php create mode 100644 system/Entity/Cast/CastInterface.php create mode 100644 system/Entity/Cast/DatetimeCast.php create mode 100644 system/Entity/Cast/FloatCast.php create mode 100644 system/Entity/Cast/IntegerCast.php create mode 100644 system/Entity/Cast/JsonCast.php create mode 100644 system/Entity/Cast/ObjectCast.php create mode 100644 system/Entity/Cast/StringCast.php create mode 100644 system/Entity/Cast/TimestampCast.php create mode 100644 system/Entity/Cast/URICast.php create mode 100644 system/Entity/Entity.php create mode 100644 system/Entity/Exceptions/CastException.php create mode 100644 system/Events/Events.php create mode 100644 system/Exceptions/AlertError.php create mode 100644 system/Exceptions/CastException.php create mode 100644 system/Exceptions/ConfigException.php create mode 100644 system/Exceptions/CriticalError.php create mode 100644 system/Exceptions/DebugTraceableTrait.php create mode 100644 system/Exceptions/DownloadException.php create mode 100644 system/Exceptions/EmergencyError.php create mode 100644 system/Exceptions/ExceptionInterface.php create mode 100644 system/Exceptions/FrameworkException.php create mode 100644 system/Exceptions/ModelException.php create mode 100644 system/Exceptions/PageNotFoundException.php create mode 100644 system/Exceptions/TestException.php create mode 100644 system/Files/Exceptions/FileException.php create mode 100644 system/Files/Exceptions/FileNotFoundException.php create mode 100644 system/Files/File.php create mode 100644 system/Files/FileCollection.php create mode 100644 system/Filters/CSRF.php create mode 100644 system/Filters/DebugToolbar.php create mode 100644 system/Filters/Exceptions/FilterException.php create mode 100644 system/Filters/FilterInterface.php create mode 100644 system/Filters/Filters.php create mode 100644 system/Filters/Honeypot.php create mode 100644 system/Filters/InvalidChars.php create mode 100644 system/Filters/SecureHeaders.php create mode 100644 system/Format/Exceptions/FormatException.php create mode 100644 system/Format/Format.php create mode 100644 system/Format/FormatterInterface.php create mode 100644 system/Format/JSONFormatter.php create mode 100644 system/Format/XMLFormatter.php create mode 100644 system/HTTP/CLIRequest.php create mode 100644 system/HTTP/CURLRequest.php create mode 100644 system/HTTP/ContentSecurityPolicy.php create mode 100644 system/HTTP/DownloadResponse.php create mode 100644 system/HTTP/Exceptions/HTTPException.php create mode 100644 system/HTTP/Files/FileCollection.php create mode 100644 system/HTTP/Files/UploadedFile.php create mode 100644 system/HTTP/Files/UploadedFileInterface.php create mode 100644 system/HTTP/Header.php create mode 100644 system/HTTP/IncomingRequest.php create mode 100644 system/HTTP/Message.php create mode 100644 system/HTTP/MessageInterface.php create mode 100644 system/HTTP/MessageTrait.php create mode 100644 system/HTTP/Negotiate.php create mode 100644 system/HTTP/RedirectResponse.php create mode 100644 system/HTTP/Request.php create mode 100644 system/HTTP/RequestInterface.php create mode 100644 system/HTTP/RequestTrait.php create mode 100644 system/HTTP/Response.php create mode 100644 system/HTTP/ResponseInterface.php create mode 100644 system/HTTP/ResponseTrait.php create mode 100644 system/HTTP/URI.php create mode 100644 system/HTTP/UserAgent.php create mode 100644 system/Helpers/array_helper.php create mode 100644 system/Helpers/cookie_helper.php create mode 100644 system/Helpers/date_helper.php create mode 100644 system/Helpers/filesystem_helper.php create mode 100644 system/Helpers/form_helper.php create mode 100644 system/Helpers/html_helper.php create mode 100644 system/Helpers/inflector_helper.php create mode 100644 system/Helpers/number_helper.php create mode 100644 system/Helpers/security_helper.php create mode 100644 system/Helpers/test_helper.php create mode 100644 system/Helpers/text_helper.php create mode 100644 system/Helpers/url_helper.php create mode 100644 system/Helpers/xml_helper.php create mode 100644 system/Honeypot/Exceptions/HoneypotException.php create mode 100644 system/Honeypot/Honeypot.php create mode 100644 system/I18n/Exceptions/I18nException.php create mode 100644 system/I18n/Time.php create mode 100644 system/I18n/TimeDifference.php create mode 100644 system/Images/Exceptions/ImageException.php create mode 100644 system/Images/Handlers/BaseHandler.php create mode 100644 system/Images/Handlers/GDHandler.php create mode 100644 system/Images/Handlers/ImageMagickHandler.php create mode 100644 system/Images/Image.php create mode 100644 system/Images/ImageHandlerInterface.php create mode 100644 system/Language/Language.php create mode 100644 system/Language/en/CLI.php create mode 100644 system/Language/en/Cache.php create mode 100644 system/Language/en/Cast.php create mode 100644 system/Language/en/Cookie.php create mode 100644 system/Language/en/Core.php create mode 100644 system/Language/en/Database.php create mode 100644 system/Language/en/Email.php create mode 100644 system/Language/en/Encryption.php create mode 100644 system/Language/en/Fabricator.php create mode 100644 system/Language/en/Files.php create mode 100644 system/Language/en/Filters.php create mode 100644 system/Language/en/Format.php create mode 100644 system/Language/en/HTTP.php create mode 100644 system/Language/en/Images.php create mode 100644 system/Language/en/Log.php create mode 100644 system/Language/en/Migrations.php create mode 100644 system/Language/en/Number.php create mode 100644 system/Language/en/Pager.php create mode 100644 system/Language/en/Publisher.php create mode 100644 system/Language/en/RESTful.php create mode 100644 system/Language/en/Router.php create mode 100644 system/Language/en/Security.php create mode 100644 system/Language/en/Session.php create mode 100644 system/Language/en/Test.php create mode 100644 system/Language/en/Time.php create mode 100644 system/Language/en/Validation.php create mode 100644 system/Language/en/View.php create mode 100644 system/Log/Exceptions/LogException.php create mode 100644 system/Log/Handlers/BaseHandler.php create mode 100644 system/Log/Handlers/ChromeLoggerHandler.php create mode 100644 system/Log/Handlers/ErrorlogHandler.php create mode 100644 system/Log/Handlers/FileHandler.php create mode 100644 system/Log/Handlers/HandlerInterface.php create mode 100644 system/Log/Logger.php create mode 100644 system/Model.php create mode 100644 system/Modules/Modules.php create mode 100644 system/Pager/Exceptions/PagerException.php create mode 100644 system/Pager/Pager.php create mode 100644 system/Pager/PagerInterface.php create mode 100644 system/Pager/PagerRenderer.php create mode 100644 system/Pager/Views/default_full.php create mode 100644 system/Pager/Views/default_head.php create mode 100644 system/Pager/Views/default_simple.php create mode 100644 system/Publisher/Exceptions/PublisherException.php create mode 100644 system/Publisher/Publisher.php create mode 100644 system/RESTful/BaseResource.php create mode 100644 system/RESTful/ResourceController.php create mode 100644 system/RESTful/ResourcePresenter.php create mode 100644 system/Router/AutoRouter.php create mode 100644 system/Router/AutoRouterImproved.php create mode 100644 system/Router/AutoRouterInterface.php create mode 100644 system/Router/Exceptions/RedirectException.php create mode 100644 system/Router/Exceptions/RouterException.php create mode 100644 system/Router/RouteCollection.php create mode 100644 system/Router/RouteCollectionInterface.php create mode 100644 system/Router/Router.php create mode 100644 system/Router/RouterInterface.php create mode 100644 system/Security/Exceptions/SecurityException.php create mode 100644 system/Security/Security.php create mode 100644 system/Security/SecurityInterface.php create mode 100644 system/Session/Exceptions/SessionException.php create mode 100644 system/Session/Handlers/ArrayHandler.php create mode 100644 system/Session/Handlers/BaseHandler.php create mode 100644 system/Session/Handlers/Database/MySQLiHandler.php create mode 100644 system/Session/Handlers/Database/PostgreHandler.php create mode 100644 system/Session/Handlers/DatabaseHandler.php create mode 100644 system/Session/Handlers/FileHandler.php create mode 100644 system/Session/Handlers/MemcachedHandler.php create mode 100644 system/Session/Handlers/RedisHandler.php create mode 100644 system/Session/Session.php create mode 100644 system/Session/SessionInterface.php create mode 100644 system/Test/CIDatabaseTestCase.php create mode 100644 system/Test/CIUnitTestCase.php create mode 100644 system/Test/ConfigFromArrayTrait.php create mode 100644 system/Test/Constraints/SeeInDatabase.php create mode 100644 system/Test/ControllerResponse.php create mode 100644 system/Test/ControllerTestTrait.php create mode 100644 system/Test/ControllerTester.php create mode 100644 system/Test/DOMParser.php create mode 100644 system/Test/DatabaseTestTrait.php create mode 100644 system/Test/Fabricator.php create mode 100644 system/Test/FeatureResponse.php create mode 100644 system/Test/FeatureTestCase.php create mode 100644 system/Test/FeatureTestTrait.php create mode 100644 system/Test/FilterTestTrait.php create mode 100644 system/Test/Filters/CITestStreamFilter.php create mode 100644 system/Test/Interfaces/FabricatorModel.php create mode 100644 system/Test/Mock/MockAppConfig.php create mode 100644 system/Test/Mock/MockAutoload.php create mode 100644 system/Test/Mock/MockBuilder.php create mode 100644 system/Test/Mock/MockCLIConfig.php create mode 100644 system/Test/Mock/MockCURLRequest.php create mode 100644 system/Test/Mock/MockCache.php create mode 100644 system/Test/Mock/MockCodeIgniter.php create mode 100644 system/Test/Mock/MockCommon.php create mode 100644 system/Test/Mock/MockConnection.php create mode 100644 system/Test/Mock/MockEmail.php create mode 100644 system/Test/Mock/MockEvents.php create mode 100644 system/Test/Mock/MockFileLogger.php create mode 100644 system/Test/Mock/MockIncomingRequest.php create mode 100644 system/Test/Mock/MockLanguage.php create mode 100644 system/Test/Mock/MockLogger.php create mode 100644 system/Test/Mock/MockQuery.php create mode 100644 system/Test/Mock/MockResourceController.php create mode 100644 system/Test/Mock/MockResourcePresenter.php create mode 100644 system/Test/Mock/MockResponse.php create mode 100644 system/Test/Mock/MockResult.php create mode 100644 system/Test/Mock/MockSecurity.php create mode 100644 system/Test/Mock/MockSecurityConfig.php create mode 100644 system/Test/Mock/MockServices.php create mode 100644 system/Test/Mock/MockSession.php create mode 100644 system/Test/Mock/MockTable.php create mode 100644 system/Test/ReflectionHelper.php create mode 100644 system/Test/TestLogger.php create mode 100644 system/Test/TestResponse.php create mode 100644 system/Test/bootstrap.php create mode 100644 system/ThirdParty/Escaper/Escaper.php create mode 100644 system/ThirdParty/Escaper/Exception/ExceptionInterface.php create mode 100644 system/ThirdParty/Escaper/Exception/InvalidArgumentException.php create mode 100644 system/ThirdParty/Escaper/Exception/RuntimeException.php create mode 100644 system/ThirdParty/Escaper/LICENSE.md create mode 100644 system/ThirdParty/Kint/CallFinder.php create mode 100644 system/ThirdParty/Kint/Kint.php create mode 100644 system/ThirdParty/Kint/LICENSE create mode 100644 system/ThirdParty/Kint/Parser/ArrayLimitPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ArrayObjectPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/Base64Plugin.php create mode 100644 system/ThirdParty/Kint/Parser/BinaryPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/BlacklistPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ClassMethodsPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ClassStaticsPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ClosurePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ColorPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/DOMDocumentPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/DateTimePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/EnumPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/FsPathPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/IteratorPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/JsonPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/MicrotimePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/MysqliPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/Parser.php create mode 100644 system/ThirdParty/Kint/Parser/Plugin.php create mode 100644 system/ThirdParty/Kint/Parser/ProxyPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/SerializePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/SimpleXMLElementPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/SplFileInfoPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/SplObjectStoragePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/StreamPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/TablePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ThrowablePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/TimestampPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/ToStringPlugin.php create mode 100644 system/ThirdParty/Kint/Parser/TracePlugin.php create mode 100644 system/ThirdParty/Kint/Parser/XmlPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/CliRenderer.php create mode 100644 system/ThirdParty/Kint/Renderer/PlainRenderer.php create mode 100644 system/ThirdParty/Kint/Renderer/Renderer.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/ArrayLimitPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/BinaryPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/BlacklistPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/CallablePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/ClosurePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/ColorPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/DepthLimitPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/DocstringPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/MicrotimePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/Plugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/PluginInterface.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/RecursionPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/SimpleXMLElementPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/SourcePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/TabPluginInterface.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/TablePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/TimestampPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/TraceFramePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Rich/ValuePluginInterface.php create mode 100644 system/ThirdParty/Kint/Renderer/RichRenderer.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/ArrayLimitPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/BlacklistPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/DepthLimitPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/EnumPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/MicrotimePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/Plugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/RecursionPlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/Text/TracePlugin.php create mode 100644 system/ThirdParty/Kint/Renderer/TextRenderer.php create mode 100644 system/ThirdParty/Kint/Utils.php create mode 100644 system/ThirdParty/Kint/Zval/BlobValue.php create mode 100644 system/ThirdParty/Kint/Zval/ClosureValue.php create mode 100644 system/ThirdParty/Kint/Zval/DateTimeValue.php create mode 100644 system/ThirdParty/Kint/Zval/EnumValue.php create mode 100644 system/ThirdParty/Kint/Zval/InstanceValue.php create mode 100644 system/ThirdParty/Kint/Zval/MethodValue.php create mode 100644 system/ThirdParty/Kint/Zval/ParameterValue.php create mode 100644 system/ThirdParty/Kint/Zval/Representation/ColorRepresentation.php create mode 100644 system/ThirdParty/Kint/Zval/Representation/DocstringRepresentation.php create mode 100644 system/ThirdParty/Kint/Zval/Representation/MicrotimeRepresentation.php create mode 100644 system/ThirdParty/Kint/Zval/Representation/Representation.php create mode 100644 system/ThirdParty/Kint/Zval/Representation/SourceRepresentation.php create mode 100644 system/ThirdParty/Kint/Zval/Representation/SplFileInfoRepresentation.php create mode 100644 system/ThirdParty/Kint/Zval/ResourceValue.php create mode 100644 system/ThirdParty/Kint/Zval/SimpleXMLElementValue.php create mode 100644 system/ThirdParty/Kint/Zval/StreamValue.php create mode 100644 system/ThirdParty/Kint/Zval/ThrowableValue.php create mode 100644 system/ThirdParty/Kint/Zval/TraceFrameValue.php create mode 100644 system/ThirdParty/Kint/Zval/TraceValue.php create mode 100644 system/ThirdParty/Kint/Zval/Value.php create mode 100644 system/ThirdParty/Kint/init.php create mode 100644 system/ThirdParty/Kint/init_helpers.php create mode 100644 system/ThirdParty/Kint/resources/compiled/aante-light.css create mode 100644 system/ThirdParty/Kint/resources/compiled/microtime.js create mode 100644 system/ThirdParty/Kint/resources/compiled/original.css create mode 100644 system/ThirdParty/Kint/resources/compiled/plain.css create mode 100644 system/ThirdParty/Kint/resources/compiled/plain.js create mode 100644 system/ThirdParty/Kint/resources/compiled/rich.js create mode 100644 system/ThirdParty/Kint/resources/compiled/shared.js create mode 100644 system/ThirdParty/Kint/resources/compiled/solarized-dark.css create mode 100644 system/ThirdParty/Kint/resources/compiled/solarized.css create mode 100644 system/ThirdParty/PSR/Log/AbstractLogger.php create mode 100644 system/ThirdParty/PSR/Log/InvalidArgumentException.php create mode 100644 system/ThirdParty/PSR/Log/LICENSE create mode 100644 system/ThirdParty/PSR/Log/LogLevel.php create mode 100644 system/ThirdParty/PSR/Log/LoggerAwareInterface.php create mode 100644 system/ThirdParty/PSR/Log/LoggerAwareTrait.php create mode 100644 system/ThirdParty/PSR/Log/LoggerInterface.php create mode 100644 system/ThirdParty/PSR/Log/LoggerTrait.php create mode 100644 system/ThirdParty/PSR/Log/NullLogger.php create mode 100644 system/Throttle/Throttler.php create mode 100644 system/Throttle/ThrottlerInterface.php create mode 100644 system/Typography/Typography.php create mode 100644 system/Validation/CreditCardRules.php create mode 100644 system/Validation/Exceptions/ValidationException.php create mode 100644 system/Validation/FileRules.php create mode 100644 system/Validation/FormatRules.php create mode 100644 system/Validation/Rules.php create mode 100644 system/Validation/StrictRules/CreditCardRules.php create mode 100644 system/Validation/StrictRules/FileRules.php create mode 100644 system/Validation/StrictRules/FormatRules.php create mode 100644 system/Validation/StrictRules/Rules.php create mode 100644 system/Validation/Validation.php create mode 100644 system/Validation/ValidationInterface.php create mode 100644 system/Validation/Views/list.php create mode 100644 system/Validation/Views/single.php create mode 100644 system/View/Cell.php create mode 100644 system/View/Exceptions/ViewException.php create mode 100644 system/View/Filters.php create mode 100644 system/View/Parser.php create mode 100644 system/View/Plugins.php create mode 100644 system/View/RendererInterface.php create mode 100644 system/View/Table.php create mode 100644 system/View/View.php create mode 100644 system/View/ViewDecoratorInterface.php create mode 100644 system/View/ViewDecoratorTrait.php create mode 100644 system/bootstrap.php create mode 100644 system/index.html create mode 100644 tests/README.md create mode 100644 tests/_support/Database/Migrations/2020-02-22-222222_example_migration.php create mode 100644 tests/_support/Database/Seeds/ExampleSeeder.php create mode 100644 tests/_support/Libraries/ConfigReader.php create mode 100644 tests/_support/Models/ExampleModel.php create mode 100644 tests/database/ExampleDatabaseTest.php create mode 100644 tests/session/ExampleSessionTest.php create mode 100644 tests/unit/HealthTest.php create mode 100644 writable/.htaccess create mode 100644 writable/cache/index.html create mode 100644 writable/logs/index.html create mode 100644 writable/session/index.html create mode 100644 writable/uploads/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11abea6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,127 @@ +#------------------------- +# Operating Specific Junk Files +#------------------------- + +# OS X +.DS_Store +.AppleDouble +.LSOverride + +# OS X Thumbnails +._* + +# Windows image file caches +Thumbs.db +ehthumbs.db +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# Linux +*~ + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +#------------------------- +# Environment Files +#------------------------- +# These should never be under version control, +# as it poses a security risk. +.env +.vagrant +Vagrantfile + +#------------------------- +# Temporary Files +#------------------------- +writable/cache/* +!writable/cache/index.html + +writable/logs/* +!writable/logs/index.html + +writable/session/* +!writable/session/index.html + +writable/uploads/* +!writable/uploads/index.html + +writable/debugbar/* + +php_errors.log + +#------------------------- +# User Guide Temp Files +#------------------------- +user_guide_src/build/* +user_guide_src/cilexer/build/* +user_guide_src/cilexer/dist/* +user_guide_src/cilexer/pycilexer.egg-info/* + +#------------------------- +# Test Files +#------------------------- +tests/coverage* + +# Don't save phpunit under version control. +phpunit + +#------------------------- +# Composer +#------------------------- +vendor/ + +#------------------------- +# IDE / Development Files +#------------------------- + +# Modules Testing +_modules/* + +# phpenv local config +.php-version + +# Jetbrains editors (PHPStorm, etc) +.idea/ +*.iml + +# Netbeans +nbproject/ +build/ +nbbuild/ +dist/ +nbdist/ +nbactions.xml +nb-configuration.xml +.nb-gradle/ + +# Sublime Text +*.tmlanguage.cache +*.tmPreferences.cache +*.stTheme.cache +*.sublime-workspace +*.sublime-project +.phpintel +/api/ + +# Visual Studio Code +.vscode/ + +/results/ +/phpunit*.xml +/.phpunit.*.cache + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3142503 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2014-2019 British Columbia Institute of Technology +Copyright (c) 2019-2022 CodeIgniter Foundation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ebc758e --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# CodeIgniter 4 Framework + +## What is CodeIgniter? + +CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. +More information can be found at the [official site](http://codeigniter.com). + +This repository holds the distributable version of the framework, +including the user guide. It has been built from the +[development repository](https://github.com/codeigniter4/CodeIgniter4). + +More information about the plans for version 4 can be found in [the announcement](http://forum.codeigniter.com/thread-62615.html) on the forums. + +The user guide corresponding to this version of the framework can be found +[here](https://codeigniter4.github.io/userguide/). + + +## Important Change with index.php + +`index.php` is no longer in the root of the project! It has been moved inside the *public* folder, +for better security and separation of components. + +This means that you should configure your web server to "point" to your project's *public* folder, and +not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter *public/...*, as the rest of your logic and the +framework are exposed. + +**Please** read the user guide for a better explanation of how CI4 works! + +## Repository Management + +We use GitHub issues, in our main repository, to track **BUGS** and to track approved **DEVELOPMENT** work packages. +We use our [forum](http://forum.codeigniter.com) to provide SUPPORT and to discuss +FEATURE REQUESTS. + +This repository is a "distribution" one, built by our release preparation script. +Problems with it can be raised on our forum, or as issues in the main repository. + +## Contributing + +We welcome contributions from the community. + +Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/CodeIgniter4/blob/develop/CONTRIBUTING.md) section in the development repository. + +## Server Requirements + +PHP version 7.4 or higher is required, with the following extensions installed: + +- [intl](http://php.net/manual/en/intl.requirements.php) +- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library + +Additionally, make sure that the following extensions are enabled in your PHP: + +- json (enabled by default - don't turn it off) +- [mbstring](http://php.net/manual/en/mbstring.installation.php) +- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) +- xml (enabled by default - don't turn it off) diff --git a/apache_log/error.log b/apache_log/error.log new file mode 100644 index 0000000..d741653 --- /dev/null +++ b/apache_log/error.log @@ -0,0 +1,2 @@ +[Thu Jan 19 03:03:52.822499 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/7.4.33 configured -- resuming normal operations +[Thu Jan 19 03:03:52.823732 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' diff --git a/apache_log/other_vhosts_access.log b/apache_log/other_vhosts_access.log new file mode 100644 index 0000000..2a117a8 --- /dev/null +++ b/apache_log/other_vhosts_access.log @@ -0,0 +1,53 @@ +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:18 +0000] "GET / HTTP/1.1" 200 2083 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:34 +0000] "GET /assets/plugins/global/plugins.bundle.css HTTP/1.1" 200 75336 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:34 +0000] "GET /assets/css/style.bundle.css HTTP/1.1" 200 104280 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:35 +0000] "GET /assets/plugins/global/plugins.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:35 +0000] "GET /assets/js/scripts.bundle.js HTTP/1.1" 404 282 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:41 +0000] "GET /assets/img/logo-automed.png HTTP/1.1" 200 46136 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:35 +0000] "GET /assets/js/custom/authentication/sign-in/general.js HTTP/1.1" 404 281 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:44 +0000] "GET /assets/img/favicon.ico HTTP/1.1" 200 15708 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:04:44 +0000] "GET /assets/media/illustrations/dozzy-1/13.png HTTP/1.1" 404 281 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:06:56 +0000] "GET / HTTP/1.1" 200 2092 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:07 +0000] "GET /assets/plugins/global/plugins.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:07 +0000] "GET /assets/media/illustrations/dozzy-1/13.png HTTP/1.1" 404 282 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:07 +0000] "GET /assets/js/custom/authentication/sign-in/general.js HTTP/1.1" 404 282 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:07 +0000] "GET /assets/js/scripts.bundle.js HTTP/1.1" 404 282 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:20 +0000] "POST /startlogin HTTP/1.1" 200 2092 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:31 +0000] "GET /assets/js/custom/authentication/sign-in/general.js HTTP/1.1" 404 282 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:30 +0000] "GET /assets/plugins/global/plugins.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:30 +0000] "GET /assets/js/scripts.bundle.js HTTP/1.1" 404 282 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:07:31 +0000] "GET /assets/media/illustrations/dozzy-1/13.png HTTP/1.1" 404 282 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:24 +0000] "POST /startlogin HTTP/1.1" 200 2093 "http://localhost:7015/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:48 +0000] "GET /assets/img/logo-myfit.png HTTP/1.1" 200 64455 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:49 +0000] "GET /assets/js/scripts.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:49 +0000] "GET /assets/media/illustrations/dozzy-1/13.png HTTP/1.1" 404 282 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:49 +0000] "GET /assets/js/custom/authentication/sign-in/general.js HTTP/1.1" 404 282 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:48 +0000] "GET /assets/plugins/global/plugins.bundle.js HTTP/1.1" 404 282 "http://localhost:7015/startlogin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:09:59 +0000] "GET /dash HTTP/1.1" 200 54027 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:27 +0000] "GET /assets/media/flags/united-states.svg HTTP/1.1" 404 282 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:26 +0000] "GET /assets/plugins/custom/datatables/datatables.bundle.css HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:27 +0000] "GET /assets/media/avatars/300-1.jpg HTTP/1.1" 404 282 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:27 +0000] "GET /assets/media/flags/spain.svg HTTP/1.1" 404 282 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:26 +0000] "GET /assets/plugins/custom/vis-timeline/vis-timeline.bundle.css HTTP/1.1" 404 282 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:27 +0000] "GET /assets/media/flags/germany.svg HTTP/1.1" 404 282 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:35 +0000] "GET /assets/plugins/global/plugins.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:35 +0000] "GET /assets/js/scripts.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:35 +0000] "GET /assets/plugins/custom/datatables/datatables.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:36 +0000] "GET /assets/plugins/custom/vis-timeline/vis-timeline.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:37 +0000] "GET /assets/js/widgets.bundle.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:45 +0000] "GET /assets/media/avatars/300-2.jpg HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:39 +0000] "GET /assets/plugins/global/fonts/fonticons/fonticons.ttf?a04bd76b90d1c05409ac628cf41d10c5 HTTP/1.1" 404 281 "http://localhost:7015/assets/plugins/global/plugins.bundle.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:45 +0000] "GET /assets/media/avatars/300-12.jpg HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:48 +0000] "GET /assets/media/stock/ecommerce/215.gif HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:50 +0000] "GET /assets/media/avatars/300-11.jpg HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:10:49 +0000] "GET /assets/media/svg/illustrations/easy/2.svg HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:00 +0000] "GET /assets/plugins/custom/datatables/datatables.bundle.css HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:00 +0000] "GET /assets/plugins/custom/vis-timeline/vis-timeline.bundle.css HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:03 +0000] "GET /assets/plugins/global/fonts/fonticons/fonticons.woff?a04bd76b90d1c05409ac628cf41d10c5 HTTP/1.1" 404 281 "http://localhost:7015/assets/plugins/global/plugins.bundle.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:07 +0000] "GET /assets/media/stock/ecommerce/209.gif HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:07 +0000] "GET /assets/media/stock/ecommerce/210.gif HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:10 +0000] "GET /assets/media/stock/ecommerce/214.gif HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:16 +0000] "GET /assets/js/custom/widgets.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:16 +0000] "GET /assets/js/custom/apps/chat/chat.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:20 +0000] "GET /assets/js/custom/utilities/modals/users-search.js HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" +blogdata.chiefsoft.com:80 192.168.112.1 - - [19/Jan/2023:03:11:20 +0000] "GET /assets/media/flags/japan.svg HTTP/1.1" 404 281 "http://localhost:7015/dash" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" diff --git a/app/.htaccess b/app/.htaccess new file mode 100644 index 0000000..f24db0a --- /dev/null +++ b/app/.htaccess @@ -0,0 +1,6 @@ + + Require all denied + + + Deny from all + diff --git a/app/Common.php b/app/Common.php new file mode 100644 index 0000000..a74d46d --- /dev/null +++ b/app/Common.php @@ -0,0 +1,15 @@ + SYSTEMPATH, + * 'App' => APPPATH + * ]; + *``` + * + * @var array + */ + public $psr4 = [ + APP_NAMESPACE => APPPATH, // For custom app namespace + 'Config' => APPPATH . 'Config', + ]; + + /** + * ------------------------------------------------------------------- + * Class Map + * ------------------------------------------------------------------- + * The class map provides a map of class names and their exact + * location on the drive. Classes loaded in this manner will have + * slightly faster performance because they will not have to be + * searched for within one or more directories as they would if they + * were being autoloaded through a namespace. + * + * Prototype: + *``` + * $classmap = [ + * 'MyClass' => '/path/to/class/file.php' + * ]; + *``` + * + * @var array + */ + public $classmap = []; + + /** + * ------------------------------------------------------------------- + * Files + * ------------------------------------------------------------------- + * The files array provides a list of paths to __non-class__ files + * that will be autoloaded. This can be useful for bootstrap operations + * or for loading functions. + * + * Prototype: + * ``` + * $files = [ + * '/path/to/my/file.php', + * ]; + * ``` + * + * @var array + */ + public $files = []; +} diff --git a/app/Config/Boot/development.php b/app/Config/Boot/development.php new file mode 100644 index 0000000..05a8612 --- /dev/null +++ b/app/Config/Boot/development.php @@ -0,0 +1,32 @@ + + */ + public $file = [ + 'storePath' => WRITEPATH . 'cache/', + 'mode' => 0640, + ]; + + /** + * ------------------------------------------------------------------------- + * Memcached settings + * ------------------------------------------------------------------------- + * Your Memcached servers can be specified below, if you are using + * the Memcached drivers. + * + * @see https://codeigniter.com/user_guide/libraries/caching.html#memcached + * + * @var array + */ + public $memcached = [ + 'host' => '127.0.0.1', + 'port' => 11211, + 'weight' => 1, + 'raw' => false, + ]; + + /** + * ------------------------------------------------------------------------- + * Redis settings + * ------------------------------------------------------------------------- + * Your Redis server can be specified below, if you are using + * the Redis or Predis drivers. + * + * @var array + */ + public $redis = [ + 'host' => '127.0.0.1', + 'password' => null, + 'port' => 6379, + 'timeout' => 0, + 'database' => 0, + ]; + + /** + * -------------------------------------------------------------------------- + * Available Cache Handlers + * -------------------------------------------------------------------------- + * + * This is an array of cache engine alias' and class names. Only engines + * that are listed here are allowed to be used. + * + * @var array + */ + public $validHandlers = [ + 'dummy' => DummyHandler::class, + 'file' => FileHandler::class, + 'memcached' => MemcachedHandler::class, + 'predis' => PredisHandler::class, + 'redis' => RedisHandler::class, + 'wincache' => WincacheHandler::class, + ]; +} diff --git a/app/Config/Constants.php b/app/Config/Constants.php new file mode 100644 index 0000000..0c1b534 --- /dev/null +++ b/app/Config/Constants.php @@ -0,0 +1,94 @@ +` element. + * + * Will default to self if not overridden + * + * @var string|string[]|null + */ + public $baseURI; + + /** + * Lists the URLs for workers and embedded frame contents + * + * @var string|string[] + */ + public $childSrc = 'self'; + + /** + * Limits the origins that you can connect to (via XHR, + * WebSockets, and EventSource). + * + * @var string|string[] + */ + public $connectSrc = 'self'; + + /** + * Specifies the origins that can serve web fonts. + * + * @var string|string[] + */ + public $fontSrc; + + /** + * Lists valid endpoints for submission from `
` tags. + * + * @var string|string[] + */ + public $formAction = 'self'; + + /** + * Specifies the sources that can embed the current page. + * This directive applies to ``, `