From 6ddfa92eed6995df24ea8268ea1105632964e493 Mon Sep 17 00:00:00 2001 From: "DESKTOP-DH6BVPV\\chiefsoft" Date: Sun, 20 Nov 2022 09:46:33 -0500 Subject: [PATCH] first commit --- .env | 128 + LICENSE | 22 + README.md | 56 + apache_log/error.log | 5 + apache_log/other_vhosts_access.log | 14 + app/.htaccess | 6 + app/Common.php | 15 + app/Config/App.php | 466 +++ 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 | 532 +++ app/Config/Modules.php | 53 + app/Config/Pager.php | 39 + app/Config/Paths.php | 85 + app/Config/Publisher.php | 28 + app/Config/Routes.php | 55 + 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/Home.php | 11 + 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/welcome_message.php | 325 ++ app/index.html | 11 + composer.json | 64 + docker-compose.yml | 19 + docker/apache/000-default.conf | 11 + docker/apache/Dockerfile | 52 + env | 140 + phpunit.xml.dist | 57 + public/.htaccess | 49 + public/favicon.ico | Bin 0 -> 5430 bytes public/index.php | 67 + public/robots.txt | 2 + spark | 102 + system/.htaccess | 6 + system/API/ResponseTrait.php | 362 ++ system/Autoloader/Autoloader.php | 374 +++ system/Autoloader/FileLocator.php | 373 +++ system/BaseModel.php | 1726 ++++++++++ system/CLI/BaseCommand.php | 220 ++ 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 | 267 ++ system/Cache/Handlers/PredisHandler.php | 227 ++ system/Cache/Handlers/RedisHandler.php | 259 ++ system/Cache/Handlers/WincacheHandler.php | 144 + system/CodeIgniter.php | 1141 +++++++ 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 | 283 ++ 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 | 47 + 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 | 78 + .../Utilities/Routes/SampleURIGenerator.php | 61 + system/Common.php | 1224 +++++++ system/ComposerScripts.php | 161 + system/Config/AutoloadConfig.php | 151 + system/Config/BaseConfig.php | 216 ++ system/Config/BaseService.php | 384 +++ system/Config/Config.php | 50 + system/Config/DotEnv.php | 234 ++ system/Config/Factories.php | 335 ++ system/Config/Factory.php | 48 + system/Config/ForeignCharacters.php | 113 + system/Config/Publisher.php | 42 + system/Config/Routes.php | 23 + system/Config/Services.php | 777 +++++ system/Config/View.php | 115 + system/Controller.php | 186 ++ system/Cookie/CloneableCookieInterface.php | 109 + system/Cookie/Cookie.php | 783 +++++ system/Cookie/CookieInterface.php | 168 + system/Cookie/CookieStore.php | 256 ++ system/Cookie/Exceptions/CookieException.php | 127 + system/Database/BaseBuilder.php | 2965 +++++++++++++++++ system/Database/BaseConnection.php | 1690 ++++++++++ system/Database/BasePreparedQuery.php | 189 ++ system/Database/BaseResult.php | 512 +++ system/Database/BaseUtils.php | 321 ++ system/Database/Config.php | 151 + system/Database/ConnectionInterface.php | 157 + system/Database/Database.php | 138 + system/Database/Exceptions/DataException.php | 85 + .../Database/Exceptions/DatabaseException.php | 24 + .../Exceptions/ExceptionInterface.php | 22 + system/Database/Forge.php | 1085 ++++++ system/Database/Migration.php | 73 + system/Database/MigrationRunner.php | 872 +++++ system/Database/ModelFactory.php | 52 + system/Database/MySQLi/Builder.php | 56 + system/Database/MySQLi/Connection.php | 611 ++++ 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 | 725 ++++ system/Database/OCI8/Forge.php | 303 ++ system/Database/OCI8/PreparedQuery.php | 108 + system/Database/OCI8/Result.php | 114 + system/Database/OCI8/Utils.php | 38 + system/Database/Postgre/Builder.php | 329 ++ system/Database/Postgre/Connection.php | 528 +++ 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 | 638 ++++ system/Database/SQLSRV/Connection.php | 547 +++ system/Database/SQLSRV/Forge.php | 396 +++ system/Database/SQLSRV/PreparedQuery.php | 105 + system/Database/SQLSRV/Result.php | 170 + system/Database/SQLSRV/Utils.php | 53 + system/Database/SQLite3/Builder.php | 73 + system/Database/SQLite3/Connection.php | 423 +++ system/Database/SQLite3/Forge.php | 253 ++ system/Database/SQLite3/PreparedQuery.php | 91 + system/Database/SQLite3/Result.php | 152 + system/Database/SQLite3/Table.php | 380 +++ system/Database/SQLite3/Utils.php | 38 + system/Database/Seeder.php | 192 ++ system/Debug/Exceptions.php | 536 +++ system/Debug/Iterator.php | 130 + system/Debug/Timer.php | 129 + system/Debug/Toolbar.php | 531 +++ .../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 | 798 +++++ 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 | 2226 +++++++++++++ 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 | 50 + 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 | 571 ++++ system/Entity/Exceptions/CastException.php | 82 + 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 | 191 ++ system/Files/FileCollection.php | 365 ++ system/Filters/CSRF.php | 75 + 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 | 53 + system/Filters/InvalidChars.php | 124 + 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 | 96 + system/HTTP/CLIRequest.php | 307 ++ system/HTTP/CURLRequest.php | 662 ++++ system/HTTP/ContentSecurityPolicy.php | 809 +++++ system/HTTP/DownloadResponse.php | 328 ++ 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 | 772 +++++ system/HTTP/Message.php | 124 + system/HTTP/MessageInterface.php | 101 + system/HTTP/MessageTrait.php | 239 ++ system/HTTP/Negotiate.php | 350 ++ system/HTTP/RedirectResponse.php | 172 + system/HTTP/Request.php | 139 + system/HTTP/RequestInterface.php | 57 + system/HTTP/RequestTrait.php | 335 ++ system/HTTP/Response.php | 257 ++ system/HTTP/ResponseInterface.php | 383 +++ system/HTTP/ResponseTrait.php | 798 +++++ system/HTTP/URI.php | 1056 ++++++ system/HTTP/UserAgent.php | 371 +++ system/Helpers/array_helper.php | 220 ++ system/Helpers/cookie_helper.php | 110 + system/Helpers/date_helper.php | 66 + system/Helpers/filesystem_helper.php | 450 +++ system/Helpers/form_helper.php | 722 ++++ system/Helpers/html_helper.php | 545 +++ system/Helpers/inflector_helper.php | 322 ++ system/Helpers/number_helper.php | 212 ++ system/Helpers/security_helper.php | 51 + system/Helpers/test_helper.php | 68 + system/Helpers/text_helper.php | 680 ++++ system/Helpers/url_helper.php | 567 ++++ system/Helpers/xml_helper.php | 59 + .../Honeypot/Exceptions/HoneypotException.php | 38 + system/Honeypot/Honeypot.php | 95 + system/I18n/Exceptions/I18nException.php | 97 + system/I18n/Time.php | 1182 +++++++ 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 | 467 +++ 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 | 74 + system/Language/en/View.php | 21 + system/Log/Exceptions/LogException.php | 27 + system/Log/Handlers/BaseHandler.php | 59 + system/Log/Handlers/ChromeLoggerHandler.php | 166 + system/Log/Handlers/ErrorlogHandler.php | 84 + system/Log/Handlers/FileHandler.php | 122 + system/Log/Handlers/HandlerInterface.php | 42 + system/Log/Logger.php | 427 +++ system/Model.php | 859 +++++ system/Modules/Modules.php | 53 + system/Pager/Exceptions/PagerException.php | 27 + system/Pager/Pager.php | 435 +++ 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 | 113 + system/RESTful/ResourcePresenter.php | 112 + system/Router/AutoRouter.php | 293 ++ system/Router/AutoRouterImproved.php | 320 ++ system/Router/AutoRouterInterface.php | 25 + .../Router/Exceptions/RedirectException.php | 27 + system/Router/Exceptions/RouterException.php | 81 + system/Router/RouteCollection.php | 1481 ++++++++ system/Router/RouteCollectionInterface.php | 188 ++ system/Router/Router.php | 659 ++++ system/Router/RouterInterface.php | 70 + .../Security/Exceptions/SecurityException.php | 48 + system/Security/Security.php | 617 ++++ system/Security/SecurityInterface.php | 78 + .../Session/Exceptions/SessionException.php | 52 + system/Session/Handlers/ArrayHandler.php | 91 + system/Session/Handlers/BaseHandler.php | 183 + .../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 | 339 ++ system/Session/Session.php | 929 ++++++ system/Session/SessionInterface.php | 184 + system/Test/CIDatabaseTestCase.php | 24 + system/Test/CIUnitTestCase.php | 513 +++ 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 | 344 ++ system/Test/Fabricator.php | 542 +++ system/Test/FeatureResponse.php | 25 + system/Test/FeatureTestCase.php | 398 +++ system/Test/FeatureTestTrait.php | 393 +++ 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 | 243 ++ 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 | 498 +++ system/Test/bootstrap.php | 99 + system/ThirdParty/Escaper/Escaper.php | 412 +++ .../Escaper/Exception/ExceptionInterface.php | 11 + .../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 | 632 ++++ 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 | 255 ++ system/Validation/FormatRules.php | 358 ++ system/Validation/Rules.php | 328 ++ .../StrictRules/CreditCardRules.php | 54 + system/Validation/StrictRules/FileRules.php | 23 + system/Validation/StrictRules/FormatRules.php | 409 +++ system/Validation/StrictRules/Rules.php | 313 ++ system/Validation/Validation.php | 831 +++++ system/Validation/ValidationInterface.php | 85 + 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 | 248 ++ system/View/Parser.php | 711 ++++ system/View/Plugins.php | 122 + system/View/RendererInterface.php | 71 + system/View/Table.php | 495 +++ system/View/View.php | 465 +++ system/View/ViewDecoratorInterface.php | 26 + system/View/ViewDecoratorTrait.php | 36 + system/bootstrap.php | 122 + system/index.html | 11 + tests/README.md | 122 + .../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/debugbar/.gitkeep | 0 writable/logs/index.html | 11 + writable/session/index.html | 11 + writable/uploads/index.html | 11 + 618 files changed, 104537 insertions(+) create mode 100644 .env 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/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/welcome_message.php create mode 100644 app/index.html create mode 100644 composer.json 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/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/debugbar/.gitkeep create mode 100644 writable/logs/index.html create mode 100644 writable/session/index.html create mode 100644 writable/uploads/index.html diff --git a/.env b/.env new file mode 100644 index 0000000..12f7eb4 --- /dev/null +++ b/.env @@ -0,0 +1,128 @@ +UID=1005 + +MYSQL_ROOT_PASSWORD=cod31gn1t3 +MYSQL_DATABASE=codeigniter_db + +#-------------------------------------------------------------------- +# Example Environment Configuration file +# +# This file can be used as a starting point for your own +# custom .env files, and contains most of the possible settings +# available in a default install. +# +# By default, all of the settings are commented out. If you want +# to override the setting, you must un-comment it by removing the '#' +# at the beginning of the line. +#-------------------------------------------------------------------- + +#-------------------------------------------------------------------- +# ENVIRONMENT +#-------------------------------------------------------------------- + +CI_ENVIRONMENT = production + +#-------------------------------------------------------------------- +# APP +#-------------------------------------------------------------------- + +# app.baseURL = '' +# app.forceGlobalSecureRequests = false + +# app.sessionDriver = 'CodeIgniter\Session\Handlers\FileHandler' +# app.sessionCookieName = 'ci_session' +# app.sessionSavePath = NULL +# app.sessionMatchIP = false +# app.sessionTimeToUpdate = 300 +# app.sessionRegenerateDestroy = false + +# app.cookiePrefix = '' +# app.cookieDomain = '' +# app.cookiePath = '/' +# app.cookieSecure = false +# app.cookieHTTPOnly = false +# app.cookieSameSite = 'Lax' + +# app.CSRFProtection = false +# app.CSRFTokenName = 'csrf_test_name' +# app.CSRFCookieName = 'csrf_cookie_name' +# app.CSRFExpire = 7200 +# app.CSRFRegenerate = true +# app.CSRFExcludeURIs = [] +# app.CSRFSameSite = 'Lax' + +# app.CSPEnabled = false + +#-------------------------------------------------------------------- +# DATABASE +#-------------------------------------------------------------------- + +# database.default.hostname = localhost +# database.default.database = ci4 +# database.default.username = root +# database.default.password = root +# database.default.DBDriver = MySQLi + +# database.tests.hostname = localhost +# database.tests.database = ci4 +# database.tests.username = root +# database.tests.password = root +# database.tests.DBDriver = MySQLi + +#-------------------------------------------------------------------- +# CONTENT SECURITY POLICY +#-------------------------------------------------------------------- + +# contentsecuritypolicy.reportOnly = false +# contentsecuritypolicy.defaultSrc = 'none' +# contentsecuritypolicy.scriptSrc = 'self' +# contentsecuritypolicy.styleSrc = 'self' +# contentsecuritypolicy.imageSrc = 'self' +# contentsecuritypolicy.base_uri = null +# contentsecuritypolicy.childSrc = null +# contentsecuritypolicy.connectSrc = 'self' +# contentsecuritypolicy.fontSrc = null +# contentsecuritypolicy.formAction = null +# contentsecuritypolicy.frameAncestors = null +# contentsecuritypolicy.mediaSrc = null +# contentsecuritypolicy.objectSrc = null +# contentsecuritypolicy.pluginTypes = null +# contentsecuritypolicy.reportURI = null +# contentsecuritypolicy.sandbox = false +# contentsecuritypolicy.upgradeInsecureRequests = false + +#-------------------------------------------------------------------- +# ENCRYPTION +#-------------------------------------------------------------------- + +# encryption.key = +# encryption.driver = OpenSSL +# encryption.blockSize = 16 +# encryption.digest = SHA512 + +#-------------------------------------------------------------------- +# HONEYPOT +#-------------------------------------------------------------------- + +# honeypot.hidden = 'true' +# honeypot.label = 'Fill This Field' +# honeypot.name = 'honeypot' +# honeypot.template = '' +# honeypot.container = '
{template}
' + +#-------------------------------------------------------------------- +# SECURITY +#-------------------------------------------------------------------- + +# security.tokenName = 'csrf_token_name' +# security.headerName = 'X-CSRF-TOKEN' +# security.cookieName = 'csrf_cookie_name' +# security.expires = 7200 +# security.regenerate = true +# security.redirect = true +# security.samesite = 'Lax' + +#-------------------------------------------------------------------- +# LOGGER +#-------------------------------------------------------------------- + +# logger.threshold = 4 \ No newline at end of file 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..0317ba5 --- /dev/null +++ b/apache_log/error.log @@ -0,0 +1,5 @@ +[Tue Nov 15 02:52:19.253499 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/7.4.33 configured -- resuming normal operations +[Tue Nov 15 02:52:19.256147 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' +[Tue Nov 15 14:41:33.285547 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/7.4.33 configured -- resuming normal operations +[Tue Nov 15 14:41:33.361288 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' +[Sun Nov 20 01:10:11.882723 2022] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully diff --git a/apache_log/other_vhosts_access.log b/apache_log/other_vhosts_access.log new file mode 100644 index 0000000..1a4c283 --- /dev/null +++ b/apache_log/other_vhosts_access.log @@ -0,0 +1,14 @@ +dashboard.floatev.com:80 172.22.0.1 - - [15/Nov/2022:02:55:42 +0000] "GET / HTTP/1.1" 200 6388 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +dashboard.floatev.com:80 172.22.0.1 - - [15/Nov/2022:02:55:46 +0000] "GET /favicon.ico HTTP/1.1" 200 5731 "http://10.0.0.115:3809/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +dashboard.floatev.com:80 172.22.0.1 - - [15/Nov/2022:02:56:34 +0000] "-" 408 0 "-" "-" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:14:44:14 +0000] "GET / HTTP/1.1" 200 6388 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:14:44:18 +0000] "GET /favicon.ico HTTP/1.1" 200 5731 "http://10.0.0.115:3805/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:14:45:06 +0000] "-" 408 0 "-" "-" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:15:08:27 +0000] "GET / HTTP/1.1" 200 6388 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:15:08:28 +0000] "GET /favicon.ico HTTP/1.1" 200 5731 "http://localhost:3805/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:15:09:19 +0000] "-" 408 0 "-" "-" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:17:30:25 +0000] "GET / HTTP/1.1" 200 6388 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:17:30:27 +0000] "GET /favicon.ico HTTP/1.1" 200 5731 "http://10.0.0.115:3805/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [15/Nov/2022:17:31:17 +0000] "-" 408 0 "-" "-" +apigate.floatev.com:80 172.23.0.1 - - [19/Nov/2022:22:12:40 +0000] "GET / HTTP/1.1" 200 6388 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" +apigate.floatev.com:80 172.23.0.1 - - [19/Nov/2022:22:13:32 +0000] "-" 408 0 "-" "-" 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..23e3e61 --- /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..47b92f8 --- /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 ``, `