Open thumbnails.php, find
$allowed = array('title', 'caption', 'keywords', 'filename', 'pic_raw_ip', 'pic_hdr_ip', 'user1', 'user2', 'user3', 'user4', 'type', 'owner_name');
or
$allowed = array('title', 'caption', 'keywords', 'filename', 'pic_raw_ip', 'pic_hdr_ip', 'user1', 'user2', 'user3', 'user4', 'type', 'owner_name', 'newer_than', 'older_than');
(depending on which version you currently use)
and replace with
$allowed = array('title', 'caption', 'keywords', 'filename', 'pic_raw_ip', 'pic_hdr_ip', 'user1', 'user2', 'user3', 'user4', 'type', 'owner_name', 'newer_than', 'older_than', 'filesize', 'pwidth', 'pheight');
open search.php, find
$owner_name
$customs
$ip
and above, add
<tr>
<td align="right" colspan="2">File size <input type="text" name="filesize" size="6" class="textinput" /> Byte</td>
</tr>
<tr>
<td align="right" colspan="2">Picture width <input type="text" name="pwidth" size="6" class="textinput" /> Pixel</td>
</tr>
<tr>
<td align="right" colspan="2">Picture height <input type="text" name="pheight" size="6" class="textinput" /> Pixel</td>
</tr>
open include/search.inc.php, find
$sql .= " AND approved = 'YES' $FORBIDDEN_SET";
and above, add
$sql .= Inspekt::isInt($USER['search']['params']['filesize']) ? ' AND ( filesize = '.$USER['search']['params']['filesize'].')' : '';
$sql .= Inspekt::isInt($USER['search']['params']['pwidth']) ? ' AND ( pwidth = '.$USER['search']['params']['pwidth'].')' : '';
$sql .= Inspekt::isInt($USER['search']['params']['pheight']) ? ' AND ( pheight = '.$USER['search']['params']['pheight'].')' : '';