Unclassified NewsBoard Code Reference

UnbIsValidPhotoSize function

Check if a user photo file has correct filesize

function UnbIsValidPhotoSize ($filename, $remote = false);

Parameters:

remote  –  optional, default: false
(bool) this is a remote URL
filename

Return value:

(int) 3: file too big
4: not a valid image file
5: too wide
6: too high

Implementation file: unb_lib/cp.inc.php, line 111

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.