projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Birthday link fixed
[mailer.git]
/
inc
/
functions.php
diff --git
a/inc/functions.php
b/inc/functions.php
index 005fea7a724446b0860a599b029a8dd6b5e7272b..e24be85a2de601d7eb0a4784f70a6b90418b9051 100644
(file)
--- a/
inc/functions.php
+++ b/
inc/functions.php
@@
-1216,9
+1216,15
@@
function GEN_RANDOM_CODE($length, $code, $uid, $DATA="")
return $return;
}
// Does only allow numbers
return $return;
}
// Does only allow numbers
-function bigintval($num)
+function bigintval($num
, $castValue = true
)
{
{
- $ret = (int) preg_replace("/[^0123456789]/", "", $num);
+ // Filter all numbers out
+ $ret = preg_replace("/[^0123456789]/", "", $num);
+
+ // Cast the value?
+ if ($castValue) $ret = (int) $ret;
+
+ // Return result
return $ret;
}
// Insert the code in $img_code into jpeg or PNG image
return $ret;
}
// Insert the code in $img_code into jpeg or PNG image