Upload files to "system/autoload"

Signed-off-by: kevin <kevin@codelab.nestict.africa>
This commit is contained in:
2026-01-16 12:26:30 +01:00
parent 4e0bf2408f
commit b06fa81593
24 changed files with 6339 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/**
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
* by https://t.me/ibnux
**/
class Password
{
public static function _crypt($password)
{
return sha1($password);
}
public static function _verify($user_input, $hashed_password)
{
if (sha1($user_input) == $hashed_password) {
return true;
}
return false;
}
public static function _uverify($user_input, $hashed_password)
{
if ($user_input == $hashed_password) {
return true;
}
return false;
}
public static function _gen()
{
$pass = substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@#!123456789', 8)), 0, 8);
return $pass;
}
}