Changeset 2636555
- Timestamp:
- 11/28/2021 06:05:47 PM (4 years ago)
- Location:
- secured-wp
- Files:
-
- 422 added
- 3 deleted
- 34 edited
- 25 copied
-
tags/1.5 (deleted)
-
tags/1.7 (copied) (copied from secured-wp/trunk)
-
tags/1.7/assets (deleted)
-
tags/1.7/classes (copied) (copied from secured-wp/trunk/classes)
-
tags/1.7/classes/Controllers/LoginCheck.php (modified) (8 diffs)
-
tags/1.7/classes/Controllers/Modules/Login.php (modified) (3 diffs)
-
tags/1.7/classes/Controllers/Modules/RememberMe.php (modified) (1 diff)
-
tags/1.7/classes/Controllers/Modules/XMLRPCprevents.php (modified) (1 diff)
-
tags/1.7/classes/Controllers/User.php (copied) (copied from secured-wp/trunk/classes/Controllers/User.php) (1 diff)
-
tags/1.7/classes/Helpers/AjaxRequests.php (copied) (copied from secured-wp/trunk/classes/Helpers/AjaxRequests.php)
-
tags/1.7/classes/Helpers/NotifyAdmin.php (copied) (copied from secured-wp/trunk/classes/Helpers/NotifyAdmin.php)
-
tags/1.7/classes/Helpers/OutOfBandEmail.php (added)
-
tags/1.7/classes/Helpers/OutOfBondEmail.php (copied) (copied from secured-wp/trunk/classes/Helpers/OutOfBondEmail.php)
-
tags/1.7/classes/Helpers/TOTPHelper.php (added)
-
tags/1.7/classes/Secured.php (copied) (copied from secured-wp/trunk/classes/Secured.php) (9 diffs)
-
tags/1.7/classes/Views/LoginForms.php (modified) (5 diffs)
-
tags/1.7/classes/Views/SettingsTabs.php (modified) (1 diff)
-
tags/1.7/classes/Views/UserProfile.php (copied) (copied from secured-wp/trunk/classes/Views/UserProfile.php) (5 diffs)
-
tags/1.7/classes/Views/UsersList.php (modified) (6 diffs)
-
tags/1.7/constants.php (copied) (copied from secured-wp/trunk/constants.php) (1 diff)
-
tags/1.7/languages (copied) (copied from secured-wp/trunk/languages)
-
tags/1.7/languages/secured-wp.pot (modified) (3 diffs)
-
tags/1.7/readme.txt (copied) (copied from secured-wp/trunk/readme.txt) (4 diffs)
-
tags/1.7/secured-wp.php (copied) (copied from secured-wp/trunk/secured-wp.php) (2 diffs)
-
tags/1.7/vendor (copied) (copied from secured-wp/trunk/vendor)
-
tags/1.7/vendor/bacon (added)
-
tags/1.7/vendor/bacon/bacon-qr-code (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/CHANGELOG.md (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/LICENSE (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/README.md (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/composer.json (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/phpunit.xml.dist (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/BitArray.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/BitMatrix.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/BitUtils.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/CharacterSetEci.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/EcBlock.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/EcBlocks.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/ErrorCorrectionLevel.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/FormatInformation.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/Mode.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/ReedSolomonCodec.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Common/Version.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder/BlockPair.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder/ByteMatrix.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder/Encoder.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder/MaskUtil.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder/MatrixUtil.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Encoder/QrCode.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception/ExceptionInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception/InvalidArgumentException.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception/OutOfBoundsException.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception/RuntimeException.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception/UnexpectedValueException.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Exception/WriterException.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Color (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Color/Alpha.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Color/Cmyk.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Color/ColorInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Color/Gray.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Color/Rgb.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Eye (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Image (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Image/EpsImageBackEnd.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Image/ImageBackEndInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Image/ImagickImageBackEnd.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Image/SvgImageBackEnd.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Image/TransformationMatrix.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/ImageRenderer.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/DotsModule.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/Edge.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/EdgeIterator.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/ModuleInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/RoundnessModule.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Module/SquareModule.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/Close.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/Curve.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/EllipticArc.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/Line.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/Move.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/OperationInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/Path/Path.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/PlainTextRenderer.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererInterface.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/EyeFill.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/Fill.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/Gradient.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/GradientType.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/RendererStyle.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/src/Writer.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/BitArrayTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/BitMatrixTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/BitUtilsTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/ErrorCorrectionLevelTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/FormatInformationTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/ModeTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/ReedSolomonCodecTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Common/VersionTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Encoder (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Encoder/EncoderTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Encoder/MaskUtilTest.php (added)
-
tags/1.7/vendor/bacon/bacon-qr-code/test/Encoder/MatrixUtilTest.php (added)
-
tags/1.7/vendor/bjeavons (added)
-
tags/1.7/vendor/coduo (added)
-
tags/1.7/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/1.7/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.7/vendor/composer/installed.json (modified) (5 diffs)
-
tags/1.7/vendor/dasprid (added)
-
tags/1.7/vendor/dasprid/enum (added)
-
tags/1.7/vendor/dasprid/enum/LICENSE (added)
-
tags/1.7/vendor/dasprid/enum/README.md (added)
-
tags/1.7/vendor/dasprid/enum/composer.json (added)
-
tags/1.7/vendor/dasprid/enum/phpunit.xml.dist (added)
-
tags/1.7/vendor/dasprid/enum/src (added)
-
tags/1.7/vendor/dasprid/enum/src/AbstractEnum.php (added)
-
tags/1.7/vendor/dasprid/enum/src/EnumMap.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/CloneNotSupportedException.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/ExceptionInterface.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/ExpectationException.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/IllegalArgumentException.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/MismatchException.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/SerializeNotSupportedException.php (added)
-
tags/1.7/vendor/dasprid/enum/src/Exception/UnserializeNotSupportedException.php (added)
-
tags/1.7/vendor/dasprid/enum/src/NullValue.php (added)
-
tags/1.7/vendor/dasprid/enum/test (added)
-
tags/1.7/vendor/dasprid/enum/test/AbstractEnumTest.php (added)
-
tags/1.7/vendor/dasprid/enum/test/EnumMapTest.php (added)
-
tags/1.7/vendor/dasprid/enum/test/NullValueTest.php (added)
-
tags/1.7/vendor/dasprid/enum/test/Planet.php (added)
-
tags/1.7/vendor/dasprid/enum/test/WeekDay.php (added)
-
tags/1.7/vendor/doctrine (added)
-
tags/1.7/vendor/endroid (added)
-
tags/1.7/vendor/endroid/qr-code (added)
-
tags/1.7/vendor/endroid/qr-code/.gitattributes (added)
-
tags/1.7/vendor/endroid/qr-code/LICENSE (added)
-
tags/1.7/vendor/endroid/qr-code/assets (added)
-
tags/1.7/vendor/endroid/qr-code/assets/open_sans.ttf (added)
-
tags/1.7/vendor/endroid/qr-code/composer.json (added)
-
tags/1.7/vendor/endroid/qr-code/src (added)
-
tags/1.7/vendor/endroid/qr-code/src/Bacon (added)
-
tags/1.7/vendor/endroid/qr-code/src/Bacon/ErrorCorrectionLevelConverter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Bacon/MatrixFactory.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Builder (added)
-
tags/1.7/vendor/endroid/qr-code/src/Builder/Builder.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Builder/BuilderInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Builder/BuilderRegistry.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Builder/BuilderRegistryInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Color (added)
-
tags/1.7/vendor/endroid/qr-code/src/Color/Color.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Color/ColorInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Encoding (added)
-
tags/1.7/vendor/endroid/qr-code/src/Encoding/Encoding.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Encoding/EncodingInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ErrorCorrectionLevel (added)
-
tags/1.7/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelHigh.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelLow.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelMedium.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelQuartile.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ImageData (added)
-
tags/1.7/vendor/endroid/qr-code/src/ImageData/LabelImageData.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/ImageData/LogoImageData.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Alignment (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentCenter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentLeft.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentRight.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Font (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Font/Font.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Font/FontInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Font/NotoSans.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Font/OpenSans.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Label.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/LabelInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Margin (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Margin/Margin.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Label/Margin/MarginInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Logo (added)
-
tags/1.7/vendor/endroid/qr-code/src/Logo/Logo.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Logo/LogoInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Matrix (added)
-
tags/1.7/vendor/endroid/qr-code/src/Matrix/Matrix.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Matrix/MatrixFactoryInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Matrix/MatrixInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/QrCode.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/QrCodeInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/RoundBlockSizeMode (added)
-
tags/1.7/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeEnlarge.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeMargin.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeNone.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeShrink.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/WritableInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/BinaryWriter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/DebugWriter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/EpsWriter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/PdfWriter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/PngWriter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/AbstractResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/BinaryResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/DebugResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/EpsResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/PdfResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/PngResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/ResultInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/Result/SvgResult.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/SvgWriter.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/ValidatingWriterInterface.php (added)
-
tags/1.7/vendor/endroid/qr-code/src/Writer/WriterInterface.php (added)
-
tags/1.7/vendor/guzzlehttp (added)
-
tags/1.7/vendor/phar-io (added)
-
tags/1.7/vendor/phpdocumentor (added)
-
tags/1.7/vendor/phpspec (added)
-
tags/1.7/vendor/phpunit (added)
-
tags/1.7/vendor/ralouphie (added)
-
tags/1.7/vendor/scssphp/scssphp/bin/pscss (modified) (3 diffs)
-
tags/1.7/vendor/scssphp/scssphp/composer.json (modified) (2 diffs)
-
tags/1.7/vendor/scssphp/scssphp/src/Compiler.php (modified) (22 diffs)
-
tags/1.7/vendor/scssphp/scssphp/src/Node/Number.php (modified) (4 diffs)
-
tags/1.7/vendor/scssphp/scssphp/src/Parser.php (modified) (1 diff)
-
tags/1.7/vendor/scssphp/scssphp/src/Version.php (modified) (1 diff)
-
tags/1.7/vendor/sebastian (added)
-
tags/1.7/vendor/symfony (added)
-
trunk/assets (deleted)
-
trunk/classes (copied) (copied from secured-wp/trunk/classes)
-
trunk/classes/Controllers/LoginCheck.php (modified) (8 diffs)
-
trunk/classes/Controllers/Modules/Login.php (modified) (3 diffs)
-
trunk/classes/Controllers/Modules/RememberMe.php (modified) (1 diff)
-
trunk/classes/Controllers/Modules/XMLRPCprevents.php (modified) (1 diff)
-
trunk/classes/Controllers/User.php (copied) (copied from secured-wp/trunk/classes/Controllers/User.php) (1 diff)
-
trunk/classes/Helpers/AjaxRequests.php (copied) (copied from secured-wp/trunk/classes/Helpers/AjaxRequests.php)
-
trunk/classes/Helpers/NotifyAdmin.php (copied) (copied from secured-wp/trunk/classes/Helpers/NotifyAdmin.php)
-
trunk/classes/Helpers/OutOfBandEmail.php (added)
-
trunk/classes/Helpers/OutOfBondEmail.php (copied) (copied from secured-wp/trunk/classes/Helpers/OutOfBondEmail.php)
-
trunk/classes/Helpers/TOTPHelper.php (added)
-
trunk/classes/Secured.php (copied) (copied from secured-wp/trunk/classes/Secured.php) (9 diffs)
-
trunk/classes/Views/LoginForms.php (modified) (5 diffs)
-
trunk/classes/Views/SettingsTabs.php (modified) (1 diff)
-
trunk/classes/Views/UserProfile.php (copied) (copied from secured-wp/trunk/classes/Views/UserProfile.php) (5 diffs)
-
trunk/classes/Views/UsersList.php (modified) (6 diffs)
-
trunk/constants.php (copied) (copied from secured-wp/trunk/constants.php) (1 diff)
-
trunk/languages (copied) (copied from secured-wp/trunk/languages)
-
trunk/languages/secured-wp.pot (modified) (3 diffs)
-
trunk/readme.txt (copied) (copied from secured-wp/trunk/readme.txt) (4 diffs)
-
trunk/secured-wp.php (copied) (copied from secured-wp/trunk/secured-wp.php) (2 diffs)
-
trunk/vendor (copied) (copied from secured-wp/trunk/vendor)
-
trunk/vendor/bacon (added)
-
trunk/vendor/bacon/bacon-qr-code (added)
-
trunk/vendor/bacon/bacon-qr-code/CHANGELOG.md (added)
-
trunk/vendor/bacon/bacon-qr-code/LICENSE (added)
-
trunk/vendor/bacon/bacon-qr-code/README.md (added)
-
trunk/vendor/bacon/bacon-qr-code/composer.json (added)
-
trunk/vendor/bacon/bacon-qr-code/phpunit.xml.dist (added)
-
trunk/vendor/bacon/bacon-qr-code/src (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/BitArray.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/BitMatrix.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/BitUtils.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/CharacterSetEci.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/EcBlock.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/EcBlocks.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/ErrorCorrectionLevel.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/FormatInformation.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/Mode.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/ReedSolomonCodec.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Common/Version.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder/BlockPair.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder/ByteMatrix.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder/Encoder.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder/MaskUtil.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder/MatrixUtil.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Encoder/QrCode.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception/ExceptionInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception/InvalidArgumentException.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception/OutOfBoundsException.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception/RuntimeException.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception/UnexpectedValueException.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Exception/WriterException.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Color (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Color/Alpha.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Color/Cmyk.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Color/ColorInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Color/Gray.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Color/Rgb.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Eye (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Eye/CompositeEye.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Eye/EyeInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Eye/ModuleEye.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SimpleCircleEye.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Eye/SquareEye.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Image (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Image/EpsImageBackEnd.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Image/ImageBackEndInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Image/ImagickImageBackEnd.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Image/SvgImageBackEnd.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Image/TransformationMatrix.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/ImageRenderer.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/DotsModule.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/Edge.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/EdgeIterator/EdgeIterator.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/ModuleInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/RoundnessModule.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Module/SquareModule.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/Close.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/Curve.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/EllipticArc.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/Line.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/Move.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/OperationInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/Path/Path.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/PlainTextRenderer.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererInterface.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/EyeFill.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/Fill.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/Gradient.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/GradientType.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Renderer/RendererStyle/RendererStyle.php (added)
-
trunk/vendor/bacon/bacon-qr-code/src/Writer.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/BitArrayTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/BitMatrixTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/BitUtilsTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/ErrorCorrectionLevelTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/FormatInformationTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/ModeTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/ReedSolomonCodecTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Common/VersionTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Encoder (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Encoder/EncoderTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Encoder/MaskUtilTest.php (added)
-
trunk/vendor/bacon/bacon-qr-code/test/Encoder/MatrixUtilTest.php (added)
-
trunk/vendor/bjeavons (added)
-
trunk/vendor/coduo (added)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (5 diffs)
-
trunk/vendor/dasprid (added)
-
trunk/vendor/dasprid/enum (added)
-
trunk/vendor/dasprid/enum/LICENSE (added)
-
trunk/vendor/dasprid/enum/README.md (added)
-
trunk/vendor/dasprid/enum/composer.json (added)
-
trunk/vendor/dasprid/enum/phpunit.xml.dist (added)
-
trunk/vendor/dasprid/enum/src (added)
-
trunk/vendor/dasprid/enum/src/AbstractEnum.php (added)
-
trunk/vendor/dasprid/enum/src/EnumMap.php (added)
-
trunk/vendor/dasprid/enum/src/Exception (added)
-
trunk/vendor/dasprid/enum/src/Exception/CloneNotSupportedException.php (added)
-
trunk/vendor/dasprid/enum/src/Exception/ExceptionInterface.php (added)
-
trunk/vendor/dasprid/enum/src/Exception/ExpectationException.php (added)
-
trunk/vendor/dasprid/enum/src/Exception/IllegalArgumentException.php (added)
-
trunk/vendor/dasprid/enum/src/Exception/MismatchException.php (added)
-
trunk/vendor/dasprid/enum/src/Exception/SerializeNotSupportedException.php (added)
-
trunk/vendor/dasprid/enum/src/Exception/UnserializeNotSupportedException.php (added)
-
trunk/vendor/dasprid/enum/src/NullValue.php (added)
-
trunk/vendor/dasprid/enum/test (added)
-
trunk/vendor/dasprid/enum/test/AbstractEnumTest.php (added)
-
trunk/vendor/dasprid/enum/test/EnumMapTest.php (added)
-
trunk/vendor/dasprid/enum/test/NullValueTest.php (added)
-
trunk/vendor/dasprid/enum/test/Planet.php (added)
-
trunk/vendor/dasprid/enum/test/WeekDay.php (added)
-
trunk/vendor/doctrine (added)
-
trunk/vendor/endroid (added)
-
trunk/vendor/endroid/qr-code (added)
-
trunk/vendor/endroid/qr-code/.gitattributes (added)
-
trunk/vendor/endroid/qr-code/LICENSE (added)
-
trunk/vendor/endroid/qr-code/assets (added)
-
trunk/vendor/endroid/qr-code/assets/open_sans.ttf (added)
-
trunk/vendor/endroid/qr-code/composer.json (added)
-
trunk/vendor/endroid/qr-code/src (added)
-
trunk/vendor/endroid/qr-code/src/Bacon (added)
-
trunk/vendor/endroid/qr-code/src/Bacon/ErrorCorrectionLevelConverter.php (added)
-
trunk/vendor/endroid/qr-code/src/Bacon/MatrixFactory.php (added)
-
trunk/vendor/endroid/qr-code/src/Builder (added)
-
trunk/vendor/endroid/qr-code/src/Builder/Builder.php (added)
-
trunk/vendor/endroid/qr-code/src/Builder/BuilderInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Builder/BuilderRegistry.php (added)
-
trunk/vendor/endroid/qr-code/src/Builder/BuilderRegistryInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Color (added)
-
trunk/vendor/endroid/qr-code/src/Color/Color.php (added)
-
trunk/vendor/endroid/qr-code/src/Color/ColorInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Encoding (added)
-
trunk/vendor/endroid/qr-code/src/Encoding/Encoding.php (added)
-
trunk/vendor/endroid/qr-code/src/Encoding/EncodingInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/ErrorCorrectionLevel (added)
-
trunk/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelHigh.php (added)
-
trunk/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelLow.php (added)
-
trunk/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelMedium.php (added)
-
trunk/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelQuartile.php (added)
-
trunk/vendor/endroid/qr-code/src/ImageData (added)
-
trunk/vendor/endroid/qr-code/src/ImageData/LabelImageData.php (added)
-
trunk/vendor/endroid/qr-code/src/ImageData/LogoImageData.php (added)
-
trunk/vendor/endroid/qr-code/src/Label (added)
-
trunk/vendor/endroid/qr-code/src/Label/Alignment (added)
-
trunk/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentCenter.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentLeft.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentRight.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Font (added)
-
trunk/vendor/endroid/qr-code/src/Label/Font/Font.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Font/FontInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Font/NotoSans.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Font/OpenSans.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Label.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/LabelInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Margin (added)
-
trunk/vendor/endroid/qr-code/src/Label/Margin/Margin.php (added)
-
trunk/vendor/endroid/qr-code/src/Label/Margin/MarginInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Logo (added)
-
trunk/vendor/endroid/qr-code/src/Logo/Logo.php (added)
-
trunk/vendor/endroid/qr-code/src/Logo/LogoInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Matrix (added)
-
trunk/vendor/endroid/qr-code/src/Matrix/Matrix.php (added)
-
trunk/vendor/endroid/qr-code/src/Matrix/MatrixFactoryInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Matrix/MatrixInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/QrCode.php (added)
-
trunk/vendor/endroid/qr-code/src/QrCodeInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/RoundBlockSizeMode (added)
-
trunk/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeEnlarge.php (added)
-
trunk/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeMargin.php (added)
-
trunk/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeNone.php (added)
-
trunk/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeShrink.php (added)
-
trunk/vendor/endroid/qr-code/src/WritableInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer (added)
-
trunk/vendor/endroid/qr-code/src/Writer/BinaryWriter.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/DebugWriter.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/EpsWriter.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/PdfWriter.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/PngWriter.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/AbstractResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/BinaryResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/DebugResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/EpsResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/PdfResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/PngResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/ResultInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/Result/SvgResult.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/SvgWriter.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/ValidatingWriterInterface.php (added)
-
trunk/vendor/endroid/qr-code/src/Writer/WriterInterface.php (added)
-
trunk/vendor/guzzlehttp (added)
-
trunk/vendor/phar-io (added)
-
trunk/vendor/phpdocumentor (added)
-
trunk/vendor/phpspec (added)
-
trunk/vendor/phpunit (added)
-
trunk/vendor/ralouphie (added)
-
trunk/vendor/scssphp/scssphp/bin/pscss (modified) (3 diffs)
-
trunk/vendor/scssphp/scssphp/composer.json (modified) (2 diffs)
-
trunk/vendor/scssphp/scssphp/src/Compiler.php (modified) (22 diffs)
-
trunk/vendor/scssphp/scssphp/src/Node/Number.php (modified) (4 diffs)
-
trunk/vendor/scssphp/scssphp/src/Parser.php (modified) (1 diff)
-
trunk/vendor/scssphp/scssphp/src/Version.php (modified) (1 diff)
-
trunk/vendor/sebastian (added)
-
trunk/vendor/symfony (added)
Legend:
- Unmodified
- Added
- Removed
-
secured-wp/tags/1.7/classes/Controllers/LoginCheck.php
r2577925 r2636555 14 14 use WPSEC\Helpers\{ 15 15 NotifyAdmin, 16 OutOfB ondEmail,16 OutOfBandEmail, 17 17 }; 18 18 use WPSEC\Controllers\{ … … 37 37 * Checks the user login credentials 38 38 * 39 * TODO: change the log ing in user check - set proper priorities39 * TODO: change the logging in user check - set proper priorities 40 40 * 41 41 * 1. Checks if user is locked … … 55 55 public static function check( $user, $username, $password ) { 56 56 57 /** 58 * If neither of modules is enabled - return the user 59 */ 57 60 if ( (bool) \WPSEC\Controllers\Modules\LoginAttempts::getGlobalSettingsValue() 58 61 && … … 187 190 * @return void 188 191 * 189 * @since 192 * @since $VERSION 190 193 */ 191 194 public static function loginValidateOob() { … … 207 210 public static function setRememberMe() { 208 211 209 if ( isset( $_POST['rememberme'] ) && ! empty( $_POST['rememberme'] ) ) { 212 if ( isset( $_POST['rememberme'] ) && ! empty( $_POST['rememberme'] ) ) { // @codingStandardsIgnoreLine - Nonce check is not needed 210 213 RememberMe::setRememberMe( User::getUser()->ID ); 211 214 User::setLoggedInDevice( RememberMe::getDevice() ); … … 214 217 215 218 /** 216 * Checks Out of b ond email link and logging the user if passed219 * Checks Out of band email link and logging the user if passed 217 220 * 218 221 * @param bool $secondPass - first pass comes from e-mail (link), second pass comes from WP form itself. … … 240 243 $wpsOtp = (string) \sanitize_text_field( \wp_unslash( $params['wps_otp'] ) ); 241 244 242 $nonceName = OutOfB ondEmail::getNonceName();245 $nonceName = OutOfBandEmail::getNonceName(); 243 246 244 247 if ( isset( $params[ $nonceName ] ) && ! empty( $params[ $nonceName ] ) ) { 245 if ( ! \wp_verify_nonce( \sanitize_text_field( \wp_unslash( $params[ $nonceName ] ) ), OutOfB ondEmail::getNonceNamePrefix() . $userId ) ) {248 if ( ! \wp_verify_nonce( \sanitize_text_field( \wp_unslash( $params[ $nonceName ] ) ), OutOfBandEmail::getNonceNamePrefix() . $userId ) ) { 246 249 exit(); 247 250 } 248 251 249 252 // check transient. 250 $dataTimeout = \get_option( '_transient_timeout_' . OutOfB ondEmail::getTransientPrefix() . ( (string) $userId ) );253 $dataTimeout = \get_option( '_transient_timeout_' . OutOfBandEmail::getTransientPrefix() . ( (string) $userId ) ); 251 254 if ( $dataTimeout > time() ) { 252 if ( OutOfB ondEmail::validateUserOOB( $userId, $wpsOtp ) ) {255 if ( OutOfBandEmail::validateUserOOB( $userId, $wpsOtp ) ) { 253 256 254 257 if ( ! $secondPass ) { … … 257 260 } 258 261 \wp_clear_auth_cookie(); 259 OutOfB ondEmail::deleteTransient( $userId );262 OutOfBandEmail::deleteTransient( $userId ); 260 263 \wp_set_current_user( $userId ); 261 264 \wp_set_auth_cookie( $userId ); -
secured-wp/tags/1.7/classes/Controllers/Modules/Login.php
r2576070 r2636555 79 79 \add_action( 'plugins_loaded', [ __CLASS__, 'pluginsLoaded' ], 9999 ); 80 80 \add_action( 'wp_loaded', [ __CLASS__, 'wpLoaded' ] ); 81 \add_action( 'wp_redirect', [ __CLASS__, 'wpRedirect' ], 10, 2 ); 81 82 \add_action( 'setup_theme', [ __CLASS__, 'setupTheme' ], 1 ); 82 83 … … 567 568 568 569 /** 569 * C heck the current url and changes it if necessary570 * 571 * @ since 1.0.0572 * 573 * @param string $url - the url of the site.574 * @ param mixed $scheme - the URL scheme.575 * 576 * @ return string577 */ 578 public static function filterWpLoginPhp( $url, $scheme = null): string {579 580 if ( false !== strpos( $url, 'wp-login.php?action=postpass' )) {570 * Called on wp_redirect action. Checks the URL string, and filters it accordingly if wp-login.php is presented (substitute it with the new slug) 571 * 572 * @param string $url - The URL to which WP is trying to redirect to. 573 * @param integer $status - Number code of the status. 574 * 575 * @return string 576 * 577 * @since 1.6 578 */ 579 public static function wpRedirect( string $url, int $status ): string { 580 581 if ( strpos( $url, 'https://wordpress.com/wp-login.php' ) !== false ) { 581 582 return $url; 582 583 } 583 584 584 if ( false !== strpos( $url, 'wp-login.php' ) && false === strpos( (string) \wp_get_referer(), 'wp-login.php' ) ) { 585 586 if ( \is_ssl() ) { 587 588 $scheme = 'https'; 589 590 } 591 592 $args = explode( '?', $url ); 593 594 if ( isset( $args[1] ) ) { 595 596 parse_str( $args[1], $args ); 597 598 if ( isset( $args['login'] ) ) { 599 $args['login'] = rawurlencode( $args['login'] ); 600 } 601 602 $url = \add_query_arg( $args, self::newLoginUrl( $scheme ) ); 603 604 } else { 605 606 $url = self::newLoginUrl( $scheme ); 607 608 } 609 } 610 611 return $url; 612 585 return self::filterWpLoginPhp( $url ); 613 586 } 614 587 … … 761 734 762 735 /** 736 * Checks the current url and changes it if necessary 737 * 738 * @since 1.0.0 739 * 740 * @param string $url - the url of the site. 741 * @param mixed $scheme - the URL scheme. 742 * 743 * @return string 744 */ 745 private static function filterWpLoginPhp( $url, $scheme = null ): string { 746 747 if ( false !== strpos( $url, 'wp-login.php?action=postpass' ) ) { 748 return $url; 749 } 750 751 if ( false !== strpos( $url, 'wp-login.php' ) && false === strpos( (string) \wp_get_referer(), 'wp-login.php' ) ) { 752 753 if ( \is_ssl() ) { 754 755 $scheme = 'https'; 756 757 } 758 759 $args = explode( '?', $url ); 760 761 if ( isset( $args[1] ) ) { 762 763 parse_str( $args[1], $args ); 764 765 if ( isset( $args['login'] ) ) { 766 $args['login'] = rawurlencode( $args['login'] ); 767 } 768 769 $url = \add_query_arg( $args, self::newLoginUrl( $scheme ) ); 770 771 } else { 772 773 $url = self::newLoginUrl( $scheme ); 774 775 } 776 } 777 778 return $url; 779 } 780 781 /** 763 782 * Returns the wpLogin status 764 783 * -
secured-wp/tags/1.7/classes/Controllers/Modules/RememberMe.php
r2576070 r2636555 247 247 248 248 \delete_transient( 249 self::$transientPrefix . md5( $device ) . '_' . $userId ,249 self::$transientPrefix . md5( $device ) . '_' . $userId 250 250 ); 251 251 } -
secured-wp/tags/1.7/classes/Controllers/Modules/XMLRPCprevents.php
r2576070 r2636555 13 13 14 14 use WPSEC\Helpers\WPHelper; 15 use WPSEC\Validators\Validator;16 15 17 16 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. -
secured-wp/tags/1.7/classes/Controllers/User.php
r2579465 r2636555 616 616 * @return string 617 617 * 618 * @since 618 * @since 1.7 619 619 */ 620 620 public static function getStatus( $user = null ): string { -
secured-wp/tags/1.7/classes/Secured.php
r2579465 r2636555 27 27 }; 28 28 use WPSEC\Validators\Validator; 29 use WPSEC\Views\UserProfile; 29 30 30 31 if ( ! class_exists( 'WPSEC\Secured' ) ) { … … 61 62 * @since 1.0.0 62 63 * 63 * @param array $links - Glo abal links array.64 * @param array $links - Global links array. 64 65 * 65 66 * @return array … … 91 92 /* translators: %1$s: PHP version */ 92 93 \esc_html__( 'You need to update your PHP version to %1s.', 'secured-wp' ), 93 WPSEC_REQUIRED_PHP_VERSION // @codingStandardsIgnoreLine - that is defined consta tnt no need to escape it94 WPSEC_REQUIRED_PHP_VERSION // @codingStandardsIgnoreLine - that is defined constant no need to escape it 94 95 ); 95 96 ?> … … 112 113 /* translators: %1$s: WP version */ 113 114 \esc_html__( 'You need to update your WP version to %1s.', 'secured-wp' ), 114 WPSEC_REQUIRED_WP_VERSION // @codingStandardsIgnoreLine - that is defined constatnt no need to escape it115 WPSEC_REQUIRED_WP_VERSION // @codingStandardsIgnoreLine - that is defined constant no need to escape it 115 116 ); 116 117 ?> … … 170 171 * Returns the status of delete data upon uninstall 171 172 * 172 * @since 1.0.0173 *174 173 * @param mixed $blogId - WP blog ID. 175 174 * 176 175 * @return mixed 176 * 177 * @since 1.0.0 177 178 */ 178 179 public static function isDeleteDataEnabled( $blogId = '' ) { … … 220 221 221 222 /** 223 * Shows the content for user settings when short code is used 224 * 225 * @return void - the parsed HTML. 226 * 227 * @since 1.6 228 */ 229 public static function settingsShortCode() { 230 231 if ( User::isCurrentlyLogged() ) { 232 $user = User::getUser(); 233 ob_start(); 234 UserProfile::userEditProfile( $user ); 235 $content = ob_get_clean(); 236 echo $content; // @codingStandardsIgnoreLine - All output must be escaped warning 237 } else { 238 ?> 239 <h2><?php echo \esc_html__( 'You must be logged in to see this content', 'secured-wp' ); ?></h2> 240 <?php 241 } 242 } 243 244 /** 222 245 * Inits all the hooks the plugin will use 223 246 * 224 * @ since 1.0.0225 * 226 * @ return void247 * @return void 248 * 249 * @since 1.0.0 227 250 */ 228 251 private static function initHooks() { … … 237 260 */ 238 261 \add_action( 'login_form_confirm_oob', [ 'WPSEC\\Controllers\\LoginCheck', 'loginValidateOob' ], 1 ); 262 263 /** 264 * Adds shortcode - that gives the ability to create our own page with user settings 265 */ 266 \add_shortcode( 'wps_custom_settings', [ __CLASS__, 'settingsShortCode' ] ); 239 267 240 268 /** … … 276 304 * Adds ajax request for sending the OOB 277 305 */ 278 \add_action( 'wp_ajax_nopriv_send_oob', [ 'WPSEC\\Helpers\\OutOfB ondEmail', 'sendOOBEmail' ] );279 \add_action( 'wp_ajax_send_oob', [ 'WPSEC\\Helpers\\OutOfB ondEmail', 'sendOOBEmail' ] );306 \add_action( 'wp_ajax_nopriv_send_oob', [ 'WPSEC\\Helpers\\OutOfBandEmail', 'sendOOBEmail' ] ); 307 \add_action( 'wp_ajax_send_oob', [ 'WPSEC\\Helpers\\OutOfBandEmail', 'sendOOBEmail' ] ); 280 308 } 281 309 … … 308 336 /** 309 337 * If user is logged in and there is woocommerce installed and the method is enabled, 310 * we gon a need the AJAX methods available.338 * we gonna need the AJAX methods available. 311 339 */ 312 340 if ( User::isCurrentlyLogged() ) { 313 if ( class_exists( 'WooCommerce' ) ) { 314 if ( ! (bool) \WPSEC\Controllers\Modules\TwoFASettings::getGlobalSettingsValue() ) { 315 // AJAX request for the user - do we need this globally for the Admin Part of the WP ?. 316 AjaxRequests::initAdmin(); 317 } 341 // if ( class_exists( 'WooCommerce' ) ) { 342 if ( ! (bool) \WPSEC\Controllers\Modules\TwoFASettings::getGlobalSettingsValue() ) { 343 // AJAX request for the user - do we need this globally for the Admin Part of the WP ?. 344 AjaxRequests::initAdmin(); 318 345 } 319 } 320 } 321 322 /** 323 * Conditionally add assets only when they are necessary 324 * 325 * @since 1.0.0 326 * 327 * @return void 346 // } 347 } 348 } 349 350 /** 351 * Conditionally adds assets only when they are necessary 352 * 353 * @return void 354 * 355 * @since 1.0.0 328 356 */ 329 357 private static function addAssets() { -
secured-wp/tags/1.7/classes/Views/LoginForms.php
r2578321 r2636555 12 12 namespace WPSEC\Views; 13 13 14 use WPSEC\Helpers\TOTPHelper; 14 15 use WPSEC\{ 15 16 Controllers\User, 16 17 Controllers\Modules\TwoFASettings, 17 Helpers\OutOfB ondEmail18 Helpers\OutOfBandEmail 18 19 }; 19 use OTPHP\TOTP;20 20 21 21 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. … … 107 107 if ( ! User::isTotpUserEnabled() ) { 108 108 echo \esc_html( \get_bloginfo( 'name' ) ); 109 110 $otp = TOTP::create( User::getUserTotp() );111 112 $otp->setLabel(113 \get_bloginfo( 'name' )114 );115 $grCodeUri = $otp->getQrCodeUri(116 'https://api.qrserver.com/v1/create-qr-code/?data=[DATA]&size=200x200&ecc=M',117 '[DATA]'118 );119 109 ?> 120 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( $grCodeUri ); ?>'></div>110 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( TOTPHelper::generateQRSVGData() ); ?>' width="100%"></div> 121 111 <?php 122 112 echo \esc_html__( 'Scan above with your favorite Authenticator Application and enter the code below or add the following code:', 'secured-wp' ); 123 echo '<div><strong>' . \esc_html( $otp->getSecret() ) . '</strong></div>';113 echo '<div><strong>' . \esc_html( User::getUserTotp() ) . '</strong></div>'; 124 114 } else { 125 115 echo \esc_html__( 'Open the Authenticator Application on your phone and enter the code for ' . \get_bloginfo( 'name' ), 'secured-wp' ); … … 198 188 <input type="hidden" name="wps_otp" id="wps_otp" value="<?php echo \esc_attr( \wp_unslash( $_GET['wps_otp'] ) ); ?>" /> 199 189 <input type="hidden" name="user_id" id="wps_otp" value="<?php echo \esc_attr( \wp_unslash( $_GET['user_id'] ) ); ?>" /> 200 <?php \wp_nonce_field( OutOfB ondEmail::getNonceNamePrefix() . \wp_unslash( $_GET['user_id'] ), OutOfBondEmail::getNonceName() ); ?>190 <?php \wp_nonce_field( OutOfBandEmail::getNonceNamePrefix() . \wp_unslash( $_GET['user_id'] ), OutOfBandEmail::getNonceName() ); ?> 201 191 <div> 202 192 <p> … … 271 261 272 262 /** 273 * Adds Out of bond link to the login form263 * Adds Out of Band link to the login form 274 264 * 275 265 * @since 1.0.0 … … 284 274 ?> 285 275 <div style="clear: both;" id="wsc-oob-wrapper"> 286 <a href="#" id="send-oob-mail"><?php echo \esc_html__( 'Send me out of b ond email instead', 'secured-wp' ); ?></a>276 <a href="#" id="send-oob-mail"><?php echo \esc_html__( 'Send me out of band email instead', 'secured-wp' ); ?></a> 287 277 </div> 288 278 <script> -
secured-wp/tags/1.7/classes/Views/SettingsTabs.php
r2576070 r2636555 240 240 </tr> 241 241 <tr> 242 <th scope="row"><?php echo \esc_html__( 'Out of b ond e-mail ', 'secured-wp' ); ?></th>242 <th scope="row"><?php echo \esc_html__( 'Out of band e-mail ', 'secured-wp' ); ?></th> 243 243 <td> 244 244 <label for="<?php echo \esc_attr( WPSEC_PLUGIN_SECURED_2FA_OOB_VAR_NAME ); ?>"> -
secured-wp/tags/1.7/classes/Views/UserProfile.php
r2579465 r2636555 14 14 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. 15 15 16 use OTPHP\TOTP;17 16 use WPSEC\Controllers\{ 18 17 User, 19 18 Modules\RememberMe, 20 19 }; 20 use WPSEC\Helpers\TOTPHelper; 21 21 22 22 if ( ! class_exists( 'WPSEC\Views\UserProfile' ) ) { … … 132 132 133 133 </table> 134 <div class="tablenav" >134 <div class="tablenav" style="overflow:hidden;"> 135 135 <div class="alignright"> 136 136 <?php 137 \submit_button( 138 __( 'Remove all logged in devices', 'secured-wp' ), 139 'delete', 140 'remove-all-logged-devices', 141 false 142 ); 137 if ( function_exists( 'submit_button' ) ) { 138 \submit_button( 139 __( 'Remove all logged in devices', 'secured-wp' ), 140 'delete', 141 'remove-all-logged-devices', 142 false 143 ); 144 } else { 145 ?> 146 <input type="submit" name="remove-all-logged-devices" id="remove-all-logged-devices" class="button delete" value="Remove all logged in devices"> 147 <?php 148 self::deleteQRCodeJS(); 149 } 143 150 ?> 144 151 </div> 145 152 </div> 146 <hr >153 <hr style="clear:both; margin-top:5px;"> 147 154 <?php 148 155 if ( \current_user_can( 'edit_user', User::getUser()->ID ) && ! (bool) User::isTwoFaUserExcluded() ) { … … 166 173 ?> 167 174 <h3><?php echo \esc_html__( 'QR code for the TOTP 2FA login', 'secured-wp' ); ?></h3> 168 <?php 169 $otp = TOTP::create( User::getUserTotp() ); 170 171 $otp->setLabel( 172 \get_bloginfo( 'name' ) 173 ); 174 $grCodeUri = $otp->getQrCodeUri( 175 'https://api.qrserver.com/v1/create-qr-code/?data=[DATA]&size=200x200&ecc=M', 176 '[DATA]' 177 ); 178 ?> 179 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( $grCodeUri ); ?>'></div> 175 176 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( TOTPHelper::generateQRSVGData() ); ?>'></div> 180 177 <div><?php echo \esc_html__( 'Or use the following key, by entering it directly in you preferable authentication application:', 'secured-wp' ); ?></div> 181 178 <div><strong><?php echo \esc_html( $otp->getSecret() ); ?></strong></div> 182 <div class="tablenav" >179 <div class="tablenav" style="overflow:hidden;"> 183 180 <div class="alignleft"> 184 181 <?php … … 205 202 </div> 206 203 </div> 204 <hr style="clear:both; margin-top:5px;"> 207 205 <?php 208 206 } … … 316 314 ?> 317 315 <script> 318 ( function( jQuery ) { 319 jQuery('.alignleft').on('click', '#regenerate-qr-code', function(e) { 320 e.preventDefault(); 321 var ajaxurl = "<?php echo \esc_url( admin_url( 'admin-ajax.php' ) ); ?>" 322 var deleteData = { 323 'action': 'wps_delete_qr', 324 'user': '<?php echo \esc_attr( User::getUser()->ID ); ?>', 325 'nonce': '<?php echo \esc_attr( \wp_create_nonce( 'wp-secured-wps_delete_qr-ajax-nonce' ) ); ?>', 326 }; 327 328 let that = this; 329 330 jQuery.ajax({ 331 type: "post", 332 dataType: "json", 333 url: ajaxurl, 334 data: deleteData, 335 success: function( msg ) { 336 if ( 'success' == msg['result'] ) { 337 location.reload(); ; 338 } 339 } 340 }); 341 }); 342 }( jQuery ) ); 316 var qrRegenerate = document.getElementById('regenerate-qr-code'); 317 qrRegenerate.addEventListener("click", function(e) { 318 e.preventDefault(); 319 var request = new XMLHttpRequest(); 320 321 request.open('POST', '<?php echo \esc_url( \admin_url( 'admin-ajax.php' ) ); ?>', true); 322 request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;'); 323 request.responseType = 'json'; 324 request.onload = function () { 325 if (this.status >= 200 && this.status < 400) { 326 location.reload(); 327 } else { 328 // If fail 329 console.log(this.response); 330 } 331 }; 332 request.onerror = function() { 333 console.log('Connection error'); 334 }; 335 336 var deleteData = { 337 "action": "wps_delete_qr", 338 "user": "<?php echo \esc_attr( User::getUser()->ID ); ?>", 339 "nonce": "<?php echo \esc_attr( \wp_create_nonce( 'wp-secured-wps_delete_qr-ajax-nonce' ) ); ?>", 340 }; 341 342 request.send("action=wps_delete_qr&user=<?php echo \esc_attr( User::getUser()->ID ); ?>&nonce=<?php echo \esc_attr( \wp_create_nonce( 'wp-secured-wps_delete_qr-ajax-nonce' ) ); ?>"); 343 }, false); 344 343 345 </script> 344 346 <?php -
secured-wp/tags/1.7/classes/Views/UsersList.php
r2578323 r2636555 57 57 * @var string 58 58 * 59 * @since 59 * @since 1.7 60 60 */ 61 61 private static $changeLockedBulkActionName = 'change-to-locked'; … … 66 66 * @var string 67 67 * 68 * @since 68 * @since 1.7 69 69 */ 70 70 private static $changeUnLockedBulkActionName = 'change-to-unlocked'; … … 75 75 * @var string 76 76 * 77 * @since 77 * @since 1.7 78 78 */ 79 79 private static $changeExcludeTwoFaBulkActionName = 'exclude-2fa'; … … 84 84 * @var string 85 85 * 86 * @since 86 * @since 1.7 87 87 */ 88 88 private static $changeIncludeTwoFaBulkActionName = 'include-2fa'; … … 127 127 } 128 128 129 // wpmu_users_columns 130 // manage_users - network_sortable_columns 131 129 132 /** 130 133 * Show logged in column … … 136 139 if ( WPHelper::isMultisite() ) { 137 140 \add_filter( 'wpmu_users_columns', [ __CLASS__, 'addUsersLoggedColumn' ] ); 141 \add_filter( 'manage_users-network_sortable_columns', [ __CLASS__, 'addUsersLoggedColumn' ] ); 138 142 } 139 143 -
secured-wp/tags/1.7/constants.php
r2579464 r2636555 14 14 } 15 15 16 define( 'WPSEC_REQUIRED_PHP_VERSION', '7. 2' );16 define( 'WPSEC_REQUIRED_PHP_VERSION', '7.3' ); 17 17 define( 'WPSEC_REQUIRED_WP_VERSION', '5.0' ); 18 define( 'WPSEC_PLUGIN_SECURED_VERSION', '1. 5' );18 define( 'WPSEC_PLUGIN_SECURED_VERSION', '1.7' ); 19 19 define( 'WPSEC_PLUGIN_SECURED_NAME', 'Secured WP' ); 20 20 define( 'WPSEC_PLUGIN_SECURED_SLUG', 'secured-wp' ); -
secured-wp/tags/1.7/languages/secured-wp.pot
r2577909 r2636555 1 1 # Copyright (C) 2021 wp-secured 2 # This file is distributed under the same license as the Secured WP plugin.2 # This file is distributed under the GPL-2.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Secured WP 1. 1\n"5 "Project-Id-Version: Secured WP 1.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/secured-wp\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2021-08- 04T14:05:08+03:00\n"12 "POT-Creation-Date: 2021-08-15T09:21:29+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 4.0\n"15 "X-Domain: wp-secured\n"14 "X-Generator: WP-CLI 2.5.0\n" 15 "X-Domain: secured-wp\n" 16 16 17 17 #. Plugin Name of the plugin … … 31 31 msgid "wp-secured" 32 32 msgstr "" 33 34 #: classes/Controllers/LoginCheck.php:78 35 msgid "<strong>Error</strong>: Too soon." 36 msgstr "" 37 38 #: classes/Controllers/LoginCheck.php:102 39 msgid "<strong>Error</strong>: Too many attempts." 40 msgstr "" 41 42 #: classes/Controllers/LoginCheck.php:174 43 msgid "Invalid code provided" 44 msgstr "" 45 46 #: classes/Controllers/Modules/Login.php:396 47 msgid "This feature is not enabled." 48 msgstr "" 49 50 #: classes/Controllers/Modules/Login.php:447 51 msgid "Nothing to see here" 52 msgstr "" 53 54 #: classes/Controllers/Modules/Login.php:682 55 msgid "Login" 56 msgstr "" 57 58 #: classes/Controllers/Modules/Login.php:699 59 msgid "New login slug" 60 msgstr "" 61 62 #: classes/Controllers/Modules/Login.php:703 63 msgid "Redirect original login" 64 msgstr "" 65 66 #: classes/Controllers/Modules/Login.php:759 67 msgid "Hides the standard wp-login.php with your personal slug of choice. Redirects the original login to slug of your choice" 68 msgstr "" 69 70 #: classes/Controllers/Modules/LoginAttempts.php:235 71 msgid "Login attempts" 72 msgstr "" 73 74 #: classes/Controllers/Modules/LoginAttempts.php:252 75 #: classes/Views/SettingsTabs.php:119 76 msgid "Login Attempts" 77 msgstr "" 78 79 #: classes/Controllers/Modules/LoginAttempts.php:256 80 #: classes/Controllers/Modules/RememberMe.php:351 81 #: classes/Views/SettingsTabs.php:127 82 msgid "Lock time" 83 msgstr "" 84 85 #: classes/Controllers/Modules/LoginAttempts.php:257 86 msgid " mins." 87 msgstr "" 88 89 #: classes/Controllers/Modules/LoginAttempts.php:294 90 msgid "Counts incorect login attempts and locks the user - use standard user menu to check locked users." 91 msgstr "" 92 93 #: classes/Controllers/Modules/RememberMe.php:334 94 msgid "Remember Devices" 95 msgstr "" 96 97 #: classes/Controllers/Modules/RememberMe.php:352 98 msgid " days." 99 msgstr "" 100 101 #: classes/Controllers/Modules/RememberMe.php:405 102 msgid "When enabled, if user checks remember me on login, the device will be stored and the user wont be asked for credentials for the given amount of time." 103 msgstr "" 104 105 #: classes/Controllers/Modules/TwoFASettings.php:189 106 msgid "2FA settings" 107 msgstr "" 108 109 #: classes/Controllers/Modules/TwoFASettings.php:206 110 msgid "TOTP enabled" 111 msgstr "" 112 113 #: classes/Controllers/Modules/TwoFASettings.php:207 114 #: classes/Controllers/Modules/TwoFASettings.php:211 115 #: classes/Helpers/Information/ModuleInformation.php:49 116 msgid "true" 117 msgstr "" 118 119 #: classes/Controllers/Modules/TwoFASettings.php:207 120 #: classes/Controllers/Modules/TwoFASettings.php:211 121 #: classes/Helpers/Information/ModuleInformation.php:49 122 msgid "false" 123 msgstr "" 124 125 #: classes/Controllers/Modules/TwoFASettings.php:210 126 msgid "OOB enabled" 127 msgstr "" 128 129 #: classes/Controllers/Modules/TwoFASettings.php:266 130 msgid "Enables 2FA. Next time, when user logins s/he will be asked to add the site to Authenticator application of their choice, and from now on they must provide code from that App in order to login." 131 msgstr "" 132 133 #: classes/Controllers/Modules/XMLRPCprevents.php:62 134 msgid "XML-RPC settings" 135 msgstr "" 136 137 #: classes/Controllers/Modules/XMLRPCprevents.php:108 138 msgid "Disables XML-RPC. By default WordPress has that enabled - this is potentially security risk - that will disable XML-RPC on your site completely" 139 msgstr "" 140 141 #: classes/Controllers/User.php:622 142 msgid "2FA enabled: YES" 143 msgstr "" 144 145 #: classes/Controllers/User.php:623 146 msgid "TOTP enabled: NO" 147 msgstr "" 148 149 #: classes/Controllers/User.php:627 150 msgid "2FA enabled: EXCLUDED" 151 msgstr "" 152 153 #: classes/Controllers/User.php:631 154 msgid "TOTP enabled: YES" 155 msgstr "" 156 157 #: classes/Helpers/Information/ModuleInformation.php:49 158 msgid "Disabled: " 159 msgstr "" 160 161 #: classes/Helpers/NotifyAdmin.php:39 162 msgid "Maximum number of unsuccessful login attempts reached" 163 msgstr "" 164 165 #: classes/Helpers/OutOfBandEmail.php:93 166 msgid "One time login link" 167 msgstr "" 168 169 #: classes/Helpers/OutOfBandEmail.php:128 170 msgid "Out of bond email link" 171 msgstr "" 172 173 #: classes/Secured.php:70 174 msgid "Settings" 175 msgstr "" 176 177 #. translators: %1$s: PHP version 178 #: classes/Secured.php:93 179 msgid "You need to update your PHP version to %1s." 180 msgstr "" 181 182 #: classes/Secured.php:98 183 #: classes/Secured.php:119 184 msgid "Actual version is:" 185 msgstr "" 186 187 #. translators: %1$s: WP version 188 #: classes/Secured.php:114 189 msgid "You need to update your WP version to %1s." 190 msgstr "" 191 192 #: classes/Secured.php:239 193 msgid "You must be logged in to see this content" 194 msgstr "" 195 196 #: classes/Validators/Validator.php:64 197 #: classes/Validators/Validator.php:94 198 msgid "No rules are set - nothing to test against" 199 msgstr "" 200 201 #: classes/Validators/Validator.php:72 202 msgid "Variable is not set" 203 msgstr "" 204 205 #: classes/Validators/Validator.php:126 206 msgid "Variable is not valid e-mail" 207 msgstr "" 208 209 #: classes/Validators/Validator.php:191 210 msgid "Variable is not integer" 211 msgstr "" 212 213 #: classes/Validators/Validator.php:195 214 #: classes/Validators/Validator.php:211 215 msgid "Variable is not positive integer!" 216 msgstr "" 217 218 #: classes/Validators/Validator.php:214 219 msgid "Variable is not in given range" 220 msgstr "" 221 222 #: classes/Views/AdminSettingsView.php:104 223 msgid "Information" 224 msgstr "" 225 226 #: classes/Views/AdminSettingsView.php:110 227 msgid "Provides Security for WP sites" 228 msgstr "" 229 230 #: classes/Views/AdminSettingsView.php:115 231 msgid "Version" 232 msgstr "" 233 234 #: classes/Views/AdminSettingsView.php:119 235 msgid "Delete data on plugin uninstall" 236 msgstr "" 237 238 #: classes/Views/AdminSettingsView.php:122 239 msgid "That setting is global" 240 msgstr "" 241 242 #: classes/Views/AdminSettingsView.php:126 243 msgid "Modules Information" 244 msgstr "" 245 246 #: classes/Views/AdminSettingsView.php:137 247 #: classes/Views/AdminSettingsView.php:155 248 msgid "Save Changes" 249 msgstr "" 250 251 #: classes/Views/AdminSettingsView.php:163 252 msgid "Restore Default Plugin Settings" 253 msgstr "" 254 255 #: classes/Views/AdminSettingsView.php:177 256 msgid "Are you sure you want to restore the defaults? All settings will be overridden" 257 msgstr "" 258 259 #: classes/Views/AdminSettingsView.php:182 260 msgid "Are you sure you want to restore the defaults? All module settings will be overridden" 261 msgstr "" 262 263 #: classes/Views/LoginForms.php:122 264 msgid "Scan above with your favorite Authenticator Application and enter the code below or add the following code:" 265 msgstr "" 266 267 #: classes/Views/LoginForms.php:125 268 msgid "Open the Authenticator Application on your phone and enter the code for " 269 msgstr "" 270 271 #: classes/Views/LoginForms.php:129 272 msgid "Authentication Code:" 273 msgstr "" 274 275 #: classes/Views/LoginForms.php:135 276 #: classes/Views/LoginForms.php:209 277 msgid "Log In" 278 msgstr "" 279 280 #: classes/Views/LoginForms.php:203 281 msgid "Click the button to finish the login." 282 msgstr "" 283 284 #: classes/Views/LoginForms.php:236 285 msgid "You have logged in successfully." 286 msgstr "" 287 288 #: classes/Views/LoginForms.php:286 289 msgid "Send me out of bond email instead" 290 msgstr "" 291 292 #: classes/Views/SettingsTabs.php:52 293 msgid "Login redirection Settings" 294 msgstr "" 295 296 #: classes/Views/SettingsTabs.php:55 297 msgid "Disable Login Redirection" 298 msgstr "" 299 300 #: classes/Views/SettingsTabs.php:56 301 #: classes/Views/SettingsTabs.php:111 302 #: classes/Views/SettingsTabs.php:173 303 #: classes/Views/SettingsTabs.php:226 304 #: classes/Views/SettingsTabs.php:281 305 msgid "Description:" 306 msgstr "" 307 308 #: classes/Views/SettingsTabs.php:58 309 #: classes/Views/SettingsTabs.php:114 310 #: classes/Views/SettingsTabs.php:176 311 #: classes/Views/SettingsTabs.php:229 312 #: classes/Views/SettingsTabs.php:284 313 msgid "These settings are blog related (multisite)" 314 msgstr "" 315 316 #: classes/Views/SettingsTabs.php:63 317 msgid "New Login redirection slug" 318 msgstr "" 319 320 #: classes/Views/SettingsTabs.php:66 321 msgid "New login redirection slug" 322 msgstr "" 323 324 #: classes/Views/SettingsTabs.php:71 325 #: classes/Views/SettingsTabs.php:74 326 msgid "Redirect original login to" 327 msgstr "" 328 329 #: classes/Views/SettingsTabs.php:79 330 #: classes/Views/SettingsTabs.php:141 331 #: classes/Views/SettingsTabs.php:195 332 #: classes/Views/SettingsTabs.php:250 333 #: classes/Views/SettingsTabs.php:289 334 msgid "Default Settings" 335 msgstr "" 336 337 #: classes/Views/SettingsTabs.php:83 338 #: classes/Views/SettingsTabs.php:145 339 #: classes/Views/SettingsTabs.php:199 340 #: classes/Views/SettingsTabs.php:254 341 #: classes/Views/SettingsTabs.php:293 342 msgid "Restore Module Default Settings" 343 msgstr "" 344 345 #: classes/Views/SettingsTabs.php:89 346 #: classes/Views/SettingsTabs.php:151 347 #: classes/Views/SettingsTabs.php:205 348 msgid "This will restore module settings to defaults." 349 msgstr "" 350 351 #: classes/Views/SettingsTabs.php:107 352 msgid "Login Attempts Settings" 353 msgstr "" 354 355 #: classes/Views/SettingsTabs.php:110 356 msgid "Disable Login Attempts" 357 msgstr "" 358 359 #: classes/Views/SettingsTabs.php:136 360 msgid "How many minutes to lock the user" 361 msgstr "" 362 363 #: classes/Views/SettingsTabs.php:169 364 msgid "Remember Device Settings" 365 msgstr "" 366 367 #: classes/Views/SettingsTabs.php:172 368 msgid "Disable Remember Devices" 369 msgstr "" 370 371 #: classes/Views/SettingsTabs.php:181 372 msgid "Remember Device Time" 373 msgstr "" 374 375 #: classes/Views/SettingsTabs.php:190 376 msgid "How many days remember device" 377 msgstr "" 378 379 #: classes/Views/SettingsTabs.php:222 380 msgid "2FA Settings" 381 msgstr "" 382 383 #: classes/Views/SettingsTabs.php:225 384 msgid "Disable 2FA" 385 msgstr "" 386 387 #: classes/Views/SettingsTabs.php:234 388 msgid "TOTP " 389 msgstr "" 390 391 #: classes/Views/SettingsTabs.php:242 392 msgid "Out of bond e-mail " 393 msgstr "" 394 395 #: classes/Views/SettingsTabs.php:260 396 #: classes/Views/SettingsTabs.php:299 397 msgid "This will restore plugin settings to defaults." 398 msgstr "" 399 400 #: classes/Views/SettingsTabs.php:277 401 msgid "XML-RPC Settings" 402 msgstr "" 403 404 #: classes/Views/SettingsTabs.php:280 405 msgid "Enable XML-RPC" 406 msgstr "" 407 408 #: classes/Views/UserProfile.php:54 409 msgid "Secured WP - Options" 410 msgstr "" 411 412 #: classes/Views/UserProfile.php:55 413 msgid "Current devices with \"Remember Me\" option enabled" 414 msgstr "" 415 416 #: classes/Views/UserProfile.php:60 417 #: classes/Views/UserProfile.php:122 418 msgid "Device" 419 msgstr "" 420 421 #: classes/Views/UserProfile.php:63 422 #: classes/Views/UserProfile.php:125 423 msgid "Expires" 424 msgstr "" 425 426 #: classes/Views/UserProfile.php:66 427 #: classes/Views/UserProfile.php:99 428 #: classes/Views/UserProfile.php:128 429 msgid "Remove" 430 msgstr "" 431 432 #: classes/Views/UserProfile.php:76 433 msgid "No logged in devices found" 434 msgstr "" 435 436 #: classes/Views/UserProfile.php:90 437 msgid "Expired" 438 msgstr "" 439 440 #: classes/Views/UserProfile.php:139 441 msgid "Remove all logged in devices" 442 msgstr "" 443 444 #: classes/Views/UserProfile.php:174 445 msgid "QR code for the TOTP 2FA login" 446 msgstr "" 447 448 #: classes/Views/UserProfile.php:187 449 msgid "Or use the following key, by entering it directly in you preferable authentication application:" 450 msgstr "" 451 452 #: classes/Views/UserProfile.php:200 453 msgid "Regenerate QR code" 454 msgstr "" 455 456 #: classes/Views/UsersList.php:177 457 msgid "Locked status" 458 msgstr "" 459 460 #: classes/Views/UsersList.php:210 461 msgid "Locked" 462 msgstr "" 463 464 #: classes/Views/UsersList.php:210 465 msgid "Not Locked" 466 msgstr "" 467 468 #: classes/Views/UsersList.php:228 469 msgid "Secured WP Status" 470 msgstr "" 471 472 #: classes/Views/UsersList.php:265 473 #: classes/Views/UsersList.php:327 474 msgid "Logged in" 475 msgstr "" 476 477 #: classes/Views/UsersList.php:284 478 msgid "Logged" 479 msgstr "" 480 481 #: classes/Views/UsersList.php:284 482 msgid "Not Logged" 483 msgstr "" 484 485 #: classes/Views/UsersList.php:347 486 msgid "Lock Users" 487 msgstr "" 488 489 #: classes/Views/UsersList.php:348 490 msgid "Unlock Users" 491 msgstr "" 492 493 #: classes/Views/UsersList.php:350 494 msgid "Exclude from WP 2FA" 495 msgstr "" 496 497 #: classes/Views/UsersList.php:351 498 msgid "Include in WP 2FA" 499 msgstr "" 500 501 #. translators: %s: Number of users 502 #: classes/Views/UsersList.php:431 503 msgid "Locked %s user." 504 msgid_plural "Locked %s users." 505 msgstr[0] "" 506 msgstr[1] "" 507 508 #. translators: %s: Number of users 509 #: classes/Views/UsersList.php:447 510 msgid "Unlocked %s user." 511 msgid_plural "Unlocked %s users." 512 msgstr[0] "" 513 msgstr[1] "" 514 515 #: classes/Views/UsersList.php:475 516 #: classes/Views/UsersList.php:477 517 msgid "Filter Role" 518 msgstr "" 519 520 #. translators: %s: Customer username 521 #: templates/template-oob.php:14 522 msgid "Hi %s," 523 msgstr "" -
secured-wp/tags/1.7/readme.txt
r2579464 r2636555 5 5 Tested up to: 5.8 6 6 Requires PHP: 7.2 7 Stable tag: 1. 57 Stable tag: 1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 13 13 == Description == 14 Adds layer of security for your WordPress site. Adds custom login page slug, enables 2FA, removes security issues. Adds remember device, counts login attempts and lock usernames if the password is wrong. Out of b ond e-mail is also supported - instead of entering codes, your user can use simple login link from within their e-mail client.14 Adds layer of security for your WordPress site. Adds custom login page slug, enables 2FA, removes security issues. Adds remember device, counts login attempts and lock usernames if the password is wrong. Out of band e-mail is also supported - instead of entering codes, your user can use simple login link from within their e-mail client. 15 15 16 16 <strong>Woocommerce</strong> … … 22 22 1. <strong>Login redirection</strong> - redirects the default wp-login.php to a slug of your choice 23 23 2. <strong>Login attempts</strong> - counts the unsuccessful attempts, and locks user if there are too many 24 3. <strong>2FA settings</strong> - gives the ability to use two factor authentication and Out Of B ond email link24 3. <strong>2FA settings</strong> - gives the ability to use two factor authentication and Out Of Band email link 25 25 4. <strong>Remember devices</strong> - current device could be remembered for given amount of days and user wont be asked to login again before that 26 26 5. <strong>Removes XML-RPC</strong> from your WordPress site … … 68 68 1. Main screen of the plugin, settings tabs and information about the settings 69 69 2. 2FA login screen, user does not have enabled 2FA yet 70 3. E-mail with the Out of B ond link70 3. E-mail with the Out of Band link 71 71 4. Woocommerce My Profile page 72 72 5. Extends default Users menu bulk actions -
secured-wp/tags/1.7/secured-wp.php
r2579464 r2636555 16 16 * Plugin URI: https://wp-secured.com 17 17 * Description: Provides Security for WP sites. 2FA, login attempts, hardens WP login process 18 * Version: 1. 518 * Version: 1.7 19 19 * Author: wp-secured 20 20 * Author URI: https://wp-secured.com … … 22 22 * License: GPL-2.0+ 23 23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 24 * Text Domain: wp-secured24 * Text Domain: secured-wp 25 25 * Domain Path: /languages 26 26 * License: GPL2 or later -
secured-wp/tags/1.7/vendor/composer/autoload_psr4.php
r2576070 r2636555 13 13 'ParagonIE\\ConstantTime\\' => array($vendorDir . '/paragonie/constant_time_encoding/src'), 14 14 'OTPHP\\' => array($vendorDir . '/spomky-labs/otphp/src'), 15 'Endroid\\QrCode\\' => array($vendorDir . '/endroid/qr-code/src'), 16 'DASPRiD\\Enum\\' => array($vendorDir . '/dasprid/enum/src'), 17 'BaconQrCode\\' => array($vendorDir . '/bacon/bacon-qr-code/src'), 15 18 'Assert\\' => array($vendorDir . '/beberlei/assert/lib/Assert'), 16 19 ); -
secured-wp/tags/1.7/vendor/composer/autoload_static.php
r2576070 r2636555 122 122 'OTPHP\\' => 6, 123 123 ), 124 'E' => 125 array ( 126 'Endroid\\QrCode\\' => 15, 127 ), 128 'D' => 129 array ( 130 'DASPRiD\\Enum\\' => 13, 131 ), 132 'B' => 133 array ( 134 'BaconQrCode\\' => 12, 135 ), 124 136 'A' => 125 137 array ( … … 154 166 array ( 155 167 0 => __DIR__ . '/..' . '/spomky-labs/otphp/src', 168 ), 169 'Endroid\\QrCode\\' => 170 array ( 171 0 => __DIR__ . '/..' . '/endroid/qr-code/src', 172 ), 173 'DASPRiD\\Enum\\' => 174 array ( 175 0 => __DIR__ . '/..' . '/dasprid/enum/src', 176 ), 177 'BaconQrCode\\' => 178 array ( 179 0 => __DIR__ . '/..' . '/bacon/bacon-qr-code/src', 156 180 ), 157 181 'Assert\\' => -
secured-wp/tags/1.7/vendor/composer/installed.json
r2576070 r2636555 1 1 [ 2 { 3 "name": "bacon/bacon-qr-code", 4 "version": "2.0.4", 5 "version_normalized": "2.0.4.0", 6 "source": { 7 "type": "git", 8 "url": "https://github.com/Bacon/BaconQrCode.git", 9 "reference": "f73543ac4e1def05f1a70bcd1525c8a157a1ad09" 10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/f73543ac4e1def05f1a70bcd1525c8a157a1ad09", 14 "reference": "f73543ac4e1def05f1a70bcd1525c8a157a1ad09", 15 "shasum": "" 16 }, 17 "require": { 18 "dasprid/enum": "^1.0.3", 19 "ext-iconv": "*", 20 "php": "^7.1 || ^8.0" 21 }, 22 "require-dev": { 23 "phly/keep-a-changelog": "^1.4", 24 "phpunit/phpunit": "^7 | ^8 | ^9", 25 "squizlabs/php_codesniffer": "^3.4" 26 }, 27 "suggest": { 28 "ext-imagick": "to generate QR code images" 29 }, 30 "time": "2021-06-18T13:26:35+00:00", 31 "type": "library", 32 "installation-source": "dist", 33 "autoload": { 34 "psr-4": { 35 "BaconQrCode\\": "src/" 36 } 37 }, 38 "notification-url": "https://packagist.org/downloads/", 39 "license": [ 40 "BSD-2-Clause" 41 ], 42 "authors": [ 43 { 44 "name": "Ben Scholzen 'DASPRiD'", 45 "email": "mail@dasprids.de", 46 "homepage": "https://dasprids.de/", 47 "role": "Developer" 48 } 49 ], 50 "description": "BaconQrCode is a QR code generator for PHP.", 51 "homepage": "https://github.com/Bacon/BaconQrCode" 52 }, 2 53 { 3 54 "name": "beberlei/assert", … … 63 114 "assertion", 64 115 "validation" 116 ] 117 }, 118 { 119 "name": "dasprid/enum", 120 "version": "1.0.3", 121 "version_normalized": "1.0.3.0", 122 "source": { 123 "type": "git", 124 "url": "https://github.com/DASPRiD/Enum.git", 125 "reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2" 126 }, 127 "dist": { 128 "type": "zip", 129 "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/5abf82f213618696dda8e3bf6f64dd042d8542b2", 130 "reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2", 131 "shasum": "" 132 }, 133 "require-dev": { 134 "phpunit/phpunit": "^7 | ^8 | ^9", 135 "squizlabs/php_codesniffer": "^3.4" 136 }, 137 "time": "2020-10-02T16:03:48+00:00", 138 "type": "library", 139 "installation-source": "dist", 140 "autoload": { 141 "psr-4": { 142 "DASPRiD\\Enum\\": "src/" 143 } 144 }, 145 "notification-url": "https://packagist.org/downloads/", 146 "license": [ 147 "BSD-2-Clause" 148 ], 149 "authors": [ 150 { 151 "name": "Ben Scholzen 'DASPRiD'", 152 "email": "mail@dasprids.de", 153 "homepage": "https://dasprids.de/", 154 "role": "Developer" 155 } 156 ], 157 "description": "PHP 7.1 enum implementation", 158 "keywords": [ 159 "enum", 160 "map" 161 ] 162 }, 163 { 164 "name": "endroid/qr-code", 165 "version": "4.3.4", 166 "version_normalized": "4.3.4.0", 167 "source": { 168 "type": "git", 169 "url": "https://github.com/endroid/qr-code.git", 170 "reference": "4832304da7c3c0e958c968914185a01ac24cfce4" 171 }, 172 "dist": { 173 "type": "zip", 174 "url": "https://api.github.com/repos/endroid/qr-code/zipball/4832304da7c3c0e958c968914185a01ac24cfce4", 175 "reference": "4832304da7c3c0e958c968914185a01ac24cfce4", 176 "shasum": "" 177 }, 178 "require": { 179 "bacon/bacon-qr-code": "^2.0", 180 "php": "^7.3||^8.0" 181 }, 182 "require-dev": { 183 "endroid/quality": "dev-master", 184 "ext-gd": "*", 185 "khanamiryan/qrcode-detector-decoder": "^1.0.4", 186 "setasign/fpdf": "^1.8.2" 187 }, 188 "suggest": { 189 "ext-gd": "Enables you to write PNG images", 190 "khanamiryan/qrcode-detector-decoder": "Enables you to use the image validator", 191 "roave/security-advisories": "Makes sure package versions with known security issues are not installed", 192 "setasign/fpdf": "Enables you to use the PDF writer" 193 }, 194 "time": "2021-09-16T18:33:57+00:00", 195 "type": "library", 196 "extra": { 197 "branch-alias": { 198 "dev-master": "4.x-dev" 199 } 200 }, 201 "installation-source": "dist", 202 "autoload": { 203 "psr-4": { 204 "Endroid\\QrCode\\": "src/" 205 } 206 }, 207 "notification-url": "https://packagist.org/downloads/", 208 "license": [ 209 "MIT" 210 ], 211 "authors": [ 212 { 213 "name": "Jeroen van den Enden", 214 "email": "info@endroid.nl" 215 } 216 ], 217 "description": "Endroid QR Code", 218 "homepage": "https://github.com/endroid/qr-code", 219 "keywords": [ 220 "code", 221 "endroid", 222 "php", 223 "qr", 224 "qrcode" 225 ], 226 "funding": [ 227 { 228 "url": "https://github.com/endroid", 229 "type": "github" 230 } 65 231 ] 66 232 }, … … 191 357 { 192 358 "name": "scssphp/scssphp", 193 "version": "v1. 6.0",194 "version_normalized": "1. 6.0.0",359 "version": "v1.8.1", 360 "version_normalized": "1.8.1.0", 195 361 "source": { 196 362 "type": "git", 197 363 "url": "https://github.com/scssphp/scssphp.git", 198 "reference": " b83594e2323c5d6e80785df3f91b9d1d32aad530"199 }, 200 "dist": { 201 "type": "zip", 202 "url": "https://api.github.com/repos/scssphp/scssphp/zipball/ b83594e2323c5d6e80785df3f91b9d1d32aad530",203 "reference": " b83594e2323c5d6e80785df3f91b9d1d32aad530",364 "reference": "5e37759a63caf54392a4b709358a39ac7425a69f" 365 }, 366 "dist": { 367 "type": "zip", 368 "url": "https://api.github.com/repos/scssphp/scssphp/zipball/5e37759a63caf54392a4b709358a39ac7425a69f", 369 "reference": "5e37759a63caf54392a4b709358a39ac7425a69f", 204 370 "shasum": "" 205 371 }, … … 215 381 "squizlabs/php_codesniffer": "~3.5", 216 382 "symfony/phpunit-bridge": "^5.1", 383 "thoughtbot/bourbon": "^7.0", 217 384 "twbs/bootstrap": "~5.0", 218 385 "twbs/bootstrap4": "4.6.0", … … 223 390 "ext-mbstring": "For best performance, mbstring should be installed as it is faster than ext-iconv" 224 391 }, 225 "time": "2021-0 7-02T16:28:10+00:00",392 "time": "2021-09-18T21:20:53+00:00", 226 393 "bin": [ 227 394 "bin/pscss" -
secured-wp/tags/1.7/vendor/scssphp/scssphp/bin/pscss
r2576070 r2636555 27 27 28 28 $style = null; 29 $loadPaths = null;29 $loadPaths = []; 30 30 $dumpTree = false; 31 31 $inputFile = null; … … 149 149 150 150 if (isset($value)) { 151 $loadPaths = $value;151 $loadPaths[] = $value; 152 152 continue; 153 153 } … … 189 189 190 190 if ($loadPaths) { 191 $scss->setImportPaths( explode(PATH_SEPARATOR, $loadPaths));191 $scss->setImportPaths($loadPaths); 192 192 } 193 193 -
secured-wp/tags/1.7/vendor/scssphp/scssphp/composer.json
r2576070 r2636555 41 41 "squizlabs/php_codesniffer": "~3.5", 42 42 "symfony/phpunit-bridge": "^5.1", 43 "thoughtbot/bourbon": "^7.0", 43 44 "twbs/bootstrap": "~5.0", 44 45 "twbs/bootstrap4": "4.6.0", … … 50 51 "package": { 51 52 "name": "sass/sass-spec", 52 "version": "2021.0 6.30",53 "version": "2021.09.15", 53 54 "source": { 54 55 "type": "git", 55 56 "url": "https://github.com/sass/sass-spec.git", 56 "reference": "e 348959657f1e274cef658283436a311a925a673"57 "reference": "eb2d7a0865c1faf0b55a39ff962b24aca9b4c955" 57 58 }, 58 59 "dist": { 59 60 "type": "zip", 60 "url": "https://api.github.com/repos/sass/sass-spec/zipball/e348959657f1e274cef658283436a311a925a673", 61 "reference": "e348959657f1e274cef658283436a311a925a673", 61 "url": "https://api.github.com/repos/sass/sass-spec/zipball/eb2d7a0865c1faf0b55a39ff962b24aca9b4c955", 62 "reference": "eb2d7a0865c1faf0b55a39ff962b24aca9b4c955", 63 "shasum": "" 64 } 65 } 66 }, 67 { 68 "type": "package", 69 "package": { 70 "name": "thoughtbot/bourbon", 71 "version": "v7.0.0", 72 "source": { 73 "type": "git", 74 "url": "https://github.com/thoughtbot/bourbon.git", 75 "reference": "fbe338ee6807e7f7aa996d82c8a16f248bb149b3" 76 }, 77 "dist": { 78 "type": "zip", 79 "url": "https://api.github.com/repos/thoughtbot/bourbon/zipball/fbe338ee6807e7f7aa996d82c8a16f248bb149b3", 80 "reference": "fbe338ee6807e7f7aa996d82c8a16f248bb149b3", 62 81 "shasum": "" 63 82 } -
secured-wp/tags/1.7/vendor/scssphp/scssphp/src/Compiler.php
r2576070 r2636555 195 195 196 196 /** 197 * @var bool 198 */ 199 private $charset = true; 200 201 /** 197 202 * @var string|\ScssPhp\ScssPhp\Formatter 198 203 */ … … 222 227 /** 223 228 * @var bool|null 229 * 230 * @deprecated 224 231 */ 225 232 protected $charsetSeen; … … 464 471 $this->scope = null; 465 472 $this->storeEnv = null; 466 $this->charsetSeen = null;467 473 $this->shouldEvaluate = null; 468 474 $this->ignoreCallStackMessage = false; … … 517 523 $prefix = ''; 518 524 519 if (!$this->charsetSeen) { 520 if (strlen($out) !== Util::mbStrlen($out)) { 521 $prefix = '@charset "UTF-8";' . "\n"; 522 $out = $prefix . $out; 523 } 525 if ($this->charset && strlen($out) !== Util::mbStrlen($out)) { 526 $prefix = '@charset "UTF-8";' . "\n"; 527 $out = $prefix . $out; 524 528 } 525 529 … … 2878 2882 2879 2883 case Type::T_CHARSET: 2880 if (! $this->charsetSeen) {2881 $this->charsetSeen = true;2882 $this->appendRootDirective('@charset ' . $this->compileValue($child[1]) . ';', $out);2883 }2884 2884 break; 2885 2885 … … 3828 3828 // try to find a native lib function 3829 3829 $normalizedName = $this->normalizeName($name); 3830 $libName = null;3831 3830 3832 3831 if (isset($this->userFunctions[$normalizedName])) { … … 3837 3836 } 3838 3837 3838 $lowercasedName = strtolower($normalizedName); 3839 3840 // Special functions overriding a CSS function are case-insensitive. We normalize them as lowercase 3841 // to avoid the deprecation warning about the wrong case being used. 3842 if ($lowercasedName === 'min' || $lowercasedName === 'max') { 3843 $normalizedName = $lowercasedName; 3844 } 3845 3839 3846 if (($f = $this->getBuiltinFunction($normalizedName)) && \is_callable($f)) { 3840 3847 $libName = $f[1]; 3841 3848 $prototype = isset(static::$$libName) ? static::$$libName : null; 3849 3850 // All core functions have a prototype defined. Not finding the 3851 // prototype can mean 2 things: 3852 // - the function comes from a child class (deprecated just after) 3853 // - the function was found with a different case, which relates to calling the 3854 // wrong Sass function due to our camelCase usage (`fade-in()` vs `fadein()`), 3855 // because PHP method names are case-insensitive while property names are 3856 // case-sensitive. 3857 if ($prototype === null || strtolower($normalizedName) !== $normalizedName) { 3858 $r = new \ReflectionMethod($this, $libName); 3859 $actualLibName = $r->name; 3860 3861 if ($actualLibName !== $libName || strtolower($normalizedName) !== $normalizedName) { 3862 $kebabCaseName = preg_replace('~(?<=\\w)([A-Z])~', '-$1', substr($actualLibName, 3)); 3863 assert($kebabCaseName !== null); 3864 $originalName = strtolower($kebabCaseName); 3865 $warning = "Calling built-in functions with a non-standard name is deprecated since Scssphp 1.8.0 and will not work anymore in 2.0 (they will be treated as CSS function calls instead).\nUse \"$originalName\" instead of \"$name\"."; 3866 @trigger_error($warning, E_USER_DEPRECATED); 3867 $fname = $this->getPrettyPath($this->sourceNames[$this->sourceIndex]); 3868 $line = $this->sourceLine; 3869 Warn::deprecation("$warning\n on line $line of $fname"); 3870 3871 // Use the actual function definition 3872 $prototype = isset(static::$$actualLibName) ? static::$$actualLibName : null; 3873 $f[1] = $libName = $actualLibName; 3874 } 3875 } 3842 3876 3843 3877 if (\get_class($this) !== __CLASS__ && !isset($this->warnedChildFunctions[$libName])) { … … 5500 5534 5501 5535 /** 5536 * Configures the handling of non-ASCII outputs. 5537 * 5538 * If $charset is `true`, this will include a `@charset` declaration or a 5539 * UTF-8 [byte-order mark][] if the stylesheet contains any non-ASCII 5540 * characters. Otherwise, it will never include a `@charset` declaration or a 5541 * byte-order mark. 5542 * 5543 * [byte-order mark]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8 5544 * 5545 * @param bool $charset 5546 * 5547 * @return void 5548 */ 5549 public function setCharset($charset) 5550 { 5551 $this->charset = $charset; 5552 } 5553 5554 /** 5502 5555 * Enable/disable source maps 5503 5556 * … … 5873 5926 5874 5927 if (0 === strpos($normalizedPath, $normalizedRootDirectory)) { 5875 return substr($ normalizedPath, \strlen($normalizedRootDirectory));5928 return substr($path, \strlen($normalizedRootDirectory)); 5876 5929 } 5877 5930 … … 7210 7263 * 7211 7264 * @return integer|float 7265 * 7266 * @deprecated 7212 7267 */ 7213 7268 protected function coercePercent($value) 7214 7269 { 7270 @trigger_error(sprintf('"%s" is deprecated since 1.7.0.', __METHOD__), E_USER_DEPRECATED); 7271 7215 7272 if ($value instanceof Number) { 7216 7273 if ($value->hasUnit('%')) { … … 7439 7496 } 7440 7497 7441 return [Type::T_HSL, fmod($h , 360), $s * 100, $l / 5.1];7498 return [Type::T_HSL, fmod($h + 360, 360), $s * 100, $l / 5.1]; 7442 7499 } 7443 7500 … … 7720 7777 } 7721 7778 } else { 7722 $color = [Type::T_STRING, '', [$funcName . '(', $args[0], ' )']];7779 $color = [Type::T_STRING, '', [$funcName . '(', $args[0], ', ', $args[1], ')']]; 7723 7780 } 7724 7781 break; … … 8021 8078 // mix two colors 8022 8079 protected static $libMix = [ 8023 ['color1', 'color2', 'weight: 0.5'],8024 ['color-1', 'color-2', 'weight: 0.5']8080 ['color1', 'color2', 'weight:50%'], 8081 ['color-1', 'color-2', 'weight:50%'] 8025 8082 ]; 8026 8083 protected function libMix($args) … … 8030 8087 $first = $this->assertColor($first, 'color1'); 8031 8088 $second = $this->assertColor($second, 'color2'); 8032 $weight = $this->coercePercent($this->assertNumber($weight, 'weight'));8089 $weightScale = $this->assertNumber($weight, 'weight')->valueInRange(0, 100, 'weight') / 100; 8033 8090 8034 8091 $firstAlpha = isset($first[4]) ? $first[4] : 1; 8035 8092 $secondAlpha = isset($second[4]) ? $second[4] : 1; 8036 8093 8037 $w = $weight * 2 - 1; 8038 $a = $firstAlpha - $secondAlpha; 8039 8040 $w1 = (($w * $a === -1 ? $w : ($w + $a) / (1 + $w * $a)) + 1) / 2.0; 8041 $w2 = 1.0 - $w1; 8094 $normalizedWeight = $weightScale * 2 - 1; 8095 $alphaDistance = $firstAlpha - $secondAlpha; 8096 8097 $combinedWeight = $normalizedWeight * $alphaDistance == -1 ? $normalizedWeight : ($normalizedWeight + $alphaDistance) / (1 + $normalizedWeight * $alphaDistance); 8098 $weight1 = ($combinedWeight + 1) / 2.0; 8099 $weight2 = 1.0 - $weight1; 8042 8100 8043 8101 $new = [Type::T_COLOR, 8044 $w 1 * $first[1] + $w2 * $second[1],8045 $w 1 * $first[2] + $w2 * $second[2],8046 $w 1 * $first[3] + $w2 * $second[3],8102 $weight1 * $first[1] + $weight2 * $second[1], 8103 $weight1 * $first[2] + $weight2 * $second[2], 8104 $weight1 * $first[3] + $weight2 * $second[3], 8047 8105 ]; 8048 8106 8049 8107 if ($firstAlpha != 1.0 || $secondAlpha != 1.0) { 8050 $new[] = $firstAlpha * $weight + $secondAlpha * (1 - $weight);8108 $new[] = $firstAlpha * $weightScale + $secondAlpha * (1 - $weightScale); 8051 8109 } 8052 8110 … … 8125 8183 } 8126 8184 8127 $hueValue = $hue->getDimension() % 360;8185 $hueValue = fmod($hue->getDimension(), 360); 8128 8186 8129 8187 while ($hueValue < 0) { … … 8307 8365 $hsl = $this->toHSL($color[1], $color[2], $color[3]); 8308 8366 $hsl[$idx] += $amount; 8367 8368 if ($idx !== 1) { 8369 // Clamp the saturation and lightness 8370 $hsl[$idx] = min(max(0, $hsl[$idx]), 100); 8371 } 8372 8309 8373 $out = $this->toRGB($hsl[1], $hsl[2], $hsl[3]); 8310 8374 … … 8354 8418 } 8355 8419 8356 $color = $this->assertColor($ value, 'color');8357 $amount = 100 * $this->coercePercent($this->assertNumber($args[1], 'amount'));8358 8359 return $this->adjustHsl($color, 2, $amount );8420 $color = $this->assertColor($args[0], 'color'); 8421 $amount = $this->assertNumber($args[1], 'amount'); 8422 8423 return $this->adjustHsl($color, 2, $amount->valueInRange(0, 100, 'amount')); 8360 8424 } 8361 8425 … … 8364 8428 { 8365 8429 $color = $this->assertColor($args[0], 'color'); 8366 $amount = 100 * $this->coercePercent($this->assertNumber($args[1], 'amount'));8367 8368 return $this->adjustHsl($color, 2, -$amount );8430 $amount = $this->assertNumber($args[1], 'amount'); 8431 8432 return $this->adjustHsl($color, 2, -$amount->valueInRange(0, 100, 'amount')); 8369 8433 } 8370 8434 … … 8387 8451 } 8388 8452 8389 protected static $libInvert = ['color', 'weight:1 '];8453 protected static $libInvert = ['color', 'weight:100%']; 8390 8454 protected function libInvert($args) 8391 8455 { 8392 8456 $value = $args[0]; 8393 8457 8458 $weight = $this->assertNumber($args[1], 'weight'); 8459 8394 8460 if ($value instanceof Number) { 8461 if ($weight->getDimension() != 100 || !$weight->hasUnit('%')) { 8462 throw new SassScriptException('Only one argument may be passed to the plain-CSS invert() function.'); 8463 } 8464 8395 8465 return null; 8396 8466 } 8397 8398 $weight = $this->coercePercent($this->assertNumber($args[1], 'weight'));8399 8467 8400 8468 $color = $this->assertColor($value, 'color'); … … 8404 8472 $inverted[3] = 255 - $inverted[3]; 8405 8473 8406 if ($weight < 1) { 8407 return $this->libMix([$inverted, $color, new Number($weight, '')]); 8408 } 8409 8410 return $inverted; 8474 return $this->libMix([$inverted, $color, $weight]); 8411 8475 } 8412 8476 … … 8416 8480 { 8417 8481 $color = $this->assertColor($args[0], 'color'); 8418 $amount = $this-> coercePercent($this->assertNumber($args[1], 'amount'));8419 8420 $color[4] = (isset($color[4]) ? $color[4] : 1) + $amount ;8482 $amount = $this->assertNumber($args[1], 'amount'); 8483 8484 $color[4] = (isset($color[4]) ? $color[4] : 1) + $amount->valueInRange(0, 1, 'amount'); 8421 8485 $color[4] = min(1, max(0, $color[4])); 8422 8486 … … 8435 8499 { 8436 8500 $color = $this->assertColor($args[0], 'color'); 8437 $amount = $this-> coercePercent($this->assertNumber($args[1], 'amount'));8438 8439 $color[4] = (isset($color[4]) ? $color[4] : 1) - $amount ;8501 $amount = $this->assertNumber($args[1], 'amount'); 8502 8503 $color[4] = (isset($color[4]) ? $color[4] : 1) - $amount->valueInRange(0, 1, 'amount'); 8440 8504 $color[4] = min(1, max(0, $color[4])); 8441 8505 -
secured-wp/tags/1.7/vendor/scssphp/scssphp/src/Node/Number.php
r2576070 r2636555 150 150 * {@inheritdoc} 151 151 */ 152 #[\ReturnTypeWillChange] 152 153 public function offsetExists($offset) 153 154 { … … 175 176 * {@inheritdoc} 176 177 */ 178 #[\ReturnTypeWillChange] 177 179 public function offsetGet($offset) 178 180 { … … 201 203 * {@inheritdoc} 202 204 */ 205 #[\ReturnTypeWillChange] 203 206 public function offsetSet($offset, $value) 204 207 { … … 209 212 * {@inheritdoc} 210 213 */ 214 #[\ReturnTypeWillChange] 211 215 public function offsetUnset($offset) 212 216 { -
secured-wp/tags/1.7/vendor/scssphp/scssphp/src/Parser.php
r2576070 r2636555 1581 1581 list($line, $column) = $this->getSourcePosition($this->count); 1582 1582 $file = $this->sourceName; 1583 $this->logger->warn("Unterminated interpolations in multiline comments are deprecated and will be removed in ScssPhp 2.0, in \"$file\", line $line, column $column.", true); 1583 if (!$this->discardComments) { 1584 $this->logger->warn("Unterminated interpolations in multiline comments are deprecated and will be removed in ScssPhp 2.0, in \"$file\", line $line, column $column.", true); 1585 } 1584 1586 $comment[] = substr($this->buffer, $this->count, 2); 1585 1587 -
secured-wp/tags/1.7/vendor/scssphp/scssphp/src/Version.php
r2576070 r2636555 20 20 class Version 21 21 { 22 const VERSION = '1. 6.0';22 const VERSION = '1.8.1'; 23 23 } -
secured-wp/trunk/classes/Controllers/LoginCheck.php
r2577925 r2636555 14 14 use WPSEC\Helpers\{ 15 15 NotifyAdmin, 16 OutOfB ondEmail,16 OutOfBandEmail, 17 17 }; 18 18 use WPSEC\Controllers\{ … … 37 37 * Checks the user login credentials 38 38 * 39 * TODO: change the log ing in user check - set proper priorities39 * TODO: change the logging in user check - set proper priorities 40 40 * 41 41 * 1. Checks if user is locked … … 55 55 public static function check( $user, $username, $password ) { 56 56 57 /** 58 * If neither of modules is enabled - return the user 59 */ 57 60 if ( (bool) \WPSEC\Controllers\Modules\LoginAttempts::getGlobalSettingsValue() 58 61 && … … 187 190 * @return void 188 191 * 189 * @since 192 * @since $VERSION 190 193 */ 191 194 public static function loginValidateOob() { … … 207 210 public static function setRememberMe() { 208 211 209 if ( isset( $_POST['rememberme'] ) && ! empty( $_POST['rememberme'] ) ) { 212 if ( isset( $_POST['rememberme'] ) && ! empty( $_POST['rememberme'] ) ) { // @codingStandardsIgnoreLine - Nonce check is not needed 210 213 RememberMe::setRememberMe( User::getUser()->ID ); 211 214 User::setLoggedInDevice( RememberMe::getDevice() ); … … 214 217 215 218 /** 216 * Checks Out of b ond email link and logging the user if passed219 * Checks Out of band email link and logging the user if passed 217 220 * 218 221 * @param bool $secondPass - first pass comes from e-mail (link), second pass comes from WP form itself. … … 240 243 $wpsOtp = (string) \sanitize_text_field( \wp_unslash( $params['wps_otp'] ) ); 241 244 242 $nonceName = OutOfB ondEmail::getNonceName();245 $nonceName = OutOfBandEmail::getNonceName(); 243 246 244 247 if ( isset( $params[ $nonceName ] ) && ! empty( $params[ $nonceName ] ) ) { 245 if ( ! \wp_verify_nonce( \sanitize_text_field( \wp_unslash( $params[ $nonceName ] ) ), OutOfB ondEmail::getNonceNamePrefix() . $userId ) ) {248 if ( ! \wp_verify_nonce( \sanitize_text_field( \wp_unslash( $params[ $nonceName ] ) ), OutOfBandEmail::getNonceNamePrefix() . $userId ) ) { 246 249 exit(); 247 250 } 248 251 249 252 // check transient. 250 $dataTimeout = \get_option( '_transient_timeout_' . OutOfB ondEmail::getTransientPrefix() . ( (string) $userId ) );253 $dataTimeout = \get_option( '_transient_timeout_' . OutOfBandEmail::getTransientPrefix() . ( (string) $userId ) ); 251 254 if ( $dataTimeout > time() ) { 252 if ( OutOfB ondEmail::validateUserOOB( $userId, $wpsOtp ) ) {255 if ( OutOfBandEmail::validateUserOOB( $userId, $wpsOtp ) ) { 253 256 254 257 if ( ! $secondPass ) { … … 257 260 } 258 261 \wp_clear_auth_cookie(); 259 OutOfB ondEmail::deleteTransient( $userId );262 OutOfBandEmail::deleteTransient( $userId ); 260 263 \wp_set_current_user( $userId ); 261 264 \wp_set_auth_cookie( $userId ); -
secured-wp/trunk/classes/Controllers/Modules/Login.php
r2576070 r2636555 79 79 \add_action( 'plugins_loaded', [ __CLASS__, 'pluginsLoaded' ], 9999 ); 80 80 \add_action( 'wp_loaded', [ __CLASS__, 'wpLoaded' ] ); 81 \add_action( 'wp_redirect', [ __CLASS__, 'wpRedirect' ], 10, 2 ); 81 82 \add_action( 'setup_theme', [ __CLASS__, 'setupTheme' ], 1 ); 82 83 … … 567 568 568 569 /** 569 * C heck the current url and changes it if necessary570 * 571 * @ since 1.0.0572 * 573 * @param string $url - the url of the site.574 * @ param mixed $scheme - the URL scheme.575 * 576 * @ return string577 */ 578 public static function filterWpLoginPhp( $url, $scheme = null): string {579 580 if ( false !== strpos( $url, 'wp-login.php?action=postpass' )) {570 * Called on wp_redirect action. Checks the URL string, and filters it accordingly if wp-login.php is presented (substitute it with the new slug) 571 * 572 * @param string $url - The URL to which WP is trying to redirect to. 573 * @param integer $status - Number code of the status. 574 * 575 * @return string 576 * 577 * @since 1.6 578 */ 579 public static function wpRedirect( string $url, int $status ): string { 580 581 if ( strpos( $url, 'https://wordpress.com/wp-login.php' ) !== false ) { 581 582 return $url; 582 583 } 583 584 584 if ( false !== strpos( $url, 'wp-login.php' ) && false === strpos( (string) \wp_get_referer(), 'wp-login.php' ) ) { 585 586 if ( \is_ssl() ) { 587 588 $scheme = 'https'; 589 590 } 591 592 $args = explode( '?', $url ); 593 594 if ( isset( $args[1] ) ) { 595 596 parse_str( $args[1], $args ); 597 598 if ( isset( $args['login'] ) ) { 599 $args['login'] = rawurlencode( $args['login'] ); 600 } 601 602 $url = \add_query_arg( $args, self::newLoginUrl( $scheme ) ); 603 604 } else { 605 606 $url = self::newLoginUrl( $scheme ); 607 608 } 609 } 610 611 return $url; 612 585 return self::filterWpLoginPhp( $url ); 613 586 } 614 587 … … 761 734 762 735 /** 736 * Checks the current url and changes it if necessary 737 * 738 * @since 1.0.0 739 * 740 * @param string $url - the url of the site. 741 * @param mixed $scheme - the URL scheme. 742 * 743 * @return string 744 */ 745 private static function filterWpLoginPhp( $url, $scheme = null ): string { 746 747 if ( false !== strpos( $url, 'wp-login.php?action=postpass' ) ) { 748 return $url; 749 } 750 751 if ( false !== strpos( $url, 'wp-login.php' ) && false === strpos( (string) \wp_get_referer(), 'wp-login.php' ) ) { 752 753 if ( \is_ssl() ) { 754 755 $scheme = 'https'; 756 757 } 758 759 $args = explode( '?', $url ); 760 761 if ( isset( $args[1] ) ) { 762 763 parse_str( $args[1], $args ); 764 765 if ( isset( $args['login'] ) ) { 766 $args['login'] = rawurlencode( $args['login'] ); 767 } 768 769 $url = \add_query_arg( $args, self::newLoginUrl( $scheme ) ); 770 771 } else { 772 773 $url = self::newLoginUrl( $scheme ); 774 775 } 776 } 777 778 return $url; 779 } 780 781 /** 763 782 * Returns the wpLogin status 764 783 * -
secured-wp/trunk/classes/Controllers/Modules/RememberMe.php
r2576070 r2636555 247 247 248 248 \delete_transient( 249 self::$transientPrefix . md5( $device ) . '_' . $userId ,249 self::$transientPrefix . md5( $device ) . '_' . $userId 250 250 ); 251 251 } -
secured-wp/trunk/classes/Controllers/Modules/XMLRPCprevents.php
r2576070 r2636555 13 13 14 14 use WPSEC\Helpers\WPHelper; 15 use WPSEC\Validators\Validator;16 15 17 16 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. -
secured-wp/trunk/classes/Controllers/User.php
r2579465 r2636555 616 616 * @return string 617 617 * 618 * @since 618 * @since 1.7 619 619 */ 620 620 public static function getStatus( $user = null ): string { -
secured-wp/trunk/classes/Secured.php
r2579465 r2636555 27 27 }; 28 28 use WPSEC\Validators\Validator; 29 use WPSEC\Views\UserProfile; 29 30 30 31 if ( ! class_exists( 'WPSEC\Secured' ) ) { … … 61 62 * @since 1.0.0 62 63 * 63 * @param array $links - Glo abal links array.64 * @param array $links - Global links array. 64 65 * 65 66 * @return array … … 91 92 /* translators: %1$s: PHP version */ 92 93 \esc_html__( 'You need to update your PHP version to %1s.', 'secured-wp' ), 93 WPSEC_REQUIRED_PHP_VERSION // @codingStandardsIgnoreLine - that is defined consta tnt no need to escape it94 WPSEC_REQUIRED_PHP_VERSION // @codingStandardsIgnoreLine - that is defined constant no need to escape it 94 95 ); 95 96 ?> … … 112 113 /* translators: %1$s: WP version */ 113 114 \esc_html__( 'You need to update your WP version to %1s.', 'secured-wp' ), 114 WPSEC_REQUIRED_WP_VERSION // @codingStandardsIgnoreLine - that is defined constatnt no need to escape it115 WPSEC_REQUIRED_WP_VERSION // @codingStandardsIgnoreLine - that is defined constant no need to escape it 115 116 ); 116 117 ?> … … 170 171 * Returns the status of delete data upon uninstall 171 172 * 172 * @since 1.0.0173 *174 173 * @param mixed $blogId - WP blog ID. 175 174 * 176 175 * @return mixed 176 * 177 * @since 1.0.0 177 178 */ 178 179 public static function isDeleteDataEnabled( $blogId = '' ) { … … 220 221 221 222 /** 223 * Shows the content for user settings when short code is used 224 * 225 * @return void - the parsed HTML. 226 * 227 * @since 1.6 228 */ 229 public static function settingsShortCode() { 230 231 if ( User::isCurrentlyLogged() ) { 232 $user = User::getUser(); 233 ob_start(); 234 UserProfile::userEditProfile( $user ); 235 $content = ob_get_clean(); 236 echo $content; // @codingStandardsIgnoreLine - All output must be escaped warning 237 } else { 238 ?> 239 <h2><?php echo \esc_html__( 'You must be logged in to see this content', 'secured-wp' ); ?></h2> 240 <?php 241 } 242 } 243 244 /** 222 245 * Inits all the hooks the plugin will use 223 246 * 224 * @ since 1.0.0225 * 226 * @ return void247 * @return void 248 * 249 * @since 1.0.0 227 250 */ 228 251 private static function initHooks() { … … 237 260 */ 238 261 \add_action( 'login_form_confirm_oob', [ 'WPSEC\\Controllers\\LoginCheck', 'loginValidateOob' ], 1 ); 262 263 /** 264 * Adds shortcode - that gives the ability to create our own page with user settings 265 */ 266 \add_shortcode( 'wps_custom_settings', [ __CLASS__, 'settingsShortCode' ] ); 239 267 240 268 /** … … 276 304 * Adds ajax request for sending the OOB 277 305 */ 278 \add_action( 'wp_ajax_nopriv_send_oob', [ 'WPSEC\\Helpers\\OutOfB ondEmail', 'sendOOBEmail' ] );279 \add_action( 'wp_ajax_send_oob', [ 'WPSEC\\Helpers\\OutOfB ondEmail', 'sendOOBEmail' ] );306 \add_action( 'wp_ajax_nopriv_send_oob', [ 'WPSEC\\Helpers\\OutOfBandEmail', 'sendOOBEmail' ] ); 307 \add_action( 'wp_ajax_send_oob', [ 'WPSEC\\Helpers\\OutOfBandEmail', 'sendOOBEmail' ] ); 280 308 } 281 309 … … 308 336 /** 309 337 * If user is logged in and there is woocommerce installed and the method is enabled, 310 * we gon a need the AJAX methods available.338 * we gonna need the AJAX methods available. 311 339 */ 312 340 if ( User::isCurrentlyLogged() ) { 313 if ( class_exists( 'WooCommerce' ) ) { 314 if ( ! (bool) \WPSEC\Controllers\Modules\TwoFASettings::getGlobalSettingsValue() ) { 315 // AJAX request for the user - do we need this globally for the Admin Part of the WP ?. 316 AjaxRequests::initAdmin(); 317 } 341 // if ( class_exists( 'WooCommerce' ) ) { 342 if ( ! (bool) \WPSEC\Controllers\Modules\TwoFASettings::getGlobalSettingsValue() ) { 343 // AJAX request for the user - do we need this globally for the Admin Part of the WP ?. 344 AjaxRequests::initAdmin(); 318 345 } 319 } 320 } 321 322 /** 323 * Conditionally add assets only when they are necessary 324 * 325 * @since 1.0.0 326 * 327 * @return void 346 // } 347 } 348 } 349 350 /** 351 * Conditionally adds assets only when they are necessary 352 * 353 * @return void 354 * 355 * @since 1.0.0 328 356 */ 329 357 private static function addAssets() { -
secured-wp/trunk/classes/Views/LoginForms.php
r2578321 r2636555 12 12 namespace WPSEC\Views; 13 13 14 use WPSEC\Helpers\TOTPHelper; 14 15 use WPSEC\{ 15 16 Controllers\User, 16 17 Controllers\Modules\TwoFASettings, 17 Helpers\OutOfB ondEmail18 Helpers\OutOfBandEmail 18 19 }; 19 use OTPHP\TOTP;20 20 21 21 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. … … 107 107 if ( ! User::isTotpUserEnabled() ) { 108 108 echo \esc_html( \get_bloginfo( 'name' ) ); 109 110 $otp = TOTP::create( User::getUserTotp() );111 112 $otp->setLabel(113 \get_bloginfo( 'name' )114 );115 $grCodeUri = $otp->getQrCodeUri(116 'https://api.qrserver.com/v1/create-qr-code/?data=[DATA]&size=200x200&ecc=M',117 '[DATA]'118 );119 109 ?> 120 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( $grCodeUri ); ?>'></div>110 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( TOTPHelper::generateQRSVGData() ); ?>' width="100%"></div> 121 111 <?php 122 112 echo \esc_html__( 'Scan above with your favorite Authenticator Application and enter the code below or add the following code:', 'secured-wp' ); 123 echo '<div><strong>' . \esc_html( $otp->getSecret() ) . '</strong></div>';113 echo '<div><strong>' . \esc_html( User::getUserTotp() ) . '</strong></div>'; 124 114 } else { 125 115 echo \esc_html__( 'Open the Authenticator Application on your phone and enter the code for ' . \get_bloginfo( 'name' ), 'secured-wp' ); … … 198 188 <input type="hidden" name="wps_otp" id="wps_otp" value="<?php echo \esc_attr( \wp_unslash( $_GET['wps_otp'] ) ); ?>" /> 199 189 <input type="hidden" name="user_id" id="wps_otp" value="<?php echo \esc_attr( \wp_unslash( $_GET['user_id'] ) ); ?>" /> 200 <?php \wp_nonce_field( OutOfB ondEmail::getNonceNamePrefix() . \wp_unslash( $_GET['user_id'] ), OutOfBondEmail::getNonceName() ); ?>190 <?php \wp_nonce_field( OutOfBandEmail::getNonceNamePrefix() . \wp_unslash( $_GET['user_id'] ), OutOfBandEmail::getNonceName() ); ?> 201 191 <div> 202 192 <p> … … 271 261 272 262 /** 273 * Adds Out of bond link to the login form263 * Adds Out of Band link to the login form 274 264 * 275 265 * @since 1.0.0 … … 284 274 ?> 285 275 <div style="clear: both;" id="wsc-oob-wrapper"> 286 <a href="#" id="send-oob-mail"><?php echo \esc_html__( 'Send me out of b ond email instead', 'secured-wp' ); ?></a>276 <a href="#" id="send-oob-mail"><?php echo \esc_html__( 'Send me out of band email instead', 'secured-wp' ); ?></a> 287 277 </div> 288 278 <script> -
secured-wp/trunk/classes/Views/SettingsTabs.php
r2576070 r2636555 240 240 </tr> 241 241 <tr> 242 <th scope="row"><?php echo \esc_html__( 'Out of b ond e-mail ', 'secured-wp' ); ?></th>242 <th scope="row"><?php echo \esc_html__( 'Out of band e-mail ', 'secured-wp' ); ?></th> 243 243 <td> 244 244 <label for="<?php echo \esc_attr( WPSEC_PLUGIN_SECURED_2FA_OOB_VAR_NAME ); ?>"> -
secured-wp/trunk/classes/Views/UserProfile.php
r2579465 r2636555 14 14 defined( 'ABSPATH' ) || exit; // Exit if accessed directly. 15 15 16 use OTPHP\TOTP;17 16 use WPSEC\Controllers\{ 18 17 User, 19 18 Modules\RememberMe, 20 19 }; 20 use WPSEC\Helpers\TOTPHelper; 21 21 22 22 if ( ! class_exists( 'WPSEC\Views\UserProfile' ) ) { … … 132 132 133 133 </table> 134 <div class="tablenav" >134 <div class="tablenav" style="overflow:hidden;"> 135 135 <div class="alignright"> 136 136 <?php 137 \submit_button( 138 __( 'Remove all logged in devices', 'secured-wp' ), 139 'delete', 140 'remove-all-logged-devices', 141 false 142 ); 137 if ( function_exists( 'submit_button' ) ) { 138 \submit_button( 139 __( 'Remove all logged in devices', 'secured-wp' ), 140 'delete', 141 'remove-all-logged-devices', 142 false 143 ); 144 } else { 145 ?> 146 <input type="submit" name="remove-all-logged-devices" id="remove-all-logged-devices" class="button delete" value="Remove all logged in devices"> 147 <?php 148 self::deleteQRCodeJS(); 149 } 143 150 ?> 144 151 </div> 145 152 </div> 146 <hr >153 <hr style="clear:both; margin-top:5px;"> 147 154 <?php 148 155 if ( \current_user_can( 'edit_user', User::getUser()->ID ) && ! (bool) User::isTwoFaUserExcluded() ) { … … 166 173 ?> 167 174 <h3><?php echo \esc_html__( 'QR code for the TOTP 2FA login', 'secured-wp' ); ?></h3> 168 <?php 169 $otp = TOTP::create( User::getUserTotp() ); 170 171 $otp->setLabel( 172 \get_bloginfo( 'name' ) 173 ); 174 $grCodeUri = $otp->getQrCodeUri( 175 'https://api.qrserver.com/v1/create-qr-code/?data=[DATA]&size=200x200&ecc=M', 176 '[DATA]' 177 ); 178 ?> 179 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( $grCodeUri ); ?>'></div> 175 176 <div style='width:100%;margin: 0 auto; text-align:center;'><img src='<?php echo \esc_attr( TOTPHelper::generateQRSVGData() ); ?>'></div> 180 177 <div><?php echo \esc_html__( 'Or use the following key, by entering it directly in you preferable authentication application:', 'secured-wp' ); ?></div> 181 178 <div><strong><?php echo \esc_html( $otp->getSecret() ); ?></strong></div> 182 <div class="tablenav" >179 <div class="tablenav" style="overflow:hidden;"> 183 180 <div class="alignleft"> 184 181 <?php … … 205 202 </div> 206 203 </div> 204 <hr style="clear:both; margin-top:5px;"> 207 205 <?php 208 206 } … … 316 314 ?> 317 315 <script> 318 ( function( jQuery ) { 319 jQuery('.alignleft').on('click', '#regenerate-qr-code', function(e) { 320 e.preventDefault(); 321 var ajaxurl = "<?php echo \esc_url( admin_url( 'admin-ajax.php' ) ); ?>" 322 var deleteData = { 323 'action': 'wps_delete_qr', 324 'user': '<?php echo \esc_attr( User::getUser()->ID ); ?>', 325 'nonce': '<?php echo \esc_attr( \wp_create_nonce( 'wp-secured-wps_delete_qr-ajax-nonce' ) ); ?>', 326 }; 327 328 let that = this; 329 330 jQuery.ajax({ 331 type: "post", 332 dataType: "json", 333 url: ajaxurl, 334 data: deleteData, 335 success: function( msg ) { 336 if ( 'success' == msg['result'] ) { 337 location.reload(); ; 338 } 339 } 340 }); 341 }); 342 }( jQuery ) ); 316 var qrRegenerate = document.getElementById('regenerate-qr-code'); 317 qrRegenerate.addEventListener("click", function(e) { 318 e.preventDefault(); 319 var request = new XMLHttpRequest(); 320 321 request.open('POST', '<?php echo \esc_url( \admin_url( 'admin-ajax.php' ) ); ?>', true); 322 request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;'); 323 request.responseType = 'json'; 324 request.onload = function () { 325 if (this.status >= 200 && this.status < 400) { 326 location.reload(); 327 } else { 328 // If fail 329 console.log(this.response); 330 } 331 }; 332 request.onerror = function() { 333 console.log('Connection error'); 334 }; 335 336 var deleteData = { 337 "action": "wps_delete_qr", 338 "user": "<?php echo \esc_attr( User::getUser()->ID ); ?>", 339 "nonce": "<?php echo \esc_attr( \wp_create_nonce( 'wp-secured-wps_delete_qr-ajax-nonce' ) ); ?>", 340 }; 341 342 request.send("action=wps_delete_qr&user=<?php echo \esc_attr( User::getUser()->ID ); ?>&nonce=<?php echo \esc_attr( \wp_create_nonce( 'wp-secured-wps_delete_qr-ajax-nonce' ) ); ?>"); 343 }, false); 344 343 345 </script> 344 346 <?php -
secured-wp/trunk/classes/Views/UsersList.php
r2578323 r2636555 57 57 * @var string 58 58 * 59 * @since 59 * @since 1.7 60 60 */ 61 61 private static $changeLockedBulkActionName = 'change-to-locked'; … … 66 66 * @var string 67 67 * 68 * @since 68 * @since 1.7 69 69 */ 70 70 private static $changeUnLockedBulkActionName = 'change-to-unlocked'; … … 75 75 * @var string 76 76 * 77 * @since 77 * @since 1.7 78 78 */ 79 79 private static $changeExcludeTwoFaBulkActionName = 'exclude-2fa'; … … 84 84 * @var string 85 85 * 86 * @since 86 * @since 1.7 87 87 */ 88 88 private static $changeIncludeTwoFaBulkActionName = 'include-2fa'; … … 127 127 } 128 128 129 // wpmu_users_columns 130 // manage_users - network_sortable_columns 131 129 132 /** 130 133 * Show logged in column … … 136 139 if ( WPHelper::isMultisite() ) { 137 140 \add_filter( 'wpmu_users_columns', [ __CLASS__, 'addUsersLoggedColumn' ] ); 141 \add_filter( 'manage_users-network_sortable_columns', [ __CLASS__, 'addUsersLoggedColumn' ] ); 138 142 } 139 143 -
secured-wp/trunk/constants.php
r2579464 r2636555 14 14 } 15 15 16 define( 'WPSEC_REQUIRED_PHP_VERSION', '7. 2' );16 define( 'WPSEC_REQUIRED_PHP_VERSION', '7.3' ); 17 17 define( 'WPSEC_REQUIRED_WP_VERSION', '5.0' ); 18 define( 'WPSEC_PLUGIN_SECURED_VERSION', '1. 5' );18 define( 'WPSEC_PLUGIN_SECURED_VERSION', '1.7' ); 19 19 define( 'WPSEC_PLUGIN_SECURED_NAME', 'Secured WP' ); 20 20 define( 'WPSEC_PLUGIN_SECURED_SLUG', 'secured-wp' ); -
secured-wp/trunk/languages/secured-wp.pot
r2577909 r2636555 1 1 # Copyright (C) 2021 wp-secured 2 # This file is distributed under the same license as the Secured WP plugin.2 # This file is distributed under the GPL-2.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Secured WP 1. 1\n"5 "Project-Id-Version: Secured WP 1.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/secured-wp\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2021-08- 04T14:05:08+03:00\n"12 "POT-Creation-Date: 2021-08-15T09:21:29+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 4.0\n"15 "X-Domain: wp-secured\n"14 "X-Generator: WP-CLI 2.5.0\n" 15 "X-Domain: secured-wp\n" 16 16 17 17 #. Plugin Name of the plugin … … 31 31 msgid "wp-secured" 32 32 msgstr "" 33 34 #: classes/Controllers/LoginCheck.php:78 35 msgid "<strong>Error</strong>: Too soon." 36 msgstr "" 37 38 #: classes/Controllers/LoginCheck.php:102 39 msgid "<strong>Error</strong>: Too many attempts." 40 msgstr "" 41 42 #: classes/Controllers/LoginCheck.php:174 43 msgid "Invalid code provided" 44 msgstr "" 45 46 #: classes/Controllers/Modules/Login.php:396 47 msgid "This feature is not enabled." 48 msgstr "" 49 50 #: classes/Controllers/Modules/Login.php:447 51 msgid "Nothing to see here" 52 msgstr "" 53 54 #: classes/Controllers/Modules/Login.php:682 55 msgid "Login" 56 msgstr "" 57 58 #: classes/Controllers/Modules/Login.php:699 59 msgid "New login slug" 60 msgstr "" 61 62 #: classes/Controllers/Modules/Login.php:703 63 msgid "Redirect original login" 64 msgstr "" 65 66 #: classes/Controllers/Modules/Login.php:759 67 msgid "Hides the standard wp-login.php with your personal slug of choice. Redirects the original login to slug of your choice" 68 msgstr "" 69 70 #: classes/Controllers/Modules/LoginAttempts.php:235 71 msgid "Login attempts" 72 msgstr "" 73 74 #: classes/Controllers/Modules/LoginAttempts.php:252 75 #: classes/Views/SettingsTabs.php:119 76 msgid "Login Attempts" 77 msgstr "" 78 79 #: classes/Controllers/Modules/LoginAttempts.php:256 80 #: classes/Controllers/Modules/RememberMe.php:351 81 #: classes/Views/SettingsTabs.php:127 82 msgid "Lock time" 83 msgstr "" 84 85 #: classes/Controllers/Modules/LoginAttempts.php:257 86 msgid " mins." 87 msgstr "" 88 89 #: classes/Controllers/Modules/LoginAttempts.php:294 90 msgid "Counts incorect login attempts and locks the user - use standard user menu to check locked users." 91 msgstr "" 92 93 #: classes/Controllers/Modules/RememberMe.php:334 94 msgid "Remember Devices" 95 msgstr "" 96 97 #: classes/Controllers/Modules/RememberMe.php:352 98 msgid " days." 99 msgstr "" 100 101 #: classes/Controllers/Modules/RememberMe.php:405 102 msgid "When enabled, if user checks remember me on login, the device will be stored and the user wont be asked for credentials for the given amount of time." 103 msgstr "" 104 105 #: classes/Controllers/Modules/TwoFASettings.php:189 106 msgid "2FA settings" 107 msgstr "" 108 109 #: classes/Controllers/Modules/TwoFASettings.php:206 110 msgid "TOTP enabled" 111 msgstr "" 112 113 #: classes/Controllers/Modules/TwoFASettings.php:207 114 #: classes/Controllers/Modules/TwoFASettings.php:211 115 #: classes/Helpers/Information/ModuleInformation.php:49 116 msgid "true" 117 msgstr "" 118 119 #: classes/Controllers/Modules/TwoFASettings.php:207 120 #: classes/Controllers/Modules/TwoFASettings.php:211 121 #: classes/Helpers/Information/ModuleInformation.php:49 122 msgid "false" 123 msgstr "" 124 125 #: classes/Controllers/Modules/TwoFASettings.php:210 126 msgid "OOB enabled" 127 msgstr "" 128 129 #: classes/Controllers/Modules/TwoFASettings.php:266 130 msgid "Enables 2FA. Next time, when user logins s/he will be asked to add the site to Authenticator application of their choice, and from now on they must provide code from that App in order to login." 131 msgstr "" 132 133 #: classes/Controllers/Modules/XMLRPCprevents.php:62 134 msgid "XML-RPC settings" 135 msgstr "" 136 137 #: classes/Controllers/Modules/XMLRPCprevents.php:108 138 msgid "Disables XML-RPC. By default WordPress has that enabled - this is potentially security risk - that will disable XML-RPC on your site completely" 139 msgstr "" 140 141 #: classes/Controllers/User.php:622 142 msgid "2FA enabled: YES" 143 msgstr "" 144 145 #: classes/Controllers/User.php:623 146 msgid "TOTP enabled: NO" 147 msgstr "" 148 149 #: classes/Controllers/User.php:627 150 msgid "2FA enabled: EXCLUDED" 151 msgstr "" 152 153 #: classes/Controllers/User.php:631 154 msgid "TOTP enabled: YES" 155 msgstr "" 156 157 #: classes/Helpers/Information/ModuleInformation.php:49 158 msgid "Disabled: " 159 msgstr "" 160 161 #: classes/Helpers/NotifyAdmin.php:39 162 msgid "Maximum number of unsuccessful login attempts reached" 163 msgstr "" 164 165 #: classes/Helpers/OutOfBandEmail.php:93 166 msgid "One time login link" 167 msgstr "" 168 169 #: classes/Helpers/OutOfBandEmail.php:128 170 msgid "Out of bond email link" 171 msgstr "" 172 173 #: classes/Secured.php:70 174 msgid "Settings" 175 msgstr "" 176 177 #. translators: %1$s: PHP version 178 #: classes/Secured.php:93 179 msgid "You need to update your PHP version to %1s." 180 msgstr "" 181 182 #: classes/Secured.php:98 183 #: classes/Secured.php:119 184 msgid "Actual version is:" 185 msgstr "" 186 187 #. translators: %1$s: WP version 188 #: classes/Secured.php:114 189 msgid "You need to update your WP version to %1s." 190 msgstr "" 191 192 #: classes/Secured.php:239 193 msgid "You must be logged in to see this content" 194 msgstr "" 195 196 #: classes/Validators/Validator.php:64 197 #: classes/Validators/Validator.php:94 198 msgid "No rules are set - nothing to test against" 199 msgstr "" 200 201 #: classes/Validators/Validator.php:72 202 msgid "Variable is not set" 203 msgstr "" 204 205 #: classes/Validators/Validator.php:126 206 msgid "Variable is not valid e-mail" 207 msgstr "" 208 209 #: classes/Validators/Validator.php:191 210 msgid "Variable is not integer" 211 msgstr "" 212 213 #: classes/Validators/Validator.php:195 214 #: classes/Validators/Validator.php:211 215 msgid "Variable is not positive integer!" 216 msgstr "" 217 218 #: classes/Validators/Validator.php:214 219 msgid "Variable is not in given range" 220 msgstr "" 221 222 #: classes/Views/AdminSettingsView.php:104 223 msgid "Information" 224 msgstr "" 225 226 #: classes/Views/AdminSettingsView.php:110 227 msgid "Provides Security for WP sites" 228 msgstr "" 229 230 #: classes/Views/AdminSettingsView.php:115 231 msgid "Version" 232 msgstr "" 233 234 #: classes/Views/AdminSettingsView.php:119 235 msgid "Delete data on plugin uninstall" 236 msgstr "" 237 238 #: classes/Views/AdminSettingsView.php:122 239 msgid "That setting is global" 240 msgstr "" 241 242 #: classes/Views/AdminSettingsView.php:126 243 msgid "Modules Information" 244 msgstr "" 245 246 #: classes/Views/AdminSettingsView.php:137 247 #: classes/Views/AdminSettingsView.php:155 248 msgid "Save Changes" 249 msgstr "" 250 251 #: classes/Views/AdminSettingsView.php:163 252 msgid "Restore Default Plugin Settings" 253 msgstr "" 254 255 #: classes/Views/AdminSettingsView.php:177 256 msgid "Are you sure you want to restore the defaults? All settings will be overridden" 257 msgstr "" 258 259 #: classes/Views/AdminSettingsView.php:182 260 msgid "Are you sure you want to restore the defaults? All module settings will be overridden" 261 msgstr "" 262 263 #: classes/Views/LoginForms.php:122 264 msgid "Scan above with your favorite Authenticator Application and enter the code below or add the following code:" 265 msgstr "" 266 267 #: classes/Views/LoginForms.php:125 268 msgid "Open the Authenticator Application on your phone and enter the code for " 269 msgstr "" 270 271 #: classes/Views/LoginForms.php:129 272 msgid "Authentication Code:" 273 msgstr "" 274 275 #: classes/Views/LoginForms.php:135 276 #: classes/Views/LoginForms.php:209 277 msgid "Log In" 278 msgstr "" 279 280 #: classes/Views/LoginForms.php:203 281 msgid "Click the button to finish the login." 282 msgstr "" 283 284 #: classes/Views/LoginForms.php:236 285 msgid "You have logged in successfully." 286 msgstr "" 287 288 #: classes/Views/LoginForms.php:286 289 msgid "Send me out of bond email instead" 290 msgstr "" 291 292 #: classes/Views/SettingsTabs.php:52 293 msgid "Login redirection Settings" 294 msgstr "" 295 296 #: classes/Views/SettingsTabs.php:55 297 msgid "Disable Login Redirection" 298 msgstr "" 299 300 #: classes/Views/SettingsTabs.php:56 301 #: classes/Views/SettingsTabs.php:111 302 #: classes/Views/SettingsTabs.php:173 303 #: classes/Views/SettingsTabs.php:226 304 #: classes/Views/SettingsTabs.php:281 305 msgid "Description:" 306 msgstr "" 307 308 #: classes/Views/SettingsTabs.php:58 309 #: classes/Views/SettingsTabs.php:114 310 #: classes/Views/SettingsTabs.php:176 311 #: classes/Views/SettingsTabs.php:229 312 #: classes/Views/SettingsTabs.php:284 313 msgid "These settings are blog related (multisite)" 314 msgstr "" 315 316 #: classes/Views/SettingsTabs.php:63 317 msgid "New Login redirection slug" 318 msgstr "" 319 320 #: classes/Views/SettingsTabs.php:66 321 msgid "New login redirection slug" 322 msgstr "" 323 324 #: classes/Views/SettingsTabs.php:71 325 #: classes/Views/SettingsTabs.php:74 326 msgid "Redirect original login to" 327 msgstr "" 328 329 #: classes/Views/SettingsTabs.php:79 330 #: classes/Views/SettingsTabs.php:141 331 #: classes/Views/SettingsTabs.php:195 332 #: classes/Views/SettingsTabs.php:250 333 #: classes/Views/SettingsTabs.php:289 334 msgid "Default Settings" 335 msgstr "" 336 337 #: classes/Views/SettingsTabs.php:83 338 #: classes/Views/SettingsTabs.php:145 339 #: classes/Views/SettingsTabs.php:199 340 #: classes/Views/SettingsTabs.php:254 341 #: classes/Views/SettingsTabs.php:293 342 msgid "Restore Module Default Settings" 343 msgstr "" 344 345 #: classes/Views/SettingsTabs.php:89 346 #: classes/Views/SettingsTabs.php:151 347 #: classes/Views/SettingsTabs.php:205 348 msgid "This will restore module settings to defaults." 349 msgstr "" 350 351 #: classes/Views/SettingsTabs.php:107 352 msgid "Login Attempts Settings" 353 msgstr "" 354 355 #: classes/Views/SettingsTabs.php:110 356 msgid "Disable Login Attempts" 357 msgstr "" 358 359 #: classes/Views/SettingsTabs.php:136 360 msgid "How many minutes to lock the user" 361 msgstr "" 362 363 #: classes/Views/SettingsTabs.php:169 364 msgid "Remember Device Settings" 365 msgstr "" 366 367 #: classes/Views/SettingsTabs.php:172 368 msgid "Disable Remember Devices" 369 msgstr "" 370 371 #: classes/Views/SettingsTabs.php:181 372 msgid "Remember Device Time" 373 msgstr "" 374 375 #: classes/Views/SettingsTabs.php:190 376 msgid "How many days remember device" 377 msgstr "" 378 379 #: classes/Views/SettingsTabs.php:222 380 msgid "2FA Settings" 381 msgstr "" 382 383 #: classes/Views/SettingsTabs.php:225 384 msgid "Disable 2FA" 385 msgstr "" 386 387 #: classes/Views/SettingsTabs.php:234 388 msgid "TOTP " 389 msgstr "" 390 391 #: classes/Views/SettingsTabs.php:242 392 msgid "Out of bond e-mail " 393 msgstr "" 394 395 #: classes/Views/SettingsTabs.php:260 396 #: classes/Views/SettingsTabs.php:299 397 msgid "This will restore plugin settings to defaults." 398 msgstr "" 399 400 #: classes/Views/SettingsTabs.php:277 401 msgid "XML-RPC Settings" 402 msgstr "" 403 404 #: classes/Views/SettingsTabs.php:280 405 msgid "Enable XML-RPC" 406 msgstr "" 407 408 #: classes/Views/UserProfile.php:54 409 msgid "Secured WP - Options" 410 msgstr "" 411 412 #: classes/Views/UserProfile.php:55 413 msgid "Current devices with \"Remember Me\" option enabled" 414 msgstr "" 415 416 #: classes/Views/UserProfile.php:60 417 #: classes/Views/UserProfile.php:122 418 msgid "Device" 419 msgstr "" 420 421 #: classes/Views/UserProfile.php:63 422 #: classes/Views/UserProfile.php:125 423 msgid "Expires" 424 msgstr "" 425 426 #: classes/Views/UserProfile.php:66 427 #: classes/Views/UserProfile.php:99 428 #: classes/Views/UserProfile.php:128 429 msgid "Remove" 430 msgstr "" 431 432 #: classes/Views/UserProfile.php:76 433 msgid "No logged in devices found" 434 msgstr "" 435 436 #: classes/Views/UserProfile.php:90 437 msgid "Expired" 438 msgstr "" 439 440 #: classes/Views/UserProfile.php:139 441 msgid "Remove all logged in devices" 442 msgstr "" 443 444 #: classes/Views/UserProfile.php:174 445 msgid "QR code for the TOTP 2FA login" 446 msgstr "" 447 448 #: classes/Views/UserProfile.php:187 449 msgid "Or use the following key, by entering it directly in you preferable authentication application:" 450 msgstr "" 451 452 #: classes/Views/UserProfile.php:200 453 msgid "Regenerate QR code" 454 msgstr "" 455 456 #: classes/Views/UsersList.php:177 457 msgid "Locked status" 458 msgstr "" 459 460 #: classes/Views/UsersList.php:210 461 msgid "Locked" 462 msgstr "" 463 464 #: classes/Views/UsersList.php:210 465 msgid "Not Locked" 466 msgstr "" 467 468 #: classes/Views/UsersList.php:228 469 msgid "Secured WP Status" 470 msgstr "" 471 472 #: classes/Views/UsersList.php:265 473 #: classes/Views/UsersList.php:327 474 msgid "Logged in" 475 msgstr "" 476 477 #: classes/Views/UsersList.php:284 478 msgid "Logged" 479 msgstr "" 480 481 #: classes/Views/UsersList.php:284 482 msgid "Not Logged" 483 msgstr "" 484 485 #: classes/Views/UsersList.php:347 486 msgid "Lock Users" 487 msgstr "" 488 489 #: classes/Views/UsersList.php:348 490 msgid "Unlock Users" 491 msgstr "" 492 493 #: classes/Views/UsersList.php:350 494 msgid "Exclude from WP 2FA" 495 msgstr "" 496 497 #: classes/Views/UsersList.php:351 498 msgid "Include in WP 2FA" 499 msgstr "" 500 501 #. translators: %s: Number of users 502 #: classes/Views/UsersList.php:431 503 msgid "Locked %s user." 504 msgid_plural "Locked %s users." 505 msgstr[0] "" 506 msgstr[1] "" 507 508 #. translators: %s: Number of users 509 #: classes/Views/UsersList.php:447 510 msgid "Unlocked %s user." 511 msgid_plural "Unlocked %s users." 512 msgstr[0] "" 513 msgstr[1] "" 514 515 #: classes/Views/UsersList.php:475 516 #: classes/Views/UsersList.php:477 517 msgid "Filter Role" 518 msgstr "" 519 520 #. translators: %s: Customer username 521 #: templates/template-oob.php:14 522 msgid "Hi %s," 523 msgstr "" -
secured-wp/trunk/readme.txt
r2579464 r2636555 5 5 Tested up to: 5.8 6 6 Requires PHP: 7.2 7 Stable tag: 1. 57 Stable tag: 1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 13 13 == Description == 14 Adds layer of security for your WordPress site. Adds custom login page slug, enables 2FA, removes security issues. Adds remember device, counts login attempts and lock usernames if the password is wrong. Out of b ond e-mail is also supported - instead of entering codes, your user can use simple login link from within their e-mail client.14 Adds layer of security for your WordPress site. Adds custom login page slug, enables 2FA, removes security issues. Adds remember device, counts login attempts and lock usernames if the password is wrong. Out of band e-mail is also supported - instead of entering codes, your user can use simple login link from within their e-mail client. 15 15 16 16 <strong>Woocommerce</strong> … … 22 22 1. <strong>Login redirection</strong> - redirects the default wp-login.php to a slug of your choice 23 23 2. <strong>Login attempts</strong> - counts the unsuccessful attempts, and locks user if there are too many 24 3. <strong>2FA settings</strong> - gives the ability to use two factor authentication and Out Of B ond email link24 3. <strong>2FA settings</strong> - gives the ability to use two factor authentication and Out Of Band email link 25 25 4. <strong>Remember devices</strong> - current device could be remembered for given amount of days and user wont be asked to login again before that 26 26 5. <strong>Removes XML-RPC</strong> from your WordPress site … … 68 68 1. Main screen of the plugin, settings tabs and information about the settings 69 69 2. 2FA login screen, user does not have enabled 2FA yet 70 3. E-mail with the Out of B ond link70 3. E-mail with the Out of Band link 71 71 4. Woocommerce My Profile page 72 72 5. Extends default Users menu bulk actions -
secured-wp/trunk/secured-wp.php
r2579464 r2636555 16 16 * Plugin URI: https://wp-secured.com 17 17 * Description: Provides Security for WP sites. 2FA, login attempts, hardens WP login process 18 * Version: 1. 518 * Version: 1.7 19 19 * Author: wp-secured 20 20 * Author URI: https://wp-secured.com … … 22 22 * License: GPL-2.0+ 23 23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 24 * Text Domain: wp-secured24 * Text Domain: secured-wp 25 25 * Domain Path: /languages 26 26 * License: GPL2 or later -
secured-wp/trunk/vendor/composer/autoload_psr4.php
r2576070 r2636555 13 13 'ParagonIE\\ConstantTime\\' => array($vendorDir . '/paragonie/constant_time_encoding/src'), 14 14 'OTPHP\\' => array($vendorDir . '/spomky-labs/otphp/src'), 15 'Endroid\\QrCode\\' => array($vendorDir . '/endroid/qr-code/src'), 16 'DASPRiD\\Enum\\' => array($vendorDir . '/dasprid/enum/src'), 17 'BaconQrCode\\' => array($vendorDir . '/bacon/bacon-qr-code/src'), 15 18 'Assert\\' => array($vendorDir . '/beberlei/assert/lib/Assert'), 16 19 ); -
secured-wp/trunk/vendor/composer/autoload_static.php
r2576070 r2636555 122 122 'OTPHP\\' => 6, 123 123 ), 124 'E' => 125 array ( 126 'Endroid\\QrCode\\' => 15, 127 ), 128 'D' => 129 array ( 130 'DASPRiD\\Enum\\' => 13, 131 ), 132 'B' => 133 array ( 134 'BaconQrCode\\' => 12, 135 ), 124 136 'A' => 125 137 array ( … … 154 166 array ( 155 167 0 => __DIR__ . '/..' . '/spomky-labs/otphp/src', 168 ), 169 'Endroid\\QrCode\\' => 170 array ( 171 0 => __DIR__ . '/..' . '/endroid/qr-code/src', 172 ), 173 'DASPRiD\\Enum\\' => 174 array ( 175 0 => __DIR__ . '/..' . '/dasprid/enum/src', 176 ), 177 'BaconQrCode\\' => 178 array ( 179 0 => __DIR__ . '/..' . '/bacon/bacon-qr-code/src', 156 180 ), 157 181 'Assert\\' => -
secured-wp/trunk/vendor/composer/installed.json
r2576070 r2636555 1 1 [ 2 { 3 "name": "bacon/bacon-qr-code", 4 "version": "2.0.4", 5 "version_normalized": "2.0.4.0", 6 "source": { 7 "type": "git", 8 "url": "https://github.com/Bacon/BaconQrCode.git", 9 "reference": "f73543ac4e1def05f1a70bcd1525c8a157a1ad09" 10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/f73543ac4e1def05f1a70bcd1525c8a157a1ad09", 14 "reference": "f73543ac4e1def05f1a70bcd1525c8a157a1ad09", 15 "shasum": "" 16 }, 17 "require": { 18 "dasprid/enum": "^1.0.3", 19 "ext-iconv": "*", 20 "php": "^7.1 || ^8.0" 21 }, 22 "require-dev": { 23 "phly/keep-a-changelog": "^1.4", 24 "phpunit/phpunit": "^7 | ^8 | ^9", 25 "squizlabs/php_codesniffer": "^3.4" 26 }, 27 "suggest": { 28 "ext-imagick": "to generate QR code images" 29 }, 30 "time": "2021-06-18T13:26:35+00:00", 31 "type": "library", 32 "installation-source": "dist", 33 "autoload": { 34 "psr-4": { 35 "BaconQrCode\\": "src/" 36 } 37 }, 38 "notification-url": "https://packagist.org/downloads/", 39 "license": [ 40 "BSD-2-Clause" 41 ], 42 "authors": [ 43 { 44 "name": "Ben Scholzen 'DASPRiD'", 45 "email": "mail@dasprids.de", 46 "homepage": "https://dasprids.de/", 47 "role": "Developer" 48 } 49 ], 50 "description": "BaconQrCode is a QR code generator for PHP.", 51 "homepage": "https://github.com/Bacon/BaconQrCode" 52 }, 2 53 { 3 54 "name": "beberlei/assert", … … 63 114 "assertion", 64 115 "validation" 116 ] 117 }, 118 { 119 "name": "dasprid/enum", 120 "version": "1.0.3", 121 "version_normalized": "1.0.3.0", 122 "source": { 123 "type": "git", 124 "url": "https://github.com/DASPRiD/Enum.git", 125 "reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2" 126 }, 127 "dist": { 128 "type": "zip", 129 "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/5abf82f213618696dda8e3bf6f64dd042d8542b2", 130 "reference": "5abf82f213618696dda8e3bf6f64dd042d8542b2", 131 "shasum": "" 132 }, 133 "require-dev": { 134 "phpunit/phpunit": "^7 | ^8 | ^9", 135 "squizlabs/php_codesniffer": "^3.4" 136 }, 137 "time": "2020-10-02T16:03:48+00:00", 138 "type": "library", 139 "installation-source": "dist", 140 "autoload": { 141 "psr-4": { 142 "DASPRiD\\Enum\\": "src/" 143 } 144 }, 145 "notification-url": "https://packagist.org/downloads/", 146 "license": [ 147 "BSD-2-Clause" 148 ], 149 "authors": [ 150 { 151 "name": "Ben Scholzen 'DASPRiD'", 152 "email": "mail@dasprids.de", 153 "homepage": "https://dasprids.de/", 154 "role": "Developer" 155 } 156 ], 157 "description": "PHP 7.1 enum implementation", 158 "keywords": [ 159 "enum", 160 "map" 161 ] 162 }, 163 { 164 "name": "endroid/qr-code", 165 "version": "4.3.4", 166 "version_normalized": "4.3.4.0", 167 "source": { 168 "type": "git", 169 "url": "https://github.com/endroid/qr-code.git", 170 "reference": "4832304da7c3c0e958c968914185a01ac24cfce4" 171 }, 172 "dist": { 173 "type": "zip", 174 "url": "https://api.github.com/repos/endroid/qr-code/zipball/4832304da7c3c0e958c968914185a01ac24cfce4", 175 "reference": "4832304da7c3c0e958c968914185a01ac24cfce4", 176 "shasum": "" 177 }, 178 "require": { 179 "bacon/bacon-qr-code": "^2.0", 180 "php": "^7.3||^8.0" 181 }, 182 "require-dev": { 183 "endroid/quality": "dev-master", 184 "ext-gd": "*", 185 "khanamiryan/qrcode-detector-decoder": "^1.0.4", 186 "setasign/fpdf": "^1.8.2" 187 }, 188 "suggest": { 189 "ext-gd": "Enables you to write PNG images", 190 "khanamiryan/qrcode-detector-decoder": "Enables you to use the image validator", 191 "roave/security-advisories": "Makes sure package versions with known security issues are not installed", 192 "setasign/fpdf": "Enables you to use the PDF writer" 193 }, 194 "time": "2021-09-16T18:33:57+00:00", 195 "type": "library", 196 "extra": { 197 "branch-alias": { 198 "dev-master": "4.x-dev" 199 } 200 }, 201 "installation-source": "dist", 202 "autoload": { 203 "psr-4": { 204 "Endroid\\QrCode\\": "src/" 205 } 206 }, 207 "notification-url": "https://packagist.org/downloads/", 208 "license": [ 209 "MIT" 210 ], 211 "authors": [ 212 { 213 "name": "Jeroen van den Enden", 214 "email": "info@endroid.nl" 215 } 216 ], 217 "description": "Endroid QR Code", 218 "homepage": "https://github.com/endroid/qr-code", 219 "keywords": [ 220 "code", 221 "endroid", 222 "php", 223 "qr", 224 "qrcode" 225 ], 226 "funding": [ 227 { 228 "url": "https://github.com/endroid", 229 "type": "github" 230 } 65 231 ] 66 232 }, … … 191 357 { 192 358 "name": "scssphp/scssphp", 193 "version": "v1. 6.0",194 "version_normalized": "1. 6.0.0",359 "version": "v1.8.1", 360 "version_normalized": "1.8.1.0", 195 361 "source": { 196 362 "type": "git", 197 363 "url": "https://github.com/scssphp/scssphp.git", 198 "reference": " b83594e2323c5d6e80785df3f91b9d1d32aad530"199 }, 200 "dist": { 201 "type": "zip", 202 "url": "https://api.github.com/repos/scssphp/scssphp/zipball/ b83594e2323c5d6e80785df3f91b9d1d32aad530",203 "reference": " b83594e2323c5d6e80785df3f91b9d1d32aad530",364 "reference": "5e37759a63caf54392a4b709358a39ac7425a69f" 365 }, 366 "dist": { 367 "type": "zip", 368 "url": "https://api.github.com/repos/scssphp/scssphp/zipball/5e37759a63caf54392a4b709358a39ac7425a69f", 369 "reference": "5e37759a63caf54392a4b709358a39ac7425a69f", 204 370 "shasum": "" 205 371 }, … … 215 381 "squizlabs/php_codesniffer": "~3.5", 216 382 "symfony/phpunit-bridge": "^5.1", 383 "thoughtbot/bourbon": "^7.0", 217 384 "twbs/bootstrap": "~5.0", 218 385 "twbs/bootstrap4": "4.6.0", … … 223 390 "ext-mbstring": "For best performance, mbstring should be installed as it is faster than ext-iconv" 224 391 }, 225 "time": "2021-0 7-02T16:28:10+00:00",392 "time": "2021-09-18T21:20:53+00:00", 226 393 "bin": [ 227 394 "bin/pscss" -
secured-wp/trunk/vendor/scssphp/scssphp/bin/pscss
r2576070 r2636555 27 27 28 28 $style = null; 29 $loadPaths = null;29 $loadPaths = []; 30 30 $dumpTree = false; 31 31 $inputFile = null; … … 149 149 150 150 if (isset($value)) { 151 $loadPaths = $value;151 $loadPaths[] = $value; 152 152 continue; 153 153 } … … 189 189 190 190 if ($loadPaths) { 191 $scss->setImportPaths( explode(PATH_SEPARATOR, $loadPaths));191 $scss->setImportPaths($loadPaths); 192 192 } 193 193 -
secured-wp/trunk/vendor/scssphp/scssphp/composer.json
r2576070 r2636555 41 41 "squizlabs/php_codesniffer": "~3.5", 42 42 "symfony/phpunit-bridge": "^5.1", 43 "thoughtbot/bourbon": "^7.0", 43 44 "twbs/bootstrap": "~5.0", 44 45 "twbs/bootstrap4": "4.6.0", … … 50 51 "package": { 51 52 "name": "sass/sass-spec", 52 "version": "2021.0 6.30",53 "version": "2021.09.15", 53 54 "source": { 54 55 "type": "git", 55 56 "url": "https://github.com/sass/sass-spec.git", 56 "reference": "e 348959657f1e274cef658283436a311a925a673"57 "reference": "eb2d7a0865c1faf0b55a39ff962b24aca9b4c955" 57 58 }, 58 59 "dist": { 59 60 "type": "zip", 60 "url": "https://api.github.com/repos/sass/sass-spec/zipball/e348959657f1e274cef658283436a311a925a673", 61 "reference": "e348959657f1e274cef658283436a311a925a673", 61 "url": "https://api.github.com/repos/sass/sass-spec/zipball/eb2d7a0865c1faf0b55a39ff962b24aca9b4c955", 62 "reference": "eb2d7a0865c1faf0b55a39ff962b24aca9b4c955", 63 "shasum": "" 64 } 65 } 66 }, 67 { 68 "type": "package", 69 "package": { 70 "name": "thoughtbot/bourbon", 71 "version": "v7.0.0", 72 "source": { 73 "type": "git", 74 "url": "https://github.com/thoughtbot/bourbon.git", 75 "reference": "fbe338ee6807e7f7aa996d82c8a16f248bb149b3" 76 }, 77 "dist": { 78 "type": "zip", 79 "url": "https://api.github.com/repos/thoughtbot/bourbon/zipball/fbe338ee6807e7f7aa996d82c8a16f248bb149b3", 80 "reference": "fbe338ee6807e7f7aa996d82c8a16f248bb149b3", 62 81 "shasum": "" 63 82 } -
secured-wp/trunk/vendor/scssphp/scssphp/src/Compiler.php
r2576070 r2636555 195 195 196 196 /** 197 * @var bool 198 */ 199 private $charset = true; 200 201 /** 197 202 * @var string|\ScssPhp\ScssPhp\Formatter 198 203 */ … … 222 227 /** 223 228 * @var bool|null 229 * 230 * @deprecated 224 231 */ 225 232 protected $charsetSeen; … … 464 471 $this->scope = null; 465 472 $this->storeEnv = null; 466 $this->charsetSeen = null;467 473 $this->shouldEvaluate = null; 468 474 $this->ignoreCallStackMessage = false; … … 517 523 $prefix = ''; 518 524 519 if (!$this->charsetSeen) { 520 if (strlen($out) !== Util::mbStrlen($out)) { 521 $prefix = '@charset "UTF-8";' . "\n"; 522 $out = $prefix . $out; 523 } 525 if ($this->charset && strlen($out) !== Util::mbStrlen($out)) { 526 $prefix = '@charset "UTF-8";' . "\n"; 527 $out = $prefix . $out; 524 528 } 525 529 … … 2878 2882 2879 2883 case Type::T_CHARSET: 2880 if (! $this->charsetSeen) {2881 $this->charsetSeen = true;2882 $this->appendRootDirective('@charset ' . $this->compileValue($child[1]) . ';', $out);2883 }2884 2884 break; 2885 2885 … … 3828 3828 // try to find a native lib function 3829 3829 $normalizedName = $this->normalizeName($name); 3830 $libName = null;3831 3830 3832 3831 if (isset($this->userFunctions[$normalizedName])) { … … 3837 3836 } 3838 3837 3838 $lowercasedName = strtolower($normalizedName); 3839 3840 // Special functions overriding a CSS function are case-insensitive. We normalize them as lowercase 3841 // to avoid the deprecation warning about the wrong case being used. 3842 if ($lowercasedName === 'min' || $lowercasedName === 'max') { 3843 $normalizedName = $lowercasedName; 3844 } 3845 3839 3846 if (($f = $this->getBuiltinFunction($normalizedName)) && \is_callable($f)) { 3840 3847 $libName = $f[1]; 3841 3848 $prototype = isset(static::$$libName) ? static::$$libName : null; 3849 3850 // All core functions have a prototype defined. Not finding the 3851 // prototype can mean 2 things: 3852 // - the function comes from a child class (deprecated just after) 3853 // - the function was found with a different case, which relates to calling the 3854 // wrong Sass function due to our camelCase usage (`fade-in()` vs `fadein()`), 3855 // because PHP method names are case-insensitive while property names are 3856 // case-sensitive. 3857 if ($prototype === null || strtolower($normalizedName) !== $normalizedName) { 3858 $r = new \ReflectionMethod($this, $libName); 3859 $actualLibName = $r->name; 3860 3861 if ($actualLibName !== $libName || strtolower($normalizedName) !== $normalizedName) { 3862 $kebabCaseName = preg_replace('~(?<=\\w)([A-Z])~', '-$1', substr($actualLibName, 3)); 3863 assert($kebabCaseName !== null); 3864 $originalName = strtolower($kebabCaseName); 3865 $warning = "Calling built-in functions with a non-standard name is deprecated since Scssphp 1.8.0 and will not work anymore in 2.0 (they will be treated as CSS function calls instead).\nUse \"$originalName\" instead of \"$name\"."; 3866 @trigger_error($warning, E_USER_DEPRECATED); 3867 $fname = $this->getPrettyPath($this->sourceNames[$this->sourceIndex]); 3868 $line = $this->sourceLine; 3869 Warn::deprecation("$warning\n on line $line of $fname"); 3870 3871 // Use the actual function definition 3872 $prototype = isset(static::$$actualLibName) ? static::$$actualLibName : null; 3873 $f[1] = $libName = $actualLibName; 3874 } 3875 } 3842 3876 3843 3877 if (\get_class($this) !== __CLASS__ && !isset($this->warnedChildFunctions[$libName])) { … … 5500 5534 5501 5535 /** 5536 * Configures the handling of non-ASCII outputs. 5537 * 5538 * If $charset is `true`, this will include a `@charset` declaration or a 5539 * UTF-8 [byte-order mark][] if the stylesheet contains any non-ASCII 5540 * characters. Otherwise, it will never include a `@charset` declaration or a 5541 * byte-order mark. 5542 * 5543 * [byte-order mark]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8 5544 * 5545 * @param bool $charset 5546 * 5547 * @return void 5548 */ 5549 public function setCharset($charset) 5550 { 5551 $this->charset = $charset; 5552 } 5553 5554 /** 5502 5555 * Enable/disable source maps 5503 5556 * … … 5873 5926 5874 5927 if (0 === strpos($normalizedPath, $normalizedRootDirectory)) { 5875 return substr($ normalizedPath, \strlen($normalizedRootDirectory));5928 return substr($path, \strlen($normalizedRootDirectory)); 5876 5929 } 5877 5930 … … 7210 7263 * 7211 7264 * @return integer|float 7265 * 7266 * @deprecated 7212 7267 */ 7213 7268 protected function coercePercent($value) 7214 7269 { 7270 @trigger_error(sprintf('"%s" is deprecated since 1.7.0.', __METHOD__), E_USER_DEPRECATED); 7271 7215 7272 if ($value instanceof Number) { 7216 7273 if ($value->hasUnit('%')) { … … 7439 7496 } 7440 7497 7441 return [Type::T_HSL, fmod($h , 360), $s * 100, $l / 5.1];7498 return [Type::T_HSL, fmod($h + 360, 360), $s * 100, $l / 5.1]; 7442 7499 } 7443 7500 … … 7720 7777 } 7721 7778 } else { 7722 $color = [Type::T_STRING, '', [$funcName . '(', $args[0], ' )']];7779 $color = [Type::T_STRING, '', [$funcName . '(', $args[0], ', ', $args[1], ')']]; 7723 7780 } 7724 7781 break; … … 8021 8078 // mix two colors 8022 8079 protected static $libMix = [ 8023 ['color1', 'color2', 'weight: 0.5'],8024 ['color-1', 'color-2', 'weight: 0.5']8080 ['color1', 'color2', 'weight:50%'], 8081 ['color-1', 'color-2', 'weight:50%'] 8025 8082 ]; 8026 8083 protected function libMix($args) … … 8030 8087 $first = $this->assertColor($first, 'color1'); 8031 8088 $second = $this->assertColor($second, 'color2'); 8032 $weight = $this->coercePercent($this->assertNumber($weight, 'weight'));8089 $weightScale = $this->assertNumber($weight, 'weight')->valueInRange(0, 100, 'weight') / 100; 8033 8090 8034 8091 $firstAlpha = isset($first[4]) ? $first[4] : 1; 8035 8092 $secondAlpha = isset($second[4]) ? $second[4] : 1; 8036 8093 8037 $w = $weight * 2 - 1; 8038 $a = $firstAlpha - $secondAlpha; 8039 8040 $w1 = (($w * $a === -1 ? $w : ($w + $a) / (1 + $w * $a)) + 1) / 2.0; 8041 $w2 = 1.0 - $w1; 8094 $normalizedWeight = $weightScale * 2 - 1; 8095 $alphaDistance = $firstAlpha - $secondAlpha; 8096 8097 $combinedWeight = $normalizedWeight * $alphaDistance == -1 ? $normalizedWeight : ($normalizedWeight + $alphaDistance) / (1 + $normalizedWeight * $alphaDistance); 8098 $weight1 = ($combinedWeight + 1) / 2.0; 8099 $weight2 = 1.0 - $weight1; 8042 8100 8043 8101 $new = [Type::T_COLOR, 8044 $w 1 * $first[1] + $w2 * $second[1],8045 $w 1 * $first[2] + $w2 * $second[2],8046 $w 1 * $first[3] + $w2 * $second[3],8102 $weight1 * $first[1] + $weight2 * $second[1], 8103 $weight1 * $first[2] + $weight2 * $second[2], 8104 $weight1 * $first[3] + $weight2 * $second[3], 8047 8105 ]; 8048 8106 8049 8107 if ($firstAlpha != 1.0 || $secondAlpha != 1.0) { 8050 $new[] = $firstAlpha * $weight + $secondAlpha * (1 - $weight);8108 $new[] = $firstAlpha * $weightScale + $secondAlpha * (1 - $weightScale); 8051 8109 } 8052 8110 … … 8125 8183 } 8126 8184 8127 $hueValue = $hue->getDimension() % 360;8185 $hueValue = fmod($hue->getDimension(), 360); 8128 8186 8129 8187 while ($hueValue < 0) { … … 8307 8365 $hsl = $this->toHSL($color[1], $color[2], $color[3]); 8308 8366 $hsl[$idx] += $amount; 8367 8368 if ($idx !== 1) { 8369 // Clamp the saturation and lightness 8370 $hsl[$idx] = min(max(0, $hsl[$idx]), 100); 8371 } 8372 8309 8373 $out = $this->toRGB($hsl[1], $hsl[2], $hsl[3]); 8310 8374 … … 8354 8418 } 8355 8419 8356 $color = $this->assertColor($ value, 'color');8357 $amount = 100 * $this->coercePercent($this->assertNumber($args[1], 'amount'));8358 8359 return $this->adjustHsl($color, 2, $amount );8420 $color = $this->assertColor($args[0], 'color'); 8421 $amount = $this->assertNumber($args[1], 'amount'); 8422 8423 return $this->adjustHsl($color, 2, $amount->valueInRange(0, 100, 'amount')); 8360 8424 } 8361 8425 … … 8364 8428 { 8365 8429 $color = $this->assertColor($args[0], 'color'); 8366 $amount = 100 * $this->coercePercent($this->assertNumber($args[1], 'amount'));8367 8368 return $this->adjustHsl($color, 2, -$amount );8430 $amount = $this->assertNumber($args[1], 'amount'); 8431 8432 return $this->adjustHsl($color, 2, -$amount->valueInRange(0, 100, 'amount')); 8369 8433 } 8370 8434 … … 8387 8451 } 8388 8452 8389 protected static $libInvert = ['color', 'weight:1 '];8453 protected static $libInvert = ['color', 'weight:100%']; 8390 8454 protected function libInvert($args) 8391 8455 { 8392 8456 $value = $args[0]; 8393 8457 8458 $weight = $this->assertNumber($args[1], 'weight'); 8459 8394 8460 if ($value instanceof Number) { 8461 if ($weight->getDimension() != 100 || !$weight->hasUnit('%')) { 8462 throw new SassScriptException('Only one argument may be passed to the plain-CSS invert() function.'); 8463 } 8464 8395 8465 return null; 8396 8466 } 8397 8398 $weight = $this->coercePercent($this->assertNumber($args[1], 'weight'));8399 8467 8400 8468 $color = $this->assertColor($value, 'color'); … … 8404 8472 $inverted[3] = 255 - $inverted[3]; 8405 8473 8406 if ($weight < 1) { 8407 return $this->libMix([$inverted, $color, new Number($weight, '')]); 8408 } 8409 8410 return $inverted; 8474 return $this->libMix([$inverted, $color, $weight]); 8411 8475 } 8412 8476 … … 8416 8480 { 8417 8481 $color = $this->assertColor($args[0], 'color'); 8418 $amount = $this-> coercePercent($this->assertNumber($args[1], 'amount'));8419 8420 $color[4] = (isset($color[4]) ? $color[4] : 1) + $amount ;8482 $amount = $this->assertNumber($args[1], 'amount'); 8483 8484 $color[4] = (isset($color[4]) ? $color[4] : 1) + $amount->valueInRange(0, 1, 'amount'); 8421 8485 $color[4] = min(1, max(0, $color[4])); 8422 8486 … … 8435 8499 { 8436 8500 $color = $this->assertColor($args[0], 'color'); 8437 $amount = $this-> coercePercent($this->assertNumber($args[1], 'amount'));8438 8439 $color[4] = (isset($color[4]) ? $color[4] : 1) - $amount ;8501 $amount = $this->assertNumber($args[1], 'amount'); 8502 8503 $color[4] = (isset($color[4]) ? $color[4] : 1) - $amount->valueInRange(0, 1, 'amount'); 8440 8504 $color[4] = min(1, max(0, $color[4])); 8441 8505 -
secured-wp/trunk/vendor/scssphp/scssphp/src/Node/Number.php
r2576070 r2636555 150 150 * {@inheritdoc} 151 151 */ 152 #[\ReturnTypeWillChange] 152 153 public function offsetExists($offset) 153 154 { … … 175 176 * {@inheritdoc} 176 177 */ 178 #[\ReturnTypeWillChange] 177 179 public function offsetGet($offset) 178 180 { … … 201 203 * {@inheritdoc} 202 204 */ 205 #[\ReturnTypeWillChange] 203 206 public function offsetSet($offset, $value) 204 207 { … … 209 212 * {@inheritdoc} 210 213 */ 214 #[\ReturnTypeWillChange] 211 215 public function offsetUnset($offset) 212 216 { -
secured-wp/trunk/vendor/scssphp/scssphp/src/Parser.php
r2576070 r2636555 1581 1581 list($line, $column) = $this->getSourcePosition($this->count); 1582 1582 $file = $this->sourceName; 1583 $this->logger->warn("Unterminated interpolations in multiline comments are deprecated and will be removed in ScssPhp 2.0, in \"$file\", line $line, column $column.", true); 1583 if (!$this->discardComments) { 1584 $this->logger->warn("Unterminated interpolations in multiline comments are deprecated and will be removed in ScssPhp 2.0, in \"$file\", line $line, column $column.", true); 1585 } 1584 1586 $comment[] = substr($this->buffer, $this->count, 2); 1585 1587 -
secured-wp/trunk/vendor/scssphp/scssphp/src/Version.php
r2576070 r2636555 20 20 class Version 21 21 { 22 const VERSION = '1. 6.0';22 const VERSION = '1.8.1'; 23 23 }
Note: See TracChangeset
for help on using the changeset viewer.