mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Quotes fully work now, including PDF, Email, Approval, Cancel, Edit, Copy, Copy to Invoice, also added quote_footer config to settings
This commit is contained in:
19
functions.php
Normal file
19
functions.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
function keygen()
|
||||
{
|
||||
$chars = "abcdefghijklmnopqrstuvwxyz";
|
||||
$chars .= "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
$chars .= "0123456789";
|
||||
while (1) {
|
||||
$key = '';
|
||||
srand((double) microtime() * 1000000);
|
||||
for ($i = 0; $i < 16; $i++) {
|
||||
$key .= substr($chars, (rand() % (strlen($chars))), 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return $key;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user