mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 01:34:53 +02:00
fix Tawk.to
This commit is contained in:
parent
b28b40280f
commit
7f35e7fb68
5 changed files with 33 additions and 26 deletions
|
@ -26,6 +26,15 @@ class User
|
|||
return 0;
|
||||
}
|
||||
|
||||
public static function getTawkToHash($email)
|
||||
{
|
||||
global $config;
|
||||
if (!empty($config['tawkto_api_key']) && !Empty($email)) {
|
||||
return hash_hmac('sha256', $email, $config['tawkto_api_key']);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
public static function getBills($id = 0)
|
||||
{
|
||||
if (!$id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue