From 899c34cbac7bb2ea6daf5690f9c95cfa3c454729 Mon Sep 17 00:00:00 2001 From: wilfredo Date: Wed, 29 Sep 2021 00:06:41 -0400 Subject: [PATCH] =?UTF-8?q?Versi=C3=B3n=20inicial=20ya=20con=20algunas=20f?= =?UTF-8?q?uncionalidades?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 127 + .htaccess | 49 + LICENSE | 22 + README.md | 56 + app/.htaccess | 6 + app/Common.php | 15 + app/Config/App.php | 465 ++ app/Config/Autoload.php | 84 + app/Config/Boot/development.php | 32 + app/Config/Boot/production.php | 21 + app/Config/Boot/testing.php | 32 + app/Config/Cache.php | 167 + app/Config/Constants.php | 79 + app/Config/ContentSecurityPolicy.php | 167 + app/Config/Cookie.php | 119 + app/Config/Database.php | 96 + app/Config/DocTypes.php | 33 + app/Config/Email.php | 171 + app/Config/Encryption.php | 67 + app/Config/Events.php | 54 + app/Config/Exceptions.php | 60 + app/Config/Filters.php | 62 + app/Config/ForeignCharacters.php | 9 + app/Config/Format.php | 79 + app/Config/Generators.php | 39 + app/Config/Honeypot.php | 43 + app/Config/Images.php | 35 + app/Config/Kint.php | 61 + app/Config/Logger.php | 155 + app/Config/Migrations.php | 55 + app/Config/Mimes.php | 543 ++ app/Config/Modules.php | 53 + app/Config/Pager.php | 39 + app/Config/Paths.php | 86 + app/Config/Routes.php | 116 + app/Config/Security.php | 95 + app/Config/Services.php | 31 + app/Config/Toolbar.php | 87 + app/Config/UserAgents.php | 252 + app/Config/Validation.php | 43 + app/Config/View.php | 44 + app/Controllers/API/BaseAPI.php | 110 + app/Controllers/API/BoletaParejas.php | 110 + app/Controllers/API/Boletas.php | 110 + app/Controllers/API/Datas.php | 110 + app/Controllers/API/Eventos.php | 169 + app/Controllers/API/Jugadores.php | 110 + app/Controllers/API/Mesas.php | 129 + app/Controllers/API/Parejas.php | 111 + app/Controllers/API/Rondas.php | 133 + app/Controllers/BaseController.php | 58 + 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/Language/es/CLI.php | 48 + app/Language/es/Cache.php | 18 + app/Language/es/Cast.php | 23 + app/Language/es/Cookie.php | 24 + app/Language/es/Core.php | 20 + app/Language/es/Database.php | 30 + app/Language/es/Email.php | 33 + app/Language/es/Encryption.php | 20 + app/Language/es/Fabricator.php | 17 + app/Language/es/Files.php | 16 + app/Language/es/Filters.php | 16 + app/Language/es/Format.php | 18 + app/Language/es/HTTP.php | 77 + app/Language/es/Images.php | 34 + app/Language/es/Log.php | 16 + app/Language/es/Migrations.php | 57 + app/Language/es/Number.php | 26 + app/Language/es/Pager.php | 23 + app/Language/es/RESTful.php | 15 + app/Language/es/Router.php | 16 + app/Language/es/Security.php | 18 + app/Language/es/Session.php | 22 + app/Language/es/Time.php | 33 + app/Language/es/Validation.php | 72 + app/Language/es/View.php | 20 + app/Libraries/.gitkeep | 0 app/Models/.gitkeep | 0 app/Models/BoletaModel.php | 15 + app/Models/BoletaParejaModel.php | 16 + app/Models/DataModel.php | 11 + app/Models/EventoModel.php | 52 + app/Models/JugadorModel.php | 29 + app/Models/MesaModel.php | 22 + app/Models/ParejaModel.php | 19 + app/Models/RondaModel.php | 34 + app/Models/SQL/domino.sql | 350 ++ app/Models/SQL/dominoAPI CI4.DM1 | 4817 +++++++++++++++++ app/Models/SQL/dominoAPI CI4v1.sql | 419 ++ app/Models/SQL/dominoAPI CI4v1_mySql.sql | 329 ++ app/Models/SQL/dominoAPI.DM1 | 3999 ++++++++++++++ app/Models/SQL/dominoOld.sql | 520 ++ app/Models/SQL/jugadores.txt | 7 + app/Models/SQL/jugadores.xlsx | Bin 0 -> 23860 bytes app/ThirdParty/.gitkeep | 0 app/Views/errors/cli/error_404.php | 7 + app/Views/errors/cli/error_exception.php | 72 + app/Views/errors/cli/production.php | 5 + app/Views/errors/html/debug.css | 197 + app/Views/errors/html/debug.js | 128 + app/Views/errors/html/error_404.php | 84 + app/Views/errors/html/error_exception.php | 400 ++ app/Views/errors/html/production.php | 25 + app/Views/welcome_message.php | 324 ++ app/index.html | 11 + composer.json | 47 + env | 125 + favicon.ico | Bin 0 -> 5430 bytes index.php | 37 + phpunit.xml.dist | 57 + public/.htaccess | 49 + public/favicon.ico | Bin 0 -> 5430 bytes public/index.php | 37 + public/robots.txt | 2 + robots.txt | 2 + spark | 69 + system/.htaccess | 6 + system/API/ResponseTrait.php | 439 ++ system/Autoloader/Autoloader.php | 372 ++ system/Autoloader/FileLocator.php | 452 ++ system/BaseModel.php | 1812 +++++++ system/CLI/BaseCommand.php | 261 + system/CLI/CLI.php | 1185 ++++ system/CLI/CommandRunner.php | 83 + system/CLI/Commands.php | 213 + system/CLI/Console.php | 81 + system/CLI/Exceptions/CLIException.php | 37 + system/CLI/GeneratorTrait.php | 410 ++ system/Cache/CacheFactory.php | 88 + system/Cache/CacheInterface.php | 128 + system/Cache/Exceptions/CacheException.php | 66 + .../Cache/Exceptions/ExceptionInterface.php | 24 + system/Cache/Handlers/BaseHandler.php | 110 + system/Cache/Handlers/DummyHandler.php | 184 + system/Cache/Handlers/FileHandler.php | 548 ++ system/Cache/Handlers/MemcachedHandler.php | 377 ++ system/Cache/Handlers/PredisHandler.php | 311 ++ system/Cache/Handlers/RedisHandler.php | 352 ++ system/Cache/Handlers/WincacheHandler.php | 216 + system/CodeIgniter.php | 1136 ++++ system/Commands/Cache/ClearCache.php | 91 + system/Commands/Cache/InfoCache.php | 92 + system/Commands/Database/CreateDatabase.php | 170 + system/Commands/Database/Migrate.php | 115 + system/Commands/Database/MigrateRefresh.php | 93 + system/Commands/Database/MigrateRollback.php | 121 + system/Commands/Database/MigrateStatus.php | 175 + system/Commands/Database/Seed.php | 90 + system/Commands/Encryption/GenerateKey.php | 225 + .../Commands/Generators/CommandGenerator.php | 127 + .../Commands/Generators/ConfigGenerator.php | 105 + .../Generators/ControllerGenerator.php | 145 + .../Commands/Generators/EntityGenerator.php | 86 + .../Commands/Generators/FilterGenerator.php | 86 + system/Commands/Generators/MigrateCreate.php | 93 + .../Generators/MigrationGenerator.php | 132 + system/Commands/Generators/ModelGenerator.php | 138 + .../Commands/Generators/ScaffoldGenerator.php | 129 + .../Commands/Generators/SeederGenerator.php | 86 + .../Generators/SessionMigrationGenerator.php | 121 + .../Generators/ValidationGenerator.php | 86 + .../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 | 16 + .../Commands/Generators/Views/filter.tpl.php | 47 + .../Generators/Views/migration.tpl.php | 44 + .../Commands/Generators/Views/model.tpl.php | 42 + .../Commands/Generators/Views/seeder.tpl.php | 13 + .../Generators/Views/validation.tpl.php | 11 + system/Commands/Help.php | 90 + .../Commands/Housekeeping/ClearDebugbar.php | 74 + system/Commands/Housekeeping/ClearLogs.php | 93 + system/Commands/ListCommands.php | 146 + system/Commands/Server/Serve.php | 129 + system/Commands/Server/rewrite.php | 46 + system/Commands/Utilities/Environment.php | 160 + system/Commands/Utilities/Namespaces.php | 99 + system/Commands/Utilities/Routes.php | 118 + system/Common.php | 1373 +++++ system/ComposerScripts.php | 180 + system/Config/AutoloadConfig.php | 136 + system/Config/BaseConfig.php | 216 + system/Config/BaseService.php | 420 ++ system/Config/Config.php | 53 + system/Config/DotEnv.php | 293 + system/Config/Factories.php | 354 ++ system/Config/Factory.php | 48 + system/Config/ForeignCharacters.php | 113 + system/Config/Routes.php | 40 + system/Config/Services.php | 884 +++ system/Config/View.php | 102 + system/Controller.php | 185 + system/Cookie/CloneableCookieInterface.php | 125 + system/Cookie/Cookie.php | 842 +++ system/Cookie/CookieInterface.php | 200 + system/Cookie/CookieStore.php | 305 ++ system/Cookie/Exceptions/CookieException.php | 133 + system/Database/BaseBuilder.php | 3524 ++++++++++++ system/Database/BaseConnection.php | 1890 +++++++ system/Database/BasePreparedQuery.php | 244 + system/Database/BaseResult.php | 635 +++ system/Database/BaseUtils.php | 393 ++ system/Database/Config.php | 166 + system/Database/ConnectionInterface.php | 202 + system/Database/Database.php | 183 + system/Database/Exceptions/DataException.php | 93 + .../Database/Exceptions/DatabaseException.php | 24 + .../Exceptions/ExceptionInterface.php | 22 + system/Database/Forge.php | 1331 +++++ system/Database/Migration.php | 82 + system/Database/MigrationRunner.php | 1070 ++++ system/Database/ModelFactory.php | 57 + system/Database/MySQLi/Builder.php | 59 + system/Database/MySQLi/Connection.php | 728 +++ system/Database/MySQLi/Forge.php | 255 + system/Database/MySQLi/PreparedQuery.php | 100 + system/Database/MySQLi/Result.php | 195 + system/Database/MySQLi/Utils.php | 51 + system/Database/Postgre/Builder.php | 430 ++ system/Database/Postgre/Connection.php | 632 +++ system/Database/Postgre/Forge.php | 233 + system/Database/Postgre/PreparedQuery.php | 120 + system/Database/Postgre/Result.php | 160 + system/Database/Postgre/Utils.php | 51 + system/Database/PreparedQueryInterface.php | 77 + system/Database/Query.php | 499 ++ system/Database/QueryInterface.php | 128 + system/Database/ResultInterface.php | 235 + system/Database/SQLSRV/Builder.php | 775 +++ system/Database/SQLSRV/Connection.php | 605 +++ system/Database/SQLSRV/Forge.php | 410 ++ system/Database/SQLSRV/PreparedQuery.php | 126 + system/Database/SQLSRV/Result.php | 195 + system/Database/SQLSRV/Utils.php | 49 + system/Database/SQLite3/Builder.php | 88 + system/Database/SQLite3/Connection.php | 505 ++ system/Database/SQLite3/Forge.php | 303 ++ system/Database/SQLite3/PreparedQuery.php | 104 + system/Database/SQLite3/Result.php | 183 + system/Database/SQLite3/Table.php | 403 ++ system/Database/SQLite3/Utils.php | 44 + system/Database/Seeder.php | 212 + system/Debug/Exceptions.php | 531 ++ system/Debug/Iterator.php | 153 + system/Debug/Timer.php | 152 + system/Debug/Toolbar.php | 510 ++ .../Toolbar/Collectors/BaseCollector.php | 285 + system/Debug/Toolbar/Collectors/Config.php | 43 + system/Debug/Toolbar/Collectors/Database.php | 201 + system/Debug/Toolbar/Collectors/Events.php | 163 + system/Debug/Toolbar/Collectors/Files.php | 122 + system/Debug/Toolbar/Collectors/History.php | 155 + system/Debug/Toolbar/Collectors/Logs.php | 110 + system/Debug/Toolbar/Collectors/Routes.php | 177 + system/Debug/Toolbar/Collectors/Timers.php | 77 + system/Debug/Toolbar/Collectors/Views.php | 164 + system/Debug/Toolbar/Views/_config.tpl | 48 + system/Debug/Toolbar/Views/_database.tpl | 16 + 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 | 616 +++ system/Debug/Toolbar/Views/toolbar.js | 672 +++ system/Debug/Toolbar/Views/toolbar.tpl.php | 277 + .../Debug/Toolbar/Views/toolbarloader.js.php | 93 + system/Email/Email.php | 2484 +++++++++ system/Encryption/EncrypterInterface.php | 46 + system/Encryption/Encryption.php | 194 + .../Exceptions/EncryptionException.php | 88 + system/Encryption/Handlers/BaseHandler.php | 89 + system/Encryption/Handlers/OpenSSLHandler.php | 119 + system/Encryption/Handlers/SodiumHandler.php | 149 + system/Entity.php | 23 + system/Entity/Cast/ArrayCast.php | 39 + 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 | 52 + system/Entity/Cast/FloatCast.php | 26 + system/Entity/Cast/IntegerCast.php | 26 + system/Entity/Cast/JsonCast.php | 71 + system/Entity/Cast/ObjectCast.php | 26 + system/Entity/Cast/StringCast.php | 26 + system/Entity/Cast/TimestampCast.php | 35 + system/Entity/Cast/URICast.php | 28 + system/Entity/Entity.php | 614 +++ system/Entity/Exceptions/CastException.php | 80 + system/Events/Events.php | 313 ++ system/Exceptions/AlertError.php | 21 + system/Exceptions/CastException.php | 50 + system/Exceptions/ConfigException.php | 32 + system/Exceptions/CriticalError.php | 21 + system/Exceptions/DebugTraceableTrait.php | 37 + system/Exceptions/DownloadException.php | 47 + system/Exceptions/EmergencyError.php | 21 + system/Exceptions/ExceptionInterface.php | 23 + system/Exceptions/FrameworkException.php | 69 + system/Exceptions/ModelException.php | 29 + system/Exceptions/PageNotFoundException.php | 46 + system/Files/Exceptions/FileException.php | 26 + .../Exceptions/FileNotFoundException.php | 26 + system/Files/File.php | 220 + system/Filters/CSRF.php | 85 + system/Filters/DebugToolbar.php | 55 + system/Filters/Exceptions/FilterException.php | 46 + system/Filters/FilterInterface.php | 56 + system/Filters/Filters.php | 603 +++ system/Filters/Honeypot.php | 56 + system/Format/Exceptions/FormatException.php | 75 + system/Format/Format.php | 81 + system/Format/FormatterInterface.php | 27 + system/Format/JSONFormatter.php | 49 + system/Format/XMLFormatter.php | 105 + system/HTTP/CLIRequest.php | 237 + system/HTTP/CURLRequest.php | 805 +++ system/HTTP/ContentSecurityPolicy.php | 810 +++ system/HTTP/DownloadResponse.php | 380 ++ system/HTTP/Exceptions/HTTPException.php | 249 + system/HTTP/Files/FileCollection.php | 291 + system/HTTP/Files/UploadedFile.php | 385 ++ system/HTTP/Files/UploadedFileInterface.php | 175 + system/HTTP/Header.php | 222 + system/HTTP/IncomingRequest.php | 860 +++ system/HTTP/Message.php | 139 + system/HTTP/MessageInterface.php | 112 + system/HTTP/MessageTrait.php | 269 + system/HTTP/Negotiate.php | 435 ++ system/HTTP/RedirectResponse.php | 165 + system/HTTP/Request.php | 147 + system/HTTP/RequestInterface.php | 72 + system/HTTP/RequestTrait.php | 381 ++ system/HTTP/Response.php | 265 + system/HTTP/ResponseInterface.php | 411 ++ system/HTTP/ResponseTrait.php | 795 +++ system/HTTP/URI.php | 1246 +++++ system/HTTP/UserAgent.php | 475 ++ system/Helpers/array_helper.php | 243 + system/Helpers/cookie_helper.php | 113 + system/Helpers/date_helper.php | 73 + system/Helpers/filesystem_helper.php | 555 ++ system/Helpers/form_helper.php | 963 ++++ system/Helpers/html_helper.php | 733 +++ system/Helpers/inflector_helper.php | 384 ++ system/Helpers/number_helper.php | 313 ++ system/Helpers/security_helper.php | 71 + system/Helpers/test_helper.php | 48 + system/Helpers/text_helper.php | 853 +++ system/Helpers/url_helper.php | 685 +++ system/Helpers/xml_helper.php | 68 + .../Honeypot/Exceptions/HoneypotException.php | 38 + system/Honeypot/Honeypot.php | 109 + system/I18n/Exceptions/I18nException.php | 112 + system/I18n/Time.php | 1382 +++++ system/I18n/TimeDifference.php | 339 ++ system/Images/Exceptions/ImageException.php | 68 + system/Images/Handlers/BaseHandler.php | 901 +++ system/Images/Handlers/GDHandler.php | 600 ++ system/Images/Handlers/ImageMagickHandler.php | 536 ++ system/Images/Image.php | 146 + system/Images/ImageHandlerInterface.php | 181 + system/Language/Language.php | 328 ++ 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 | 30 + system/Language/en/Email.php | 33 + system/Language/en/Encryption.php | 20 + system/Language/en/Fabricator.php | 17 + system/Language/en/Files.php | 16 + 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 | 57 + system/Language/en/Number.php | 26 + system/Language/en/Pager.php | 23 + system/Language/en/RESTful.php | 15 + system/Language/en/Router.php | 16 + system/Language/en/Security.php | 18 + system/Language/en/Session.php | 22 + system/Language/en/Time.php | 33 + system/Language/en/Validation.php | 72 + system/Language/en/View.php | 20 + system/Log/Exceptions/LogException.php | 27 + system/Log/Handlers/BaseHandler.php | 91 + system/Log/Handlers/ChromeLoggerHandler.php | 180 + system/Log/Handlers/ErrorlogHandler.php | 92 + system/Log/Handlers/FileHandler.php | 140 + system/Log/Handlers/HandlerInterface.php | 56 + system/Log/Logger.php | 513 ++ system/Model.php | 898 +++ system/Modules/Modules.php | 58 + system/Pager/Exceptions/PagerException.php | 27 + system/Pager/Pager.php | 567 ++ system/Pager/PagerInterface.php | 200 + system/Pager/PagerRenderer.php | 467 ++ system/Pager/Views/default_full.php | 47 + system/Pager/Views/default_head.php | 29 + system/Pager/Views/default_simple.php | 23 + system/RESTful/BaseResource.php | 75 + system/RESTful/ResourceController.php | 115 + system/RESTful/ResourcePresenter.php | 110 + .../Router/Exceptions/RedirectException.php | 27 + system/Router/Exceptions/RouterException.php | 66 + system/Router/RouteCollection.php | 1631 ++++++ system/Router/RouteCollectionInterface.php | 247 + system/Router/Router.php | 764 +++ system/Router/RouterInterface.php | 86 + .../Security/Exceptions/SecurityException.php | 32 + system/Security/Security.php | 463 ++ system/Security/SecurityInterface.php | 94 + .../Session/Exceptions/SessionException.php | 52 + system/Session/Handlers/ArrayHandler.php | 122 + system/Session/Handlers/BaseHandler.php | 190 + system/Session/Handlers/DatabaseHandler.php | 403 ++ system/Session/Handlers/FileHandler.php | 406 ++ system/Session/Handlers/MemcachedHandler.php | 379 ++ system/Session/Handlers/RedisHandler.php | 405 ++ system/Session/Session.php | 1016 ++++ system/Session/SessionInterface.php | 222 + system/Test/CIDatabaseTestCase.php | 24 + system/Test/CIUnitTestCase.php | 577 ++ system/Test/Constraints/SeeInDatabase.php | 126 + system/Test/ControllerResponse.php | 104 + system/Test/ControllerTestTrait.php | 326 ++ system/Test/ControllerTester.php | 317 ++ system/Test/DOMParser.php | 337 ++ system/Test/DatabaseTestTrait.php | 373 ++ system/Test/Fabricator.php | 615 +++ system/Test/FeatureResponse.php | 25 + system/Test/FeatureTestCase.php | 439 ++ system/Test/FeatureTestTrait.php | 436 ++ system/Test/FilterTestTrait.php | 291 + system/Test/Filters/CITestStreamFilter.php | 56 + system/Test/Interfaces/FabricatorModel.php | 83 + system/Test/Mock/MockAppConfig.php | 49 + system/Test/Mock/MockAutoload.php | 27 + system/Test/Mock/MockBuilder.php | 23 + system/Test/Mock/MockCLIConfig.php | 47 + system/Test/Mock/MockCURLRequest.php | 60 + system/Test/Mock/MockCache.php | 289 + system/Test/Mock/MockCodeIgniter.php | 22 + system/Test/Mock/MockCommon.php | 35 + system/Test/Mock/MockConnection.php | 317 ++ system/Test/Mock/MockEmail.php | 42 + system/Test/Mock/MockEvents.php | 40 + system/Test/Mock/MockFileLogger.php | 36 + system/Test/Mock/MockIncomingRequest.php | 27 + system/Test/Mock/MockLanguage.php | 70 + system/Test/Mock/MockLogger.php | 108 + 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 | 120 + system/Test/Mock/MockSecurity.php | 25 + system/Test/Mock/MockSecurityConfig.php | 22 + system/Test/Mock/MockServices.php | 38 + system/Test/Mock/MockSession.php | 70 + system/Test/Mock/MockTable.php | 29 + system/Test/ReflectionHelper.php | 95 + system/Test/TestLogger.php | 91 + system/Test/TestResponse.php | 555 ++ system/Test/bootstrap.php | 120 + system/ThirdParty/Escaper/Escaper.php | 391 ++ .../Escaper/Exception/ExceptionInterface.php | 13 + .../Exception/InvalidArgumentException.php | 17 + .../Escaper/Exception/RuntimeException.php | 17 + system/ThirdParty/Kint/CallFinder.php | 473 ++ system/ThirdParty/Kint/Kint.php | 756 +++ system/ThirdParty/Kint/Object/BasicObject.php | 248 + system/ThirdParty/Kint/Object/BlobObject.php | 177 + .../ThirdParty/Kint/Object/ClosureObject.php | 68 + .../ThirdParty/Kint/Object/DateTimeObject.php | 53 + .../ThirdParty/Kint/Object/InstanceObject.php | 78 + .../ThirdParty/Kint/Object/MethodObject.php | 253 + .../Kint/Object/ParameterObject.php | 100 + .../Representation/ColorRepresentation.php | 576 ++ .../DocstringRepresentation.php | 73 + .../MicrotimeRepresentation.php | 71 + .../Object/Representation/Representation.php | 71 + .../Representation/SourceRepresentation.php | 72 + .../SplFileInfoRepresentation.php | 177 + .../ThirdParty/Kint/Object/ResourceObject.php | 49 + .../ThirdParty/Kint/Object/StreamObject.php | 54 + .../Kint/Object/ThrowableObject.php | 54 + .../Kint/Object/TraceFrameObject.php | 100 + system/ThirdParty/Kint/Object/TraceObject.php | 45 + .../Kint/Parser/ArrayObjectPlugin.php | 63 + .../ThirdParty/Kint/Parser/Base64Plugin.php | 95 + .../ThirdParty/Kint/Parser/BinaryPlugin.php | 49 + .../Kint/Parser/BlacklistPlugin.php | 143 + .../Kint/Parser/ClassMethodsPlugin.php | 113 + .../Kint/Parser/ClassStaticsPlugin.php | 122 + .../ThirdParty/Kint/Parser/ClosurePlugin.php | 94 + system/ThirdParty/Kint/Parser/ColorPlugin.php | 63 + .../Kint/Parser/DOMDocumentPlugin.php | 328 ++ .../ThirdParty/Kint/Parser/DateTimePlugin.php | 55 + .../ThirdParty/Kint/Parser/FsPathPlugin.php | 72 + .../ThirdParty/Kint/Parser/IteratorPlugin.php | 110 + system/ThirdParty/Kint/Parser/JsonPlugin.php | 73 + .../Kint/Parser/MicrotimePlugin.php | 105 + .../ThirdParty/Kint/Parser/MysqliPlugin.php | 129 + system/ThirdParty/Kint/Parser/Parser.php | 604 +++ system/ThirdParty/Kint/Parser/Plugin.php | 55 + system/ThirdParty/Kint/Parser/ProxyPlugin.php | 66 + .../Kint/Parser/SerializePlugin.php | 108 + .../Kint/Parser/SimpleXMLElementPlugin.php | 154 + .../Kint/Parser/SplFileInfoPlugin.php | 55 + .../Kint/Parser/SplObjectStoragePlugin.php | 54 + .../ThirdParty/Kint/Parser/StreamPlugin.php | 78 + system/ThirdParty/Kint/Parser/TablePlugin.php | 87 + .../Kint/Parser/ThrowablePlugin.php | 60 + .../Kint/Parser/TimestampPlugin.php | 71 + .../ThirdParty/Kint/Parser/ToStringPlugin.php | 67 + system/ThirdParty/Kint/Parser/TracePlugin.php | 92 + system/ThirdParty/Kint/Parser/XmlPlugin.php | 150 + .../ThirdParty/Kint/Renderer/CliRenderer.php | 152 + .../Kint/Renderer/PlainRenderer.php | 237 + system/ThirdParty/Kint/Renderer/Renderer.php | 185 + .../Kint/Renderer/Rich/BinaryPlugin.php | 51 + .../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 + .../Renderer/Rich/ObjectPluginInterface.php | 33 + .../ThirdParty/Kint/Renderer/Rich/Plugin.php | 90 + .../Kint/Renderer/Rich/PluginInterface.php | 33 + .../Kint/Renderer/Rich/RecursionPlugin.php | 36 + .../Renderer/Rich/SimpleXMLElementPlugin.php | 81 + .../Kint/Renderer/Rich/SourcePlugin.php | 79 + .../Kint/Renderer/Rich/TabPluginInterface.php | 33 + .../Kint/Renderer/Rich/TablePlugin.php | 133 + .../Kint/Renderer/Rich/TimestampPlugin.php | 42 + .../Kint/Renderer/Rich/TraceFramePlugin.php | 68 + .../ThirdParty/Kint/Renderer/RichRenderer.php | 612 +++ .../Kint/Renderer/Text/BlacklistPlugin.php | 44 + .../Kint/Renderer/Text/DepthLimitPlugin.php | 44 + .../Kint/Renderer/Text/MicrotimePlugin.php | 128 + .../ThirdParty/Kint/Renderer/Text/Plugin.php | 41 + .../Kint/Renderer/Text/RecursionPlugin.php | 44 + .../Kint/Renderer/Text/TracePlugin.php | 111 + .../ThirdParty/Kint/Renderer/TextRenderer.php | 346 ++ system/ThirdParty/Kint/Utils.php | 240 + system/ThirdParty/Kint/init.php | 62 + system/ThirdParty/Kint/init_helpers.php | 84 + .../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/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 | 195 + system/Throttle/ThrottlerInterface.php | 48 + system/Typography/Typography.php | 377 ++ system/Validation/CreditCardRules.php | 306 ++ .../Exceptions/ValidationException.php | 42 + system/Validation/FileRules.php | 329 ++ system/Validation/FormatRules.php | 378 ++ system/Validation/Rules.php | 442 ++ system/Validation/Validation.php | 822 +++ system/Validation/ValidationInterface.php | 137 + system/Validation/Views/list.php | 9 + system/Validation/Views/single.php | 1 + system/View/Cell.php | 255 + system/View/Exceptions/ViewException.php | 47 + system/View/Filters.php | 333 ++ system/View/Parser.php | 840 +++ system/View/Plugins.php | 143 + system/View/RendererInterface.php | 88 + system/View/Table.php | 523 ++ system/View/View.php | 521 ++ system/bootstrap.php | 159 + system/index.html | 11 + writable/.htaccess | 6 + writable/cache/index.html | 11 + writable/logs/index.html | 11 + writable/session/index.html | 11 + writable/uploads/index.html | 11 + 607 files changed, 120202 insertions(+) create mode 100644 .gitignore create mode 100644 .htaccess create mode 100644 LICENSE create mode 100644 README.md 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/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/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/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/API/BaseAPI.php create mode 100644 app/Controllers/API/BoletaParejas.php create mode 100644 app/Controllers/API/Boletas.php create mode 100644 app/Controllers/API/Datas.php create mode 100644 app/Controllers/API/Eventos.php create mode 100644 app/Controllers/API/Jugadores.php create mode 100644 app/Controllers/API/Mesas.php create mode 100644 app/Controllers/API/Parejas.php create mode 100644 app/Controllers/API/Rondas.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/Language/es/CLI.php create mode 100644 app/Language/es/Cache.php create mode 100644 app/Language/es/Cast.php create mode 100644 app/Language/es/Cookie.php create mode 100644 app/Language/es/Core.php create mode 100644 app/Language/es/Database.php create mode 100644 app/Language/es/Email.php create mode 100644 app/Language/es/Encryption.php create mode 100644 app/Language/es/Fabricator.php create mode 100644 app/Language/es/Files.php create mode 100644 app/Language/es/Filters.php create mode 100644 app/Language/es/Format.php create mode 100644 app/Language/es/HTTP.php create mode 100644 app/Language/es/Images.php create mode 100644 app/Language/es/Log.php create mode 100644 app/Language/es/Migrations.php create mode 100644 app/Language/es/Number.php create mode 100644 app/Language/es/Pager.php create mode 100644 app/Language/es/RESTful.php create mode 100644 app/Language/es/Router.php create mode 100644 app/Language/es/Security.php create mode 100644 app/Language/es/Session.php create mode 100644 app/Language/es/Time.php create mode 100644 app/Language/es/Validation.php create mode 100644 app/Language/es/View.php create mode 100644 app/Libraries/.gitkeep create mode 100644 app/Models/.gitkeep create mode 100644 app/Models/BoletaModel.php create mode 100644 app/Models/BoletaParejaModel.php create mode 100644 app/Models/DataModel.php create mode 100644 app/Models/EventoModel.php create mode 100644 app/Models/JugadorModel.php create mode 100644 app/Models/MesaModel.php create mode 100644 app/Models/ParejaModel.php create mode 100644 app/Models/RondaModel.php create mode 100644 app/Models/SQL/domino.sql create mode 100644 app/Models/SQL/dominoAPI CI4.DM1 create mode 100644 app/Models/SQL/dominoAPI CI4v1.sql create mode 100644 app/Models/SQL/dominoAPI CI4v1_mySql.sql create mode 100644 app/Models/SQL/dominoAPI.DM1 create mode 100644 app/Models/SQL/dominoOld.sql create mode 100644 app/Models/SQL/jugadores.txt create mode 100644 app/Models/SQL/jugadores.xlsx 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 env create mode 100644 favicon.ico create mode 100644 index.php 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 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/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/Routes.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/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/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/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.php 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/Files/Exceptions/FileException.php create mode 100644 system/Files/Exceptions/FileNotFoundException.php create mode 100644 system/Files/File.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/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/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/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/RESTful/BaseResource.php create mode 100644 system/RESTful/ResourceController.php create mode 100644 system/RESTful/ResourcePresenter.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/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/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/Kint/CallFinder.php create mode 100644 system/ThirdParty/Kint/Kint.php create mode 100644 system/ThirdParty/Kint/Object/BasicObject.php create mode 100644 system/ThirdParty/Kint/Object/BlobObject.php create mode 100644 system/ThirdParty/Kint/Object/ClosureObject.php create mode 100644 system/ThirdParty/Kint/Object/DateTimeObject.php create mode 100644 system/ThirdParty/Kint/Object/InstanceObject.php create mode 100644 system/ThirdParty/Kint/Object/MethodObject.php create mode 100644 system/ThirdParty/Kint/Object/ParameterObject.php create mode 100644 system/ThirdParty/Kint/Object/Representation/ColorRepresentation.php create mode 100644 system/ThirdParty/Kint/Object/Representation/DocstringRepresentation.php create mode 100644 system/ThirdParty/Kint/Object/Representation/MicrotimeRepresentation.php create mode 100644 system/ThirdParty/Kint/Object/Representation/Representation.php create mode 100644 system/ThirdParty/Kint/Object/Representation/SourceRepresentation.php create mode 100644 system/ThirdParty/Kint/Object/Representation/SplFileInfoRepresentation.php create mode 100644 system/ThirdParty/Kint/Object/ResourceObject.php create mode 100644 system/ThirdParty/Kint/Object/StreamObject.php create mode 100644 system/ThirdParty/Kint/Object/ThrowableObject.php create mode 100644 system/ThirdParty/Kint/Object/TraceFrameObject.php create mode 100644 system/ThirdParty/Kint/Object/TraceObject.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/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/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/ObjectPluginInterface.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/RichRenderer.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/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/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/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/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/bootstrap.php create mode 100644 system/index.html 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/.htaccess b/.htaccess new file mode 100644 index 0000000..a5d6c2a --- /dev/null +++ b/.htaccess @@ -0,0 +1,49 @@ +# Disable directory browsing +Options All -Indexes + +# ---------------------------------------------------------------------- +# Rewrite engine +# ---------------------------------------------------------------------- + +# Turning on the rewrite engine is necessary for the following rules and features. +# FollowSymLinks must be enabled for this to work. + + Options +FollowSymlinks + RewriteEngine On + + # If you installed CodeIgniter in a subfolder, you will need to + # change the following line to match the subfolder you need. + # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase + # RewriteBase / + + # Redirect Trailing Slashes... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Rewrite "www.example.com -> example.com" + RewriteCond %{HTTPS} !=on + RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] + RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] + + # Checks to see if the user is attempting to access a valid file, + # such as an image or css document, if this isn't true it sends the + # request to the front controller, index.php + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA] + + # Ensure Authorization header is passed along + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + + + # If we don't have mod_rewrite installed, all 404's + # can be sent to index.php, and everything works as normal. + ErrorDocument 404 index.php + + +# Disable server signature start + ServerSignature Off +# Disable server signature end diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..daac9e5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2014-2019 British Columbia Institute of Technology +Copyright (c) 2019-2021 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..1f95a41 --- /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.3 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/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..780ba3f --- /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..8f8498a --- /dev/null +++ b/app/Config/Constants.php @@ -0,0 +1,79 @@ +` element. + * + * Will default to self if not overridden + * + * @var string|string[]|null + */ + public $baseURI = null; + + /** + * 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 = null; + + /** + * 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 ``, `