Upload Safety Inspector
Checks uploaded file size, extension, MIME, image headers, and storage eligibility.
Open FunctionReusable pure PHP functions for everyday application and LAMP stack work.
Checks uploaded file size, extension, MIME, image headers, and storage eligibility.
Open FunctionMoves an uploaded file into a temporary quarantine path for validation before public exposure.
Open FunctionRemoves expired password reset, email verification, and CSRF records from storage.
Open FunctionNormalizes IP data and assigns risk signals without blindly trusting proxy headers.
Open FunctionFormats admin/user activity logs into consistent human-readable and machine-readable records.
Open FunctionCreates numeric or alphanumeric one-time codes with expiration and attempt limits.
Open FunctionValidates one-time codes with attempt limits, expiry checks, and replay prevention.
Open FunctionEscapes untrusted text for safe HTML body or attribute output.
Open FunctionChecks whether a URL belongs to an approved scheme, host, and path policy.
Open FunctionVerifies a signed webhook payload using a timestamp tolerance and shared secret.
Open FunctionRedacts passwords, tokens, API keys, emails, phone numbers, and card-like values from logs.
Open FunctionChecks whether an admin role can perform a named action against a target resource.
Open Function