autoUpdate(SMART_VERSION, 'install'); if (defined('IN_ADMIN')) { load_language('plugin.lang', SMART_PATH); } $conf['SmartAlbums'] = unserialize($conf['SmartAlbums']); if (script_basename() == 'index' and $conf['SmartAlbums']['smart_is_forbidden']) { add_event_handler('loc_end_section_init', 'smart_init_page_items'); } if ($conf['SmartAlbums']['update_on_upload']) { add_event_handler('invalidate_user_cache', 'smart_make_all_associations'); } }