BTW, you should use the defines for the custom option types. Much better programming practice and more likely to survive future Zenphoto updates.
And also you might want to include the following in the beginning of your script since it requires PHP 5
$plugin_disable = (version_compare(PHP_VERSION, '5.0.0') != 1) ? gettext('PHP version 5 or greater is required.') : false;