exit;
}
+/* Check if user is allowed to upload. */
+if (!jirafeau_challenge_upload_ip ($cfg, get_ip_address($cfg)))
+{
+ echo '<div class="error"><p>' . t('Access denied') . '</p></div>';
+ require (JIRAFEAU_ROOT.'lib/template/footer.php');
+ exit;
+}
+
/* Ask password if upload password is set. */
if (jirafeau_has_upload_password ($cfg))
{