Refactored accounting

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2022-11-29 18:20:17 +01:00
parent cbc852e735
commit a4175cfa11
4 changed files with 51 additions and 31 deletions

View File

@ -618,3 +618,11 @@ function htmlentities_on_array($arr = []) {
function encrypt_password($password = '') {
return crypt($password, '$6$rounds=5000$' . generate_random_string() . '$');
}
function get_q_string($arr = []) {
$q = str_repeat("?,", count($arr));
$q = substr($q, 0, strlen($q)-1);
return $q;
}