From: <wis...@us...> - 2012-06-04 16:27:48
|
Revision: 9613 http://xoops.svn.sourceforge.net/xoops/?rev=9613&view=rev Author: wishcraft Date: 2012-06-04 16:27:33 +0000 (Mon, 04 Jun 2012) Log Message: ----------- LinkedinBomb 1.02 - First production Release [LinkedIn API Application] Modified Paths: -------------- XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/addresses.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr_http_headers.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/authorities.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/causes.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies_type.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/connections.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/contact_info.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/countries.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/following_companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/industry.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/languages.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/locations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/oauth.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/organization.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/persons.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/proficiencies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_certifications.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_courses.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_educations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_ims.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_languages.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_inventors.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_office.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_status.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_phones.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_positions.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_providers.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_publications.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_publications_authors.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_recommendations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_skills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_volunteer.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/skills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/specialties.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/status.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/years.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/header.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/formobjects.linkedinbomb.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/forms.a.linkedinbomb.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/linkedin.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/index.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/forms.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/modinfo.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/signed.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/xoops_version.php Added Paths: ----------- XoopsModules/linkedinbomb/releases/1.02/ XoopsModules/linkedinbomb/releases/1.02/docs/ XoopsModules/linkedinbomb/releases/1.02/htdocs/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/about.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/dashboard.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/email.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/filter.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/header.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/im.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/menu.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/persons.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/phone.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/profiles.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/twitter.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/blocks/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/blocks/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/blocks/linkedin_signin.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/callback/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/callback/index.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/addresses.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr_http_headers.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/authorities.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/causes.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies_type.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/connections.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/contact_info.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/countries.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/following_companies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/industry.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/languages.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/locations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/oauth.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/organization.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/persons.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/proficiencies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_certifications.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_companies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_courses.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_educations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_ims.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_languages.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents_inventors.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents_office.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents_status.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_phones.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_positions.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_providers.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_publications.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_publications_authors.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_recommendations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_skills.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_volunteer.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/skills.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/specialties.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/status.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/years.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/cron/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/cron/all.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/cron/crawl.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/cron/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/getemail.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/header.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.email.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.im.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.messaging.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.person.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.phones.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.profiles.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.twitter.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/linkedin-small.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/linkedinbomb_slogo.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/minus.gif XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/minus.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/plus.gif XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/images/plus.png XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/OAuth.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/formcheckboxskills.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/formobjects.linkedinbomb.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/forms.a.linkedinbomb.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/formselectcountries.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/formselectlocations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/functions.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/linkedin.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/post.cache.end.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/include/post.footer.end.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/index.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/js/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/js/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/js/linkedinbomb_toggle.js XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/admin.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/blocks.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/email.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/forms.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/mail_templates/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/mail_templates/linkedin_email_message.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/mail_templates/linkedin_email_user_created.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/main.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/english/modinfo.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/language/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/preloads/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/preloads/core.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/preloads/email.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/preloads/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/signed.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/sql/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/sql/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/sql/mysql.sql XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/blocks/ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/blocks/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/blocks/linkedin_block_signin.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/index.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_email_list.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_filter_default.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_ims_list.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_persons_list.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_phones_list.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_profiles_list.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_providers_list.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_get_email.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/templates/linkedinbomb_profile.html XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/xoops_version.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/about.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/dashboard.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/email.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/filter.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/header.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/im.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/menu.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/persons.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/phone.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/profiles.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/admin/twitter.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/blocks/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/cron/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/cron/all.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/cron/crawl.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/cron/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.email.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.im.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.messaging.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.person.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.phones.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.profiles.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/icons/linkedinbomb.twitter.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/minus.gif XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/minus.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/plus.gif XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/images/plus.png XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/formcheckboxskills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/formselectcountries.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/formselectlocations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/post.cache.end.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/include/post.footer.end.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/js/ XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/js/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/js/linkedinbomb_toggle.js XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/admin.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/english/mail_templates/linkedin_email_message.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/language/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/preloads/core.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/preloads/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/sql/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/blocks/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/index.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_email_list.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_filter_default.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_ims_list.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_persons_list.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_phones_list.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_profiles_list.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_cpanel_providers_list.html XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/templates/linkedinbomb_profile.html Added: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/about.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/about.php (rev 0) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/about.php 2012-06-04 16:27:33 UTC (rev 9613) @@ -0,0 +1,59 @@ +<?php + + require('header.php'); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"about"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + $id = !empty($_REQUEST['id'])?(is_array($_REQUEST['id'])?array_unique($_REQUEST['id']):intval($_REQUEST['id'])):0; + + switch($op) { + default: + case "about": + xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(strtolower(basename($_SERVER['REQUEST_URI']))); + $paypalitemno='LINKEDINBOMB125'; + $aboutAdmin = new ModuleAdmin(); + $about = $aboutAdmin->renderabout($paypalitemno, false); + $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.com.au/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', + 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_LINKEDINBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', + 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> + <script type="text/javascript"> + <!--// + function xoopsFormValidate_donation() { var myform = window.document.donation; + var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; + } + //--></script> + <!-- End Form Validation JavaScript //-->'); + $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); + for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['linkedinbombModule']->getVar('dirname')), strtoupper($GLOBALS['linkedinbombModule']->getVar('dirname')). ' '.$GLOBALS['linkedinbombModule']->getVar('name')); + break; + } + } + + $istart = strpos($about, ($paypalform[0]), 1); + $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; + echo (substr($about, 0, $istart-1)); + echo implode("\n", $donationform); + echo (substr($about, $iend+1, strlen($about)-$iend-1)); + break; + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/dashboard.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/dashboard.php (rev 0) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/dashboard.php 2012-06-04 16:27:33 UTC (rev 9613) @@ -0,0 +1,122 @@ +<?php + + require('header.php'); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1'; + $id = !empty($_REQUEST['id'])?(is_array($_REQUEST['id'])?array_unique($_REQUEST['id']):intval($_REQUEST['id'])):0; + + switch($op) { + default: + case "dashboard": + xoops_cp_header(); + + include(dirname(__FILE__).'/filter.php'); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(strtolower(basename($_SERVER['REQUEST_URI']))); + + + $indexAdmin = new ModuleAdmin(); + $indexAdmin->addInfoBox(_AM_LINKEDINBOMB_ADMIN_COUNTS); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_AUTHORITIES."</label>", $count = $authorities_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_CAUSES."</label>", $count = $causes_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_COMPANY_TYPE."</label>", $count = $company_type_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_CONTACT_INFO."</label>", $count = $contact_info_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_FOLLOW_COMPANIES."</label>", $count = $follow_companies_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_INDUSTRY."</label>", $count = $industry_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_LANGUAGES."</label>", $count = $languages_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_LOCATIONS."</label>", $count = $locations_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_ORGANIZATION."</label>", $count = $organization_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PERSONS."</label>", $count = $persons_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFICIENCIES."</label>", $count = $proficiencies_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_CERTIFICATIONS."</label>", $count = $profiles_certificiations_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_COMPANIES."</label>", $count = $profiles_companies_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_COURSES."</label>", $count = $profiles_courses_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_EDUCTIONS."</label>", $count = $profiles_educations_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_IMS."</label>", $count = $profiles_ims_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_LANGUAGES."</label>", $count = $profiles_languages_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PATENTS_INVENTORS."</label>", $count = $profiles_patents_inventors_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PATENTS_OFFICE."</label>", $count = $profiles_patents_office_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PATENTS_STATUS."</label>", $count = $profiles_patents_status_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PATENTS."</label>", $count = $profiles_patents_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PHONE."</label>", $count = $profiles_phones_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_POSITIONS."</label>", $count = $profiles_positions_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PROVIDER."</label>", $count = $profiles_providers_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PUBLICATIONS_AUTHORS."</label>", $count = $profiles_publications_authors_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_PUBLICATIONS."</label>", $count = $profiles_publications_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_RECOMMENDATIONS."</label>", $count = $profiles_recommendations_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_SKILLS."</label>", $count = $profiles_skills_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE_VOLUNTEER."</label>", $count = $profiles_volunteer_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_PROFILE."</label>", $count = $profiles_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_SKILLS."</label>", $count = $skills_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_SPECIALTIES."</label>", $count = $specialties_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_STATUS."</label>", $count = $status_handler->getCount(NULL), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(_AM_LINKEDINBOMB_ADMIN_COUNTS, "<label>"._AM_LINKEDINBOMB_DASHBOARD_THEREARE_YEARS."</label>", $count = $years_handler->getCount(NULL), ($count>0?'Green':'Red')); + + if (isset($_SESSION['location_id'])) { + $ids = $profiles_handler->getIDs(new Criteria('location_id', $_SESSION['location_id'])); + $location = $locations_handler->get($_SESSION['location_id']); + if (is_object($location)) { + $indexAdmin->addInfoBox(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name'))); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_CERTIFICATIONS."</label>", $count = $profiles_certificiations_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_COMPANIES."</label>", $count = $profiles_companies_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_COURSES."</label>", $count = $profiles_courses_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_EDUCTIONS."</label>", $count = $profiles_educations_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_IMS."</label>", $count = $profiles_ims_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_LANGUAGES."</label>", $count = $profiles_languages_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PATENTS_INVENTORS."</label>", $count = $profiles_patents_inventors_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PATENTS_OFFICE."</label>", $count = $profiles_patents_office_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PATENTS_STATUS."</label>", $count = $profiles_patents_status_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PATENTS."</label>", $count = $profiles_patents_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PHONE."</label>", $count = $profiles_phones_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_POSITIONS."</label>", $count = $profiles_positions_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PROVIDER."</label>", $count = $profiles_providers_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PUBLICATIONS_AUTHORS."</label>", $count = $profiles_publications_authors_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_PUBLICATIONS."</label>", $count = $profiles_publications_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_RECOMMENDATIONS."</label>", $count = $profiles_recommendations_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_SKILLS."</label>", $count = $profiles_skills_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE_VOLUNTEER."</label>", $count = $profiles_volunteer_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_LOCATION_COUNTS, $location->getVar('name')), "<label>"._AM_LINKEDINBOMB_DASHBOARD_LOCATIONHAS_PROFILE."</label>", $count = $profiles_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + } + } + + if (isset($_SESSION['skill_ids'])) { + $ids = $skills_handler->getProfileIDs(new Criteria('skill_id', '('.implode(',',$_SESSION['skill_ids']).')', 'IN')); + $skills = count($_SESSION['skill_ids']) . ' Skill\'s'; + if (!empty($skills)) { + $indexAdmin->addInfoBox(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills)); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_CERTIFICATIONS."</label>", $count = $profiles_certificiations_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_COMPANIES."</label>", $count = $profiles_companies_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_COURSES."</label>", $count = $profiles_courses_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_EDUCTIONS."</label>", $count = $profiles_educations_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_IMS."</label>", $count = $profiles_ims_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_LANGUAGES."</label>", $count = $profiles_languages_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PATENTS_INVENTORS."</label>", $count = $profiles_patents_inventors_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PATENTS_OFFICE."</label>", $count = $profiles_patents_office_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PATENTS_STATUS."</label>", $count = $profiles_patents_status_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PATENTS."</label>", $count = $profiles_patents_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PHONE."</label>", $count = $profiles_phones_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_POSITIONS."</label>", $count = $profiles_positions_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PROVIDER."</label>", $count = $profiles_providers_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PUBLICATIONS_AUTHORS."</label>", $count = $profiles_publications_authors_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_PUBLICATIONS."</label>", $count = $profiles_publications_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_RECOMMENDATIONS."</label>", $count = $profiles_recommendations_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_SKILLS."</label>", $count = $profiles_skills_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE_VOLUNTEER."</label>", $count = $profiles_volunteer_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + $indexAdmin->addInfoBoxLine(sprintf(_AM_LINKEDINBOMB_SKILL_COUNTS, $skills), "<label>"._AM_LINKEDINBOMB_DASHBOARD_SKILLHAS_PROFILE."</label>", $count = $profiles_handler->getCount(new Criteria('profile_id', '('.implode(',', $ids).')', 'IN')), ($count>0?'Green':'Red')); + } + } + + echo $indexAdmin->renderIndex(); + + break; + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/email.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/email.php (rev 0) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/email.php 2012-06-04 16:27:33 UTC (rev 9613) @@ -0,0 +1,138 @@ +<?php + + require('header.php'); + + $op = isset($_REQUEST['op'])?$_REQUEST['op']:"email"; + $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"list"; + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created'; + $id = !empty($_REQUEST['id'])?(is_array($_REQUEST['id'])?array_unique($_REQUEST['id']):intval($_REQUEST['id'])):0; + + switch($op) { + default: + case "email": + switch ($fct) { + case 'send': + + xoops_load('XoopsMultiMailer'); + xoops_loadLanguage('email', 'linkedinbomb'); + + $xoopsMailer =& getMailer(); + $xoopsMailer->setHTML(true); + $xoopsMailer->setTemplateDir($GLOBALS['xoops']->path('/modules/linkedinbomb/language/'.$GLOBALS['xoopsConfig']['language'].'/mail_templates/')); + $xoopsMailer->setTemplate('linkedin_email_message.html'); + if (!empty($_REQUEST[$_REQUEST['profile_id']]['subject'])) + $xoopsMailer->setSubject($_REQUEST[$_REQUEST['profile_id']]['subject']); + else { + header('Location: '.$_SERVER['PHP_SELF']); + exit; + } + + $xoopsMailer->setToEmails($GLOBALS['xoopsConfig']['adminmail']); + if (!empty($_REQUEST[$_REQUEST['profile_id']]['to'])) + $xoopsMailer->setToEmails($_REQUEST[$_REQUEST['profile_id']]['to']); + else { + header('Location: '.$_SERVER['PHP_SELF']); + exit; + } + + if (!empty($_REQUEST[$_REQUEST['profile_id']]['from'])) + $xoopsMailer->setFromEmail($_REQUEST[$_REQUEST['profile_id']]['from']); + else { + header('Location: '.$_SERVER['PHP_SELF']); + exit; + } + + if (!empty($_REQUEST[$_REQUEST['profile_id']]['name'])) + $xoopsMailer->setFromName($_REQUEST[$_REQUEST['profile_id']]['name']); + else { + header('Location: '.$_SERVER['PHP_SELF']); + exit; + } + + if (!empty($_REQUEST[$_REQUEST['profile_id']]['message'])) + $xoopsMailer->assign("MESSAGE", $GLOBALS['myts']->displayTarea($_REQUEST[$_REQUEST['profile_id']]['message'], true, true, true, true, true)); + else { + header('Location: '.$_SERVER['PHP_SELF']); + exit; + } + $xoopsMailer->assign("SITEURL", XOOPS_URL); + $xoopsMailer->assign("SITENAME", $GLOBALS['xoopsConfig']['sitename']); + $xoopsMailer->assign("SITEEMAIL", $GLOBALS['xoopsConfig']['adminmail']); + + if($xoopsMailer->send() ){ + $profiles_handler = xoops_getmodulehandler('profiles', 'linkedinbomb'); + $profile = $profiles_handler->get($_REQUEST['profile_id']); + $profile->setVar('emailed', time()); + $profiles_handler->insert($profile); + } + redirect_header($_SERVER['PHP_SELF'], 10, 'Email Sent Successfully'); + exit; + default: + case 'list': + xoops_cp_header(); + + $GLOBALS['xoTheme']->addScript(XOOPS_URL.'/modules/linkedinbomb/js/linkedinbomb_toggle.js', array('type'=>'text/javascript')); + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL.'/modules/linkedinbomb/css/profile.css', array('type'=>'text/css')); + + $indexAdmin = new ModuleAdmin(); + echo $indexAdmin->addNavigation(strtolower(basename($_SERVER['REQUEST_URI']))); + include(dirname(__FILE__).'/filter.php'); + + if (isset($_SESSION['location_id'])) { + $location_profile_ids = $profiles_handler->getIDs(new Criteria('location_id', $_SESSION['location_id'])); + } else { + $location_profile_ids = array(); + } + if (isset($_SESSION['skill_ids'])) { + $skills_profile_ids = $skills_handler->getProfileIDs(new Criteria('skill_id', '('.implode(',', ($_SESSION['skill_ids'])).')', 'IN')); + } else { + $skills_profile_ids = array(); + } + if (count($skills_profile_ids)) + foreach($location_profile_ids as $key => $id) { + if (!in_array($id, $skills_profile_ids)) + unset($location_profile_ids[$key]); + } + if (count($location_profile_ids)) + foreach($skills_profile_ids as $key => $id) { + if (!in_array($id, $location_profile_ids)) + unset($skills_profile_ids[$key]); + } + $profile_ids = array_unique(array_merge($location_profile_ids,$skills_profile_ids)); + if (count($profile_ids)) { + $criteria = new CriteriaCompo(new Criteria('profile_id', '('.implode(',', $profile_ids).')', 'IN')); + } else { + $criteria = new CriteriaCompo(new Criteria('person_id', 0, '<>')); + } + + $criteria->add(new Criteria('`im-account-name`', '%@%', 'LIKE')); + + + $pagenav = new XoopsPageNav($profiles_ims_handler->getCount($criteria), $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + $GLOBALS['xoopsTpl']->assign('adminmail', $GLOBALS['xoopsConfig']['adminmail']); + $GLOBALS['xoopsTpl']->assign('fromname', $GLOBALS['xoopsConfig']['sitename']); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + if ($ims = $profiles_ims_handler->getObjects($criteria, true)) { + foreach($ims as $im_id => $email) { + if (checkemail($email->getVar('im-account-name'))) + $GLOBALS['xoopsTpl']->append('emails', $email->toArray(true)); + } + } + + $GLOBALS['xoopsTpl']->display('db:linkedinbomb_cpanel_email_list.html'); + break; + } + break; + } + + xoops_cp_footer(); +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/filter.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/filter.php (rev 0) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/filter.php 2012-06-04 16:27:33 UTC (rev 9613) @@ -0,0 +1,17 @@ +<?php + + require_once('header.php'); + + switch($op) { + case "filter": + header('Location: '.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']); + exit; + default: + + $GLOBALS['xoopsTpl']->assign('form', linkedinbomb_filter_form(isset($_SESSION['country_id'])?$_SESSION['country_id']:0, isset($_SESSION['location_id'])?$_SESSION['location_id']:0, isset($_SESSION['skill_ids'])?$_SESSION['skill_ids']:array())); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + $GLOBALS['xoopsTpl']->display('db:linkedinbomb_cpanel_filter_default.html'); + + } + +?> \ No newline at end of file Added: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/header.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/header.php (rev 0) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/admin/header.php 2012-06-04 16:27:33 UTC (rev 9613) @@ -0,0 +1,120 @@ +<?php + + require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php'); + + if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); + if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + + $GLOBALS['myts'] = MyTextSanitizer::getInstance(); + + $module_handler = xoops_gethandler('module'); + $config_handler = xoops_gethandler('config'); + $GLOBALS['linkedinbombModule'] = $module_handler->getByDirname('linkedinbomb'); + $GLOBALS['linkedinbombModuleConfig'] = $config_handler->getConfigList($GLOBALS['linkedinbombModule']->getVar('mid')); + + xoops_load('pagenav'); + xoops_load('xoopslists'); + xoops_load('xoopsformloader'); + + include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php'); + include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php'); + + if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'); + }else{ + echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks"); + } + + $GLOBALS['linkedinbombImageIcon'] = XOOPS_URL .'/'. $GLOBALS['linkedinbombModule']->getInfo('icons16'); + $GLOBALS['linkedinbombImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['linkedinbombModule']->getInfo('icons32'); + + if ($GLOBALS['xoopsUser']) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['linkedinbombModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } + } else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); + } + + if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); + } + + $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['linkedinbombImageIcon']); + $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['linkedinbombImageAdmin']); + + include(dirname(dirname(__FILE__)).'/include/functions.php')... [truncated message content] |
From: <wis...@us...> - 2012-06-05 18:02:53
|
Revision: 9621 http://xoops.svn.sourceforge.net/xoops/?rev=9621&view=rev Author: wishcraft Date: 2012-06-05 18:02:40 +0000 (Tue, 05 Jun 2012) Log Message: ----------- LinkedinBomb 1.02 - First production Release [LinkedIn API Application] (Minor Fixes) Modified Paths: -------------- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/addresses.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr_http_headers.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/authorities.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/causes.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies_type.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/connections.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/contact_info.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/countries.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/following_companies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/industry.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/languages.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/locations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/oauth.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/organization.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/persons.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/proficiencies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_certifications.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_companies.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_courses.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_educations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_ims.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_languages.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents_inventors.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents_office.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_patents_status.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_phones.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_positions.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_providers.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_publications.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_publications_authors.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_recommendations.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_skills.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_volunteer.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/skills.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/specialties.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/status.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/years.php XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/signed.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/addresses.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/aspr_http_headers.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/authorities.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/causes.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/companies_type.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/connections.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/contact_info.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/countries.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/following_companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/industry.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/languages.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/locations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/oauth.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/organization.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/persons.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/proficiencies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_certifications.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_companies.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_courses.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_educations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_ims.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_languages.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_inventors.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_office.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_patents_status.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_phones.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_positions.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_providers.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_publications.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_publications_authors.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_recommendations.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_skills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/profiles_volunteer.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/skills.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/specialties.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/status.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/class/years.php XoopsModules/linkedinbomb/trunk/htdocs/modules/linkedinbomb/signed.php Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/addresses.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/addresses.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/addresses.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -37,40 +37,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } + + function getName() { Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -38,41 +38,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('aspr_id'); } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr_http_headers.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr_http_headers.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/aspr_http_headers.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -35,41 +35,47 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + function getName() { return $this->getVar('name').': '.$this->getVar('value').' ('.$this->getVar('aspr_id').')'; Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/authorities.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/authorities.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/authorities.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -34,41 +34,47 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + function getName() { return $this->getVar('name').' ('.$this->getVar('id').')'; } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/causes.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/causes.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/causes.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -35,40 +35,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } + + function getName() { return $this->getVar('name').' ('.$this->getVar('id').')'; Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -50,40 +50,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } + + function getName() { return $this->getVar('street1').', '.$this->getVar('city').', '.$this->getVar('postal-code'); Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies_type.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies_type.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/companies_type.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -34,40 +34,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } + + function getName() { return $this->getVar('name').' ('.$this->getVar('code').')'; Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/connections.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/connections.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/connections.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -40,41 +40,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('connections_id').', '.$this->getVar('person_id').', '.$this->getVar('request_person_id'); } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/contact_info.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/contact_info.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/contact_info.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -34,41 +34,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('type').': '.$this->getVar('value').' ('.$this->getVar('contact-info_id').')'; } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/countries.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/countries.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/countries.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -36,41 +36,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('name').' ('.$this->getVar('code').')'; } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/following_companies.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/following_companies.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/following_companies.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -34,41 +34,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('person_id').' - '.$this->getVar('company_id'); } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/industry.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/industry.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/industry.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -35,41 +35,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('description').' ('.$this->getVar('code').')'; } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/languages.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/languages.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/languages.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -33,41 +33,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('name'); } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/locations.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/locations.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/locations.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -37,41 +37,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('name').' ('.$this->getVar('id').')'; } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/oauth.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/oauth.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/oauth.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -33,7 +33,6 @@ $this->initVar('ip', XOBJ_DTYPE_TXTBOX, null, false, 64); $this->initVar('netbios', XOBJ_DTYPE_TXTBOX, null, false, 255); $this->initVar('uid', XOBJ_DTYPE_INT, null, false); - $this->initVar('calls', XOBJ_DTYPE_INT, null, false); $this->initVar('created', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 $this->initVar('updated', XOBJ_DTYPE_INT, null, false); // Removed Unicode in 2.10 @@ -49,40 +48,45 @@ } } - function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } @@ -236,7 +240,9 @@ $person->setVar('first-name', $firstname); $person->setVar('last-name', $lastname); $person->setVar('picture-url', $avatar); - $person = $persons_handler->get($person_id = $persons_handler->insert($person, true)); + $person->setDirty(true); + $person_id = $persons_handler->insert($person, true); + $person = $persons_handler->get($person_id); //Creates Oauth Record for harvesting $oauth = $this->create(); $oauth->setVar('uid', $user->getVar('uid')); @@ -252,11 +258,13 @@ $oauth->setVar('request_oauth_token', $_SESSION['oauth']['linkedin']['request']['oauth_token']); $oauth->setVar('request_oauth_token_secret', $_SESSION['oauth']['linkedin']['request']['oauth_token_secret']); $oauth->setVar('request_oauth_expires_in', time() + $_SESSION['oauth']['linkedin']['request']['oauth_expires_in']); + $oauth->setDirty(true); $oauth = $this->get($_SESSION['oauth']['linkedin']['oauth_id'] = parent::insert($oauth, true)); $person->setVar('oauth_id', $_SESSION['oauth']['linkedin']['oauth_id']); $person = $persons_handler->get($person_id = $persons_handler->insert($person, true)); $this->_obj = $oauth; $persons_handler->insert($person->updateProfile(), true); + return $user; } else { $oauths = $this->getObjects($criteria, false); Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/organization.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/organization.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/organization.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -34,41 +34,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('street1').', '.$this->getVar('city').', '.$this->getVar('postal-code'); } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/persons.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/persons.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/persons.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -48,41 +48,49 @@ } function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } + + function getName() { return $this->getVar('street1').', '.$this->getVar('city').', '.$this->getVar('postal-code'); } @@ -155,7 +163,8 @@ $oauth_handler->_api->setTokenAccess($oauth->getAccessToken()); $oauth_handler->_api->setResponseFormat(LINKEDIN::_RESPONSE_XML); } else { - $oauth = $oauth_handler->get(1); + if (isset($_SESSION['oauth']['linkedin']['oauth_id'])) + $oauth = $oauth_handler->get($_SESSION['oauth']['linkedin']['oauth_id']); $oauth_handler->_api->setTokenAccess($oauth->getAccessToken()); $oauth_handler->_api->setResponseFormat(LINKEDIN::_RESPONSE_XML); } @@ -164,7 +173,8 @@ } else { $profile = $profiles_handler->create(); } - if (!$aspr = $aspr_handler->getByCriteria(new Criteria('person_id', $this->getVar('person_id')))) { + $aspr = $aspr_handler->getByCriteria(new Criteria('person_id', $this->getVar('person_id'))); + if ($aspr->isNew()) { $response = $oauth_handler->_api->profile('id='.$this->getVar('id').':(id,first-name,last-name,maiden-name,formatted-name,phonetic-first-name,phonetic-last-name,formatted-phonetic-name,headline,location:(name,country:(code)),industry,distance,relation-to-viewer:(distance),last-modified-timestamp,current-share,network,connections,num-connections,num-connections-capped,summary,specialties,proposal-comments,associations,honors,interests,positions,publications,patents,languages,skills,certifications,educations,courses,volunteer,three-current-positions,three-past-positions,num-recommenders,recommendations-received,phone-numbers,im-accounts,twitter-accounts,primary-twitter-account,bound-account-types,mfeed-rss-url,following,date-of-birth,main-address,site-standard-profile-request,api-standard-profile-request:(url,headers),public-profile-url,related-profile-views,picture-url)'); } else { $http_headers = $aspr_http_headers->getObjects(new Criteria('aspr_id', $aspr->getVar('aspr_id'))); @@ -228,13 +238,13 @@ if (!empty($values['value'])||intval($values['value'])<>0) $criteria->add(new Criteria('`'.$field.'`', $object->getVar($field))); } + if ($this->getCount($criteria)>0) { $obj = $this->getByCriteria($criteria); - if (is_object($obj)) { + if (is_object($obj)&&!$obj->isNew()) { return $obj->getVar($this->keyName); } } - $object->setVar('created', time()); } else { if (!$object->isDirty()) Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/proficiencies.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/proficiencies.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/proficiencies.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -34,41 +34,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('name').' - '.$this->getVar('level'); } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -81,40 +81,47 @@ } function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) - parent::setVar($field, json_encode($value)); - elseif (md5($value)!=md5($this->getVar($field))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { + parent::setVar($field, $value); + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) - parent::setVar($field, json_encode($value)); - elseif (md5($value)!=md5($this->getVar($field))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { + parent::setVar($field, $value); + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } + function getCountryID($code) { $countries_handler = xoops_getmodulehandler('countries', 'linkedinbomb'); Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_certifications.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_certifications.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_certifications.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -40,41 +40,48 @@ function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } } - + + function getName() { return $this->getVar('name').' ('.$this->getVar('id').')'; } Modified: XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_companies.php =================================================================== --- XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_companies.php 2012-06-05 13:05:55 UTC (rev 9620) +++ XoopsModules/linkedinbomb/releases/1.02/htdocs/modules/linkedinbomb/class/profiles_companies.php 2012-06-05 18:02:40 UTC (rev 9621) @@ -35,41 +35,48 @@ } function setVar($field, $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + } + } elseif (md5($value)!=md5($this->getVar($field))) { parent::setVar($field, $value); + } break; } + } } function setVars($arr, $not_gpc=false) { foreach($arr as $field => $value) { - if (isset($this->vars[$field])) + if (isset($this->vars[$field])) { switch ($this->vars[$field]['data_type']) { case XOBJ_DTYPE_ARRAY: if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) parent::setVar($field, $value); break; default: - if (is_array($value)) - if (md5(serialize($value))!=md5(serialize($this->getVar($field)))) + if (is_array($value)) { + if (md5(serialize($value))!=md5($this->getVar($field))) { parent::setVar($field, $value); - elseif (md5($value)!=md5($this->getVar($field))) + ... [truncated message content] |