maatify / failed-login-handler
maatify.com
1.0.2
2024-04-24 07:17 UTC
Requires
- maatify/db-model-v3: ^1.2
- maatify/functions: ^1.2
- maatify/json: ^1.1
README
PostValidatorJsonCode
maatify.dev Failed Login Handler, known by our team
Installation
composer require maatify/failed-login-handler
Important
Don't forget to use \App\DB\DBS\DbConnector;
Don't forget to create Class App\Assist\AppFunctions
<?php /** * Created by Maatify.dev * User: Maatify.dev * Date: 2024-01-13 * Time: 09:36 AM * https://www.Maatify.dev */ namespace App\Assist; use Maatify\Functions\GeneralFunctions; class AppFunctions { const pagination_limit = 10; public static function PortalUrl(): string { return GeneralFunctions::HostUrl() . 'portal/'; } public static function SiteUrl(): string { return GeneralFunctions::HostUrl(); } public static function HeaderMeta(string $title, string $description): void { echo ' <meta name="description" content="' . $description . '"> <meta property="og:title" content="' . $title . '" /> <meta property="og:site_name" content="' . $title . '"> <meta property="og:type" content="website" /> <meta property="og:url" content="' . GeneralFunctions::CurrentUrl() . '"> <meta property="og:image" content="' . GeneralFunctions::HostUrl() . 'images/logo.png" /> <meta property="og:description" content="' . $description . '"> <title>' . $title . '</title> '; } public static function CurrentDateTime(): string { return date("Y-m-d H:i:s", time()); } public static function CurrentTime(): string { return date("H:i:s", time()); } public static function CurrentDate(): string { return date("Y-m-d", time()); } public static function IP(): string { return GeneralFunctions::UserIp(); } public static function DefaultDateTime(): string { return '1900-01-01 00:00:00'; } }