[Fusionforge-commits] r13754 - in trunk: plugins/coclico/codendi-specific/common/dao/include plugins/coclico/codendi-specific/www/include plugins/coclico/soapadmin/cronjobs plugins/coclico/soapadmin/etc/plugins/soapadmin plugins/coclico/soapadmin/include plugins/coclico/soapadmin/www plugins/coclico/soapadmin/www/admin plugins/coclico/soapadmin/www/coreapi plugins/old/webcalendar/common plugins/old/webcalendar/script plugins/old/webcalendar/www plugins/old/webcalendar/www/includes plugins/old/webcalendar/www/includes/js plugins/old/webcalendar/www/install plugins/old/webcalendar/www/tools plugins/old/webcalendar/www/ws plugins/templates/helloworld/cronjobs plugins/templates/helloworld/etc/plugins/helloworld plugins/templates/helloworld/include plugins/templates/helloworld/www plugins/templates/helloworld/www/admin plugins/templates/scmcpold/common plugins/templates/scmcpold/etc/plugins/scmcpold src src/common/dao src/common/dao/include src/common/docman/actions src/common/docman/engine src/common/docman/include src/common/event src/common/forum src/common/frs src/common/import src/common/include src/common/include/system src/common/mail src/common/mvc src/common/pm src/common/reporting src/common/rss src/common/search src/common/survey src/common/system_event src/common/tracker src/common/widget src/cronjobs src/cronjobs/mail src/db src/deb-specific src/plugins/aselectextauth/include src/plugins/authcas/include src/plugins/authhttpd/include src/plugins/authldap/include src/plugins/authopenid/include src/plugins/authopenid/www src/plugins/blocks/common src/plugins/blocks/etc/plugins/blocks src/plugins/contribtracker/www src/plugins/cvssyncmail/common src/plugins/cvstracker/bin src/plugins/cvstracker/common src/plugins/cvstracker/www src/plugins/doaprdf/include src/plugins/externalsearch/etc/plugins/externalsearch src/plugins/externalsearch/include src/plugins/extratabs/www src/plugins/fckeditor/common src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php src/plugins/fckeditor/www/editor/filemanager/upload/php src/plugins/foafprofiles/include src/plugins/forumml/bin src/plugins/forumml/common src/plugins/forumml/include src/plugins/forumml/tests src/plugins/forumml/www src/plugins/forumml/www/scripts src/plugins/globalsearch/common src/plugins/globalsearch/www src/plugins/gravatar/common src/plugins/hudson/common src/plugins/hudson/cronjobs src/plugins/hudson/etc/plugins/hudson src/plugins/hudson/include src/plugins/hudson/tests src/plugins/hudson/www src/plugins/hudson/www/admin src/plugins/mailman/common src/plugins/mailman/cronjobs src/plugins/mailman/etc/plugins/mailman src/plugins/mailman/include src/plugins/mailman/include/events src/plugins/mailman/www src/plugins/mailman/www/admin src/plugins/mantisbt/action src/plugins/mantisbt/view src/plugins/mantisbt/view/admin src/plugins/mantisbt/www/group src/plugins/mediawiki/bin src/plugins/mediawiki/cronjobs src/plugins/mediawiki/include src/plugins/mediawiki/www src/plugins/message/common src/plugins/message/www src/plugins/oauthprovider/3rd-party/oauth-php src/plugins/oauthprovider/3rd-party/oauth-php/example src/plugins/oauthprovider/common src/plugins/oauthprovider/cronjobs src/plugins/oauthprovider/etc/plugins/oauthprovider src/plugins/oauthprovider/example src/plugins/oauthprovider/include src/plugins/oauthprovider/www src/plugins/oauthprovider/www/admin src/plugins/online_help/common src/plugins/oslc/cronjobs src/plugins/oslc/etc/plugins/oslc src/plugins/oslc/include src/plugins/oslc/include/oslc-zend/application src/plugins/oslc/include/oslc-zend/application/controllers src/plugins/oslc/include/oslc-zend/application/exceptions src/plugins/oslc/include/oslc-zend/application/models src/plugins/oslc/include/oslc-zend/application/views/scripts/cm src/plugins/oslc/include/oslc-zend/application/views/scripts/codendicm src/plugins/oslc/include/oslc-zend/application/views/scripts/error src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecm src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecompact src/plugins/oslc/include/oslc-zend/application/views/scripts/mantiscm src/plugins/oslc/www src/plugins/oslc/www/admin src/plugins/projectimport/3rd-party/oslc-tools/arc2-plugin src/plugins/projectimport/common src/plugins/projectimport/etc/plugins/projectimport src/plugins/projectimport/www src/plugins/projectlabels/common src/plugins/projectlabels/www src/plugins/projects_hierarchy/actions src/plugins/scmarch/common src/plugins/scmarch/etc/plugins/scmarch src/plugins/scmbzr/common src/plugins/scmbzr/etc/plugins/scmbzr src/plugins/scmccase/common src/plugins/scmccase/etc/plugins/scmccase src/plugins/scmcvs/common src/plugins/scmcvs/cronjobs src/plugins/scmcvs/etc/plugins/scmcvs src/plugins/scmdarcs/common src/plugins/scmdarcs/etc/plugins/scmdarcs src/plugins/scmgit/common src/plugins/scmgit/etc/plugins/scmgit src/plugins/scmgit/www src/plugins/scmhg/common src/plugins/scmhg/etc/plugins/scmhg src/plugins/scmhook/library/scmsvn src/plugins/scmhook/library/scmsvn/hooks/committracker src/plugins/scmhook/www/committracker src/plugins/scmsvn/common src/plugins/scmsvn/etc/plugins/scmsvn src/plugins/svncommitemail/common src/plugins/svntracker/bin src/plugins/svntracker/common src/plugins/svntracker/www src/plugins/wiki/common src/plugins/wiki/cronjobs src/plugins/wiki/etc/plugins/wiki src/plugins/wiki/www src/plugins/wiki/www/lib/ASCIIMathPHP src/plugins/wiki/www/lib/DbSession src/plugins/wiki/www/lib/WikiDB src/plugins/wiki/www/lib/WikiDB/adodb src/plugins/wiki/www/lib/WikiDB/adodb/drivers src/plugins/wiki/www/lib/WikiDB/backend src/plugins/wiki/www/lib/WikiDB/backend/dumb src/plugins/wiki/www/lib/WysiwygEdit src/plugins/wiki/www/lib/XMLRPC src/plugins/wiki/www/lib/fpdf src/plugins/wiki/www/lib/nusoap src/plugins/wiki/www/lib/pear src/plugins/wiki/www/lib/pear/Cache src/plugins/wiki/www/lib/pear/Cache/Container src/plugins/wiki/www/lib/pear/DB src/plugins/wiki/www/lib/plugin src/plugins/wiki/www/tests/unit src/plugins/wiki/www/tests/unit/lib src/plugins/wiki/www/tests/unit/lib/plugin src/plugins/wiki/www/tests/xmlrpc src/plugins/wiki/www/themes/Hawaiian/lib src/plugins/wiki/www/themes/MacOSX/buttons src/plugins/wiki/www/themes/MacOSX/buttons/de src/plugins/wiki/www/themes/MacOSX/buttons/en src/plugins/wiki/www/themes/MacOSX/images src/plugins/wiki/www/themes/MacOSX/lib src/plugins/wiki/www/themes/Portland/lib src/plugins/wiki/www/themes/SpaceWiki/lib src/plugins/wiki/www/themes/Wordpress/lib src/plugins/wiki/www/themes/blog/lib src/utils src/utils/fixscripts src/www src/www/account src/www/activity src/www/admin src/www/admin/trove src/www/developer src/www/export src/www/forum src/www/frs src/www/frs/admin src/www/frs/reporting src/www/include src/www/mail src/www/my src/www/new src/www/news src/www/people src/www/people/admin src/www/pm src/www/pm/admin src/www/pm/include src/www/pm/msproject src/www/pm/reporting src/www/project src/www/project/admin src/www/project/report src/www/project/stats src/www/register src/www/reporting src/www/scm src/www/scm/include src/www/scm/reporting src/www/search src/www/search/include/engines src/www/search/include/renderers src/www/snippet src/www/soap src/www/soap/common src/www/soap/docman src/www/soap/frs src/www/soap/pm src/www/soap/reporting src/www/soap/scm src/www/soap/tracker src/www/softwaremap src/www/stats src/www/survey src/www/survey/admin src/www/survey/include src/www/top src/www/tracker src/www/tracker/admin src/www/tracker/include src/www/tracker/reporting src/www/trove src/www/trove/admin src/www/trove/include tests tests/build/documentation tests/build/packages tests/code/deprecations tests/code/syntax tests/func tests/func/Docs tests/func/Forums tests/func/News tests/func/PluginsBlocks tests/func/PluginsOnlineHelp tests/func/PluginsSvnTracker tests/func/RBAC tests/func/Site tests/func/Soap tests/func/Surveys tests/func/Tasks tests/func/Testing tests/func/Trackers tests/scripts tests/unit/config tests/unit/utils tools

Thorsten Glaser mirabilos at fusionforge.org
Tue Jul 12 13:44:44 CEST 2011


Author: mirabilos
Date: 2011-07-12 13:44:44 +0200 (Tue, 12 Jul 2011)
New Revision: 13754

Modified:
   trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccess.class.php
   trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccessObject.class.php
   trunk/plugins/coclico/codendi-specific/www/include/plugins_utils.php
   trunk/plugins/coclico/soapadmin/cronjobs/manage_soapadmin.php
   trunk/plugins/coclico/soapadmin/etc/plugins/soapadmin/config.php
   trunk/plugins/coclico/soapadmin/include/soapadminPlugin.class.php
   trunk/plugins/coclico/soapadmin/www/admin/index.php
   trunk/plugins/coclico/soapadmin/www/coreapi/coreapi.php
   trunk/plugins/coclico/soapadmin/www/coreapi/coreapiobjects.php
   trunk/plugins/coclico/soapadmin/www/coreapi/coreapiservice.php
   trunk/plugins/coclico/soapadmin/www/index.php
   trunk/plugins/old/webcalendar/common/webcalendarPlugin.class.php
   trunk/plugins/old/webcalendar/script/webcalendar-init.php
   trunk/plugins/old/webcalendar/www/activity_log.php
   trunk/plugins/old/webcalendar/www/admin.php
   trunk/plugins/old/webcalendar/www/approve_entry.php
   trunk/plugins/old/webcalendar/www/availability.php
   trunk/plugins/old/webcalendar/www/category_handler.php
   trunk/plugins/old/webcalendar/www/colors.php
   trunk/plugins/old/webcalendar/www/del_entry.php
   trunk/plugins/old/webcalendar/www/edit_entry.php
   trunk/plugins/old/webcalendar/www/edit_entry_handler.php
   trunk/plugins/old/webcalendar/www/edit_layer.php
   trunk/plugins/old/webcalendar/www/edit_nonusers.php
   trunk/plugins/old/webcalendar/www/edit_report.php
   trunk/plugins/old/webcalendar/www/edit_user.php
   trunk/plugins/old/webcalendar/www/edit_user_handler.php
   trunk/plugins/old/webcalendar/www/export_handler.php
   trunk/plugins/old/webcalendar/www/gradient.php
   trunk/plugins/old/webcalendar/www/group_edit_handler.php
   trunk/plugins/old/webcalendar/www/groups.php
   trunk/plugins/old/webcalendar/www/help_bug.php
   trunk/plugins/old/webcalendar/www/import.php
   trunk/plugins/old/webcalendar/www/import_handler.php
   trunk/plugins/old/webcalendar/www/import_ical.php
   trunk/plugins/old/webcalendar/www/import_vcal.php
   trunk/plugins/old/webcalendar/www/includes/connect.php
   trunk/plugins/old/webcalendar/www/includes/dbtable.php
   trunk/plugins/old/webcalendar/www/includes/functions.php
   trunk/plugins/old/webcalendar/www/includes/index.php
   trunk/plugins/old/webcalendar/www/includes/init.php
   trunk/plugins/old/webcalendar/www/includes/js.php
   trunk/plugins/old/webcalendar/www/includes/js/availability.php
   trunk/plugins/old/webcalendar/www/includes/js/edit_entry.php
   trunk/plugins/old/webcalendar/www/includes/js/export.php
   trunk/plugins/old/webcalendar/www/includes/js/popups.php
   trunk/plugins/old/webcalendar/www/includes/js/visible.php
   trunk/plugins/old/webcalendar/www/includes/php-dbi.php
   trunk/plugins/old/webcalendar/www/includes/site_extras.php
   trunk/plugins/old/webcalendar/www/includes/styles.php
   trunk/plugins/old/webcalendar/www/includes/trailer.php
   trunk/plugins/old/webcalendar/www/includes/user-app-postnuke.php
   trunk/plugins/old/webcalendar/www/includes/user-ldap.php
   trunk/plugins/old/webcalendar/www/includes/user-nis.php
   trunk/plugins/old/webcalendar/www/includes/user.php
   trunk/plugins/old/webcalendar/www/includes/validate.php
   trunk/plugins/old/webcalendar/www/index.php
   trunk/plugins/old/webcalendar/www/index2.php
   trunk/plugins/old/webcalendar/www/install/index.php
   trunk/plugins/old/webcalendar/www/layers.php
   trunk/plugins/old/webcalendar/www/list_unapproved.php
   trunk/plugins/old/webcalendar/www/login.php
   trunk/plugins/old/webcalendar/www/month.php
   trunk/plugins/old/webcalendar/www/nonusers.php
   trunk/plugins/old/webcalendar/www/pref.php
   trunk/plugins/old/webcalendar/www/reject_entry.php
   trunk/plugins/old/webcalendar/www/report.php
   trunk/plugins/old/webcalendar/www/search.php
   trunk/plugins/old/webcalendar/www/tools/send_reminders.php
   trunk/plugins/old/webcalendar/www/upcoming.php
   trunk/plugins/old/webcalendar/www/users.php
   trunk/plugins/old/webcalendar/www/view_d.php
   trunk/plugins/old/webcalendar/www/view_entry.php
   trunk/plugins/old/webcalendar/www/view_l.php
   trunk/plugins/old/webcalendar/www/view_m.php
   trunk/plugins/old/webcalendar/www/view_t.php
   trunk/plugins/old/webcalendar/www/view_v.php
   trunk/plugins/old/webcalendar/www/view_w.php
   trunk/plugins/old/webcalendar/www/views_edit.php
   trunk/plugins/old/webcalendar/www/week.php
   trunk/plugins/old/webcalendar/www/week_details.php
   trunk/plugins/old/webcalendar/www/ws/get_events.php
   trunk/plugins/old/webcalendar/www/ws/get_reminders.php
   trunk/plugins/old/webcalendar/www/year.php
   trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php
   trunk/plugins/templates/helloworld/etc/plugins/helloworld/config.php
   trunk/plugins/templates/helloworld/include/helloworldPlugin.class.php
   trunk/plugins/templates/helloworld/www/admin/index.php
   trunk/plugins/templates/helloworld/www/index.php
   trunk/plugins/templates/scmcpold/common/CpoldPlugin.class.php
   trunk/plugins/templates/scmcpold/common/scmcpold-init.php
   trunk/plugins/templates/scmcpold/etc/plugins/scmcpold/config.php
   trunk/src/common/dao/CodendiDataAccess.class.php
   trunk/src/common/dao/include/DataAccess.class.php
   trunk/src/common/dao/include/DataAccessObject.class.php
   trunk/src/common/dao/include/DataAccessResult.class.php
   trunk/src/common/docman/actions/injectzip.php
   trunk/src/common/docman/engine/parser_text.inc.php
   trunk/src/common/docman/include/DocumentGroupHTML.class.php
   trunk/src/common/docman/include/vtemplate.class.php
   trunk/src/common/docman/include/webdav.php
   trunk/src/common/event/Event.class.php
   trunk/src/common/forum/AttachManager.class.php
   trunk/src/common/forum/Forum.class.php
   trunk/src/common/forum/ForumAdmin.class.php
   trunk/src/common/forum/ForumFactory.class.php
   trunk/src/common/forum/ForumMessage.class.php
   trunk/src/common/forum/ForumMessageFactory.class.php
   trunk/src/common/frs/FRSFile.class.php
   trunk/src/common/import/import_docman.php
   trunk/src/common/import/import_frs.php
   trunk/src/common/import/import_mailman.php
   trunk/src/common/import/import_news.php
   trunk/src/common/import/import_svn.php
   trunk/src/common/import/import_tasks.php
   trunk/src/common/import/import_trackers.php
   trunk/src/common/import/import_users.php
   trunk/src/common/include/AuthPlugin.class.php
   trunk/src/common/include/Codendi_HTMLPurifier.class.php
   trunk/src/common/include/Codendi_Request.class.php
   trunk/src/common/include/DatabaseInstaller.class.php
   trunk/src/common/include/Error.class.php
   trunk/src/common/include/FusionForge.class.php
   trunk/src/common/include/Group.class.php
   trunk/src/common/include/GroupJoinRequest.class.php
   trunk/src/common/include/HTTPRequest.class.php
   trunk/src/common/include/Jabber.class.php
   trunk/src/common/include/MailParser.class.php
   trunk/src/common/include/PFO-RBAC.interface.php
   trunk/src/common/include/Plugin.class.php
   trunk/src/common/include/PluginInfo.class.php
   trunk/src/common/include/PluginManager.class.php
   trunk/src/common/include/PluginPersistence.class.php
   trunk/src/common/include/ProjectManager.class.php
   trunk/src/common/include/RBAC.php
   trunk/src/common/include/RBACEngine.class.php
   trunk/src/common/include/Role.class.php
   trunk/src/common/include/RoleObserver.class.php
   trunk/src/common/include/Stats.class.php
   trunk/src/common/include/System.class.php
   trunk/src/common/include/User.class.php
   trunk/src/common/include/UserManager.class.php
   trunk/src/common/include/Validator.class.php
   trunk/src/common/include/account.php
   trunk/src/common/include/config-vars.php
   trunk/src/common/include/config.php
   trunk/src/common/include/cron_utils.php
   trunk/src/common/include/env.inc.php
   trunk/src/common/include/escapingUtils.php
   trunk/src/common/include/forms.php
   trunk/src/common/include/gettext.php
   trunk/src/common/include/plugins_utils.php
   trunk/src/common/include/pre.php
   trunk/src/common/include/preplugins.php
   trunk/src/common/include/rbac_texts.php
   trunk/src/common/include/system/LDAP.class.php
   trunk/src/common/include/system/NSSPGSQL.class.php
   trunk/src/common/include/system/UNIX.class.php
   trunk/src/common/include/system/pgsql.class.php
   trunk/src/common/include/tag_cloud.php
   trunk/src/common/include/testjson.php
   trunk/src/common/include/utils_crossref.php
   trunk/src/common/mail/Mail.class.php
   trunk/src/common/mail/MailingList.class.php
   trunk/src/common/mail/MailingListFactory.class.php
   trunk/src/common/mvc/Actions.class.php
   trunk/src/common/mvc/Controler.class.php
   trunk/src/common/mvc/Views.class.php
   trunk/src/common/pm/ProjectCategory.class.php
   trunk/src/common/pm/ProjectGroup.class.php
   trunk/src/common/pm/ProjectTask.class.php
   trunk/src/common/pm/ProjectTaskFactory.class.php
   trunk/src/common/pm/ProjectTaskSqlQueries.php
   trunk/src/common/pm/ProjectTasksForUser.class.php
   trunk/src/common/pm/Validator.class.php
   trunk/src/common/pm/import_utils.php
   trunk/src/common/reporting/Report.class.php
   trunk/src/common/reporting/ReportProjectTime.class.php
   trunk/src/common/reporting/ReportSetup.class.php
   trunk/src/common/reporting/ReportSiteTime.class.php
   trunk/src/common/reporting/ReportTrackerAct.class.php
   trunk/src/common/reporting/ReportUserTime.class.php
   trunk/src/common/reporting/TimeEntry.class.php
   trunk/src/common/reporting/report_utils.php
   trunk/src/common/rss/RSS.class.php
   trunk/src/common/search/ArtifactSearchQuery.class.php
   trunk/src/common/search/ExportProjectSearchQuery.class.php
   trunk/src/common/search/ForumSearchQuery.class.php
   trunk/src/common/search/ForumsSearchQuery.class.php
   trunk/src/common/search/FrsSearchQuery.class.php
   trunk/src/common/search/NewsSearchQuery.class.php
   trunk/src/common/search/PeopleSearchQuery.class.php
   trunk/src/common/search/ProjectSearchQuery.class.php
   trunk/src/common/search/SkillSearchQuery.class.php
   trunk/src/common/search/TasksSearchQuery.class.php
   trunk/src/common/search/TrackersSearchQuery.class.php
   trunk/src/common/survey/Survey.class.php
   trunk/src/common/survey/SurveyFactory.class.php
   trunk/src/common/survey/SurveyQuestion.class.php
   trunk/src/common/survey/SurveyQuestionFactory.class.php
   trunk/src/common/survey/SurveyResponse.class.php
   trunk/src/common/survey/SurveyResponseFactory.class.php
   trunk/src/common/system_event/SystemEvent.class.php
   trunk/src/common/system_event/SystemEventManager.class.php
   trunk/src/common/tracker/Artifact.class.php
   trunk/src/common/tracker/ArtifactBoxOptions.class.php
   trunk/src/common/tracker/ArtifactCanned.class.php
   trunk/src/common/tracker/ArtifactExtraField.class.php
   trunk/src/common/tracker/ArtifactExtraFieldElement.class.php
   trunk/src/common/tracker/ArtifactFactory.class.php
   trunk/src/common/tracker/ArtifactFile.class.php
   trunk/src/common/tracker/ArtifactFromID.class.php
   trunk/src/common/tracker/ArtifactHistory.class.php
   trunk/src/common/tracker/ArtifactMessage.class.php
   trunk/src/common/tracker/ArtifactQuery.class.php
   trunk/src/common/tracker/ArtifactQueryFactory.class.php
   trunk/src/common/tracker/ArtifactType.class.php
   trunk/src/common/tracker/ArtifactTypeFactory.class.php
   trunk/src/common/tracker/ArtifactTypes.class.php
   trunk/src/common/tracker/ArtifactWorkflow.class.php
   trunk/src/common/tracker/Artifacts.class.php
   trunk/src/common/tracker/ArtifactsForUser.class.php
   trunk/src/common/widget/Widget.class.php
   trunk/src/common/widget/WidgetLayoutManager.class.php
   trunk/src/common/widget/WidgetLayout_Row.class.php
   trunk/src/common/widget/Widget_MyAdmin.class.php
   trunk/src/common/widget/Widget_MyArtifacts.class.php
   trunk/src/common/widget/Widget_MyBookmarks.class.php
   trunk/src/common/widget/Widget_MyLatestSvnCommits.class.php
   trunk/src/common/widget/Widget_MyMonitoredDocuments.class.php
   trunk/src/common/widget/Widget_MyMonitoredForums.class.php
   trunk/src/common/widget/Widget_MyMonitoredFp.class.php
   trunk/src/common/widget/Widget_MyProjects.class.php
   trunk/src/common/widget/Widget_MyProjectsLastDocuments.class.php
   trunk/src/common/widget/Widget_MyRss.class.php
   trunk/src/common/widget/Widget_MySurveys.class.php
   trunk/src/common/widget/Widget_MyTasks.class.php
   trunk/src/common/widget/Widget_ProjectDescription.class.php
   trunk/src/common/widget/Widget_ProjectInfo.class.php
   trunk/src/common/widget/Widget_ProjectLatestDocuments.class.php
   trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php
   trunk/src/common/widget/Widget_ProjectRss.class.php
   trunk/src/common/widget/Widget_Rss.class.php
   trunk/src/cronjobs/auth_unix.php
   trunk/src/cronjobs/backup_site.php
   trunk/src/cronjobs/calculate_user_metric.php
   trunk/src/cronjobs/create_scm_repos.php
   trunk/src/cronjobs/daily_task_email.php
   trunk/src/cronjobs/db_project_sums.php
   trunk/src/cronjobs/db_stats_agg.php
   trunk/src/cronjobs/db_trove_maint.php
   trunk/src/cronjobs/forum_gateway.php
   trunk/src/cronjobs/ftp_create_group_access.php
   trunk/src/cronjobs/gather_scm_stats.php
   trunk/src/cronjobs/generate_scm_snapshots.php
   trunk/src/cronjobs/homedirs.php
   trunk/src/cronjobs/mail/mailaliases.php
   trunk/src/cronjobs/massmail.php
   trunk/src/cronjobs/project_cleanup.php
   trunk/src/cronjobs/send_pending_items_mail.php
   trunk/src/cronjobs/site_stats.php
   trunk/src/cronjobs/tracker_gateway.php
   trunk/src/cronjobs/vacuum.php
   trunk/src/db/20010304-4-artifact-convert-files.php
   trunk/src/db/20021213-2-doc_data-migrate.php
   trunk/src/db/20040826_migrateforum.php
   trunk/src/db/20040826_migraterbac.php
   trunk/src/db/20041211-syncmail.php
   trunk/src/db/20041222-1-delete-task-artifact.php
   trunk/src/db/20050325-3.php
   trunk/src/db/20050617.php
   trunk/src/db/20050804-2.php
   trunk/src/db/20090507-install_workflow.php
   trunk/src/db/startpoint.php
   trunk/src/deb-specific/pkginfo.inc.php
   trunk/src/fusionforge-install-2.php
   trunk/src/fusionforge-install-3-db.php
   trunk/src/plugins/aselectextauth/include/ASelectAuthPlugin.class.php
   trunk/src/plugins/aselectextauth/include/Aselect.class.php
   trunk/src/plugins/authcas/include/AuthCASPlugin.class.php
   trunk/src/plugins/authhttpd/include/AuthHTTPDPlugin.class.php
   trunk/src/plugins/authldap/include/AuthLDAPPlugin.class.php
   trunk/src/plugins/authldap/include/authldap-init.php
   trunk/src/plugins/authopenid/include/AuthOpenIDPlugin.class.php
   trunk/src/plugins/authopenid/www/index.php
   trunk/src/plugins/blocks/common/blocksPlugin.class.php
   trunk/src/plugins/blocks/etc/plugins/blocks/config.php
   trunk/src/plugins/contribtracker/www/actor_logo.php
   trunk/src/plugins/contribtracker/www/global_admin.php
   trunk/src/plugins/contribtracker/www/project_admin.php
   trunk/src/plugins/cvssyncmail/common/CVSSyncMailPlugin.class.php
   trunk/src/plugins/cvstracker/bin/post.php
   trunk/src/plugins/cvstracker/common/Snoopy.class.php
   trunk/src/plugins/cvstracker/common/cvstrackerPlugin.class.php
   trunk/src/plugins/cvstracker/www/newcommit.php
   trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php
   trunk/src/plugins/externalsearch/etc/plugins/externalsearch/config.php
   trunk/src/plugins/externalsearch/include/ExternalHtmlSearchRenderer.class.php
   trunk/src/plugins/externalsearch/include/ExternalSearchEngine.class.php
   trunk/src/plugins/externalsearch/include/ExternalSearchPlugin.class.php
   trunk/src/plugins/extratabs/www/iframe.php
   trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/basexml.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/commands.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/config.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/connector.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/io.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/util.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/config.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/upload.php
   trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/util.php
   trunk/src/plugins/foafprofiles/include/foafprofilesPlugin.class.php
   trunk/src/plugins/forumml/bin/mail_2_DB.php
   trunk/src/plugins/forumml/bin/mail_2_DBFF.php
   trunk/src/plugins/forumml/common/forumml-init.php
   trunk/src/plugins/forumml/include/ForumMLGroupSearchEngine.class.php
   trunk/src/plugins/forumml/include/ForumMLHtmlSearchRenderer.class.php
   trunk/src/plugins/forumml/include/ForumMLInsert.class.php
   trunk/src/plugins/forumml/include/ForumMLPluginDescriptor.class.php
   trunk/src/plugins/forumml/include/ForumMLPluginInfo.class.php
   trunk/src/plugins/forumml/include/ForumMLSearchEngine.class.php
   trunk/src/plugins/forumml/include/ForumMLSearchQuery.class.php
   trunk/src/plugins/forumml/include/ForumML_AttachmentDao.class.php
   trunk/src/plugins/forumml/include/ForumML_FileStorage.class.php
   trunk/src/plugins/forumml/include/ForumML_HTMLPurifier.class.php
   trunk/src/plugins/forumml/include/ForumML_MessageManager.class.php
   trunk/src/plugins/forumml/include/forummlPlugin.class.php
   trunk/src/plugins/forumml/tests/ForumML_FileStorageTest.php
   trunk/src/plugins/forumml/tests/ForumML_InsertTest.php
   trunk/src/plugins/forumml/www/forumml_utils.php
   trunk/src/plugins/forumml/www/index.php
   trunk/src/plugins/forumml/www/message.php
   trunk/src/plugins/forumml/www/scripts/cc_attach_js.php
   trunk/src/plugins/forumml/www/upload.php
   trunk/src/plugins/globalsearch/common/globalsearch_edit_utils.php
   trunk/src/plugins/globalsearch/common/globalsearch_stats_boxes.php
   trunk/src/plugins/globalsearch/www/edit_assoc_sites.php
   trunk/src/plugins/globalsearch/www/index.php
   trunk/src/plugins/gravatar/common/gravatarPlugin.class.php
   trunk/src/plugins/hudson/common/hudson-init.php
   trunk/src/plugins/hudson/cronjobs/manage_hudson.php
   trunk/src/plugins/hudson/etc/plugins/hudson/config.php
   trunk/src/plugins/hudson/include/HudsonBuild.class.php
   trunk/src/plugins/hudson/include/HudsonJob.class.php
   trunk/src/plugins/hudson/include/HudsonJobURLFileException.class.php
   trunk/src/plugins/hudson/include/HudsonJobURLFileNotFoundException.class.php
   trunk/src/plugins/hudson/include/HudsonJobURLMalformedException.class.php
   trunk/src/plugins/hudson/include/HudsonJobWidget.class.php
   trunk/src/plugins/hudson/include/HudsonOverviewWidget.class.php
   trunk/src/plugins/hudson/include/HudsonTestResult.class.php
   trunk/src/plugins/hudson/include/HudsonWidget.class.php
   trunk/src/plugins/hudson/include/PluginHudsonJobDao.class.php
   trunk/src/plugins/hudson/include/hudson.class.php
   trunk/src/plugins/hudson/include/hudsonActions.class.php
   trunk/src/plugins/hudson/include/hudsonPluginDescriptor.class.php
   trunk/src/plugins/hudson/include/hudsonPluginInfo.class.php
   trunk/src/plugins/hudson/include/hudsonViews.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_JobBuildHistory.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_JobLastArtifacts.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_JobLastBuilds.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_JobTestResults.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_JobTestTrend.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_MyMonitoredJobs.class.php
   trunk/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
   trunk/src/plugins/hudson/tests/AllTests.php
   trunk/src/plugins/hudson/tests/HudsonBuildTest.php
   trunk/src/plugins/hudson/tests/HudsonJobTest.php
   trunk/src/plugins/hudson/tests/HudsonTestResultTest.php
   trunk/src/plugins/hudson/www/admin/index.php
   trunk/src/plugins/hudson/www/test_result_pie_chart.php
   trunk/src/plugins/mailman/common/mailman-init.php
   trunk/src/plugins/mailman/cronjobs/manage_mailmanlists.php
   trunk/src/plugins/mailman/etc/plugins/mailman/config.php
   trunk/src/plugins/mailman/include/BackendMailmanList.class.php
   trunk/src/plugins/mailman/include/MailmanList.class.php
   trunk/src/plugins/mailman/include/MailmanListDao.class.php
   trunk/src/plugins/mailman/include/MailmanListFactory.class.php
   trunk/src/plugins/mailman/include/MailmanPluginDescriptor.class.php
   trunk/src/plugins/mailman/include/MailmanPluginInfo.class.php
   trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_CREATE.class.php
   trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_DELETE.class.php
   trunk/src/plugins/mailman/include/mailmanPlugin.class.php
   trunk/src/plugins/mailman/www/admin/deletelist.php
   trunk/src/plugins/mailman/www/admin/index.php
   trunk/src/plugins/mailman/www/index.php
   trunk/src/plugins/mailman/www/mailman_utils.php
   trunk/src/plugins/mantisbt/action/updateIssue.php
   trunk/src/plugins/mantisbt/view/admin/editVersion.php
   trunk/src/plugins/mantisbt/view/viewIssue.php
   trunk/src/plugins/mantisbt/www/group/index.php
   trunk/src/plugins/mediawiki/bin/mw-drop-wikis.php
   trunk/src/plugins/mediawiki/bin/mw-plugin-init.php
   trunk/src/plugins/mediawiki/bin/mw-wrapper.php
   trunk/src/plugins/mediawiki/cronjobs/create-imagedirs.php
   trunk/src/plugins/mediawiki/cronjobs/create-wikis-mysql.php
   trunk/src/plugins/mediawiki/cronjobs/create-wikis.php
   trunk/src/plugins/mediawiki/cronjobs/dump-wikis.php
   trunk/src/plugins/mediawiki/include/MediaWikiPluginDescriptor.class.php
   trunk/src/plugins/mediawiki/include/MediaWikiPluginInfo.class.php
   trunk/src/plugins/mediawiki/include/mediawikiPlugin.class.php
   trunk/src/plugins/mediawiki/www/DatabaseForgeMysql.php
   trunk/src/plugins/mediawiki/www/DatabaseForgePgsql.php
   trunk/src/plugins/mediawiki/www/LocalSettings.php
   trunk/src/plugins/message/common/messagePlugin.class.php
   trunk/src/plugins/message/www/index.php
   trunk/src/plugins/oauthprovider/3rd-party/oauth-php/OAuth.php
   trunk/src/plugins/oauthprovider/3rd-party/oauth-php/OAuth_TestServer.php
   trunk/src/plugins/oauthprovider/3rd-party/oauth-php/example/client.php
   trunk/src/plugins/oauthprovider/3rd-party/oauth-php/example/index.php
   trunk/src/plugins/oauthprovider/common/oauthprovider-init.php
   trunk/src/plugins/oauthprovider/cronjobs/manage_oauthprovider.php
   trunk/src/plugins/oauthprovider/etc/plugins/oauthprovider/config.php
   trunk/src/plugins/oauthprovider/example/command-line.php
   trunk/src/plugins/oauthprovider/include/access_token_api.php
   trunk/src/plugins/oauthprovider/include/consumer_api.php
   trunk/src/plugins/oauthprovider/include/fusionforge_oauth_datastore.php
   trunk/src/plugins/oauthprovider/include/oauthprovider_plugin.php
   trunk/src/plugins/oauthprovider/include/request_token_api.php
   trunk/src/plugins/oauthprovider/include/token_api.php
   trunk/src/plugins/oauthprovider/www/access_token.php
   trunk/src/plugins/oauthprovider/www/access_tokens.php
   trunk/src/plugins/oauthprovider/www/admin/index.php
   trunk/src/plugins/oauthprovider/www/authorize.php
   trunk/src/plugins/oauthprovider/www/checks.php
   trunk/src/plugins/oauthprovider/www/consumer.php
   trunk/src/plugins/oauthprovider/www/consumer_create.php
   trunk/src/plugins/oauthprovider/www/consumer_delete.php
   trunk/src/plugins/oauthprovider/www/consumer_manage.php
   trunk/src/plugins/oauthprovider/www/consumer_update.php
   trunk/src/plugins/oauthprovider/www/consumer_update_page.php
   trunk/src/plugins/oauthprovider/www/echo.php
   trunk/src/plugins/oauthprovider/www/index.php
   trunk/src/plugins/oauthprovider/www/request_token.php
   trunk/src/plugins/oauthprovider/www/request_tokens.php
   trunk/src/plugins/oauthprovider/www/token_authorize.php
   trunk/src/plugins/oauthprovider/www/token_delete.php
   trunk/src/plugins/oauthprovider/www/token_deny.php
   trunk/src/plugins/online_help/common/online_helpPlugin.class.php
   trunk/src/plugins/oslc/cronjobs/manage_oslc.php
   trunk/src/plugins/oslc/etc/plugins/oslc/config.php
   trunk/src/plugins/oslc/include/compactResource.class.php
   trunk/src/plugins/oslc/include/oslc-zend/application/Bootstrap.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CmController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CodendiCmController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CodendiOSLCConnector.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/CompactController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/ErrorController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCmController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeCompactController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/FusionForgeOSLCConnector.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/MantisCmController.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/MantisOSLCConnector.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/OSLCConnector.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/cql-lime_parser.inc.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/cql.php
   trunk/src/plugins/oslc/include/oslc-zend/application/controllers/lime-parse_engine.php
   trunk/src/plugins/oslc/include/oslc-zend/application/exceptions/oslcException.php
   trunk/src/plugins/oslc/include/oslc-zend/application/models/ChangeRequests.php
   trunk/src/plugins/oslc/include/oslc-zend/application/models/Codendi.inc.php
   trunk/src/plugins/oslc/include/oslc-zend/application/models/fusionforge.inc.php
   trunk/src/plugins/oslc/include/oslc-zend/application/models/mantis.inc.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/cm/_add_hyperlinks.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/cm/_resource_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/cm/_service-catalog_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/cm/_service-document_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/codendicm/_add_hyperlinks.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/codendicm/_resource_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/codendicm/_service-catalog_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/codendicm/_service-document_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/error/_error_resource.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecm/_add_hyperlinks.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecm/_resource_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecm/_service-catalog_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecm/_service-document_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecompact/_compact_project_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/fusionforgecompact/_compact_user_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/mantiscm/_add_hyperlinks.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/mantiscm/_resource_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/mantiscm/_service-catalog_xml.php
   trunk/src/plugins/oslc/include/oslc-zend/application/views/scripts/mantiscm/_service-document_xml.php
   trunk/src/plugins/oslc/include/oslcPlugin.class.php
   trunk/src/plugins/oslc/www/admin/index.php
   trunk/src/plugins/oslc/www/index.php
   trunk/src/plugins/projectimport/3rd-party/oslc-tools/arc2-plugin/ARC2_OSLCCoreRDFJSONParserPlugin.php
   trunk/src/plugins/projectimport/common/ProjectImportPlugin.class.php
   trunk/src/plugins/projectimport/common/ProjectImporter.class.php
   trunk/src/plugins/projectimport/common/UploadedFiles.class.php
   trunk/src/plugins/projectimport/etc/plugins/projectimport/config.php
   trunk/src/plugins/projectimport/www/index.php
   trunk/src/plugins/projectimport/www/projectsimport.php
   trunk/src/plugins/projectimport/www/usersimport.php
   trunk/src/plugins/projectlabels/common/ProjectLabelsPlugin.class.php
   trunk/src/plugins/projectlabels/www/index.php
   trunk/src/plugins/projects_hierarchy/actions/addChild.php
   trunk/src/plugins/projects_hierarchy/actions/projectsHierarchyDocman.php
   trunk/src/plugins/projects_hierarchy/actions/removeChild.php
   trunk/src/plugins/projects_hierarchy/actions/removeParent.php
   trunk/src/plugins/projects_hierarchy/actions/validateRelationship.php
   trunk/src/plugins/scmarch/common/ArchPlugin.class.php
   trunk/src/plugins/scmarch/common/scmarch-init.php
   trunk/src/plugins/scmarch/etc/plugins/scmarch/config.php
   trunk/src/plugins/scmbzr/common/BzrPlugin.class.php
   trunk/src/plugins/scmbzr/common/scmbzr-init.php
   trunk/src/plugins/scmbzr/etc/plugins/scmbzr/config.php
   trunk/src/plugins/scmccase/common/CCasePlugin.class.php
   trunk/src/plugins/scmccase/common/scmccase-init.php
   trunk/src/plugins/scmccase/etc/plugins/scmccase/config.php
   trunk/src/plugins/scmcvs/common/CVSPlugin.class.php
   trunk/src/plugins/scmcvs/common/Snoopy.class.php
   trunk/src/plugins/scmcvs/common/scmcvs-init.php
   trunk/src/plugins/scmcvs/cronjobs/cvs.php
   trunk/src/plugins/scmcvs/cronjobs/ssh_create.php
   trunk/src/plugins/scmcvs/cronjobs/usergroup.php
   trunk/src/plugins/scmcvs/etc/plugins/scmcvs/config.php
   trunk/src/plugins/scmdarcs/common/DarcsPlugin.class.php
   trunk/src/plugins/scmdarcs/common/scmdarcs-init.php
   trunk/src/plugins/scmdarcs/etc/plugins/scmdarcs/config.php
   trunk/src/plugins/scmgit/common/scmgit-init.php
   trunk/src/plugins/scmgit/etc/plugins/scmgit/config.php
   trunk/src/plugins/scmgit/www/index.php
   trunk/src/plugins/scmhg/common/scmhg-init.php
   trunk/src/plugins/scmhg/etc/plugins/scmhg/config.php
   trunk/src/plugins/scmhook/library/scmsvn/commitTracker.class.php
   trunk/src/plugins/scmhook/library/scmsvn/hooks/committracker/Snoopy.class.php
   trunk/src/plugins/scmhook/www/committracker/newcommit.php
   trunk/src/plugins/scmsvn/common/SVNPlugin.class.php
   trunk/src/plugins/scmsvn/common/scmsvn-init.php
   trunk/src/plugins/scmsvn/etc/plugins/scmsvn/config.php
   trunk/src/plugins/svncommitemail/common/SVNCommitEmailPlugin.class.php
   trunk/src/plugins/svntracker/bin/post.php
   trunk/src/plugins/svntracker/common/Snoopy.class.php
   trunk/src/plugins/svntracker/common/svntrackerPlugin.class.php
   trunk/src/plugins/svntracker/www/newcommit.php
   trunk/src/plugins/wiki/common/WikiGroupSearchEngine.class.php
   trunk/src/plugins/wiki/common/WikiHtmlSearchRenderer.class.php
   trunk/src/plugins/wiki/common/WikiPlugin.class.php
   trunk/src/plugins/wiki/common/WikiSearchEngine.class.php
   trunk/src/plugins/wiki/common/WikiSearchQuery.class.php
   trunk/src/plugins/wiki/common/wikiconfig.class.php
   trunk/src/plugins/wiki/cronjobs/create_groups.php
   trunk/src/plugins/wiki/etc/plugins/wiki/config.php
   trunk/src/plugins/wiki/www/ImageTile.php
   trunk/src/plugins/wiki/www/RPC2.php
   trunk/src/plugins/wiki/www/getimg.php
   trunk/src/plugins/wiki/www/lib/ASCIIMathPHP/ASCIIMathPHP-2.0.cfg.php
   trunk/src/plugins/wiki/www/lib/ASCIIMathPHP/ASCIIMathPHP-2.0.class.php
   trunk/src/plugins/wiki/www/lib/ASCIIMathPHP/ASCIIMathPHP.cfg.php
   trunk/src/plugins/wiki/www/lib/ASCIIMathPHP/ASCIIMathPHP.class.php
   trunk/src/plugins/wiki/www/lib/DbSession/PDO.php
   trunk/src/plugins/wiki/www/lib/DbSession/SQL.php
   trunk/src/plugins/wiki/www/lib/DbSession/dba.php
   trunk/src/plugins/wiki/www/lib/WikiDB/ADODB.php
   trunk/src/plugins/wiki/www/lib/WikiDB/PDO.php
   trunk/src/plugins/wiki/www/lib/WikiDB/SQL.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-csvlib.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-error.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-errorhandler.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-errorpear.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-exceptions.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-iterator.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-lib.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-pear.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-php4.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb-time.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/adodb.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-access.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-ado.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-ado_access.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-ado_mssql.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-borland_ibase.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-csv.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-db2.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-fbsql.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-firebird.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-ibase.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-informix.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-informix72.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-ldap.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-mssql.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-mssqlnative.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-mssqlpo.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-mysql.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-mysqli.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-mysqlt.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-netezza.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-oci8.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-oci805.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-oci8po.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-odbc.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-odbc_mssql.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-odbc_oracle.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-odbtp.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-odbtp_unicode.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-oracle.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-postgres.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-postgres64.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-postgres7.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-proxy.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-sapdb.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-sqlanywhere.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-sqlite.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-sybase.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/adodb/drivers/adodb-vfp.inc.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/ADODB_mssql.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/ADODB_mssqlnative.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/ADODB_mysql.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/ADODB_oci8po.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/ADODB_postgres7.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/ADODB_sqlite.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/PearDB.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/PearDB_ffpgsql.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/PearDB_mysql.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/PearDB_oci8.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/PearDB_pgsql.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/PearDB_sqlite.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/cvs.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dba.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dbaBase.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dumb/AllRevisionsIter.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dumb/BackLinkIter.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dumb/MostPopularIter.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dumb/MostRecentIter.php
   trunk/src/plugins/wiki/www/lib/WikiDB/backend/dumb/TextSearchIter.php
   trunk/src/plugins/wiki/www/lib/WikiDB/cvs.php
   trunk/src/plugins/wiki/www/lib/WikiDB/dba.php
   trunk/src/plugins/wiki/www/lib/WysiwygEdit/FCKeditor.php
   trunk/src/plugins/wiki/www/lib/WysiwygEdit/Wikiwyg.php
   trunk/src/plugins/wiki/www/lib/WysiwygEdit/htmlarea2.php
   trunk/src/plugins/wiki/www/lib/WysiwygEdit/htmlarea3.php
   trunk/src/plugins/wiki/www/lib/WysiwygEdit/spaw.php
   trunk/src/plugins/wiki/www/lib/WysiwygEdit/tinymce.php
   trunk/src/plugins/wiki/www/lib/XMLRPC/utils.php
   trunk/src/plugins/wiki/www/lib/fpdf/japanese.php
   trunk/src/plugins/wiki/www/lib/nusoap/nusoap.php
   trunk/src/plugins/wiki/www/lib/pear/Cache.php
   trunk/src/plugins/wiki/www/lib/pear/Cache/Container.php
   trunk/src/plugins/wiki/www/lib/pear/Cache/Container/file.php
   trunk/src/plugins/wiki/www/lib/pear/Cache/Container/imgfile.php
   trunk/src/plugins/wiki/www/lib/pear/Cache/Container/trifile.php
   trunk/src/plugins/wiki/www/lib/pear/Cache/Error.php
   trunk/src/plugins/wiki/www/lib/pear/Cache/Graphics.php
   trunk/src/plugins/wiki/www/lib/pear/DB/Pager.php
   trunk/src/plugins/wiki/www/lib/pear/DB/ifx.php
   trunk/src/plugins/wiki/www/lib/pear/DB/ldap.php
   trunk/src/plugins/wiki/www/lib/pear/File_Passwd.php
   trunk/src/plugins/wiki/www/lib/pear/JSON.php
   trunk/src/plugins/wiki/www/lib/plugin/AtomFeed.php
   trunk/src/plugins/wiki/www/lib/plugin/CreateToc.php
   trunk/src/plugins/wiki/www/lib/plugin/FacebookLike.php
   trunk/src/plugins/wiki/www/passencrypt.php
   trunk/src/plugins/wiki/www/tests/unit/lib/AtomParserTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/DumpHtml.php
   trunk/src/plugins/wiki/www/tests/unit/lib/HtmlParserTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/InlineParserTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/SetupWiki.php
   trunk/src/plugins/wiki/www/tests/unit/lib/TextSearchTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/XmlRpcTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/plugin/AllPagesTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/plugin/AtomFeedTest.php
   trunk/src/plugins/wiki/www/tests/unit/lib/plugin/IncludePageTest.php
   trunk/src/plugins/wiki/www/tests/unit/pcre-crash.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/interop-client.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/interop-server.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/validate-form.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/validate.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/xmlrpc-client.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/xmlrpc-introspect.php
   trunk/src/plugins/wiki/www/tests/xmlrpc/xmlrpc-servers.php
   trunk/src/plugins/wiki/www/themes/Hawaiian/lib/random.php
   trunk/src/plugins/wiki/www/themes/MacOSX/buttons/de/index.php
   trunk/src/plugins/wiki/www/themes/MacOSX/buttons/en/index.php
   trunk/src/plugins/wiki/www/themes/MacOSX/buttons/index.php
   trunk/src/plugins/wiki/www/themes/MacOSX/images/index.php
   trunk/src/plugins/wiki/www/themes/MacOSX/lib/RecentChanges.php
   trunk/src/plugins/wiki/www/themes/Portland/lib/RecentChanges.php
   trunk/src/plugins/wiki/www/themes/SpaceWiki/lib/RecentChanges.php
   trunk/src/plugins/wiki/www/themes/Wordpress/lib/RecentChanges.php
   trunk/src/plugins/wiki/www/themes/blog/lib/RecentChanges.php
   trunk/src/utils/fixscripts/populate_template_project.php
   trunk/src/utils/inject-groups.php
   trunk/src/utils/normalize_roles.php
   trunk/src/utils/sync_unix_groups.php
   trunk/src/www/account/change_email.php
   trunk/src/www/account/change_pw.php
   trunk/src/www/account/editsshkeys.php
   trunk/src/www/account/login.php
   trunk/src/www/account/pending-resend.php
   trunk/src/www/account/register.php
   trunk/src/www/account/verify.php
   trunk/src/www/activity/index.php
   trunk/src/www/admin/admin_table.php
   trunk/src/www/admin/approve-pending.php
   trunk/src/www/admin/configman.php
   trunk/src/www/admin/database.php
   trunk/src/www/admin/globalroleedit.php
   trunk/src/www/admin/groupedit.php
   trunk/src/www/admin/grouplist.php
   trunk/src/www/admin/passedit.php
   trunk/src/www/admin/pi.php
   trunk/src/www/admin/search.php
   trunk/src/www/admin/trove/trove_cat_add.php
   trunk/src/www/admin/trove/trove_cat_list.php
   trunk/src/www/admin/unsubscribe.php
   trunk/src/www/admin/useredit.php
   trunk/src/www/admin/userlist.php
   trunk/src/www/admin/vhost.php
   trunk/src/www/developer/diary.php
   trunk/src/www/developer/monitor.php
   trunk/src/www/export/projtitl.php
   trunk/src/www/export/rss20_docman.php
   trunk/src/www/export/rss20_forum.php
   trunk/src/www/export/rss20_newreleases.php
   trunk/src/www/export/rss20_news.php
   trunk/src/www/export/rss20_tasks.php
   trunk/src/www/export/rss20_tracker.php
   trunk/src/www/export/rss_project.php
   trunk/src/www/export/rss_sfnewreleases.php
   trunk/src/www/export/search_plugin.php
   trunk/src/www/export/tracker.php
   trunk/src/www/forum/attachment.php
   trunk/src/www/forum/message.php
   trunk/src/www/frs/admin/deletepackage.php
   trunk/src/www/frs/admin/editrelease.php
   trunk/src/www/frs/admin/qrs.php
   trunk/src/www/frs/admin/showreleases.php
   trunk/src/www/frs/download.php
   trunk/src/www/frs/index.php
   trunk/src/www/frs/monitor.php
   trunk/src/www/frs/reporting/downloads.php
   trunk/src/www/frs/shownotes.php
   trunk/src/www/include/filechecks.php
   trunk/src/www/include/graph_lib.php
   trunk/src/www/include/html.php
   trunk/src/www/include/logger.php
   trunk/src/www/include/my_utils.php
   trunk/src/www/include/note.php
   trunk/src/www/include/project_home.php
   trunk/src/www/include/project_summary.php
   trunk/src/www/include/role_utils.php
   trunk/src/www/include/stats_function.php
   trunk/src/www/include/tool_reports.php
   trunk/src/www/include/unicode.php
   trunk/src/www/include/vote_function.php
   trunk/src/www/index_std.php
   trunk/src/www/mail/index.php
   trunk/src/www/my/bookmark_edit.php
   trunk/src/www/my/dashboard.php
   trunk/src/www/my/diary.php
   trunk/src/www/new/index.php
   trunk/src/www/news/news_utils.php
   trunk/src/www/news/submit.php
   trunk/src/www/notepad.php
   trunk/src/www/people/admin/index.php
   trunk/src/www/people/createjob.php
   trunk/src/www/people/editjob.php
   trunk/src/www/people/editprofile.php
   trunk/src/www/people/helpwanted-latest.php
   trunk/src/www/people/index.php
   trunk/src/www/people/people_utils.php
   trunk/src/www/people/skills_utils.php
   trunk/src/www/people/viewjob.php
   trunk/src/www/people/viewprofile.php
   trunk/src/www/pm/admin/index.php
   trunk/src/www/pm/browse_task.php
   trunk/src/www/pm/calendar.php
   trunk/src/www/pm/detail_task.php
   trunk/src/www/pm/downloadcsv.php
   trunk/src/www/pm/gantt.php
   trunk/src/www/pm/ganttofuser.php
   trunk/src/www/pm/include/ProjectGroupHTML.class.php
   trunk/src/www/pm/include/ProjectTaskHTML.class.php
   trunk/src/www/pm/index.php
   trunk/src/www/pm/mod_task.php
   trunk/src/www/pm/msproject/msp.php
   trunk/src/www/pm/msproject/xmlparser.php
   trunk/src/www/pm/postuploadcsv.php
   trunk/src/www/pm/reporting/index.php
   trunk/src/www/pm/task.php
   trunk/src/www/project/admin/database.php
   trunk/src/www/project/admin/roledelete.php
   trunk/src/www/project/admin/roleedit.php
   trunk/src/www/project/admin/users.php
   trunk/src/www/project/admin/vhost.php
   trunk/src/www/project/memberlist.php
   trunk/src/www/project/report/index.php
   trunk/src/www/project/request.php
   trunk/src/www/project/showfiles.php
   trunk/src/www/project/stats/project_stats_utils.php
   trunk/src/www/register/index.php
   trunk/src/www/reporting/groupadded_graph.php
   trunk/src/www/reporting/groupcum_graph.php
   trunk/src/www/reporting/projectact_graph.php
   trunk/src/www/reporting/projecttime.php
   trunk/src/www/reporting/siteact_graph.php
   trunk/src/www/reporting/sitetime.php
   trunk/src/www/reporting/sitetimebar.php
   trunk/src/www/reporting/sitetimebar_graph.php
   trunk/src/www/reporting/timeadd.php
   trunk/src/www/reporting/timecategory.php
   trunk/src/www/reporting/timeentry.php
   trunk/src/www/reporting/trackerpie_graph.php
   trunk/src/www/reporting/useract.php
   trunk/src/www/reporting/useract_graph.php
   trunk/src/www/reporting/useradded_graph.php
   trunk/src/www/reporting/usercum_graph.php
   trunk/src/www/reporting/usertime.php
   trunk/src/www/scm/browser.php
   trunk/src/www/scm/include/viewvc_utils.php
   trunk/src/www/scm/reporting/commitstime_graph.php
   trunk/src/www/scm/reporting/index.php
   trunk/src/www/scm/viewvc.php
   trunk/src/www/search/advanced_search.php
   trunk/src/www/search/include/engines/ArtifactSearchEngine.class.php
   trunk/src/www/search/include/engines/DocsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/ForumSearchEngine.class.php
   trunk/src/www/search/include/engines/ForumsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/FrsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/GroupSearchEngine.class.php
   trunk/src/www/search/include/engines/NewsGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/SearchEngine.class.php
   trunk/src/www/search/include/engines/TasksGroupSearchEngine.class.php
   trunk/src/www/search/include/engines/TrackersGroupSearchEngine.class.php
   trunk/src/www/search/include/renderers/AdvancedSearchHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ArtifactHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ForumHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ForumsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/FrsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/FullProjectHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/HtmlGroupSearchRenderer.class.php
   trunk/src/www/search/include/renderers/HtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/NewsHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/PeopleHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/ProjectRssSearchRenderer.class.php
   trunk/src/www/search/include/renderers/RssSearchRenderer.class.php
   trunk/src/www/search/include/renderers/SearchRenderer.class.php
   trunk/src/www/search/include/renderers/SkillHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/TasksHtmlSearchRenderer.class.php
   trunk/src/www/search/include/renderers/TrackersHtmlSearchRenderer.class.php
   trunk/src/www/sendmessage.php
   trunk/src/www/snippet/add_snippet_to_package.php
   trunk/src/www/snippet/addversion.php
   trunk/src/www/snippet/delete.php
   trunk/src/www/snippet/detail.php
   trunk/src/www/snippet/index.php
   trunk/src/www/snippet/package.php
   trunk/src/www/snippet/snippet_utils.php
   trunk/src/www/soap/common/group.php
   trunk/src/www/soap/common/user.php
   trunk/src/www/soap/docman/docman.php
   trunk/src/www/soap/frs/frs.php
   trunk/src/www/soap/index.php
   trunk/src/www/soap/nusoap.php
   trunk/src/www/soap/pm/pm.php
   trunk/src/www/soap/reporting/timeentry.php
   trunk/src/www/soap/scm/scm.php
   trunk/src/www/soap/tracker/query.php
   trunk/src/www/soap/tracker/tracker.php
   trunk/src/www/softwaremap/full_list.php
   trunk/src/www/softwaremap/tag_cloud.php
   trunk/src/www/stats/lastlogins.php
   trunk/src/www/stats/projects.php
   trunk/src/www/stats/site_stats_utils.php
   trunk/src/www/stats/views_graph.php
   trunk/src/www/survey/admin/graphs.php
   trunk/src/www/survey/admin/question.php
   trunk/src/www/survey/admin/show_questions.php
   trunk/src/www/survey/admin/show_results.php
   trunk/src/www/survey/admin/show_results_aggregate.php
   trunk/src/www/survey/admin/show_results_individual.php
   trunk/src/www/survey/admin/survey.php
   trunk/src/www/survey/include/SurveyHTML.class.php
   trunk/src/www/survey/index.php
   trunk/src/www/survey/privacy.php
   trunk/src/www/survey/survey.php
   trunk/src/www/survey/survey_resp.php
   trunk/src/www/top/index.php
   trunk/src/www/top/mostactive.php
   trunk/src/www/top/topusers.php
   trunk/src/www/tracker/add.php
   trunk/src/www/tracker/admin/form-addextrafield.php
   trunk/src/www/tracker/admin/form-addextrafieldoption.php
   trunk/src/www/tracker/admin/form-customizelist.php
   trunk/src/www/tracker/admin/form-extrafieldcopy.php
   trunk/src/www/tracker/admin/form-updatetracker.php
   trunk/src/www/tracker/admin/form-workflow.php
   trunk/src/www/tracker/admin/form-workflow_roles.php
   trunk/src/www/tracker/admin/updates.php
   trunk/src/www/tracker/browse.php
   trunk/src/www/tracker/build_submission_form.php
   trunk/src/www/tracker/detail.php
   trunk/src/www/tracker/include/ArtifactTypeFactoryHtml.class.php
   trunk/src/www/tracker/mod-limited.php
   trunk/src/www/tracker/query.php
   trunk/src/www/tracker/reporting/trackeract_graph.php
   trunk/src/www/tracker/reporting/trackerpie_graph.php
   trunk/src/www/tracker/taskmgr.php
   trunk/src/www/tracker/tracker.php
   trunk/src/www/trove/TroveCategory.class.php
   trunk/src/www/trove/TroveCategoryFactory.class.php
   trunk/src/www/trove/TroveCategoryLabel.class.php
   trunk/src/www/trove/admin/trove_cat_add.php
   trunk/src/www/trove/admin/trove_cat_edit.php
   trunk/src/www/trove/admin/trove_cat_list.php
   trunk/src/www/trove/include/trove.php
   trunk/src/www/trove/include/utils.php
   trunk/src/www/trove/index.php
   trunk/tests/AllTests.php
   trunk/tests/build/documentation/DocumentationTest.php
   trunk/tests/build/packages/BuildTest.php
   trunk/tests/code/deprecations/DeprecationsTest.php
   trunk/tests/code/syntax/SyntaxTest.php
   trunk/tests/func/AllTests.php
   trunk/tests/func/Docs/createDocURLTest.php
   trunk/tests/func/Forums/forumsTest.php
   trunk/tests/func/News/newsTest.php
   trunk/tests/func/PluginsBlocks/blocksTest.php
   trunk/tests/func/PluginsOnlineHelp/contextualHelpTest.php
   trunk/tests/func/PluginsSvnTracker/trackerTest.php
   trunk/tests/func/RBAC/rbacTest.php
   trunk/tests/func/Site/loginTest.php
   trunk/tests/func/Site/topTest.php
   trunk/tests/func/Soap/AllTests.php
   trunk/tests/func/Soap/checks.php
   trunk/tests/func/Soap/login.php
   trunk/tests/func/Soap/usergroup.php
   trunk/tests/func/Surveys/surveysTest.php
   trunk/tests/func/Tasks/createTaskTest.php
   trunk/tests/func/Testing/SeleniumGforge.php
   trunk/tests/func/Testing/SeleniumRemoteSuite.php
   trunk/tests/func/Testing/TarSeleniumRemoteSuite.php
   trunk/tests/func/Trackers/relationTest.php
   trunk/tests/func/Trackers/workflowTest.php
   trunk/tests/func/db_reload.php
   trunk/tests/scripts/catch_mail.php
   trunk/tests/unit/config/ConfigTest.php
   trunk/tests/unit/utils/HtmlPurifierTest.php
   trunk/tests/unit/utils/TextSanitizerTest.php
   trunk/tools/check_and_update_forum_role_settings.php
   trunk/tools/create_class.php
Log:
remove whitespace at EOL and empty lines at EOF globally, scripted

agreed in IRC


Modified: trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccess.class.php
===================================================================
--- trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccess.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccess.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -35,12 +35,12 @@
     * $db stores a database resource
     */
     var $db;
-    
+
     /**
      * store the database name used to instantiate the connection
      */
     public $db_name;
-    
+
     /**
     * Constucts a new DataAccess object
     * @param $host string hostname for dbserver
@@ -61,13 +61,13 @@
             throw new DataAccessException('Unable to access the database. Please contact your administrator.');
         }
     }
-    
+
     protected function connect($host, $user, $pass, $opt) {
         return mysql_connect($host, $user, $pass, true, $opt);
     }
-    
+
     var $store;
-    
+
     /**
     * Fetches a query resources and stores it in a local member
     * @param $sql string the database query to run
@@ -125,7 +125,7 @@
             return mysql_error();
         }
     }
-    
+
     /**
     * Quote variable to make safe
     * @see http://php.net/mysql-real-escape-string
@@ -158,11 +158,11 @@
             }
             $str.=$this->quoteSmart($piece,$params);
             $after_first=true;
-        }            
+        }
         return $str;
     }
-    
 
+
     function escapeInt($v, $null = CODENDI_DB_NOT_NULL) {
         $m = array();
         if($null === CODENDI_DB_NULL && $v === '') {
@@ -179,13 +179,13 @@
     function mysql_query_params($sql,$params=array(),$database) {
 	if(!empty($params)) {
 		for ($i=1;$i<=count($params);$i++ ) {
-	   		$args[]="$".$i;	
+	   		$args[]="$".$i;
 		}
 		return mysql_query(str_replace($args,$params,$sql),$database);
 	} else {
 		return mysql_query($sql,$database);
 	}
-	
+
     }
 
 

Modified: trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccessObject.class.php
===================================================================
--- trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccessObject.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/codendi-specific/common/dao/include/DataAccessObject.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -66,12 +66,12 @@
             return true;
         }
     }
-    
+
     /**
     * Prepare ranking of items.
-    * 
+    *
     * @see  https://partners.xrce.xerox.com/plugins/docman/?group_id=120&action=show&id=95
-    * 
+    *
     * @param   int $id  The id of the item to rank. 0 if the item doesn't exist.
     * @param   int $parent_id   The id of the element used to group items
     * @param   mixed $rank    The rank asked for the items. Possible values are :
@@ -80,7 +80,7 @@
     *                       'end'       => to put item after each others
     *                       'up'        => to put item before previous sibling
     *                       'down'      => to put item after next sibling
-    *                       <int>       => to put item at a specific position. 
+    *                       <int>       => to put item at a specific position.
     *                   Please note that for a new item ($id = 0) you must not use
     *                   '--', 'up' or 'down' value
     * @param   string $primary_key the column name of the primary key. Default 'id'
@@ -92,7 +92,7 @@
     */
     function prepareRanking($id, $parent_id, $rank, $primary_key = 'id', $parent_key = 'parent_id', $rank_key = 'rank') {
         $newRank = null;
-        
+
         // First, check if there is already some items
         $sql = sprintf('SELECT NULL'.
                        ' FROM '. $this->table_name .

Modified: trunk/plugins/coclico/codendi-specific/www/include/plugins_utils.php
===================================================================
--- trunk/plugins/coclico/codendi-specific/www/include/plugins_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/codendi-specific/www/include/plugins_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,4 +39,3 @@
 return util_get_image_theme($url);
 }
 ?>
-

Modified: trunk/plugins/coclico/soapadmin/cronjobs/manage_soapadmin.php
===================================================================
--- trunk/plugins/coclico/soapadmin/cronjobs/manage_soapadmin.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/cronjobs/manage_soapadmin.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -29,10 +29,10 @@
 // MailingList backend class
 /* This is only sample
 require_once $gfplugins.'soapadmin/include/BackendHelloworld.class.php' ;
-			 
 
+
 $res = db_query_params ('SELECT id,type, parameters FROM system_event WHERE status=$1 ORDER BY id DESC',
-			array ('1')); 
+			array ('1'));
 if (!$res) {
 	printf('Unable to get list of events: '.db_error());
 	return false;
@@ -50,7 +50,7 @@
 }
 if(isset($events)) {
 	foreach($events as $event_id => $log) {
-		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;"; 
+		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;";
 		$result = db_query_params($sql,array(time(),$log,$event_id));
 		if (!$result) {
 			printf('Unable to update the list of events: '.db_error());

Modified: trunk/plugins/coclico/soapadmin/etc/plugins/soapadmin/config.php
===================================================================
--- trunk/plugins/coclico/soapadmin/etc/plugins/soapadmin/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/etc/plugins/soapadmin/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 // here you can put all your configuration variables
 

Modified: trunk/plugins/coclico/soapadmin/include/soapadminPlugin.class.php
===================================================================
--- trunk/plugins/coclico/soapadmin/include/soapadminPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/include/soapadminPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -43,7 +43,7 @@
 			if ($G_SESSION->usesPlugin("soapadmin")) {
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
 				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-						  array ('/plugins/soapadmin/index.php' . $param ));				
+						  array ('/plugins/soapadmin/index.php' . $param ));
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
@@ -63,7 +63,7 @@
 			} else {
 				$params['TITLES'][]=$this->text." is [Off]";
 				$params['DIRS'][]='';
-			}	
+			}
 			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
 		} elseif ($hookname == "groupisactivecheckbox") {
 			//Check if the group is active
@@ -147,10 +147,10 @@
 				echo '<p>'.util_make_link ("/plugins/soapadmin/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('SoapAdmin Admin')).'</p>' ;
 			}
-		}												    
+		}
 		elseif ($hookname == "blahblahblah") {
 			// ...
-		} 
+		}
 	}
 }
 

Modified: trunk/plugins/coclico/soapadmin/www/admin/index.php
===================================================================
--- trunk/plugins/coclico/soapadmin/www/admin/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/www/admin/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,25 +13,25 @@
 require_once $gfconfig.'plugins/soapadmin/config.php';
 
 // the header that displays for the user portion of the plugin
-function soapadmin_Project_Header($params) {                                                                                                                                         
+function soapadmin_Project_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$id;
-	$params['toptab']='soapadmin'; 
+	$params['toptab']='soapadmin';
 	$params['group']=$id;
-	/*                                                                                                                                                              
-		Show horizontal links                                                                                                                                   
-	*/                                                                                                                                                              
-	site_project_header($params);														
+	/*
+		Show horizontal links
+	*/
+	site_project_header($params);
 }
 
 // the header that displays for the project portion of the plugin
 function soapadmin_User_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$user_id;
-	$params['toptab']='soapadmin'; 
+	$params['toptab']='soapadmin';
 	$params['user']=$user_id;
-	/*                                                                                                                                                              
-	 Show horizontal links                                                                                                                                   
-	 */                                                                                                                                                              
-	site_user_header($params);    
+	/*
+	 Show horizontal links
+	 */
+	site_user_header($params);
 }
 
 
@@ -44,7 +44,7 @@
 	$type = getStringFromRequest('type');
 	$id = getStringFromRequest('id');
 	$pluginname = getStringFromRequest('pluginname');
-	
+
 	if (!$type) {
 		exit_error("Cannot Process your request","No TYPE specified"); // you can create items in Base.tab and customize this messages
 	} elseif (!$id) {
@@ -56,26 +56,26 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the SoapAdmin plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group (optional)
 			if ( !$userperm->IsMember()) {
 				exit_error("Access Denied", "You are not a member of this project");
 			}
 			// other perms checks here...
-			soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+			soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 			// DO THE STUFF FOR THE PROJECT PART HERE
 			echo "We are in the Project SoapAdmin plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
 		} elseif ($type == 'user') {
-			$realuser = user_get_object($id);// 
+			$realuser = user_get_object($id);//
 			if (!($realuser) || !($realuser->usesPlugin($pluginname))) {
 				exit_error("Error", "First activate the User's $pluginname plugin through Account Manteinance Page");
 			}
 			if ( (!$user) || ($user->getID() != $id)) { // if someone else tried to access the private SoapAdmin part of this user
 				exit_error("Access Denied", "You cannot access other user's personal $pluginname");
 			}
-			soapadmin_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));    
+			soapadmin_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));
 			// DO THE STUFF FOR THE USER PART HERE
 			echo "We are in the User SoapAdmin plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -85,7 +85,7 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the SoapAdmin plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group
 			if ( !$userperm->IsMember()) {
@@ -93,7 +93,7 @@
 			}
 			//only project admin can access here
 			if ( $userperm->isAdmin() ) {
-				soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+				soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 				// DO THE STUFF FOR THE PROJECT ADMINISTRATION PART HERE
 				echo "We are in the Project SoapAdmin plugin <font color=\"#ff0000\">ADMINISTRATION</font> <br>";
 				echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -101,8 +101,8 @@
 				exit_error("Access Denied", "You are not a project Admin");
 			}
 		}
-	}	 
-	
+	}
+
 	site_project_footer(array());
 
 // Local Variables:

Modified: trunk/plugins/coclico/soapadmin/www/coreapi/coreapi.php
===================================================================
--- trunk/plugins/coclico/soapadmin/www/coreapi/coreapi.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/www/coreapi/coreapi.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,18 +23,18 @@
  *-
  * FusionForge Core Api (full description in FusionforgeCoreApi.wsdl)
  * Rewrite of the older Api based on NuSOAP
- * 
+ *
  * Main technical features :
  * - Based on the PHP SOAP extension (PHP > 5.x)
  * - SOAP Document/Litteral wrapped mode
  * - WS-I Basic Profile Compliant
- * 
+ *
  */
 
 require_once './coreapiservice.php';
 
 # uncomment this for development purpose only
-# ini_set('soap.wsdl_cache_enabled', '0'); 
+# ini_set('soap.wsdl_cache_enabled', '0');
 
 use_soap_error_handler(false);
 
@@ -42,4 +42,4 @@
 $server->setClass("CoreApiService");
 $server->handle();
 
-?>
\ No newline at end of file
+?>

Modified: trunk/plugins/coclico/soapadmin/www/coreapi/coreapiobjects.php
===================================================================
--- trunk/plugins/coclico/soapadmin/www/coreapi/coreapiobjects.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/www/coreapi/coreapiobjects.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 /**
  * getSCMData_soap
  */
@@ -332,4 +332,4 @@
 	 */
 	public $user;
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/plugins/coclico/soapadmin/www/coreapi/coreapiservice.php
===================================================================
--- trunk/plugins/coclico/soapadmin/www/coreapi/coreapiservice.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/www/coreapi/coreapiservice.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -16,8 +16,8 @@
  */
 Class CoreApiServer extends SoapServer {
 
-	private $logger; 
-	
+	private $logger;
+
 	/**
 	 * Default class map for wsdl=>php
 	 * @access private
@@ -51,7 +51,7 @@
 	 * @param array $options Options for the SoapClient
 	 */
 	public function __construct($wsdl="FusionforgeCoreApi.wsdl", $options=array()) {
-		
+
 		$this->logger = Logger::getLogger('api.soap.core.CoreApi');
 		$this->logger->debug("FusionForgeCoreApi Soap Server created ...");
 		foreach(self::$classmap as $wsdlClassName => $phpClassName) {
@@ -66,13 +66,13 @@
 
 class CoreApiService {
 
-	private $logger; 
-	
+	private $logger;
+
 	public function __construct() {
 		// log4php logger initialization for the class
 		$this->logger = Logger::getLogger('fusionforge.api.soap.CoreApi');
 	}
-	
+
 		/**
 	 * Checks if an argument list matches against a valid argument type list
 	 * @param array $arguments The argument list to check
@@ -94,10 +94,10 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * Service Call: getVersion
-	 * 
+	 *
 	 * @param mixed getVersion_soap (Soap request object)
 	 * @return getVersionResponse_soap (Soap response object) or SoapFault if parameter are invalid
 	 */
@@ -115,7 +115,7 @@
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
 		}
-		
+
 		$fusionforge = new FusionForge();
 		$response = new getVersionResponse_soap();
 		$response->version = $fusionforge->software_version;
@@ -125,7 +125,7 @@
 
 	/**
 	 * Service Call: getGroups
-	 * 
+	 *
 	 * @param mixed  getGroups_soap (Soap request object)
 	 * @return getGroupsResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
@@ -135,7 +135,7 @@
 		$validParameters = array(
 			"(getGroups_soap)",
 		);
-		
+
 		try {
 			$args = func_get_args();
 			$this->_checkArguments($args, $validParameters);
@@ -144,7 +144,7 @@
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
 		}
-		
+
 		$grps =& group_get_objects($group_ids);
 		if (!$grps) {
 			$this->logger->debug("Could Not Get Groups by Id");
@@ -153,7 +153,7 @@
 
 		$response = new getGroupsResponse_soap();
 		$this->logger->debug((count($grps)+1)." Groups objects found");
-		
+
 		for ($i=0; $i<count($grps); $i++) {
 			$group = new group_soap();
 			$group->group_id = $grps[$i]->data_array['group_id'];
@@ -168,14 +168,14 @@
 			$response->group[$i]=$group;
 			$this->logger->debug("Adding Group objects : ".var_export($group, true));
 		}
-		
+
 		return $response;
 	}
 
 
 	/**
 	 * Service Call: getUsers
-	 * 
+	 *
 	 * @param mixed  getUsers_soap (Soap request object)
 	 * @return getUsersResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
@@ -189,11 +189,11 @@
 		else {
 			$user_id = array(0=>$mixed->user_id);
 		}
-		
+
 		$validParameters = array(
 			"(getUsers_soap)",
 		);
-		
+
 		try {
 			$args = func_get_args();
 			$this->_checkArguments($args, $validParameters);
@@ -202,13 +202,13 @@
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
 		}
-		
+
 		$users =& user_get_objects($user_id);
 		$this->logger->debug("users found : ".var_export($users, true));
 		if (!$users) {
 			return new SoapFault('3001','Could Not Get Users By Id');
-		}		
-		
+		}
+
 		$response = new getUsersResponse_soap();
 		for ($i=0; $i<count($users); $i++) {
 			if ($users[$i]->isError()){
@@ -232,14 +232,14 @@
 				$user->language_id=$users[$i]->data_array['language_id'];
 				$response->user[$i]=$user;
 			}
-		}		
+		}
 		return $response;
 	}
 
 
 	/**
 	 * Service Call: getGroupsByName
-	 * 
+	 *
 	 * @param mixed	getGroupsByName_soap (Soap request object)
 	 * @return getGroupsByNameResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
@@ -252,11 +252,11 @@
 		else {
 			$group_names = array(0=>$mixed->group_name);
 		}
-		
+
 		$validParameters = array(
 			"(getGroupsByName_soap)",
 		);
-		
+
 		try {
 			$args = func_get_args();
 			$this->_checkArguments($args, $validParameters);
@@ -264,12 +264,12 @@
 		catch (Exception $e) {
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
-		}	
+		}
 		$grps =& group_get_objects_by_name($group_names);
 		if (!$grps) {
 			return new SoapFault('2002','Could Not Get Groups by Name');
 		}
-		
+
 		$response = new getGroupsByNameResponse_soap();
 		// $grps contains an array of Group object
 		for ($i=0; $i<count($grps); $i++) {
@@ -298,7 +298,7 @@
 
 	/**
 	 * Service Call: getPublicProjectNames
-	 * 
+	 *
 	 * @param mixed	getPublicProjectNames_soap (Soap request object)
 	 * @return getPublicProjectNamesResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
@@ -315,8 +315,8 @@
 		catch (Exception $e) {
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
-		}		
-		// SOAP Response 
+		}
+		// SOAP Response
 		$response = new getPublicProjectNamesResponse_soap();
 		$forge = new FusionForge();
 		$response->project_name = $forge->getPublicProjectNames();
@@ -332,7 +332,7 @@
 
 	/**
 	 * Service Call: getUsersByName
-	 * 
+	 *
 	 * @param mixed	getUsersByName_soap (Soap request object)
 	 * @return getUsersByNameResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
@@ -345,7 +345,7 @@
 		else {
 			$user_names = array(0=>$mixed->user_name);
 		}
-		
+
 		$validParameters = array(
 			"(getUsersByName_soap)",
 		);
@@ -356,13 +356,13 @@
 		catch (Exception $e) {
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
-		}		
-				
+		}
+
 		$users =& user_get_objects_by_name($user_names);
 		if (!$users) {
 			return new SoapFault('3002','Could Not Get Users By Name');
-		}		
-		
+		}
+
 		$response = new getUsersByNameResponse_soap();
 		for ($i=0; $i<count($users); $i++) {
 			if ($users[$i]->isError()){
@@ -386,22 +386,22 @@
 				$user->language_id=$users[$i]->data_array['language_id'];
 				$response->user[$i]=$user;
 			}
-		}		
+		}
 		return $response;
 	}
 
 
 	/**
 	 * Service Call: userGetGroups
-	 * 
+	 *
 	 * @param mixed	userGetGroups_soap (Soap request object)
 	 * @return userGetGroupsResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
 	public function userGetGroups($mixed = null) {
-		
+
 		$this->logger->debug("CoreApiService Soap call : userGetGroups for user_id ".var_export($mixed, true));
 		$user_id = $mixed->user_id;
-		
+
 		$validParameters = array(
 			"(userGetGroups_soap)",
 		);
@@ -412,8 +412,8 @@
 		catch (Exception $e) {
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
-		}		
-				
+		}
+
 		$user =& user_get_object($user_id);
 		if (!$user) {
 			return new SoapFault('3003','Could Not Get Users Groups');
@@ -423,7 +423,7 @@
 		$grps = $user->getGroups();
 		$this->logger->debug(count($grps). " groups found");
 		$response = new userGetGroupsResponse_soap();
-		
+
 		for ($i=0; $i<count($grps); $i++) {
 			if ($grps[$i]->isError()) {
 				//skip it if it had an error
@@ -443,9 +443,9 @@
 				$this->logger->debug("adding group : ".var_export($group, true));
 			}
 		}
-				
+
 		$this->logger->debug("userGetGroupsResponse_soap : ".var_export($response, true));
-		
+
 		return $response;
 
 	}
@@ -453,7 +453,7 @@
 
 	/**
 	 * Service Call: getSCMData
-	 * 
+	 *
 	 * @param mixed	getSCMData_soap (Soap request object)
 	 * @return getSCMDataResponse_soap (Soap response object) or SoapFault if parameters are invalid
 	 */
@@ -470,7 +470,7 @@
 		catch (Exception $e) {
 			// Invalid parameters => return a soap fault
 			return new SoapFault($e->getCode(),$e->getMessage());
-		}				
+		}
 		// Search the group object in the database
 		$grp =& group_get_object($group_id);
 		$this->logger->debug("group_get_object : ".var_export($grp, true));
@@ -489,12 +489,12 @@
 			$this->logger->error('SCM is not enabled in this project ; group_id : '.$group_id);
 			// TODO : Error code to be determined
 			return new SoapFault ('-1','SCM is not enabled in this project');
-		}		
-		
+		}
+
 		// Create the SOAP response
 		$response = new getSCMDataResponse_soap();
 		$scm_data = new scmData_soap();
-		
+
 		if ($grp->usesPlugin("scmcvs")) {
 			$scm_data->type = "CVS";
 			$scm_data->allow_anonymous = $grp->enableAnonSCM();
@@ -511,20 +511,20 @@
 			$scm_data->box = $grp->getSCMBox();
 			$scm_data->root = $GLOBALS["svn_root"]."/".$grp->getUnixName();
 			$scm_data->module = "";		// doesn't apply to SVN
-			
+
 			// Note: This is an ugly hack. We can't access SVN plugin object for this project
 			// directly. Currently this is being rewritten, but for now we must make this.
-			
+
 			//TODO How to have access to $gfconfig variable ??
-			
+
 			include $gfconfig.'plugins/scmsvn/config.php';
 			$scm_data->connection_string = "http".(($use_ssl) ? "s" : "")."://".$grp->getSCMBox()."/".$svn_root."/".$grp->getUnixName();
 		}
-			
+
 		$response->scm_data= $scm_data;
 		return $response;
 	}
-	
+
 }
 
 ?>

Modified: trunk/plugins/coclico/soapadmin/www/index.php
===================================================================
--- trunk/plugins/coclico/soapadmin/www/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/coclico/soapadmin/www/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,25 +13,25 @@
 require_once $gfconfig.'plugins/soapadmin/config.php';
 
 // the header that displays for the user portion of the plugin
-function soapadmin_Project_Header($params) {                                                                                                                                         
+function soapadmin_Project_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$id;
-	$params['toptab']='soapadmin'; 
+	$params['toptab']='soapadmin';
 	$params['group']=$id;
-	/*                                                                                                                                                              
-		Show horizontal links                                                                                                                                   
-	*/                                                                                                                                                              
-	site_project_header($params);														
+	/*
+		Show horizontal links
+	*/
+	site_project_header($params);
 }
 
 // the header that displays for the project portion of the plugin
 function soapadmin_User_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$user_id;
-	$params['toptab']='soapadmin'; 
+	$params['toptab']='soapadmin';
 	$params['user']=$user_id;
-	/*                                                                                                                                                              
-	 Show horizontal links                                                                                                                                   
-	 */                                                                                                                                                              
-	site_user_header($params);    
+	/*
+	 Show horizontal links
+	 */
+	site_user_header($params);
 }
 
 
@@ -44,7 +44,7 @@
 	$type = getStringFromRequest('type');
 	$id = getStringFromRequest('id');
 	$pluginname = getStringFromRequest('pluginname');
-	
+
 	if (!$type) {
 		exit_error("Cannot Process your request","No TYPE specified"); // you can create items in Base.tab and customize this messages
 	} elseif (!$id) {
@@ -56,26 +56,26 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the SoapAdmin plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group (optional)
 			if ( !$userperm->IsMember()) {
 				exit_error("Access Denied", "You are not a member of this project");
 			}
 			// other perms checks here...
-			soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+			soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 			// DO THE STUFF FOR THE PROJECT PART HERE
 			echo "We are in the Project SoapAdmin plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
 		} elseif ($type == 'user') {
-			$realuser = user_get_object($id);// 
+			$realuser = user_get_object($id);//
 			if (!($realuser) || !($realuser->usesPlugin($pluginname))) {
 				exit_error("Error", "First activate the User's $pluginname plugin through Account Manteinance Page");
 			}
 			if ( (!$user) || ($user->getID() != $id)) { // if someone else tried to access the private SoapAdmin part of this user
 				exit_error("Access Denied", "You cannot access other user's personal $pluginname");
 			}
-			soapadmin_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));    
+			soapadmin_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));
 			// DO THE STUFF FOR THE USER PART HERE
 			echo "We are in the User SoapAdmin plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -85,7 +85,7 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the SoapAdmin plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group
 			if ( !$userperm->IsMember()) {
@@ -93,7 +93,7 @@
 			}
 			//only project admin can access here
 			if ( $userperm->isAdmin() ) {
-				soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+				soapadmin_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 				// DO THE STUFF FOR THE PROJECT ADMINISTRATION PART HERE
 				echo "We are in the Project SoapAdmin plugin <font color=\"#ff0000\">ADMINISTRATION</font> <br>";
 				echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -101,8 +101,8 @@
 				exit_error("Access Denied", "You are not a project Admin");
 			}
 		}
-	}	 
-	
+	}
+
 	site_project_footer(array());
 
 // Local Variables:

Modified: trunk/plugins/old/webcalendar/common/webcalendarPlugin.class.php
===================================================================
--- trunk/plugins/old/webcalendar/common/webcalendarPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/common/webcalendarPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -64,7 +64,7 @@
 			if ($G_SESSION->usesPlugin("webcalendar")) {
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
 				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-						  array (util_make_url('/plugins/webcalendar/index.php' . $param)));				
+						  array (util_make_url('/plugins/webcalendar/index.php' . $param)));
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
@@ -84,7 +84,7 @@
 				} else {
 				$params['TITLES'][]=$this->text." is [Off]";
 				$params['DIRS'][]='';
-			}	
+			}
 			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
 		} elseif ($hookname == "groupisactivecheckbox") {
 			///Check if the group is active
@@ -134,16 +134,16 @@
 			// this displays the link in the project admin options page to it's  webcalendar administration
 			$group_id = $params['group_id'];
 			$group = &group_get_object($group_id);
-			
+
 			if ( $group->usesPlugin ( $this->name ) ) {
 				echo util_make_link('/plugins/webcalendar/index.php?id=' . $group->getID() . '&type=admin&pluginname=' . $this->name,_('View the webcalendar Administration')) . '<br />';
 			}
-			
-		}												    
+
+		}
 		elseif ($hookname == "call_user_cal") {
 			//my/index.php line 365
 			?>
-			
+
 			<div id="cal" class="tabbertab" title="WebCalendar"  >
 			<table width="100%" cellspacing="0" cellpadding="0" border="0" ><tr align="center" ><td >
 			<iframe name="webcal" src="<?php echo util_make_url('/plugins/webcalendar/login.php?type=user'); ?>" border=no scrolling="yes" width="100%" height="700"></iframe>
@@ -152,17 +152,17 @@
 			<script>
 			function reload_webcal() {
 			frames['webcal'].location.replace('<?php echo util_make_url("/plugins/webcalendar/login.php?type=user"); ?>');
-			
+
 			}
 			</script>
-			<?php		
+			<?php
 		}
 		elseif ($hookname == "call_user_js") {
 			// my/index.php line 67
-			
+
 			?>
 			onclick="reload_webcal()"
-			<?php		
+			<?php
 		} elseif ($hookname == "role_get") {
 			$role =& $params['role'] ;
 
@@ -180,7 +180,7 @@
 			$new_pa =& $params['new_pa'] ;
 
 			if (USE_PFO_RBAC) {
-				$projects = $role->getLinkedProjects() ;		
+				$projects = $role->getLinkedProjects() ;
 				foreach ($projects as $p) {
 					$role->normalizePermsForSection ($new_pa, 'plugin_webcalendar_access', $p->getID()) ;
 				}
@@ -215,10 +215,10 @@
 				}
 			}
 		}
-		elseif ($hookname == "user_setstatus") { 
+		elseif ($hookname == "user_setstatus") {
 			$user = $params['user'] ;
 			$status = $params['status'] ;
-			
+
 			if ($status == 'A') {
 				$res_cal = db_query_params ('SELECT COUNT(*) FROM webcal_user WHERE cal_login=$1',
 							    array ($user->getUnixName())) ;
@@ -233,7 +233,7 @@
 				}
 			} else {
 				db_query_params ('DELETE FROM webcal_user WHERE cal_login = $1',
-							    array ($user->getUnixName()));	
+							    array ($user->getUnixName()));
 				db_query_params ('DELETE FROM webcal_asst WHERE cal_boss = $1 OR cal_assistant = $2',
 						 array ($user->getUnixName(),
 							$user->getUnixName())) ;
@@ -242,12 +242,12 @@
 			}
 		} elseif ($hookname == "group_approved") {
 			$project = group_get_object ($params['group_id']) ;
-			
+
 			$emails = array () ;
 			foreach ($project->getAdmins() as $u) {
 				$emails[] = $u->getEmail() ;
 			}
-			
+
 			db_query_params ('INSERT INTO webcal_user (cal_login, cal_passwd, cal_firstname,cal_email) VALUES ($1,$2,$3,$4)',
 					 array ($project->getUnixName(),
 						'cccc',
@@ -259,50 +259,50 @@
 						array ($params[0],
 						       $params[1]));
 			$row_flags = db_fetch_array($res);
-				 
-				
-				
+
+
+
 				//get user name
 				$res_nom_boss = db_query_params ('SELECT unix_group_name FROM groups WHERE group_id = $1 ',
 			array ($params[1]));
 				$row_nom_boss = db_fetch_array($res_nom_boss);
-				
-				
+
+
 				$res_nom_user = db_query_params ('SELECT user_name,email FROM users WHERE user_id = $1 ',
 			array ($params[0]));
 				$row_nom_user = db_fetch_array($res_nom_user);
-				
+
 				//verif du flag sur webcal
 				$res = db_query_params ('SELECT COUNT(*) FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
 				$row_num = db_fetch_array($res);
-				
+
 				 //select email
 				$res_mail = db_query_params ('SELECT cal_email FROM webcal_user WHERE  cal_login = $1',
 			array ($row_nom_boss['unix_group_name']));
 				$row_mail = db_fetch_array($res_mail);
-				$mail = $row_mail['cal_email']; 
-				
+				$mail = $row_mail['cal_email'];
+
 				if(($row_num[0] != 1 ) && (trim($row_flags['admin_flags']) == 'A')){
 					//recuperer le nom du user et du group
 					$res_insert = db_query_params ('INSERT INTO webcal_asst (cal_boss, cal_assistant) VALUES ($1,$2)',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
-				
+
 				//we add email of the new admin
 				$mail = str_replace($row_nom_user['email'],"",$mail);
 				$mail = str_replace(",".$row_nom_user['email'],"",$mail);
-								
+
 				if($mail == ""){
-					$virgule = "";	
+					$virgule = "";
 					}
 				else {
-					$virgule = ",";	
+					$virgule = ",";
 					}
-									
+
 				$mail = $mail.$virgule.$row_nom_user['email'] ;
-								
+
 				//$mail = $row_mail['cal_email'].",".$row_nom_user['email'] ;
 				db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
 						 array (trim($mail,','),
@@ -311,15 +311,15 @@
 				elseif($row_num[0] == 1 && (trim($row_flags['admin_flags']) != 'A')){
 					$res_del = db_query_params ('DELETE FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 			array ($row_nom_boss['unix_group_name'],
-				$row_nom_user['user_name']));	
-				
+				$row_nom_user['user_name']));
+
 				//we del email of the old admin
 				$mail = str_replace(",".$row_nom_user['email'],"",$row_mail['cal_email']) ;
 db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
 			array ($mail,
 				$row_nom_boss['unix_group_name']));
 				}
-				
+
 		}
 		elseif ($hookname == "change_cal_permission") {
 			//argument user_id -> $params[0]et project_id -> $params[1]
@@ -331,7 +331,7 @@
 
 			$project = group_get_object ($project_id) ;
 			$user = user_get_object ($user_id) ;
-			
+
 			if (USE_PFO_RBAC) {
 				if (forge_check_perm_for_user ($user, 'plugin_webcalendar_access', $project_id, 'write')) {
 					$user_perm = 1 ;
@@ -348,19 +348,19 @@
 				$row_flags = db_fetch_array($res);
 				$user_perm = $row_flags['value'] ;
 			}
-				
+
 			//flag verification
 			$res = db_query_params ('SELECT COUNT(*) FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 						array ($project->getUnixName(),
 						       $user->getUnixName()));
 			$row_num = db_fetch_array($res);
-				
+
 			//select email
 			$res_mail = db_query_params ('SELECT cal_email FROM webcal_user WHERE cal_login = $1',
 						     array ($project->getUnixName()));
 			$row_mail = db_fetch_array($res_mail);
 			$mail = $row_mail['cal_email'] ;
-				
+
 			//if group admin
 			if($project_id == 1){
 				$res_flags_admin = db_query_params ('SELECT admin_flags FROM user_group WHERE user_id = $1 AND group_id = $2',
@@ -378,26 +378,26 @@
 			}
 
 			if(($row_num[0] != 1 ) && ($user_perm == 1)){
-					
+
 				$res_insert = db_query_params ('INSERT INTO webcal_asst (cal_boss, cal_assistant) VALUES ($1,$2)',
 							       array ($project->getUnixName(),
 								      $user->getUnixName()));
-				
+
 				//we add email of the new admin
 				$mail = str_replace($user->getEmail(),"",$mail);
 				$mail = str_replace(",".$user->getEmail(),"",$mail);
-								
+
 				if($mail == ""){
-					$virgule = "";	
+					$virgule = "";
 				}
 				else {
-					$virgule = ",";	
+					$virgule = ",";
 				}
-									
+
 				$mail = $mail.$virgule.$user->getEmail() ;
-				
-				
-				
+
+
+
 				//$mail = $row_mail['cal_email'].",".$row_nom_user['email'] ;
 				db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
 						 array (trim($mail,','),
@@ -406,8 +406,8 @@
 			elseif($row_num[0] == 1 && ($user_perm != 1)){
 				$res_del = db_query_params ('DELETE FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 							    array ($project->getUnixName(),
-								   $user->getUnixName()));	
-				
+								   $user->getUnixName()));
+
 				//we del email of the old admin
 				$mail = str_replace(",".$row_nom_user['email'],"",$row_mail['cal_email']) ;
 				db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
@@ -421,50 +421,50 @@
 				$params));
 				if($res){
 						while( $row_flags = db_fetch_array($res)){
-						
-						
-						
+
+
+
 								//get the group and user names
 							$res_nom_boss = db_query_params ('SELECT unix_group_name FROM groups WHERE group_id = $1 ',
 			array ($params));
 							$row_nom_boss = db_fetch_array($res_nom_boss);
-							
-							
+
+
 							$res_nom_user = db_query_params ('SELECT user_name,email FROM users WHERE user_id = $1 ',
 			array ($row_flags['user_id']));
 								$row_nom_user = db_fetch_array($res_nom_user);
-								
+
 								//verif if the user is admin
 								$res_count = db_query_params ('SELECT COUNT(*) FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
 								$row_num = db_fetch_array($res_count);
-								 								
+
 								//select email
 								$res_mail = db_query_params ('SELECT cal_email FROM webcal_user WHERE  cal_login = $1',
 			array ($row_nom_boss['unix_group_name']));
 								$row_mail = db_fetch_array($res_mail);
 								$mail = $row_mail['cal_email'];
-								
+
 								if(($row_num[0] != 1 ) && ($row_flags['value'] == 1)){
 								//recuperer le nom du user et du group
 									$res_insert = db_query_params ('INSERT INTO webcal_asst (cal_boss, cal_assistant) VALUES ($1,$2)',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
-								
+
 								//we add email of the new admin
 								$mail = str_replace($row_nom_user['email'],"",$mail);
 								$mail = str_replace(",".$row_nom_user['email'],"",$mail);
-								
+
 								if($mail == ""){
-									$virgule = "";	
+									$virgule = "";
 									}
 									else {
-									$virgule = ",";	
+									$virgule = ",";
 									}
-									
+
 								$mail = $mail.$virgule.$row_nom_user['email'] ;
-								
+
 								//$mail = $row_mail['cal_email'].",".$row_nom_user['email'] ;
 								db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
 										 array (trim($mail,','),
@@ -473,8 +473,8 @@
 								elseif($row_num[0] == 1 && ($row_flags['value'] != 1)){
 									$res_del = db_query_params ('DELETE FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 			array ($row_nom_boss['unix_group_name'],
-				$row_nom_user['user_name']));	
-								
+				$row_nom_user['user_name']));
+
 								//we del email of the old admin
 								$mail = str_replace(",".$row_nom_user['email'],"",$row_mail['cal_email']) ;
 db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
@@ -483,7 +483,7 @@
 								}
 						}
 				}
-				
+
 		}
 		elseif ($hookname == "add_cal_link_father") {
 				//argument id du fils --> $params[0], id du pere--> $params[1]
@@ -506,8 +506,8 @@
 				'A'));
 								}
 							}
-						}	
-						
+						}
+
 					}
 		}
 		elseif ($hookname == "add_cal_link_father_event") {
@@ -527,7 +527,7 @@
 				$row_pere['unix_group_name'],
 				'A'));
 				}
-				
+
 		}
 		elseif ($hookname == "del_cal_link_father") {
 				//argument id son --> $params[0], id father--> $params[1]
@@ -548,13 +548,13 @@
 				$row_hierarchy['father_unix_name']));
 								}
 							}
-						}	
-						
+						}
+
 					}
 		}
 		elseif ($hookname == "del_cal_link_father_event") {
 				//argument id son --> $params[0], id_cal--> $params[1]
-				
+
 		}
 		elseif ($hookname == "change_cal_password") {
 				//argument user_id
@@ -562,25 +562,25 @@
 			$res_name = db_query_params ('SELECT user_name,user_pw,email  FROM users WHERE user_id = $1',
 			array ($params));
 				$row_name = db_fetch_array($res_name);
-				
+
 				$res_update = db_query_params ('UPDATE webcal_user SET cal_passwd = $1, cal_email = $2 WHERE cal_login = $3',
 			array ($row_name['user_pw'],
 				$row_name['email'],
-				$row_name['user_name'])); 
-						
+				$row_name['user_name']));
+
 		}
 		elseif ($hookname == "change_cal_mail") {
 				//argument user_id
 				//account/change_email-complete.php line 63
-				 
+
 			$res_name = db_query_params ('SELECT user_name,user_pw,email  FROM users WHERE user_id = $1',
 			array ($params));
 				$row_name = db_fetch_array($res_name);
-				
+
 				$res_old = db_query_params ('SELECT cal_email FROM webcal_user WHERE cal_login = $1',
 			array ($row_name['user_name']));
 				$row_old = db_fetch_array($res_old);
-				
+
 				//get all the cal_login where you need to change mail
 				$res_all_mail = db_query_params ('SELECT cal_login, cal_email FROM webcal_user WHERE lower(cal_email) LIKE $1',
 								 array ("%".$row_old['cal_email']."%"));
@@ -590,11 +590,11 @@
 										$res_update = db_query_params ('UPDATE webcal_user SET cal_passwd = $1, cal_email = $2 WHERE cal_login = $3',
 			array ($row_name['user_pw'],
 				$mail,
-				$row_all_mail['cal_login'])); 
-					
+				$row_all_mail['cal_login']));
+
 				}
-								
-						
+
+
 		}
 		elseif ($hookname == "cal_link_group" ){
 		// www/include/project_home.php line 418
@@ -602,7 +602,7 @@
 		print '<hr size="1" />';
 		print util_make_link('/plugins/webcalendar/index2.php?type=group&group_id='.$params,_('Webcalendar'));
 		}
-		 
+
 	}
 }
 

Modified: trunk/plugins/old/webcalendar/script/webcalendar-init.php
===================================================================
--- trunk/plugins/old/webcalendar/script/webcalendar-init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/script/webcalendar-init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -10,7 +10,7 @@
 db_login: $sys_gfdbuser
 db_password: $sys_gfdbpasswd
 db_persistent: true
-single_user_login: 
+single_user_login:
 readonly: false
 use_http_auth: false
 single_user: false
@@ -44,37 +44,37 @@
 $res2 = db_query_params ('SELECT  unix_group_name,groups.group_id,group_name,email FROM groups,users,user_group WHERE groups.group_id >5 AND groups.group_id = user_group.group_id AND user_group.user_id = users.user_id AND user_group.admin_flags = $1 ',
 			array ('A'));
 while ($row2 = db_fetch_array($res2)) {
-	
+
 	//get for admin of project
 	$res_user_group = db_query_params ('SELECT user_group.user_id,user_name,email from user_group,users WHERE user_group.user_id = users.user_id AND group_id = $1 AND admin_flags = $2',
 			array ($row2['group_id'],
 				'A'));
-	
+
 	//get the email of the admin
 		$res_mail = db_query_params ('SELECT cal_email FROM webcal_user WHERE  cal_login = $1',
 			array ($row2['unix_group_name']));
-	$row_mail = db_fetch_array($res_mail);	
+	$row_mail = db_fetch_array($res_mail);
 	$mail = $row_mail['cal_email'];
-	
+
 	if($res_user_group){
 		while($row_user_group = db_fetch_array($res_user_group)) {
 			$cal_res = db_query_params ('INSERT INTO webcal_asst (cal_boss, cal_assistant) VALUES ($1,$2)',
 			array ($row2['unix_group_name'],
 				$row_user_group['user_name']));
-			
+
 			//add email
 			$mail = str_replace($row_user_group['email'],"",$mail);
 			$mail = str_replace(",".$row_user_group['email'],"",$mail);
-			
+
 			if($mail == ""){
-			$virgule = "";	
+			$virgule = "";
 			}
 			else {
-			$virgule = ",";	
+			$virgule = ",";
 			}
 			$mail = $mail.$virgule.$row_user_group['email'] ;
-			
-		}	
+
+		}
 		db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
 				 array (trim($mail,','),
 					$row2['unix_group_name'])) ;
@@ -83,7 +83,7 @@
 			array ($row2['unix_group_name'] ,
 				'qdkqshjddoshd',
 				addslashes($row2['group_name']) ,
-				$row2['email'] )); 
+				$row2['email'] ));
 
 }
 
@@ -106,46 +106,46 @@
 				'A'));
 				}
 			}
-		}	
-		
-	}  
+		}
 
+	}
+
 //admin
-	
+
 				$res = db_query_params ('SELECT value, user_id, group_id FROM user_group,role_setting WHERE role_setting.role_id = user_group.role_id AND role_setting.section_name = $1',
 			array ('webcal'));
 				if($res){
 						while( $row_flags = db_fetch_array($res)){
-						
-						
-						
+
+
+
 								//get user name :
 							$res_nom_boss = db_query_params ('SELECT unix_group_name FROM groups WHERE group_id = $1 ',
 			array ($row_flags['group_id']));
 								$row_nom_boss = db_fetch_array($res_nom_boss);
-								
-								
+
+
 																$res_nom_user = db_query_params ('SELECT user_name FROM users WHERE user_id = $1 ',
 			array ($row_flags['user_id']));
 								$row_nom_user = db_fetch_array($res_nom_user);
-								
+
 								//webcal admin flags
 								$res_count = db_query_params ('SELECT COUNT(*) FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
 								$row_num = db_fetch_array($res_count);
-								
+
 								//select email
 								$res_mail = db_query_params ('SELECT cal_email FROM webcal_user WHERE  cal_login = $1',
 			array ($row_nom_boss['unix_group_name']));
-								$row_mail = db_fetch_array($res_mail);	
-								
+								$row_mail = db_fetch_array($res_mail);
+
 								if(($row_num[0] != 1 ) && ($row_flags['value'] == 1)){
 								//recuperer le nom du user et du group
 									$res_insert = db_query_params ('INSERT INTO webcal_asst (cal_boss, cal_assistant) VALUES ($1,$2)',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
-								
+
 								//we add email of the new admin
 								$mail = $row_mail['cal_email'].",".$row_nom_user['email'] ;
 db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
@@ -156,17 +156,17 @@
 									$res_del = db_query_params ('DELETE FROM webcal_asst WHERE cal_boss = $1 AND cal_assistant = $2',
 			array ($row_nom_boss['unix_group_name'],
 				$row_nom_user['user_name']));
-								
+
 								//we del email of the old admin
 								$mail = str_replace(",".$row_nom_user['email'],"",$row_mail['cal_email']) ;
 db_query_params ('UPDATE webcal_user SET cal_email = $1 WHERE cal_login = $2',
 			array ($mail,
-				$row_nom_boss['unix_group_name']));	
+				$row_nom_boss['unix_group_name']));
 								}
 						}
 				}
 
-				
 
 
+
 ?>

Modified: trunk/plugins/old/webcalendar/www/activity_log.php
===================================================================
--- trunk/plugins/old/webcalendar/www/activity_log.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/activity_log.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -43,9 +43,9 @@
 		}
 	echo "><td>\n" .
         $row[0] . "</td><td>\n" .
-        $row[1] . "</td><td>\n" . 
+        $row[1] . "</td><td>\n" .
         date_to_str ( $row[3] ) . " " .
-        display_time ( $row[4] ) . "</td><td>\n" . 
+        display_time ( $row[4] ) . "</td><td>\n" .
         "<a title=\"" .
         htmlspecialchars($row[6]) . "\" href=\"view_entry.php?id=$row[5]\">" .
         htmlspecialchars($row[6]) . "</a></td><td>\n";
@@ -78,10 +78,10 @@
 <?php
 //go BACK in time
 if ( ! empty ( $nextpage ) ) {
-  echo "<a title=\"" . 
-  	translate("Previous") . " $PAGE_SIZE " . 
-	translate("Events") . "\" class=\"prev\" href=\"activity_log.php?startid=$nextpage\">" . 
-  	translate("Previous") . " $PAGE_SIZE " . 
+  echo "<a title=\"" .
+  	translate("Previous") . " $PAGE_SIZE " .
+	translate("Events") . "\" class=\"prev\" href=\"activity_log.php?startid=$nextpage\">" .
+  	translate("Previous") . " $PAGE_SIZE " .
 	translate("Events") . "</a>\n";
 }
 
@@ -97,10 +97,10 @@
         $prevarg = "?startid=$previd";
       }
       //go FORWARD in time
-      echo "<a title=\"" . 
-  	translate("Next") . " $PAGE_SIZE " . 
-	translate("Events") . "\" class=\"next\" href=\"activity_log.php$prevarg\">" . 
-  	translate("Next") . " $PAGE_SIZE " . 
+      echo "<a title=\"" .
+  	translate("Next") . " $PAGE_SIZE " .
+	translate("Events") . "\" class=\"next\" href=\"activity_log.php$prevarg\">" .
+  	translate("Next") . " $PAGE_SIZE " .
 	translate("Events") . "</a><br />\n";
     }
     dbi_free_result ( $res );

Modified: trunk/plugins/old/webcalendar/www/admin.php
===================================================================
--- trunk/plugins/old/webcalendar/www/admin.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/admin.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -91,13 +91,13 @@
  <table cellspacing="0" cellpadding="3">
  <tr><td class="tooltip" title="<?php etooltip("app-name-help")?>">
   <label for="admin_application_name"><?php etranslate("Application Name")?>:</label></td><td>
-  <input type="text" size="40" name="admin_application_name" id="admin_application_name" value="<?php 
+  <input type="text" size="40" name="admin_application_name" id="admin_application_name" value="<?php
    echo htmlspecialchars ( $application_name );
   ?>" />
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("server-url-help")?>">
   <label for="admin_server_url"><?php etranslate("Server URL")?>:</label></td><td>
-  <input type="text" size="40" name="admin_server_url" id="admin_server_url" value="<?php 
+  <input type="text" size="40" name="admin_server_url" id="admin_server_url" value="<?php
    echo htmlspecialchars ( $server_url );
   ?>" />
  </td></tr>
@@ -117,7 +117,7 @@
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("fonts-help") ?>">
   <label for="admin_fonts"><?php etranslate("Fonts")?>:</label></td><td>
-  <input type="text" size="40" name="admin_FONTS" id="admin_fonts" value="<?php 
+  <input type="text" size="40" name="admin_FONTS" id="admin_fonts" value="<?php
             echo htmlspecialchars ( $FONTS );
            ?>" />
  </td></tr>
@@ -142,16 +142,16 @@
  <tr><td class="tooltip" title="<?php etooltip("preferred-view-help");?>">
   <label for="admin_startview"><?php etranslate("Preferred view")?>:</label></td><td>
   <select name="admin_STARTVIEW" id="admin_startview">
-   <option value="day.php"<?php 
+   <option value="day.php"<?php
       if ( $s["STARTVIEW"] == "day.php" ) echo " selected=\"selected\"";
      ?>><?php etranslate("Day")?></option>
-   <option value="week.php"<?php 
+   <option value="week.php"<?php
       if ( $s["STARTVIEW"] == "week.php" ) echo " selected=\"selected\"";
      ?>><?php etranslate("Week")?></option>
-   <option value="month.php" <?php 
+   <option value="month.php" <?php
       if ( $s["STARTVIEW"] == "month.php" ) echo " selected=\"selected\"";
      ?>><?php etranslate("Month")?></option>
-   <option value="year.php" <?php 
+   <option value="year.php" <?php
       if ( $s["STARTVIEW"] == "year.php" ) echo " selected=\"selected\"";
      ?>><?php etranslate("Year")?></option>
   </select>
@@ -322,32 +322,32 @@
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("disable-priority-field-help")?>">
   <?php etranslate("Disable Priority field")?>:</td><td>
-  <label><input type="radio" name="admin_disable_priority_field" value="Y"<?php if ( $s["disable_priority_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_disable_priority_field" value="Y"<?php if ( $s["disable_priority_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_disable_priority_field" value="N"<?php if ( $s["disable_priority_field"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("disable-access-field-help")?>">
   <?php etranslate("Disable Access field")?>:</td><td>
-  <label><input type="radio" name="admin_disable_access_field" value="Y"<?php if ( $s["disable_access_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_disable_access_field" value="Y"<?php if ( $s["disable_access_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_disable_access_field" value="N"<?php if ( $s["disable_access_field"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("disable-participants-field-help")?>">
   <?php etranslate("Disable Participants field")?>:</td><td>
-  <label><input type="radio" name="admin_disable_participants_field" value="Y" <?php if ( $s["disable_participants_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_disable_participants_field" value="Y" <?php if ( $s["disable_participants_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_disable_participants_field" value="N" <?php if ( $s["disable_participants_field"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("disable-repeating-field-help")?>">
   <?php etranslate("Disable Repeating field")?>:</td><td>
-  <label><input type="radio" name="admin_disable_repeating_field" value="Y" <?php if ( $s["disable_repeating_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_disable_repeating_field" value="Y" <?php if ( $s["disable_repeating_field"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_disable_repeating_field" value="N" <?php if ( $s["disable_repeating_field"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("popup-includes-siteextras-help")?>">
   <?php etranslate("Display Site Extras in popup")?>:</td><td>
-  <label><input type="radio" name="admin_site_extras_in_popup" value="Y" <?php if ( $s["site_extras_in_popup"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_site_extras_in_popup" value="Y" <?php if ( $s["site_extras_in_popup"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_site_extras_in_popup" value="N" <?php if ( $s["site_extras_in_popup"] != "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("allow-html-description-help")?>">
   <?php etranslate("Allow HTML in Description")?>:</td><td>
-  <label><input type="radio" name="admin_allow_html_description" value="Y" <?php if ( $s["allow_html_description"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_allow_html_description" value="Y" <?php if ( $s["allow_html_description"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_allow_html_description" value="N" <?php if ( $s["allow_html_description"] != "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("allow-view-other-help")?>">
@@ -367,7 +367,7 @@
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("conflict-check-help")?>">
   <?php etranslate("Check for event conflicts")?>:</td><td>
-  <label><input type="radio" name="admin_allow_conflicts" value="N" <?php if ( $s["allow_conflicts"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_allow_conflicts" value="N" <?php if ( $s["allow_conflicts"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_allow_conflicts" value="Y" <?php if ( $s["allow_conflicts"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("conflict-months-help")?>">
@@ -376,12 +376,12 @@
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("conflict-check-override-help")?>">
       <?php etranslate("Allow users to override conflicts")?>:</td><td>
-  <label><input type="radio" name="admin_allow_conflict_override" value="Y" <?php if ( $s["allow_conflict_override"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_allow_conflict_override" value="Y" <?php if ( $s["allow_conflict_override"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_allow_conflict_override" value="N" <?php if ( $s["allow_conflict_override"] != "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("limit-appts-help")?>">
   <?php etranslate("Limit number of timed events per day")?>:</td><td>
-  <label><input type="radio" name="admin_limit_appts" value="Y" <?php if ( $s["limit_appts"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+  <label><input type="radio" name="admin_limit_appts" value="Y" <?php if ( $s["limit_appts"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
   <label><input type="radio" name="admin_limit_appts" value="N" <?php if ( $s["limit_appts"] != "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("limit-appts-number-help")?>">
@@ -390,7 +390,7 @@
  </td></tr>
  <tr><td class="tooltip" title="<?php etooltip("timed-evt-len-help")?>">
   <?php etranslate("Specify timed event length by")?>:</td><td>
-  <label><input type="radio" name="admin_TIMED_EVT_LEN" value="D" <?php if ( $s["TIMED_EVT_LEN"] != "E" ) echo " checked=\"checked\"";?> /> <?php etranslate("Duration")?></label> 
+  <label><input type="radio" name="admin_TIMED_EVT_LEN" value="D" <?php if ( $s["TIMED_EVT_LEN"] != "E" ) echo " checked=\"checked\"";?> /> <?php etranslate("Duration")?></label>
   <label><input type="radio" name="admin_TIMED_EVT_LEN" value="E" <?php if ( $s["TIMED_EVT_LEN"] == "E" ) echo " checked=\"checked\"";?> /> <?php etranslate("End Time")?></label>
  </td></tr>
 </table>

Modified: trunk/plugins/old/webcalendar/www/approve_entry.php
===================================================================
--- trunk/plugins/old/webcalendar/www/approve_entry.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/approve_entry.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
     $params[0] = $app_user ;
     $params[1] = $id ;
     plugin_hook('add_cal_link_father_event',$params);
-    
+
   } else {
     activity_log ( $id, $login, $app_user, $LOG_APPROVE, "" );
   }

Modified: trunk/plugins/old/webcalendar/www/availability.php
===================================================================
--- trunk/plugins/old/webcalendar/www/availability.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/availability.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -60,8 +60,8 @@
 <a title="<?php etranslate("Previous")?>" class="prev" href="<?php echo $prev_url ?>"><img src="leftarrow.gif" class="prevnext" alt="<?php etranslate("Previous")?>" /></a>
 <a title="<?php etranslate("Next")?>" class="next" href="<?php echo $next_url ?>"><img src="rightarrow.gif" class="prevnext" alt="<?php etranslate("Next")?>" /></a>
 <div class="title">
-<span class="date"><?php 
-  printf ( "%s, %s %d, %d", weekday_name ( $wday ), month_name ( $month - 1 ), $day, $year ); 
+<span class="date"><?php
+  printf ( "%s, %s %d, %d", weekday_name ( $wday ), month_name ( $month - 1 ), $day, $year );
 ?></span><br />
 </div></div>
 <br />

Modified: trunk/plugins/old/webcalendar/www/category_handler.php
===================================================================
--- trunk/plugins/old/webcalendar/www/category_handler.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/category_handler.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -37,7 +37,7 @@
       "WHERE cat_id = $id AND cat_owner = '$login'" ) )
       $error = translate ("Database error") . ": " . dbi_error();
   }
-      
+
   // Set any events in this category to NULL
   if ( ! dbi_query ( "UPDATE webcal_entry_user SET cal_category = NULL " .
     "WHERE cal_category = $id" ) )

Modified: trunk/plugins/old/webcalendar/www/colors.php
===================================================================
--- trunk/plugins/old/webcalendar/www/colors.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/colors.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,9 +13,9 @@
 <div style="text-align:center;">
 <table style="border-collapse: separate;border: none;background-color:#000000;border-spacing: 1px;">
 <?php
-// First green array 
+// First green array
 for ($r=0; $r<count($colors); $r++){     //the red colors loop
-  echo "<tr>\n"; 
+  echo "<tr>\n";
   for ($g=0; $g<count($green1); $g++){   //the green colors loop
     for ($b=0; $b<count($colors); $b++){ //iterate through the six blue colors
       $c = $colors[$r].$green1[$g].$colors[$b];
@@ -23,12 +23,12 @@
         "')\"><img src=\"spacer.gif\" class=\"color\" alt=\"\" /></a></td>\n";
     } //End of b-blue innermost loop
   } //End of g-green loop
-  echo "</tr>\n"; // close row 
+  echo "</tr>\n"; // close row
 } //End of r-red outermost loop
 
 // second green array
 for ($r=0; $r<count($colors); $r++){     //the red colors loop
-  echo "<tr>\n"; 
+  echo "<tr>\n";
   for ($g=0; $g<count($green2); $g++){   //the green colors loop
     for ($b=0; $b<count($colors); $b++){ //iterate through the six blue colors
       $c = $colors[$r].$green2[$g].$colors[$b];
@@ -36,18 +36,18 @@
         "')\"><img src=\"spacer.gif\" class=\"color\" alt=\"\" /></a></td>\n";
     } //End of b-blue innermost loop
   } //End of g-green loop
-  echo "</tr>\n"; // close row 
+  echo "</tr>\n"; // close row
 } //End of r-red outermost loop
 ?>
 </table>
 <br />
 <table style="border-collapse: separate;border: none;background-color:#000000;border-spacing: 1px;"><tr>
 <?php
-for ($gs=0; $gs<count($grayscale); $gs++){     
+for ($gs=0; $gs<count($grayscale); $gs++){
   $c = $grayscale[$gs];
   echo "<td style=\"background-color:#" . $c . ";\"><a href=\"javascript:sendColor('#" . $c .
        "')\"><img src=\"spacer.gif\" class=\"color\" alt=\"\" /></a></td>\n";
-} 
+}
 ?>
 </tr></table>
 

Modified: trunk/plugins/old/webcalendar/www/del_entry.php
===================================================================
--- trunk/plugins/old/webcalendar/www/del_entry.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/del_entry.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -35,13 +35,13 @@
   $row = dbi_fetch_row ( $res );
   $owner = $row[0];
   dbi_free_result ( $res );
-  
-  
+
+
   if ( $owner == $login || $is_assistant && ( $user == $owner ) || $is_nonuser_admin && ( $user == $owner ) ) {
     $my_event = true;
     $can_edit = true;
   }
-  
+
 }
 
 if ( $readonly == 'Y' )
@@ -80,7 +80,7 @@
 
   // Only allow delete of webcal_entry & webcal_entry_repeats
   // if owner or admin, not participant.
-   
+
   if ( $is_admin || $my_event ) {
 	// Email participants that the event was deleted
     // First, get list of participants (with status Approved or
@@ -118,16 +118,16 @@
       $user_language = get_pref_setting ( $partlogin[$i], "LANGUAGE" );
       user_load_variables ( $partlogin[$i], "temp" );
       // Want date/time in user's timezone
-      if ( $eventtime != '-1' ) { 
+      if ( $eventtime != '-1' ) {
         $eventtime += ( $user_TZ * 10000 );
         if ( $eventtime < 0 ) {
           $eventtime += 240000;
         } else if ( $eventtime >= 240000 ) {
           $eventtime -= 240000;
         }
-      }  
-               
-      if ( /*$partlogin[$i] != $login &&*/ $do_send == "Y" && boss_must_be_notified ( $login, $partlogin[$i] ) && 
+      }
+
+      if ( /*$partlogin[$i] != $login &&*/ $do_send == "Y" && boss_must_be_notified ( $login, $partlogin[$i] ) &&
         strlen ( $tempemail ) && $send_email != "N" ) {
          if (($GLOBALS['LANGUAGE'] != $user_language) && ! empty ( $user_language ) && ( $user_language != 'none' )){
           reset_language ( $user_language );

Modified: trunk/plugins/old/webcalendar/www/edit_entry.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_entry.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_entry.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -71,7 +71,7 @@
     }
     $create_by = $row[0];
     if (( $user == $create_by ) && ( $is_assistant || $is_nonuser_admin )) $can_edit = true;
-    
+
     $year = (int) ( $cal_date / 10000 );
     $month = ( $cal_date / 100 ) % 100;
     $day = $cal_date % 100;
@@ -146,7 +146,7 @@
         }
       }
     }
-    
+
   }
   $sql = "SELECT cal_login, cal_category FROM webcal_entry_user WHERE cal_id = $id";
   $res = dbi_query ( $sql );
@@ -298,7 +298,7 @@
  <span class="tabfor" id="tab_details"><a href="#tabdetails" onclick="return showTab('details')"><?php etranslate("Details") ?></a></span>
  <?php if ( $disable_participants_field != "Y" ) { ?>
    <span class="tabbak" id="tab_participants"><a href="#tabparticipants" onclick="return showTab('participants')"><?php etranslate("Participants") ?></a></span>
- <?php } ?> 
+ <?php } ?>
  <?php if ( $disable_repeating_field != "Y" ) { ?>
    <span class="tabbak" id="tab_pete"><a href="#tabpete" onclick="return showTab('pete')"><?php etranslate("Repeat") ?></a></span>
  <?php } ?>
@@ -315,7 +315,7 @@
   <table style="border-width:0px;">
    <tr><td style="width:14%;" class="tooltip" title="<?php etooltip("brief-description-help")?>">
     <label for="entry_brief"><?php etranslate("Brief Description")?>:</label></td><td>
-    <input type="text" name="name" id="entry_brief" size="25" value="<?php 
+    <input type="text" name="name" id="entry_brief" size="25" value="<?php
      echo htmlspecialchars ( $name );
     ?>" /></td><td style="width:35%;">
    </td></tr>
@@ -327,7 +327,7 @@
      echo htmlspecialchars ( $description );
     ?></textarea></td><td style="vertical-align:top;">
 
-<?php if (( ! empty ( $categories ) ) || ( $disable_access_field != "Y" ) || 
+<?php if (( ! empty ( $categories ) ) || ( $disable_access_field != "Y" ) ||
          ( $disable_priority_field != "Y" ) ){ // new table for extra fields ?>
     <table>
 <?php } ?>
@@ -365,10 +365,10 @@
       </select>
      </td></tr>
 <?php } //end if (! empty ($categories)) ?>
-<?php if (( ! empty ( $categories ) ) || ( $disable_access_field != "Y" ) || 
+<?php if (( ! empty ( $categories ) ) || ( $disable_access_field != "Y" ) ||
          ( $disable_priority_field != "Y" ) ){ // end the table ?>
    </table>
-    
+
 <?php } ?>
   </td></tr>
   <tr><td class="tooltip" title="<?php etooltip("date-help")?>">
@@ -401,9 +401,9 @@
 if ( $time < 0 )
   $h12 = "";
 ?>
-   <input type="text" name="hour" size="2" value="<?php 
+   <input type="text" name="hour" size="2" value="<?php
     if ( $time >= 0 && $allday != 'Y' ) echo $h12;
-   ?>" maxlength="2" />:<input type="text" name="minute" size="2" value="<?php 
+   ?>" maxlength="2" />:<input type="text" name="minute" size="2" value="<?php
     if ( $time >= 0 && $allday != "Y" ) printf ( "%02d", $minute );
    ?>" maxlength="2" />
 <?php
@@ -422,19 +422,19 @@
 if ($GLOBALS['TIMED_EVT_LEN'] != 'E') { ?>
    </td></tr>
   <tr id="timeentryduration"><td>
-  <span class="tooltip" title="<?php 
+  <span class="tooltip" title="<?php
    etooltip("duration-help")
-  ?>"><?php 
+  ?>"><?php
    etranslate("Duration")
   ?>: </span></td><td colspan="2">
-  <input type="text" name="duration_h" id="duration_h" size="2" maxlength="2" value="<?php 
+  <input type="text" name="duration_h" id="duration_h" size="2" maxlength="2" value="<?php
    if ( $allday != "Y" ) printf ( "%d", $dur_h );
-  ?>" />:<input type="text" name="duration_m" id="duration_m" size="2" maxlength="2" value="<?php 
-   if ( $allday != "Y" ) 
+  ?>" />:<input type="text" name="duration_m" id="duration_m" size="2" maxlength="2" value="<?php
+   if ( $allday != "Y" )
     printf ( "%02d", $dur_m );
-  ?>" /> (<label for="duration_h"><?php 
+  ?>" /> (<label for="duration_h"><?php
    echo translate("hours")
-  ?></label>: <label for="duration_m"><?php 
+  ?></label>: <label for="duration_m"><?php
    echo translate("minutes")
   ?></label>)
  </td></tr>
@@ -477,9 +477,9 @@
 } //end if ( $allday != "Y" && $hour == -1 )
 ?>
  <span id="timeentryend" class="tooltip" title="<?php etooltip("end-time-help")?>"> - 
-  <input type="text" name="endhour" size="2" value="<?php 
+  <input type="text" name="endhour" size="2" value="<?php
    if ( $allday != "Y" ) echo $endhour;
-  ?>" maxlength="2" />:<input type="text" name="endminute" size="2" value="<?php 
+  ?>" maxlength="2" />:<input type="text" name="endminute" size="2" value="<?php
    if ( $time >= 0 && $allday != "Y" ) printf ( "%02d", $endminute );
   ?>" maxlength="2" />
   <?php
@@ -506,7 +506,7 @@
   $extra_type = $site_extras[$i][2];
   $extra_arg1 = $site_extras[$i][3];
   $extra_arg2 = $site_extras[$i][4];
-  //echo "<tr><td>Extra " . $extra_name . " - " . $site_extras[$i][2] . 
+  //echo "<tr><td>Extra " . $extra_name . " - " . $site_extras[$i][2] .
   //  " - " . $extras[$extra_name]['cal_name'] .
   //  "arg1: $extra_arg1, arg2: $extra_arg2 </td></tr>\n";
   if ( $extra_type == $EXTRA_MULTILINETEXT )
@@ -668,8 +668,8 @@
     $size = 15;
   else if ( $size > 5 )
     $size = 5;
-  print "<tr title=\"" . 
- tooltip("participants-help") . "\"><td class=\"tooltipselect\">\n<label for=\"entry_part\">" . 
+  print "<tr title=\"" .
+ tooltip("participants-help") . "\"><td class=\"tooltipselect\">\n<label for=\"entry_part\">" .
  translate("Participants") . ":</label></td><td>\n";
   print "<select name=\"participants[]\" id=\"entry_part\" size=\"$size\" multiple=\"multiple\">$users\n";
   print "</select>\n";
@@ -707,41 +707,41 @@
  <label for="rpttype"><?php etranslate("Repeat Type")?>:</label></td><td>
  <select name="rpt_type" id="rpttype" onchange="rpttype_handler()">
 <?php
- echo "  <option value=\"none\"" . 
-  ( strcmp ( $rpt_type, 'none' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
-  translate("None") . 
+ echo "  <option value=\"none\"" .
+  ( strcmp ( $rpt_type, 'none' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
+  translate("None") .
  "</option>\n";
- echo "  <option value=\"daily\"" . 
-  ( strcmp ( $rpt_type, 'daily' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
-  translate("Daily") . 
+ echo "  <option value=\"daily\"" .
+  ( strcmp ( $rpt_type, 'daily' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
+  translate("Daily") .
  "</option>\n";
- echo "  <option value=\"weekly\"" . 
-  ( strcmp ( $rpt_type, 'weekly' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
-  translate("Weekly") . 
+ echo "  <option value=\"weekly\"" .
+  ( strcmp ( $rpt_type, 'weekly' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
+  translate("Weekly") .
  "</option>\n";
- echo "  <option value=\"monthlyByDay\"" . 
-  ( strcmp ( $rpt_type, 'monthlyByDay' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
+ echo "  <option value=\"monthlyByDay\"" .
+  ( strcmp ( $rpt_type, 'monthlyByDay' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
   translate("Monthly") . " (" . translate("by day") . ")" . "
  </option>\n";
- echo "  <option value=\"monthlyByDayR\"" . 
-  ( strcmp ( $rpt_type, 'monthlyByDayR' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
-  translate("Monthly") . " (" . translate("by day (from end)") . ")" . 
+ echo "  <option value=\"monthlyByDayR\"" .
+  ( strcmp ( $rpt_type, 'monthlyByDayR' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
+  translate("Monthly") . " (" . translate("by day (from end)") . ")" .
  "</option>\n";
- echo "  <option value=\"monthlyByDate\"" . 
-  ( strcmp ( $rpt_type, 'monthlyByDate' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
-  translate("Monthly") . " (" . translate("by date") . ")" . 
+ echo "  <option value=\"monthlyByDate\"" .
+  ( strcmp ( $rpt_type, 'monthlyByDate' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
+  translate("Monthly") . " (" . translate("by date") . ")" .
  "</option>\n";
- echo "  <option value=\"yearly\"" . 
-  ( strcmp ( $rpt_type, 'yearly' ) == 0 ? " selected=\"selected\"" : "" ) . ">" . 
-  translate("Yearly") . 
+ echo "  <option value=\"yearly\"" .
+  ( strcmp ( $rpt_type, 'yearly' ) == 0 ? " selected=\"selected\"" : "" ) . ">" .
+  translate("Yearly") .
  "</option>\n";
 ?>
  </select>
 </td></tr>
 <tr id="rptenddate" style="visibility:hidden;"><td class="tooltip" title="<?php etooltip("repeat-end-date-help")?>">
  <?php etranslate("Repeat End Date")?>:</td><td>
- <label><input type="checkbox" name="rpt_end_use" value="y" <?php 
-  echo ( ! empty ( $rpt_end ) ? " checked=\"checked\"" : "" ); 
+ <label><input type="checkbox" name="rpt_end_use" value="y" <?php
+  echo ( ! empty ( $rpt_end ) ? " checked=\"checked\"" : "" );
  ?> /> <?php etranslate("Use end date")?></label>
     
  <span class="end_day_selection"><?php
@@ -756,30 +756,30 @@
  <?php etranslate("Repeat Day")?>: </td><td>
  <?php
   if( $WEEK_START != 1)
-   echo "<label><input type=\"checkbox\" name=\"rpt_sun\" value=\"y\"" 
-    . (!empty($rpt_sun)?" checked=\"checked\"":"") . " /> " . translate("Sunday") . 
+   echo "<label><input type=\"checkbox\" name=\"rpt_sun\" value=\"y\""
+    . (!empty($rpt_sun)?" checked=\"checked\"":"") . " /> " . translate("Sunday") .
    "</label>\n";
-  echo "<label><input type=\"checkbox\" name=\"rpt_mon\" value=\"y\"" 
-   . (!empty($rpt_mon)?" checked=\"checked\"":"") . " /> " . translate("Monday") . 
+  echo "<label><input type=\"checkbox\" name=\"rpt_mon\" value=\"y\""
+   . (!empty($rpt_mon)?" checked=\"checked\"":"") . " /> " . translate("Monday") .
   "</label>\n";
-  echo "<label><input type=\"checkbox\" name=\"rpt_tue\" value=\"y\"" 
-   . (!empty($rpt_tue)?" checked=\"checked\"":"") . " /> " . translate("Tuesday") . 
+  echo "<label><input type=\"checkbox\" name=\"rpt_tue\" value=\"y\""
+   . (!empty($rpt_tue)?" checked=\"checked\"":"") . " /> " . translate("Tuesday") .
   "</label>\n";
-  echo "<label><input type=\"checkbox\" name=\"rpt_wed\" value=\"y\"" 
-   . (!empty($rpt_wed)?" checked=\"checked\"":"") . " /> " . translate("Wednesday") . 
+  echo "<label><input type=\"checkbox\" name=\"rpt_wed\" value=\"y\""
+   . (!empty($rpt_wed)?" checked=\"checked\"":"") . " /> " . translate("Wednesday") .
   "</label>\n";
-  echo "<label><input type=\"checkbox\" name=\"rpt_thu\" value=\"y\"" 
-   . (!empty($rpt_thu)?" checked=\"checked\"":"") . " /> " . translate("Thursday") . 
+  echo "<label><input type=\"checkbox\" name=\"rpt_thu\" value=\"y\""
+   . (!empty($rpt_thu)?" checked=\"checked\"":"") . " /> " . translate("Thursday") .
   "</label>\n";
-  echo "<label><input type=\"checkbox\" name=\"rpt_fri\" value=\"y\"" 
-   . (!empty($rpt_fri)?" checked=\"checked\"":"") . " /> " . translate("Friday") . 
+  echo "<label><input type=\"checkbox\" name=\"rpt_fri\" value=\"y\""
+   . (!empty($rpt_fri)?" checked=\"checked\"":"") . " /> " . translate("Friday") .
   "</label>\n";
-  echo "<label><input type=\"checkbox\" name=\"rpt_sat\" value=\"y\"" 
-   . (!empty($rpt_sat)?" checked=\"checked\"":"") . " /> " . translate("Saturday") . 
+  echo "<label><input type=\"checkbox\" name=\"rpt_sat\" value=\"y\""
+   . (!empty($rpt_sat)?" checked=\"checked\"":"") . " /> " . translate("Saturday") .
   "</label>\n";
   if( $WEEK_START == 1)
-   echo "<label><input type=\"checkbox\" name=\"rpt_sun\" value=\"y\"" 
-    . (!empty($rpt_sun)?" checked=\"checked\"":"") . " /> " . translate("Sunday") . 
+   echo "<label><input type=\"checkbox\" name=\"rpt_sun\" value=\"y\""
+    . (!empty($rpt_sun)?" checked=\"checked\"":"") . " /> " . translate("Sunday") .
    "</label>\n";
  ?></td></tr>
 </table>
@@ -806,9 +806,9 @@
 
 <?php if ( $id > 0 && ( $login == $create_by || $single_user == "Y" || $is_admin ) ) { ?>
  <a href="del_entry.php?id=<?php echo $id;?>" onclick="return confirm('<?php etranslate("Are you sure you want to delete this entry?")?>');"><?php etranslate("Delete entry")?></a><br />
-<?php 
+<?php
  } //end if clause for delete link
-} else { 
+} else {
   echo translate("You are not authorized to edit this entry") . ".";
 } //end if ( $can_edit )
 ?>

Modified: trunk/plugins/old/webcalendar/www/edit_entry_handler.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_entry_handler.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_entry_handler.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -135,7 +135,7 @@
   // WebCalendar should respect it
   if ( ! empty ( $public_access_default_selected ) &&
     $public_access_default_selected == "Y" ) {
-    $participants[1] = "__public__";     
+    $participants[1] = "__public__";
   }
 }
 // If "all day event" was selected, then we set the event time
@@ -195,7 +195,7 @@
 $matches = array ();
 $ext_count = 0;
 if ( $single_user == "N" &&
-  ! empty ( $allow_external_users ) && 
+  ! empty ( $allow_external_users ) &&
   $allow_external_users == "Y" &&
   ! empty ( $externalparticipants ) ) {
   $lines = explode ( "\n", $externalparticipants );
@@ -229,8 +229,8 @@
         // Test for duplicate Names
         if ( $i > 0 ) {
           for ( $k = $i ; $k > 0 ; $k-- ) {
-            if ( $ext_names[$i] == $ext_names[$k] ) { 
-              $ext_names[$i]  .= "[$k]";     
+            if ( $ext_names[$i] == $ext_names[$k] ) {
+              $ext_names[$i]  .= "[$k]";
             }
           }
         }
@@ -291,7 +291,7 @@
 
   $dates = get_all_dates ( $date, $rpt_type, $endt, $dayst,
     $ex_days, $rpt_freq );
-    
+
   $conflicts = check_for_conflicts ( $dates, $duration, $hour, $minute,
     $participants, $login, empty ( $id ) ? 0 : $id );
 }
@@ -321,7 +321,7 @@
     $res = dbi_query ( $sql );
     if ( $res ) {
       for ( $i = 0; $tmprow = dbi_fetch_row ( $res ); $i++ ) {
-        $old_status[$tmprow[0]] = $tmprow[1]; 
+        $old_status[$tmprow[0]] = $tmprow[1];
         $old_category[$tmprow[0]] = $tmprow[2];
       }
       dbi_free_result ( $res );
@@ -352,10 +352,10 @@
     "cal_access, cal_type, cal_name, cal_description ) " .
     "VALUES ( $id, " .
     ( $old_id > 0 ? " $old_id, " : "" ) .
-    "'" . ( ! empty ( $old_create_by ) && 
-      ( ( $is_admin && ! $newevent ) || $is_assistant || 
+    "'" . ( ! empty ( $old_create_by ) &&
+      ( ( $is_admin && ! $newevent ) || $is_assistant ||
       $is_nonuser_admin ) ? $old_create_by : $login ) . "', ";
-    
+
   $date = mktime ( 3, 0, 0, $month, $day, $year );
   $sql .= date ( "Ymd", $date ) . ", ";
   if ( strlen ( $hour ) > 0 && $timetype != 'U' ) {
@@ -381,14 +381,14 @@
     $description = $name;
   }
   $sql .= "'" . $description . "' )";
-  
+
   if ( empty ( $error ) ) {
     if ( ! dbi_query ( $sql ) ) {
       $error = translate("Database error") . ": " . dbi_error ();
     }
     else {
     //mettre le plugin
-    //add father 
+    //add father
     $params[0] = $user ;
     $params[1] = $id ;
     plugin_hook('add_cal_link_father_event',$params);
@@ -398,7 +398,7 @@
   // log add/update
   activity_log ( $id, $login, ($is_assistant || $is_nonuser_admin ? $user : $login),
     $newevent ? $LOG_CREATE : $LOG_UPDATE, "" );
-  
+
   if ( $single_user == "Y" ) {
     $participants[0] = $single_user_login;
   }
@@ -448,11 +448,11 @@
             $user_day = $day;
             $user_year = $year;
           }
-          if (($GLOBALS['LANGUAGE'] != $user_language) && 
+          if (($GLOBALS['LANGUAGE'] != $user_language) &&
             ! empty ( $user_language ) && ( $user_language != 'none' )){
             reset_language ( $user_language );
           }
-          //do_debug($user_language);    
+          //do_debug($user_language);
           $fmtdate = sprintf ( "%04d%02d%02d", $user_year, $user_month, $user_day );
           $msg = translate("Hello") . ", " . $tempfullname . ".\n\n" .
             translate("An appointment has been canceled for you by") .
@@ -487,10 +487,10 @@
   }
 
   // now add participants and send out notifications
-   
+
   for ( $i = 0; $i < count ( $participants ); $i++ ) {
     $my_cat_id = "";
-    
+
     // Is the person adding the nonuser calendar admin
     $is_nonuser_admin = user_is_nonuser_admin ( $login, $participants[$i] );
 
@@ -538,10 +538,10 @@
         $my_cat_id = $cat_id;
       }
     } else {  // New Event
-    
+
       $send_user_mail = true;
-      $status = ( $participants[$i] != $login && 
-        boss_must_approve_event ( $login, $participants[$i] ) && 
+      $status = ( $participants[$i] != $login &&
+        boss_must_approve_event ( $login, $participants[$i] ) &&
         $require_approvals == "Y" && ! $is_nonuser_admin ) ?
         "W" : "A";
       // If admin, no need to approve Public Access Events
@@ -562,7 +562,7 @@
         }
       }
     }
-    
+
     // Some users report that they get an error on duplicate keys
     // on the following add... As a safety measure, delete any
     // existing entry with the id.  Ignore the result.
@@ -588,13 +588,13 @@
         $user_TZ = get_pref_setting ( $participants[$i], "TZ_OFFSET" );
         $user_language = get_pref_setting ( $participants[$i], "LANGUAGE" );
         user_load_variables ( $participants[$i], "temp" );
-        
-        
-        if ( $participants[$i] != $login && 
-          boss_must_be_notified ( $login, $participants[$i] ) && 
+
+
+        if ( $participants[$i] != $login &&
+          boss_must_be_notified ( $login, $participants[$i] ) &&
           strlen ( $tempemail ) &&
           $do_send == "Y" && $send_user_mail && $send_email != "N" ) {
-		
+
           // Want date/time in user's timezone
           $user_hour = $hour + $user_TZ;
           if ( $user_hour < 0 ) {
@@ -618,7 +618,7 @@
             $user_day = $day;
             $user_year = $year;
           }
-          if (($GLOBALS['LANGUAGE'] != $user_language) && 
+          if (($GLOBALS['LANGUAGE'] != $user_language) &&
             ! empty ( $user_language ) && ( $user_language != 'none' )) {
              reset_language ( $user_language );
           }
@@ -653,13 +653,13 @@
           } else {
             $extra_hdrs = "X-Mailer: " . translate($application_name);
           }
-          	
-        
+
+
          mail ( $tempemail,
             translate($application_name) . " " . translate("Notification") . ": " . $name,
             utf8_decode(html_to_8bits ($msg)), $extra_hdrs );
           activity_log ( $id, $login, $participants[$i], $LOG_NOTIFICATION, "" );
-          
+
         }
       }
     }
@@ -719,7 +719,7 @@
             translate($application_name) . " " .
             translate("Notification") . ": " . $name,
             utf8_decode(html_to_8bits ($msg)), $extra_hdrs );
-        
+
         }
       }
     }
@@ -807,7 +807,7 @@
       } else {
         $days = "nnnnnnn";
       }
-  
+
       $sql = "INSERT INTO webcal_entry_repeats ( cal_id, " .
         "cal_type, cal_end, cal_days, cal_frequency ) VALUES " .
         "( $id, '$rpt_type', $end, '$days', $freq )";
@@ -827,7 +827,7 @@
 }
 
 print_header();
-if ( strlen ( $conflicts ) ) { 
+if ( strlen ( $conflicts ) ) {
 ?>
 <h2><?php etranslate("Scheduling Conflict")?></h2>
 
@@ -878,7 +878,7 @@
       "value=\"" . translate("Save") . "\" /></td>\n";
   }
 ?>
-   <td><input type="button" value="<?php etranslate("Cancel")?>" 
+   <td><input type="button" value="<?php etranslate("Cancel")?>"
 onclick="history.back()" /><td>
  </tr>
 </table>

Modified: trunk/plugins/old/webcalendar/www/edit_layer.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_layer.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_layer.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -56,7 +56,7 @@
       if ( ! empty ( $layers[$id]['cal_layeruser'] ) ) {
         if ( $layers[$id]['cal_layeruser'] == $userlist[$i]['cal_login'] )
           $users .= " selected=\"selected\"";
-      } 
+      }
       $users .= ">" . $userlist[$i]['cal_fullname'] . "</option>\n";
     }
   }
@@ -80,8 +80,8 @@
 </td></tr>
 <tr><td style="font-weight:bold;">
 	<?php etranslate("Duplicates")?>:</td><td>
-	<label><input type="checkbox" name="dups" value="Y"<?php 
-		if (! empty ($layers[$id]['cal_dups']) && $layers[$id]['cal_dups'] == 'Y') 
+	<label><input type="checkbox" name="dups" value="Y"<?php
+		if (! empty ($layers[$id]['cal_dups']) && $layers[$id]['cal_dups'] == 'Y')
 			echo " checked=\"checked\"";
 	?> /> <?php etranslate("Show layer events that are the same as your own")?></label>
 </td></tr>

Modified: trunk/plugins/old/webcalendar/www/edit_nonusers.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_nonusers.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_nonusers.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -3,13 +3,13 @@
 print_header( '', '', '', true );
 
 if ( ! $is_admin ) {
-  echo "<h2>" . translate("Error") . "</h2>\n" . 
+  echo "<h2>" . translate("Error") . "</h2>\n" .
   		translate("You are not authorized") . ".\n";
   echo "</body>\n</html>";
   exit;
 }
 if ( ! $NONUSER_PREFIX ) {
-  echo "<h2>" . translate("Error") . "</h2>\n" . 
+  echo "<h2>" . translate("Error") . "</h2>\n" .
   		translate("NONUSER_PREFIX not set") . ".\n";
   echo "</body>\n</html>";
   exit;
@@ -63,7 +63,7 @@
   for ( $i = 0; $i < count ( $userlist ); $i++ ) {
 	echo "<option value=\"".$userlist[$i]['cal_login']."\"";
 	if (! empty ( $nonusertemp_admin ) &&
-            $nonusertemp_admin == $userlist[$i]['cal_login'] ) 
+            $nonusertemp_admin == $userlist[$i]['cal_login'] )
 		echo " selected=\"selected\"";
 	echo ">".$userlist[$i]['cal_fullname']."</option>\n";
   }

Modified: trunk/plugins/old/webcalendar/www/edit_report.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_report.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_report.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -91,7 +91,7 @@
   $userlist = get_my_users ();
   if ($nonuser_enabled == "Y" ) {
     $nonusers = get_nonuser_cals ();
-    $userlist = ($nonuser_at_top == "Y") ? array_merge($nonusers, $userlist) : 
+    $userlist = ($nonuser_at_top == "Y") ? array_merge($nonusers, $userlist) :
       array_merge($userlist, $nonusers);
   }
 }
@@ -146,12 +146,12 @@
         // If not admin, only creator can edit/delete the event
         $error = translate ( "You are not authorized" );
       }
-      
+
       // If we are editing a public user report we need to set $updating_public
       if ( $is_admin && $report_login == "__public__" ) {
         $updating_public = true;
        }
-        
+
     } else {
       $error = translate ( "Invalid report id" ) . ": $report_id";
     }
@@ -244,7 +244,7 @@
       if ( $report_user == $userlist[$i]['cal_login'] ) {
         $users .= " selected=\"selected\"";
       }
-    } 
+    }
     $users .= ">" . $userlist[$i]['cal_fullname'] . "</option>\n";
   }
   print "<tr><td><label for=\"rpt_user\">" .
@@ -259,7 +259,7 @@
 <tr><td><label>
  <?php etranslate("Global")?>:</label></td><td>
  <label><input type="radio" name="is_global" value="Y"
-  <?php if ( $report_is_global != 'N' ) echo " checked=\"checked\""; ?> 
+  <?php if ( $report_is_global != 'N' ) echo " checked=\"checked\""; ?>
     /> <?php etranslate("Yes") ?></label>   
   <label><input type="radio" name="is_global" value="N"
     <?php if ( $report_is_global == 'N' ) echo " checked=\"checked\""; ?>
@@ -276,10 +276,10 @@
 <tr><td><label>
  <?php etranslate("Include link in trailer")?>:</label></td><td>
  <label><input type="radio" name="show_in_trailer" value="Y"
-  <?php if ( $report_show_in_trailer != 'N' ) echo " checked=\"checked\""; ?> 
+  <?php if ( $report_show_in_trailer != 'N' ) echo " checked=\"checked\""; ?>
   /> <?php etranslate("Yes") ?></label>   
  <label><input type="radio" name="show_in_trailer" value="N"
-  <?php if ( $report_show_in_trailer == 'N' ) echo " checked=\"checked\""; ?> 
+  <?php if ( $report_show_in_trailer == 'N' ) echo " checked=\"checked\""; ?>
   /> <?php etranslate("No") ?></label>
 </td></tr>
 <?php } ?>
@@ -287,10 +287,10 @@
  <?php etranslate("Include standard header/trailer")?>:    
    </label></td><td>
  <label><input type="radio" name="include_header" value="Y"
-   <?php if ( $report_include_header != 'N' ) echo " checked=\"checked\""; ?> 
+   <?php if ( $report_include_header != 'N' ) echo " checked=\"checked\""; ?>
    /> <?php etranslate("Yes") ?></label>   
  <label><input type="radio" name="include_header" value="N"
-   <?php if ( $report_include_header == 'N' ) echo " checked=\"checked\""; ?> 
+   <?php if ( $report_include_header == 'N' ) echo " checked=\"checked\""; ?>
    /> <?php etranslate("No") ?></label>
 </td></tr>
 <tr><td>
@@ -323,19 +323,19 @@
 <tr><td><label>
  <?php etranslate("Include previous/next links")?>:</label></td><td>
  <label><input type="radio" name="allow_nav" value="Y"
-   <?php if ( $report_allow_nav != 'N' ) echo " checked=\"checked\""; ?> 
+   <?php if ( $report_allow_nav != 'N' ) echo " checked=\"checked\""; ?>
    /> <?php etranslate("Yes") ?></label>   
  <label><input type="radio" name="allow_nav" value="N"
-   <?php if ( $report_allow_nav == 'N' ) echo " checked=\"checked\""; ?> 
+   <?php if ( $report_allow_nav == 'N' ) echo " checked=\"checked\""; ?>
    /> <?php etranslate("No") ?></label>
 </td></tr>
 <tr><td><label>
  <?php etranslate("Include empty dates")?>:</label></td><td>
  <label><input type="radio" name="include_empty" value="Y"
-   <?php if ( $report_include_empty != 'N' ) echo " checked=\"checked\""; ?> 
+   <?php if ( $report_include_empty != 'N' ) echo " checked=\"checked\""; ?>
    /> <?php etranslate("Yes") ?></label>   
  <label><input type="radio" name="include_empty" value="N"
-   <?php if ( $report_include_empty == 'N' ) echo " checked=\"checked\""; ?> 
+   <?php if ( $report_include_empty == 'N' ) echo " checked=\"checked\""; ?>
    /> <?php etranslate("No") ?></label>
 </td></tr>
 </table>
@@ -378,12 +378,12 @@
   <tt>${priority}</tt><br />
   <tt>${href}</tt><br />
   <tt>${user}</tt><br />
-  <tt>${report_id}</tt> 
+  <tt>${report_id}</tt>
  </td></tr>
  <tr><td colspan="2">
   <input type="submit" value="<?php etranslate("Save")?>" />
 <?php if ( ! $adding_report ) { ?>
-    <input type="submit" name="action" 
+    <input type="submit" name="action"
   value="<?php etranslate("Delete");?>"
   onclick="return confirm('<?php etranslate("Are you sure you want to delete this report?")?>');" />
 <?php } ?>

Modified: trunk/plugins/old/webcalendar/www/edit_user.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_user.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_user.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -84,7 +84,7 @@
 if ( $is_admin ) { ?>
 	<tr><td style="font-weight:bold;">
 		<?php etranslate("Admin")?>:</td><td>
-		<label><input type="radio" name="uis_admin" value="Y"<?php if ( ! empty ( $uis_admin ) && $uis_admin == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+		<label><input type="radio" name="uis_admin" value="Y"<?php if ( ! empty ( $uis_admin ) && $uis_admin == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
 		<label><input type="radio" name="uis_admin" value="N"<?php if ( empty ( $uis_admin ) || $uis_admin != "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
 	</td></tr>
 <?php } //end if ($is_admin ) ?>

Modified: trunk/plugins/old/webcalendar/www/edit_user_handler.php
===================================================================
--- trunk/plugins/old/webcalendar/www/edit_user_handler.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/edit_user_handler.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -2,7 +2,7 @@
 // There is the potential for a lot of mischief from users trying to
 // access this file in ways the shouldn't.  Users may try to type in
 // a URL to get around functions that are not being displayed on the
-// web page to them. 
+// web page to them.
 
 include_once $gfplugins.'webcalendar/www/includes/init.php';
 load_user_layers ();
@@ -42,15 +42,15 @@
 // Handle update of user info
 else if ( $formtype == "edituser" ) {
   if ( strlen ( $add ) && $is_admin ) {
-    if ( $upassword1 != $upassword2 ) { 
-      $error = translate( "The passwords were not identical" ) . "."; 
+    if ( $upassword1 != $upassword2 ) {
+      $error = translate( "The passwords were not identical" ) . ".";
     } else {
       if ( addslashes ( $user ) != $user ) {
         // This error should get caught before here anyhow, so
         // no need to translate this.  This is just in case :-)
         $error = "Invalid characters in login.";
       } else if ( empty ( $user ) || $user == "" ) {
-        // Username can not be blank. This is currently the only place that 
+        // Username can not be blank. This is currently the only place that
         // calls user_add_user that is located in $user_inc
         $error = translate( "Username can not be blank" ) . ".";
       } else {

Modified: trunk/plugins/old/webcalendar/www/export_handler.php
===================================================================
--- trunk/plugins/old/webcalendar/www/export_handler.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/export_handler.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -92,7 +92,7 @@
 function export_quoted_printable_encode($car) {
   $res = "";
 
-  if ((ord($car) >= 33 && ord($car) <= 60) || (ord($car) >= 62 && ord($car) <= 126) || 
+  if ((ord($car) >= 33 && ord($car) <= 60) || (ord($car) >= 62 && ord($car) <= 126) ||
       ord($car) == 9 || ord($car) == 32) {
       $res = $car;
   } else {
@@ -104,7 +104,7 @@
 
 function export_fold_lines($string, $encoding="none", $limit=76) {
   $len = strlen($string);
-  $fold = $limit; 
+  $fold = $limit;
   $res = array();
   $row = "";
   $enc = "";
@@ -175,7 +175,7 @@
   global $login;
 
   $request = "SELECT webcal_entry_user.cal_login, webcal_entry_user.cal_status, " .
-    " webcal_entry.cal_create_by " . 
+    " webcal_entry.cal_create_by " .
     "FROM webcal_entry_user LEFT JOIN  webcal_entry " .
     " ON webcal_entry_user.cal_id = webcal_entry.cal_id " .
     " WHERE webcal_entry_user.cal_id = '$id' AND webcal_entry_user.cal_status <> 'D'";

Modified: trunk/plugins/old/webcalendar/www/gradient.php
===================================================================
--- trunk/plugins/old/webcalendar/www/gradient.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/gradient.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -51,7 +51,7 @@
  *	Limit height and width parameters to 600 so a malicious user cannot
  *	request a 10Gb image 8-)
  */
- 
+
 $MAX_HEIGHT = 600;
 $MAX_WIDTH = 600;
 $MIN_COLORS = 4;

Modified: trunk/plugins/old/webcalendar/www/group_edit_handler.php
===================================================================
--- trunk/plugins/old/webcalendar/www/group_edit_handler.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/group_edit_handler.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -38,7 +38,7 @@
         $error = translate ("Database error") . ": " . dbi_error();
       }
     }
-  
+
     # update user list
     if ( $error == "" &&  ! empty ( $users ) ) {
       dbi_query ( "DELETE FROM webcal_group_user WHERE cal_group_id = $id" );

Modified: trunk/plugins/old/webcalendar/www/groups.php
===================================================================
--- trunk/plugins/old/webcalendar/www/groups.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/groups.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,8 +1,8 @@
 	<a name="tabgroups"></a>
 	<div id="tabscontent_groups">
 		<?php
-			echo "<a title=\"" . 
-				translate("Add New Group") . "\" href=\"group_edit.php\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" . 
+			echo "<a title=\"" .
+				translate("Add New Group") . "\" href=\"group_edit.php\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" .
 				translate("Add New Group") . "</a><br />\n";
 		?>
 			<?php
@@ -14,8 +14,8 @@
 					  if ( $count == 0 ) {
 						  echo "<ul>\n";
 						}
-					echo "<li><a title=\"" . 
-						$row[1] . "\" href=\"group_edit.php?id=" . $row[0] . "\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" . 
+					echo "<li><a title=\"" .
+						$row[1] . "\" href=\"group_edit.php?id=" . $row[0] . "\" target=\"grpiframe\" onclick=\"javascript:show('grpiframe');\">" .
 						$row[1] . "</a></li>\n";
 						$count++;
 						$lastrow = $row[0];

Modified: trunk/plugins/old/webcalendar/www/help_bug.php
===================================================================
--- trunk/plugins/old/webcalendar/www/help_bug.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/help_bug.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -5,7 +5,7 @@
 
 <h2><?php etranslate("Report Bug")?></h2>
 
-<?php 
+<?php
 	//No need to translate the text below since I want all bugs
 	//reported in English.
 	//Americans only speak English, of course ;-)

Modified: trunk/plugins/old/webcalendar/www/import.php
===================================================================
--- trunk/plugins/old/webcalendar/www/import.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/import.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -49,13 +49,13 @@
       }
       $users .= ">" . $userlist[$i]['cal_fullname'] . "</option>\n";
     }
-  
+
     if ( $size > 50 )
       $size = 15;
     else if ( $size > 5 )
       $size = 5;
     print "<tr><td style=\"vertical-align:top;\">\n";
-    print "<label for=\"caluser\">" . 
+    print "<label for=\"caluser\">" .
     	translate("Calendar") . "</label></td><td>\n";
     print "<select name=\"calUser\" id=\"caluser\" size=\"$size\">$users\n";
     print "</select>\n";
@@ -91,14 +91,14 @@
 </td></tr>
 <tr id="palm"><td>
 	<label><?php etranslate("Exclude private records")?>:</label></td><td>
-	<label><input type="radio" name="exc_private" value="1" checked="checked" /><?php etranslate("Yes")?></label> 
+	<label><input type="radio" name="exc_private" value="1" checked="checked" /><?php etranslate("Yes")?></label>
 	<label><input type="radio" name="exc_private" value="0" /><?php etranslate("No")?></label>
 </td></tr>
 <!-- /PALM -->
 
 <tr id="ivcal"><td>
 	<label><?php etranslate("Overwrite Prior Import")?>:</label></td><td>
-	<label><input type="radio" name="overwrite" value="Y" checked="checked" /> <?php etranslate("Yes");?></label> 
+	<label><input type="radio" name="overwrite" value="Y" checked="checked" /> <?php etranslate("Yes");?></label>
 	<label><input type="radio" name="overwrite" value="N" /> <?php etranslate("No");?></label>
 </td></tr>
 <!-- /IVCAL -->

Modified: trunk/plugins/old/webcalendar/www/import_handler.php
===================================================================
--- trunk/plugins/old/webcalendar/www/import_handler.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/import_handler.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,7 +18,7 @@
  *      single user = Y or Admin, caluser will equal logged
  *      in user.
  *    exc_private: exclude private records from Palmdesktop import
- *    overwrite: Overwrite previous import 
+ *    overwrite: Overwrite previous import
  *
  * Security:
  * TBD
@@ -199,9 +199,9 @@
       ( $Entry['Duration'] != 0 )) {
       $date = mktime (0,0,0,$Entry['StartMonth'],
         $Entry['StartDay'],$Entry['StartYear']);
-      $endt =  (! empty ( $Entry['Repeat']['EndTime'] ) ) ? 
+      $endt =  (! empty ( $Entry['Repeat']['EndTime'] ) ) ?
         $Entry['Repeat']['EndTime'] : 'NULL';
-      $dayst =  (! empty ( $Entry['Repeat']['RepeatDays'] ) ) ? 
+      $dayst =  (! empty ( $Entry['Repeat']['RepeatDays'] ) ) ?
         $Entry['Repeat']['RepeatDays'] : "nnnnnnn";
 
       $ex_days = array ();
@@ -211,9 +211,9 @@
         }
       }
 
-      $dates = get_all_dates($date, RepeatType($Entry['Repeat']['Interval']), 
+      $dates = get_all_dates($date, RepeatType($Entry['Repeat']['Interval']),
         $endt, $dayst, $ex_days, $Entry['Repeat']['Frequency']);
-      $overlap = check_for_conflicts ( $dates, $Entry['Duration'], 
+      $overlap = check_for_conflicts ( $dates, $Entry['Duration'],
         $Entry['StartHour'], $Entry['StartMinute'], $participants, $login, 0 );
     }
 
@@ -234,7 +234,7 @@
 /************************************************************************
   Not sure what to do with this code since I don't know how Palm and vCal
   use the UID stuff yet...
-  
+
       if ( ! empty ( $Entry['UID'] ) ) {
         $res = dbi_query ( "SELECT webcal_import_data.cal_id " .
           "FROM webcal_import_data, webcal_entry_user " .
@@ -262,7 +262,7 @@
         dbi_free_result ( $res );
       } else {
         $id = 1;
-        //$error = "Unable to select MAX cal_id: " . dbi_error () . 
+        //$error = "Unable to select MAX cal_id: " . dbi_error () .
         //  "<br /><br />\n<b>SQL:</b> $sql";
         //break;
       }
@@ -281,7 +281,7 @@
       $values[] = sprintf ( "%04d%02d%02d",
         $Entry['StartYear'],$Entry['StartMonth'],$Entry['StartDay']);
       $names[] = 'cal_time';
-      $values[] = ( ! empty ( $Entry['Untimed'] ) && 
+      $values[] = ( ! empty ( $Entry['Untimed'] ) &&
         $Entry['Untimed'] == 1) ? "-1" :
         sprintf ( "%02d%02d00", $Entry['StartHour'],$Entry['StartMinute']);
       $names[] = 'cal_mod_date';
@@ -293,7 +293,7 @@
       $names[] = 'cal_priority';
       $values[] = $priority;
       $names[] = 'cal_access';
-      $values[] = ( ! empty ( $Entry['Private'] ) && 
+      $values[] = ( ! empty ( $Entry['Private'] ) &&
         $Entry['Private'] == 1) ? "'R'" : "'P'";
       $names[] = 'cal_type';
       $values[] = ( ! empty ( $Entry['Repeat'] ) ) ? "'M'" : "'E'";
@@ -313,15 +313,15 @@
       $Entry['Description'] = str_replace ( "\\\"", "\"", $Entry['Description'] );
       $Entry['Description'] = str_replace ( "'", "\\'", $Entry['Description'] );
       // Mozilla will send this goofy string, so replace it with real html
-      $Entry['Description'] = str_replace ( "=0D=0A=", "<br />", 
+      $Entry['Description'] = str_replace ( "=0D=0A=", "<br />",
         $Entry['Description'] );
-      $Entry['Description'] = str_replace ( "=0D=0A", "", 
+      $Entry['Description'] = str_replace ( "=0D=0A", "",
         $Entry['Description'] );
       // Allow option to not limit description size
-      // This will only be practical for mysql and MSSQL/Postgres as 
+      // This will only be practical for mysql and MSSQL/Postgres as
       //these do not have limits on the table definition
       //TODO Add this option to preferences
-      if ( empty ( $LIMIT_DESCRIPTION_SIZE ) || 
+      if ( empty ( $LIMIT_DESCRIPTION_SIZE ) ||
          $LIMIT_DESCRIPTION_SIZE == "Y" ) {
         // limit length to 1024 chars since we setup tables that way
         if ( strlen ( $Entry['Description'] ) >= 1024 ) {
@@ -427,7 +427,7 @@
         //  echo "$k: $v <br />\n";
         //}
         $rpt_type = RepeatType($Entry['Repeat']['Interval']);
-        $freq = ( ! empty ( $Entry['Repeat']['Frequency'] ) ? 
+        $freq = ( ! empty ( $Entry['Repeat']['Frequency'] ) ?
           $Entry['Repeat']['Frequency'] : 1 );
         if ( ! empty ( $Entry['Repeat']['EndTime'] ) ) {
           $REND   = localtime($Entry['Repeat']['EndTime']);
@@ -435,7 +435,7 @@
         } else {
           $end = 'NULL';
         }
-        $days = (! empty ($Entry['Repeat']['RepeatDays'])) ? 
+        $days = (! empty ($Entry['Repeat']['RepeatDays'])) ?
           "'".$Entry['Repeat']['RepeatDays']."'" : 'NULL';
         $sql = "INSERT INTO webcal_entry_repeats ( cal_id, " .
           "cal_type, cal_end, cal_days, cal_frequency ) VALUES " .

Modified: trunk/plugins/old/webcalendar/www/import_ical.php
===================================================================
--- trunk/plugins/old/webcalendar/www/import_ical.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/import_ical.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -66,7 +66,7 @@
               if ( $match[1] == $subsubstate ) {
                 $subsubstate = '';
               }
-            } else if ( $subsubstate == "VALARM" && 
+            } else if ( $subsubstate == "VALARM" &&
               preg_match ( "/TRIGGER:(.+)$/i", $buff, $match ) ) {
               // Example: TRIGGER;VALUE=DATE-TIME:19970317T133000Z
               //echo "Set reminder to $match[1]<br />";
@@ -255,7 +255,7 @@
     $fevent['Description'] = $event['summary'];
   }
   if ( ! empty ( $event['class'] ) ) {
-    $fevent['Private'] = preg_match("/private|confidential/i", 
+    $fevent['Private'] = preg_match("/private|confidential/i",
       $event['class']) ? '1' : '0';
   }
   $fevent['UID'] = $event['uid'];

Modified: trunk/plugins/old/webcalendar/www/import_vcal.php
===================================================================
--- trunk/plugins/old/webcalendar/www/import_vcal.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/import_vcal.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -38,7 +38,7 @@
               if ( $match[1] == $subsubstate ) {
                 $subsubstate = '';
               }
-            } else if ( $subsubstate == "VALARM" && 
+            } else if ( $subsubstate == "VALARM" &&
               preg_match ( "/TRIGGER:(.+)$/i", $buff, $match ) ) {
 		//echo "Set reminder to $match[1]<br />";
 		//reminder time is $match[1]
@@ -167,7 +167,7 @@
   if (! empty($event['description'])) $fevent['Description'] = $event['description'];
   if (! empty($event['descriptionqp'])) {
     $fevent['Description'] = quoted_printable_decode ( $event['descriptionqp'] );
-    
+
     // hack for mozilla sunbird's extra = signs
     $fevent['Description'] = preg_replace('/^=/', '', $fevent['Description']);
     $fevent['Description'] = str_replace("\n=", "\n", $fevent['Description']);

Modified: trunk/plugins/old/webcalendar/www/includes/connect.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/connect.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/connect.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -96,8 +96,8 @@
   $login_url .= "?";
 if ( ! empty ( $login_return_path ) )
   $login_url .= "return_path=$login_return_path";
- 
 
+
 if ( empty ( $session_not_found ) )
   $session_not_found = false;
 

Modified: trunk/plugins/old/webcalendar/www/includes/dbtable.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/dbtable.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/dbtable.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -71,7 +71,7 @@
     }
     $ret .= "<td style=\"vertical-align:top;\">";
     if ( empty ( $tablear[$i]["noneditable"] ) && ! empty ( $action ) ) {
-      if ( $tablear[$i]["type"] == "text" || 
+      if ( $tablear[$i]["type"] == "text" ||
         $tablear[$i]["type"] == "int" || $tablear[$i]["type"] == "float" ) {
         $ret .= "<input type=\"text\" name=\"" . $tablear[$i]["name"] .
           "\"";
@@ -129,8 +129,8 @@
     $ret .= "</td></tr>\n";
   }
   if ( ! empty ( $actionlabel ) )
-    $ret .= "<tr><td colspan=\"2\" style=\"text-align:center;\">\n" . 
-    	"<input type=\"submit\" value=\"" . htmlspecialchars ( $actionlabel ) . "\" />" . 
+    $ret .= "<tr><td colspan=\"2\" style=\"text-align:center;\">\n" .
+    	"<input type=\"submit\" value=\"" . htmlspecialchars ( $actionlabel ) . "\" />" .
 	"</td></tr></form>\n";
   $ret .= "</table>\n</td></tr></table>\n</td></tr></table>\n";
 
@@ -138,7 +138,7 @@
 }
 
 // Print rows of a table into an HTML table.  The first column will
-// include (optionally) href links to a page which can show further 
+// include (optionally) href links to a page which can show further
 // details.
 // $tablear - db table (defined in tables.php)
 // $tablename - db table name
@@ -439,7 +439,7 @@
     $sql .= " " . $tablear[$i]["name"] . " = ";
     if ( empty ( $valuesar[$i] ) ) {
       $sql .= "NULL";
-    } else if ( $tablear[$i]["type"] == "int" || 
+    } else if ( $tablear[$i]["type"] == "int" ||
       $tablear[$i]["type"] == "date" ) {
       $sql .= $valuesar[$i];
     } else

Modified: trunk/plugins/old/webcalendar/www/includes/functions.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/functions.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/functions.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -202,10 +202,10 @@
 
 /**
  * Gets the value resulting from an HTTP POST method.
- * 
+ *
  * <b>Note:</b> The return value will be affected by the value of
  * <var>magic_quotes_gpc</var> in the php.ini file.
- * 
+ *
  * @param string $name Name used in the HTML form
  *
  * @return string The value used in the HTML form
@@ -441,7 +441,7 @@
  *
  * Do this by getting a list of all plugins that are not disabled by the
  * administrator and make sure this user has not disabled any of them.
- * 
+ *
  * It's done this was so that when an admin adds a new plugin, it shows up on
  * each users system automatically (until they disable it).
  *
@@ -1174,7 +1174,7 @@
 
   if ( empty ( $popup_fullnames ) )
     $popup_fullnames = array ();
-  
+
   if ( $user != $login ) {
     if ( empty ( $popup_fullnames[$user] ) ) {
       user_load_variables ( $user, "popuptemp_" );
@@ -1310,11 +1310,11 @@
     echo "<caption>$thisday</caption>\n";
     echo "<thead>\n";
     echo "<tr class=\"monthnav\"><th colspan=\"7\">\n";
-    echo "<a title=\"" . 
+    echo "<a title=\"" .
  translate("Previous") . "\" class=\"prev\" href=\"day.php?" . $u_url  .
  "date=$month_ago$caturl\"><img src=\"leftarrowsmall.gif\" alt=\"" .
  translate("Previous") . "\" /></a>\n";
-    echo "<a title=\"" . 
+    echo "<a title=\"" .
  translate("Next") . "\" class=\"next\" href=\"day.php?" . $u_url .
  "date=$month_ahead$caturl\"><img src=\"rightarrowsmall.gif\" alt=\"" .
  translate("Next") . "\" /></a>\n";
@@ -1407,7 +1407,7 @@
         if ( date ( "Ymd", $date  ) == date ( "Ymd", $today ) ){
           echo " id=\"today\"";
         }
-        echo "><a href=\"day.php?" .$u_url  . "date=" .  $dateYmd . 
+        echo "><a href=\"day.php?" .$u_url  . "date=" .  $dateYmd .
           "\">";
         echo date ( "d", $date ) . "</a></td>\n";
         } else {
@@ -1444,7 +1444,7 @@
   $pri, $access, $event_owner, $event_cat=-1 ) {
   global $eventinfo, $login, $user, $PHP_SELF, $TZ_OFFSET;
   static $key = 0;
-  
+
   global $layers;
 
   if ( $login != $event_owner && strlen ( $event_owner ) ) {
@@ -1463,11 +1463,11 @@
   if ( $pri == 3 ) echo "<strong>";
   $popupid = "eventinfo-$id-$key";
   $key++;
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("View this entry") . "\" class=\"$class\" href=\"view_entry.php?id=$id&date=$date";
   if ( strlen ( $user ) > 0 )
     echo "&user=" . $user;
-  echo "\" onmouseover=\"window.status='" . 
+  echo "\" onmouseover=\"window.status='" .
     translate("View this entry") .
     "'; show(event, '$popupid'); return true;\" onmouseout=\"window.status=''; hide('$popupid'); return true;\">";
   $icon = "circle.gif";
@@ -1479,11 +1479,11 @@
   }
 
   if ( empty ( $catIcon ) ) {
-    echo "<img src=\"$icon\" class=\"bullet\" alt=\"" . 
+    echo "<img src=\"$icon\" class=\"bullet\" alt=\"" .
       translate("View this entry") . "\" />";
   } else {
     // Use category icon
-    echo "<img src=\"$catIcon\" alt=\"" . 
+    echo "<img src=\"$catIcon\" alt=\"" .
       translate("View this entry") . "\" /><br />";
   }
 
@@ -1548,7 +1548,7 @@
       $description, $timestr, site_extras_for_popup ( $id ) );
 }
 
-/** 
+/**
  * Gets any site-specific fields for an entry that are stored in the database in the webcal_site_extras table.
  *
  * @param int $eventid Event ID
@@ -1817,7 +1817,7 @@
   $sql .= " ORDER BY webcal_entry.cal_time, webcal_entry.cal_id";
 
   //echo "<strong>SQL:</strong> $sql<br />\n";
-  
+
   $res = dbi_query ( $sql );
   if ( $res ) {
     $i = 0;
@@ -2269,7 +2269,7 @@
 
 /**
  * Converts a date to a timestamp.
- * 
+ *
  * @param string $d Date in YYYYMMDD format
  *
  * @return int Timestamp representing 3:00 (or 4:00 if during Daylight Saving
@@ -2327,7 +2327,7 @@
   return $newdate;
 }
 
-/** 
+/**
  * Gets the Monday of the week that the specified date is in.
  *
  * If the date specified is a Monday, then that date is returned.
@@ -2351,7 +2351,7 @@
 
 /**
  * Returns the week number for specified date.
- * 
+ *
  * Depends on week numbering settings.
  *
  * @param int $date Date in UNIX timestamp format
@@ -2383,18 +2383,18 @@
  */
 function icon_text ( $id, $can_edit, $can_delete ) {
   global $readonly, $is_admin;
-  $ret = "<a title=\"" . 
-  translate("View this entry") . "\" href=\"view_entry.php?id=$id\"><img src=\"view.gif\" alt=\"" . 
+  $ret = "<a title=\"" .
+  translate("View this entry") . "\" href=\"view_entry.php?id=$id\"><img src=\"view.gif\" alt=\"" .
   translate("View this entry") . "\" style=\"border-width:0px; width:10px; height:10px;\" /></a>";
   if ( $can_edit && $readonly == "N" )
-    $ret .= "<a title=\"" . 
-  translate("Edit entry") . "\" href=\"edit_entry.php?id=$id\"><img src=\"edit.gif\" alt=\"" . 
+    $ret .= "<a title=\"" .
+  translate("Edit entry") . "\" href=\"edit_entry.php?id=$id\"><img src=\"edit.gif\" alt=\"" .
   translate("Edit entry") . "\" style=\"border-width:0px; width:10px; height:10px;\" /></a>";
   if ( $can_delete && ( $readonly == "N" || $is_admin ) )
-    $ret .= "<a title=\"" . 
+    $ret .= "<a title=\"" .
       translate("Delete entry") . "\" href=\"del_entry.php?id=$id\" onclick=\"return confirm('" .
-  translate("Are you sure you want to delete this entry?") . "\\n\\n" . 
-  translate("This will delete this entry for all users.") . "');\"><img src=\"delete.gif\" alt=\"" . 
+  translate("Are you sure you want to delete this entry?") . "\\n\\n" .
+  translate("This will delete this entry for all users.") . "');\"><img src=\"delete.gif\" alt=\"" .
   translate("Delete entry") . "\" style=\"border-width:0px; width:10px; height:10px;\" /></a>";
   return $ret;
 }
@@ -2461,7 +2461,7 @@
     print "<br />\n";
     $cnt++;
   }
-  
+
   // get all the repeating events for this date and store in array $rep
   $rep = get_repeating_entries ( $user, $date, $get_unapproved );
   $cur_rep = 0;
@@ -2575,7 +2575,7 @@
  * Limits on number of appointments: if enabled in System Settings
  * (<var>$limit_appts</var> global variable), too many appointments can also
  * generate a scheduling conflict.
- * 
+ *
  * @todo Update this to handle exceptions to repeating events
  *
  * @param array  $dates        Array of dates in YYYYMMDD format that is
@@ -2688,7 +2688,7 @@
   } else {
     echo translate("Database error") . ": " . dbi_error (); exit;
   }
-  
+
   //echo "<br />\nhello";
   for ($q=0;$q<count($participants);$q++) {
     $time1 = sprintf ( "%d%02d00", $hour, $minute );
@@ -2714,7 +2714,7 @@
         //okay we've narrowed it down to a day, now I just gotta check the time...
         //I hope this is right...
         $row = $list[$j];
-        if ( $row['cal_id'] != $id && ( empty ( $row['cal_ext_for_id'] ) || 
+        if ( $row['cal_id'] != $id && ( empty ( $row['cal_ext_for_id'] ) ||
           $row['cal_ext_for_id'] != $id ) ) {
           $time2 = $row['cal_time'];
           $duration2 = $row['cal_duration'];
@@ -2742,7 +2742,7 @@
       }
     }
   }
-   
+
   return $conflicts;
 }
 
@@ -2822,13 +2822,13 @@
     $u_url = "user=$user&";
   if ( isset ( $hour ) && $hour != NULL )
     $hour += $TZ_OFFSET;
-  return "<a title=\"" . 
+  return "<a title=\"" .
  translate("New Entry") . "\" href=\"edit_entry.php?" . $u_url .
     "date=$date" . ( isset ( $hour ) && $hour != NULL && $hour >= 0 ? "&hour=$hour" : ""  ) .
     ( $minute > 0 ? "&minute=$minute" : "" ) .
     ( empty ( $user ) ? "" :  "&defusers=$user" ) .
     ( empty ( $cat_id ) ? "" :  "&cat_id=$cat_id" ) .
-    "\"><img src=\"new.gif\" class=\"new\" alt=\"" . 
+    "\"><img src=\"new.gif\" class=\"new\" alt=\"" .
  translate("New Entry") . "\" /></a>\n";
 }
 
@@ -2861,7 +2861,7 @@
 
   $popupid = "eventinfo-day-$id-$key";
   $key++;
-  
+
   // Figure out which time slot it goes in.
   if ( $time >= 0 && $duration != ( 24 * 60 ) ) {
     $ind = calc_time_slot ( $time );
@@ -2894,7 +2894,7 @@
     $hour_arr[$ind] .= "<img src=\"$catIcon\" alt=\"$catIcon\" />";
   }
 
-  $hour_arr[$ind] .= "<a title=\"" . 
+  $hour_arr[$ind] .= "<a title=\"" .
   translate("View this entry") . "\" class=\"$class\" href=\"view_entry.php?id=$id&date=$date";
   if ( strlen ( $GLOBALS["user"] ) > 0 )
     $hour_arr[$ind] .= "&user=" . $GLOBALS["user"];
@@ -3053,7 +3053,7 @@
   }
   // if we are looking at a view, then always use "entry"
   if ( strstr ( $PHP_SELF, "view_m.php" ) ||
-    strstr ( $PHP_SELF, "view_w.php" )  || 
+    strstr ( $PHP_SELF, "view_w.php" )  ||
     strstr ( $PHP_SELF, "view_v.php" ) ||
     strstr ( $PHP_SELF, "view_t.php" ) )
     $class = "entry";
@@ -3178,7 +3178,7 @@
 
   // $interval is number of minutes per slot
   $interval = ( 24 * 60 ) / $TIME_SLOTS;
-    
+
   $rowspan_arr = array ();
   for ( $i = 0; $i < $TIME_SLOTS; $i++ ) {
     $rowspan_arr[$i] = 0;
@@ -3287,7 +3287,7 @@
         // this will move entries apart that appear in one field,
         // yet start on different hours
         for ( $u = $diff_start_time ; $u > 0 ; $u-- ) {
-          $hour_arr[$last_row] .= "<br />\n"; 
+          $hour_arr[$last_row] .= "<br />\n";
         }
         $hour_arr[$last_row] .= $hour_arr[$i];
         $hour_arr[$i] = "";
@@ -3441,7 +3441,7 @@
   if ( ! $ignore_offset )
     $hour += $TZ_OFFSET;
   $min = abs( ( $time / 100 ) % 100 );
-  //Prevent goofy times like 8:00 9:30 9:00 10:30 10:00 
+  //Prevent goofy times like 8:00 9:30 9:00 10:30 10:00
   if ( $time < 0 && $min > 0 ) $hour = $hour - 1;
   while ( $hour < 0 )
     $hour += 24;
@@ -3677,7 +3677,7 @@
  * the username in plain text.
  *
  * @param string $instr A hex-encoded string. "Hello" would be "678ea786a5".
- * 
+ *
  * @return string The decoded string
  *
  * @global array Array of offsets
@@ -3786,7 +3786,7 @@
   global $categories_enabled, $is_admin;
 
   $cat_owner =  ( ( ! empty ( $user ) && strlen ( $user ) ) &&  ( $is_assistant  ||
-    $is_admin ) ) ? $user : $login;  
+    $is_admin ) ) ? $user : $login;
   $categories = array ();
   $category_owners = array ();
   if ( $categories_enabled == "Y" ) {
@@ -3900,7 +3900,7 @@
  *
  * @param string $assistant Login of potential assistant
  * @param string $boss      Login of potential boss
- * 
+ *
  * @return bool True or false
  */
 function user_is_assistant ( $assistant, $boss ) {
@@ -3908,7 +3908,7 @@
 
   if ( empty ( $boss ) )
     return false;
-  $res = dbi_query ( "SELECT * FROM webcal_asst " . 
+  $res = dbi_query ( "SELECT * FROM webcal_asst " .
      "WHERE cal_assistant = '$assistant' AND cal_boss = '$boss'" );
   if ( $res ) {
     if ( dbi_fetch_row ( $res ) )
@@ -3977,7 +3977,7 @@
  *
  * @ignore
  */
-function fake_mail ( $mailto, $subj, $text, $hdrs ) { 
+function fake_mail ( $mailto, $subj, $text, $hdrs ) {
   echo "To: $mailto <br />\n" .
     "Subject: $subj <br />\n" .
     nl2br ( $hdrs ) . "<br />\n" .
@@ -4007,7 +4007,7 @@
   $year = substr ( $date, 0, 4 );
   $month = substr ( $date, 4, 2 );
   $day = substr ( $date, 6, 2 );
- 
+
   $dateu = mktime ( 3, 0, 0, $month, $day, $year );
 
   $can_add = ( $readonly == "N" || $is_admin );
@@ -4120,7 +4120,7 @@
   if ($ev_duration > 20)   { $pos = 1; }
    elseif ($ev_padding > 20)   { $pos = 2; }
    else        { $pos = 0; }
- 
+
   echo "\n<!-- ENTRY BAR -->\n<table class=\"entrycont\" cellpadding=\"0\" cellspacing=\"0\">\n";
    echo "<tr>\n";
    echo ($ev_start > 0 ?  "<td style=\"text-align:right;  width:$ev_start%;\">" : "" );
@@ -4152,7 +4152,7 @@
   echo "<a class=\"$class\" href=\"view_entry.php?id=$id&date=$date";
   if ( strlen ( $user ) > 0 )
     echo "&user=" . $user;
-  echo "\" onmouseover=\"window.status='" . 
+  echo "\" onmouseover=\"window.status='" .
     translate("View this entry") . "'; show(event, '$popupid'); return true;\" onmouseout=\"hide('$popupid'); return true;\">";
 
   if ( $login != $event_owner && strlen ( $event_owner ) ) {
@@ -4247,7 +4247,7 @@
 //   $width = 100 - $offset;
 //   echo "<td style=\"width:$width%;\"> </td>\n";
    echo "</tr>\n</table>\n<!-- /TIMEBAR -->\n";
- 
+
    // print yardstick
   echo "\n<!-- YARDSTICK -->\n<table class=\"yardstick\">\n<tr>\n";
   $width = round(100/($end_hour - $start_hour));
@@ -4547,7 +4547,7 @@
  *
  * @return string The converted text
  */
-function clean_word($data) { 
+function clean_word($data) {
   return preg_replace("/\W/", '', $data);
 }
 
@@ -4558,7 +4558,7 @@
  *
  * @return string The converted text
  */
-function clean_int($data) { 
+function clean_int($data) {
   return preg_replace("/\D/", '', $data);
 }
 
@@ -4566,10 +4566,10 @@
  * Removes whitespace from the specified text.
  *
  * @param string $data Input text
- * 
+ *
  * @return string The converted text
  */
-function clean_whitespace($data) { 
+function clean_whitespace($data) {
   return preg_replace("/\s/", '', $data);
 }
 
@@ -4681,7 +4681,7 @@
 
       $hour = substr($E['cal_time'], 0, 2 );
       $mins = substr($E['cal_time'], 2, 2 );
-       
+
       // Timezone Offset
       if ( ! $ignore_offset ) $hour += $TZ_OFFSET;
       while ( $hour < 0 ) $hour += 24;
@@ -4777,7 +4777,7 @@
     if ($participants[$i] != '_all_') {
       // Load full name of user
       user_load_variables ( $participants[$i], "user_" );
-  
+
       // exchange space for   to keep from breaking
       $user_nospace = preg_replace ( '/\s/', ' ', $user_fullname );
     } else {
@@ -4816,11 +4816,11 @@
          $col++;
       }
     }
-    
+
     echo "</tr><tr>\n<td class=\"matrix\" colspan=\"$cols\">" .
       "<img src=\"pix.gif\" alt=\"-\" /></td></tr>\n";
   } // End foreach participant
-  
+
   echo "</table><br />\n";
   $busy = translate ("Busy");
   $tentative = translate ("Tentative");
@@ -4828,7 +4828,7 @@
   echo "<img src=\"pix.gif\" title=\"$busy\" alt=\"$busy\" /> $busy      \n";
   echo "<img src=\"pixb.gif\" title=\"$tentative\" alt=\"$tentative\" /> $tentative\n";
   echo "</td></tr></table>\n";
-} 
+}
 
 /**
  * Return the time in HHMMSS format of input time + duration

Modified: trunk/plugins/old/webcalendar/www/includes/index.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 echo '<?xml version="1.0" encoding="utf-8"?>';
 ?>
 <!DOCTYPE html

Modified: trunk/plugins/old/webcalendar/www/includes/init.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -69,7 +69,7 @@
 
 // Unset some variables that shouldn't be set
 unset($user_inc);
- 
+
 include_once 'includes/config.php';
 include_once 'includes/php-dbi.php';
 include_once 'includes/functions.php';
@@ -99,7 +99,7 @@
 
 // Load if $SCRIPT is in $special array:
 if ($DMW) {
-  
+
   // Tell the browser not to cache
   send_no_cache_header ();
 
@@ -124,8 +124,8 @@
     }
     for ( $i = 0; $i < count ( $userlist ); $i++ ) {
       if ( $user == $userlist[$i]['cal_login'] ) $valid_user = true;
-    } 
-    if ($valid_user == false) { 
+    }
+    if ($valid_user == false) {
       $user = ""; // security precaution
     }
   }
@@ -313,8 +313,8 @@
 
   // Include includes/print_styles.css as a media="print" stylesheet. When the
   // user clicks on the "Printer Friendly" link, $friendly will be non-empty,
-  // including this as a normal stylesheet so they can see how it will look 
-  // when printed. This maintains backwards-compatibility for browsers that 
+  // including this as a normal stylesheet so they can see how it will look
+  // when printed. This maintains backwards-compatibility for browsers that
   // don't support media="print" stylesheets
   echo "<link rel=\"stylesheet\" type=\"text/css\"" . ( empty ( $friendly ) ? " media=\"print\"" : "" ) . " href=\"includes/print_styles.css\" />\n";
 
@@ -370,7 +370,7 @@
     $is_nonuser_admin, $public_access_others, $allow_view_other,
     $views, $reports_enabled, $LAYER_STATUS, $nonuser_enabled,
     $groups_enabled, $fullname, $has_boss;
-  
+
   if ( $include_nav_links ) {
     include_once "includes/trailer.php";
   }

Modified: trunk/plugins/old/webcalendar/www/includes/js/availability.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/js/availability.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/js/availability.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -15,7 +15,7 @@
 NS4 = (document.layers) ? 1 : 0;
 IE4 = (document.all) ? 1 : 0;
 // W3C stands for the W3C standard, implemented in Mozilla (and Netscape 6) and IE5
-W3C = (document.getElementById) ? 1 : 0;	
+W3C = (document.getElementById) ? 1 : 0;
 //Function is similar to visible.php, but effects the parent
 function makeVisible ( name ) {
   var ele;

Modified: trunk/plugins/old/webcalendar/www/includes/js/edit_entry.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/js/edit_entry.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/js/edit_entry.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -121,7 +121,7 @@
   var colorWindow = window.open(url,"DateSelection","width=300,height=200,"  + MyPosition);
 }
 
-<?php if ( $groups_enabled == "Y" ) { 
+<?php if ( $groups_enabled == "Y" ) {
 ?>function selectUsers () {
   // find id of user selection object
   var listid = 0;
@@ -146,10 +146,10 @@
 }
 <?php } ?>
 
-<?php	// This function is called when the event type combo box 
+<?php	// This function is called when the event type combo box
 	// is changed. If the user selectes "untimed event" or "all day event",
 	// the times & duration fields are hidden.
-	// If they change their mind & switch it back, the original 
+	// If they change their mind & switch it back, the original
 	// values are restored for them
 ?>function timetype_handler () {
   var i = document.editentryform.timetype.selectedIndex;
@@ -240,9 +240,9 @@
     return false;
   }
   var features = 'width='+ w +',height='+ h +',resizable=yes,scrollbars=no';
-  var url = 'availability.php?users=' + users + 
-           '&year='  + myForm.year.value + 
-           '&month=' + myForm.month.value + 
+  var url = 'availability.php?users=' + users +
+           '&year='  + myForm.year.value +
+           '&month=' + myForm.month.value +
            '&day='   + myForm.day.options[myForm.day.selectedIndex].text;
 
   if (sch_win != null && !sch_win.closed) {

Modified: trunk/plugins/old/webcalendar/www/includes/js/export.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/js/export.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/js/export.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -15,7 +15,7 @@
     mX = evt.pageX + 40;
     mY = evt.pageY +130;
   }
-	var MyPosition = 'scrollbars=no,toolbar=no,left=' + mX + ',top=' + mY + ',screenx=' + mX + ',screeny=' + mY ;	
+	var MyPosition = 'scrollbars=no,toolbar=no,left=' + mX + ',top=' + mY + ',screenx=' + mX + ',screeny=' + mY ;
 		if ( curmonth < 10 )
     date += "0";
   date += curmonth;

Modified: trunk/plugins/old/webcalendar/www/includes/js/popups.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/js/popups.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/js/popups.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -65,7 +65,7 @@
    scrollX=(typeof window.pageXOffset == "number")? window.pageXOffset:(document.documentElement && document.documentElement.scrollLeft)?document.documentElement.scrollLeft:(document.body && document.body.scrollLeft)?document.body.scrollLeft:window.scrollX;
    scrollY=(typeof window.pageYOffset == "number")? window.pageYOffset:(document.documentElement && document.documentElement.scrollTop)?document.documentElement.scrollTop:(document.body && document.body.scrollTop)?document.body.scrollTop:window.scrollY;
    popupW = document.getElementById(name).offsetWidth;
-   popupH = document.getElementById(name).offsetHeight;   
+   popupH = document.getElementById(name).offsetHeight;
 
    showtip(evt);
   }
@@ -75,17 +75,17 @@
   e = e? e: window.event;
   if(idiv) {
     if(e)   {
-      x=e.pageX?e.pageX:e.clientX?e.clientX + scrollX:0; 
+      x=e.pageX?e.pageX:e.clientX?e.clientX + scrollX:0;
       y=e.pageY?e.pageY:e.clientY?e.clientY + scrollY:0;
     }
     else {
       x=0; y=0;
     }
     // MAke sure we don't go off screen
-    if ( popupW > maxwidth ) { 
+    if ( popupW > maxwidth ) {
       popupW = maxwidth;
       idiv.width = maxwidth + px;
-    }  
+    }
     idiv.left=(((x + popupW + xoffset)>winW)?x - popupW - xoffset:x + xoffset)+px;
     if ((popupH + yoffset)>winH) {
       idiv.top= yoffset + px;

Modified: trunk/plugins/old/webcalendar/www/includes/js/visible.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/js/visible.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/js/visible.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -10,7 +10,7 @@
 NS4 = (document.layers) ? 1 : 0;
 IE4 = (document.all) ? 1 : 0;
 // W3C stands for the W3C standard, implemented in Mozilla (and Netscape 6) and IE5
-W3C = (document.getElementById) ? 1 : 0;	
+W3C = (document.getElementById) ? 1 : 0;
 
 function makeVisible ( name ) {
   var ele;

Modified: trunk/plugins/old/webcalendar/www/includes/js.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/js.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/js.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 NS4 = (document.layers) ? 1 : 0;
 IE4 = (document.all) ? 1 : 0;
-W3C = (document.getElementById) ? 1 : 0;	
+W3C = (document.getElementById) ? 1 : 0;
 <?php // W3C stands for the W3C standard, implemented in Mozilla (and Netscape 6) and IE5
 
 // Function show(evt, name)

Modified: trunk/plugins/old/webcalendar/www/includes/php-dbi.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/php-dbi.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/php-dbi.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -88,7 +88,7 @@
  * @param string $login    Database login
  * @param string $password Database login password
  * @param string $database Name of database
- * 
+ *
  * @return resource The connection
  */
 function dbi_connect ( $host, $login, $password, $database ) {

Modified: trunk/plugins/old/webcalendar/www/includes/site_extras.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/site_extras.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/site_extras.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -10,7 +10,7 @@
  * Page Description:
  *	This file can be used to define extra information associated with a
  *	calender entry.
- *	
+ *
  *	You may define extra fields of the following types:
  *	  EXTRA_TEXT - will allow user to enter a line of text
  *	  EXTRA_MULTILINETEXT - will allow user to enter multiple lines of text
@@ -26,12 +26,12 @@
  *	    extra options to send it out before this date also.
  *	  EXTRA_SELECTION_LIST - allows a custom selection list.  Can use
  *	    this to specify a list of possible locations, etc.
- *	
+ *
  * Comments:
  *	If you want to fully support using languages other than what
  *	you define below, you will need to add the 2nd field of the arrays
  *	below to the translation files.
- *	
+ *
  * WARNING:
  *	If you want to use reminders, you will need to do some
  *	extra steps in setting up WebCalendar.  There is no built-in support

Modified: trunk/plugins/old/webcalendar/www/includes/styles.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/styles.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/styles.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -7,7 +7,7 @@
     die ( "You can't access this file directly!" );
 }
 ?>
-<?php /* 
+<?php /*
 
                    HOW TO READ THIS DOCUMENT
 
@@ -24,7 +24,7 @@
   In the example above, there is only one declaraion ("color: red;")
   For that declaration, the PROPERTY is "color" and the VALUE is "red"
 
-  NOTE: Each property must be followed by a colon (:), 
+  NOTE: Each property must be followed by a colon (:),
     and each value must be followed by a semi-colon (;)
 
   Each selector can contain multiple declarations
@@ -75,11 +75,11 @@
 
   The following sections appear below:
     Section A - basic, required elements that affect WebCalendar as a whole
-    Section B - more specific to select areas of WebCalendar, yet still 
+    Section B - more specific to select areas of WebCalendar, yet still
       affects many areas of WebCalendar
-    Section C - classes specific to certain pages, but that affect either 
+    Section C - classes specific to certain pages, but that affect either
       the page as a whole, or large areas within that page
-    Section D - the "nitty gritty" of classes. Used specifically for 
+    Section D - the "nitty gritty" of classes. Used specifically for
       fine-tuning elements within a specific page
 */
 
@@ -91,8 +91,8 @@
   background-color: <?php echo $GLOBALS['BGCOLOR']; ?>;
 }
 <?php //links that don't have a specific class
-//NOTE: these must appear ABOVE the 'printer' & all other 
-//link-related classes for those classes to work 
+//NOTE: these must appear ABOVE the 'printer' & all other
+//link-related classes for those classes to work
 ?>a {
   color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
   text-decoration: none;
@@ -160,7 +160,7 @@
 .sample {
   border-style: groove;
 }
-<?php //week number in monthview & such 
+<?php //week number in monthview & such
 ?>.weeknumber,
 .weeknumber a {
   font-size: 10px;
@@ -173,7 +173,7 @@
   width: 15px;
   height: 15px;
 }
-<?php //display:none; is unhidden by includes/print_styles.css for printer-friendly pages 
+<?php //display:none; is unhidden by includes/print_styles.css for printer-friendly pages
 ?>#cat {
   display: none;
   font-size: 18px;
@@ -222,7 +222,7 @@
   margin-top: 10px;
   font-size: 10px;
 }
-<?php //printer-friendly links 
+<?php //printer-friendly links
 ?>.printer {
   font-size: 14px;
   color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
@@ -362,7 +362,7 @@
 .matrixd {
   border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
   border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
-  margin-left: auto; 
+  margin-left: auto;
   margin-right: auto;
 }
 .matrixlegend {
@@ -370,7 +370,7 @@
   padding: 5px;
   text-align: center;
   background: #ffffff;
-  margin-left: auto; 
+  margin-left: auto;
   margin-right: auto;
   border: 1px solid #000000;
 }
@@ -446,7 +446,7 @@
   color: <?php echo $GLOBALS['H2COLOR']; ?>;
   text-align: center;
 }
-<?php //left column in help sections 
+<?php //left column in help sections
 ?>.help {
   vertical-align: top;
   font-weight: bold;
@@ -456,7 +456,7 @@
   border-width: 0px;
   cursor: help;
 }
-<?php //standard table appearing mainly in prefs.php & admin.php 
+<?php //standard table appearing mainly in prefs.php & admin.php
 ?>.standard {
   border: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
   background-color: <?php echo $GLOBALS['CELLBG']; ?>;
@@ -484,7 +484,7 @@
   color: #0000FF;
 }
 <?php //formats the day name (i.e. Sun, Mon, etc) in minicals
-?>.minical th, 
+?>.minical th,
 .minical td.empty {
   color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
   text-align: center;
@@ -631,7 +631,7 @@
   font-size: 13px;
   color: <?php echo $GLOBALS['THFG']; ?>;
   background-color: <?php echo $GLOBALS['THBG']; ?>;
-}  
+}
 #viewv .main th,
 #viewl .main th,
 #month .main th {

Modified: trunk/plugins/old/webcalendar/www/includes/trailer.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/trailer.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/trailer.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -86,7 +86,7 @@
   $d_time = mktime ( 3, 0, 0, $m, $d, $y );
   $thisdate = date ( "Ymd", $d_time );
   $wday = date ( "w", $d_time );
-  // $WEEK_START equals 1 or 0 
+  // $WEEK_START equals 1 or 0
   $wkstart = mktime ( 3, 0, 0, $m, $d - ( $wday - $WEEK_START ), $y );
 
   for ( $i = -7; $i <= 7; $i++ ) {
@@ -179,16 +179,16 @@
 
 if ( $single_user != "Y" ) {
   if ( ! empty ( $user ) && $user != $login ) {
-   /* $goto_link[] = "<a title=\"" . 
+   /* $goto_link[] = "<a title=\"" .
       translate("My Calendar") . "\" style=\"font-weight:bold;\" " .
-      "href=\"$mycal\">" . 
+      "href=\"$mycal\">" .
       translate("Back to My Calendar") . "</a>";
       */
   } else {
   	/*
-    $goto_link[] = "<a title=\"" . 
+    $goto_link[] = "<a title=\"" .
       translate("My Calendar") . "\" style=\"font-weight:bold;\" " .
-      "href=\"$mycal\">" . 
+      "href=\"$mycal\">" .
       translate("My Calendar") . "</a>";
       */
   }
@@ -196,15 +196,15 @@
     $todayURL .= '?user=' . $user;
   }
   /*
-  $goto_link[] = "<a title=\"" . 
+  $goto_link[] = "<a title=\"" .
     translate("Today") . "\" style=\"font-weight:bold;\" " .
-    "href=\"$todayURL\">" . 
+    "href=\"$todayURL\">" .
     translate("Today") . "</a>";
     */
   if ( $login != '__public__' && $readonly == 'N' ) {
-    $goto_link[] = "<a title=\"" . 
+    $goto_link[] = "<a title=\"" .
       translate("Admin") . "\" style=\"font-weight:bold;\" " .
-      "href=\"adminhome.php\">" . 
+      "href=\"adminhome.php\">" .
       translate("Admin") . "</a>";
   }
   if ( $login != "__public__" && $readonly == "N" &&
@@ -213,50 +213,50 @@
     if ($is_nonuser_admin) {
       $url .= "?user=$user";
     }
-    $goto_link[] = "<a title=\"" . 
-      translate("Unapproved Events") . "\" href=\"$url\">" . 
+    $goto_link[] = "<a title=\"" .
+      translate("Unapproved Events") . "\" href=\"$url\">" .
       translate("Unapproved Events") . "</a>";
   }
   if ( $login == "__public__" && $public_access_others != "Y" ) {
     // don't allow them to see other people's calendar
   } else if ( $allow_view_other == "Y" || $is_admin ) {
    /*
-    $goto_link[] = "<a title=\"" . 
-    translate("Another User's Calendar") . "\" href=\"select_user.php\">" . 
+    $goto_link[] = "<a title=\"" .
+    translate("Another User's Calendar") . "\" href=\"select_user.php\">" .
     translate("Another User's Calendar") . "</a>";
-      */ 
-  } 
+      */
+  }
 } else {
-  $goto_link[] = "<a title=\"" . 
+  $goto_link[] = "<a title=\"" .
     translate("My Calendar") . "\" style=\"font-weight:bold;\" " .
-    "href=\"$mycal\">" . 
+    "href=\"$mycal\">" .
     translate("My Calendar") . "</a>";
-  $goto_link[] = "<a title=\"" . 
+  $goto_link[] = "<a title=\"" .
     translate("Today") . "\" style=\"font-weight:bold;\" " .
-    "href=\"$todayURL\">" . 
+    "href=\"$todayURL\">" .
     translate("Today") . "</a>";
   if ( $readonly == 'N' ) {
-    $goto_link[] = "<a title=\"" . 
+    $goto_link[] = "<a title=\"" .
       translate("Admin") . "\" style=\"font-weight:bold;\" " .
-      "href=\"adminhome.php\">" . 
+      "href=\"adminhome.php\">" .
       translate("Admin") . "</a>";
   }
 }
 // only display some links if we're viewing our own calendar.
 if ( empty ( $user ) || $user == $login ) {
-  $goto_link[] = "<a title=\"" . 
+  $goto_link[] = "<a title=\"" .
     translate("Search") . "\" href=\"search.php\">" .
     translate("Search") . "</a>";
   if ( $login != '__public__' ) {
-    $goto_link[] = "<a title=\"" . 
-      translate("Import") . "\" href=\"import.php\">" . 
+    $goto_link[] = "<a title=\"" .
+      translate("Import") . "\" href=\"import.php\">" .
       translate("Import") . "</a>";
-    $goto_link[] = "<a title=\"" . 
-      translate("Export") . "\" href=\"export.php\">" . 
+    $goto_link[] = "<a title=\"" .
+      translate("Export") . "\" href=\"export.php\">" .
       translate("Export") . "</a>";
   }
   if ( $can_add ) {
-    $url = "<a title=\"" . 
+    $url = "<a title=\"" .
       translate("Add New Entry") . "\" href=\"edit_entry.php";
     if ( ! empty ( $thisyear ) ) {
       $url .= "?year=$thisyear";
@@ -273,12 +273,12 @@
 }
 if ( $login != '__public__' ) {
 	/*
-  $goto_link[] = "<a title=\"" . 
+  $goto_link[] = "<a title=\"" .
     translate("Help") . "\" href=\"#\" onclick=\"window.open " .
     "( 'help_index.php', 'cal_help', 'dependent,menubar,scrollbars, " .
     "height=400,width=400,innerHeight=420,outerWidth=420' );\"  " .
-    "onmouseover=\"window.status='" . 
-    translate("Help") . "'\">" . 
+    "onmouseover=\"window.status='" .
+    translate("Help") . "'\">" .
     translate("Help") . "</a>";
     */
 }
@@ -335,9 +335,9 @@
     "ORDER BY cal_report_id" );
   if ( $res ) {
     while ( $row = dbi_fetch_row ( $res ) ) {
-      $reports_link[] = "<a title=\"" . 
-        htmlspecialchars ( $row[0] ) . 
-        "\" href=\"report.php?report_id=$row[1]$u_url\">" . 
+      $reports_link[] = "<a title=\"" .
+        htmlspecialchars ( $row[0] ) .
+        "\" href=\"report.php?report_id=$row[1]$u_url\">" .
         htmlspecialchars ( $row[0] ) . "</a>";
     }
     dbi_free_result ( $res );
@@ -364,28 +364,28 @@
   $login_url = "login.php?return_path=$login_return_path";
 
   // Should we use another application's login/logout pages?
-  if ( substr ( $GLOBALS['user_inc'], 0, 9 ) == 'user-app-' ) {  
+  if ( substr ( $GLOBALS['user_inc'], 0, 9 ) == 'user-app-' ) {
     if ( strlen ( $login ) && $login != "__public__" ) {
       $login_url = $GLOBALS['app_logout_page'];
     } else {
       if ($login_return_path != '' && $GLOBALS['app_redir_param'] != '') {
         $GLOBALS['app_login_page'] .= '?'. $GLOBALS['app_redir_param'] .
           '=' . $login_return_path;
-      } 
+      }
       $login_url = $GLOBALS['app_login_page'];
     }
-  }  
+  }
     /*
  if ( strlen ( $login ) && $login != "__public__" ) {
   echo "<span class=\"prefix\">" .
-   translate("Current User") . ":</span> $fullname (<a title=\"" . 
-   translate("Logout") . "\" href=\"$login_url\">" . 
+   translate("Current User") . ":</span> $fullname (<a title=\"" .
+   translate("Logout") . "\" href=\"$login_url\">" .
    translate("Logout") . "</a>)\n";
  } else {
   echo "<span class=\"prefix\">" .
-   translate("Current User") . ":</span> " . 
-   translate("Public Access") . " (<a title=\"" . 
-   translate("Login") . "\" href=\"$login_url\">" . 
+   translate("Current User") . ":</span> " .
+   translate("Public Access") . " (<a title=\"" .
+   translate("Login") . "\" href=\"$login_url\">" .
    translate("Login") . "</a>)\n";
  }
  */

Modified: trunk/plugins/old/webcalendar/www/includes/user-app-postnuke.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/user-app-postnuke.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/user-app-postnuke.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -48,18 +48,18 @@
 
 //------ General Application Settings ------//
 // What is the full URL to the login page (including http:// or https://)
-$app_login_page = 'http://www.mysite.com/postnuke/html/user.php?op=loginscreen&module=NS-User'; 
+$app_login_page = 'http://www.mysite.com/postnuke/html/user.php?op=loginscreen&module=NS-User';
 
 // Is there a parameter we can pass to tell the application to
 // redirect the user back to the calendar after login?
 $app_redir_param = 'url';  // postnuke uses 'url'
 
 // What is the full URL to the logout page (including http:// or https://)
-$app_logout_page = 'http://www.mysite.com/postnuke/html/user.php?module=NS-User&op=logout'; 
+$app_logout_page = 'http://www.mysite.com/postnuke/html/user.php?module=NS-User&op=logout';
 
 // Are the application's tables in the same database as webcalendar's?
 $app_same_db = '0';  // 1 = yes, 0 = no
- 
+
 // Only need configure the rest if $app_same_db != 1
 
  // Name of database containing the app's tables
@@ -85,10 +85,10 @@
 // returns: login id
 function user_logged_in() {
   global $pn_sid, $_COOKIE;
-  
+
   // First check to see if the user even has a session cookie
   if (empty($_COOKIE[$pn_sid])) return false;
-  
+
   // Check to see if the session is still valid
   if (! $login = pn_active_session($_COOKIE[$pn_sid]) ) return false;
 
@@ -99,8 +99,8 @@
 }
 
 
-//  Checks to see if the session has a user associated with it and 
-//  if the session is timed out 
+//  Checks to see if the session has a user associated with it and
+//  if the session is timed out
 //  returns: login id
 function pn_active_session($sid) {
   global $pn_user_table, $pn_session_table, $pn_settings_table;
@@ -140,7 +140,7 @@
 }
 
 
-//  Updates the session table to set the last access time to now 
+//  Updates the session table to set the last access time to now
 function pn_update_session($sid) {
   global $pn_session_table;
   global $app_host, $app_login, $app_pass, $app_db, $app_same_db;
@@ -243,12 +243,12 @@
   global $PUBLIC_ACCESS_FULLNAME, $NONUSER_PREFIX;
   global $app_host, $app_login, $app_pass, $app_db, $pn_user_table;
   global $c, $db_host, $db_login, $db_password, $db_database, $app_same_db;
-  
+
   if ($NONUSER_PREFIX && substr($login, 0, strlen($NONUSER_PREFIX) ) == $NONUSER_PREFIX) {
     nonuser_load_variables ( $login, $prefix );
     return true;
   }
-  
+
   if ( $login == "__public__" ) {
     $GLOBALS[$prefix . "login"] = $login;
     $GLOBALS[$prefix . "firstname"] = "";
@@ -262,7 +262,7 @@
 
   // if postnuke is in a separate db, we have to connect to it
   if ($app_same_db != '1') $c = dbi_connect($app_host, $app_login, $app_pass, $app_db);
-  
+
   $sql = "SELECT pn_uid, pn_name, pn_uname, pn_email FROM $pn_user_table WHERE pn_uname = '$login'";
 
   $res = dbi_query ( $sql );
@@ -291,14 +291,14 @@
 // Redirect the user to the application's login screen
 function app_login_screen($return_path = 'index.php') {
   global $app_login_page, $app_redir_param;
-  
+
   if ($return_path != '' && $app_redir_param != '') {
     if (strstr($app_login_page, '?')) {
       $app_login_page .= '&'.$app_redir_param.'='.$return_path;
     } else {
       $app_login_page .= '?'.$app_redir_param.'='.$return_path;
     }
-  } 
+  }
   header("Location: $app_login_page");
   exit;
 }

Modified: trunk/plugins/old/webcalendar/www/includes/user-ldap.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/user-ldap.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/user-ldap.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -34,12 +34,12 @@
 
 //------ LDAP General Server Settings ------//
 //
-// Name or address of the LDAP server 
+// Name or address of the LDAP server
 //  For SSL/TLS use 'ldaps://localhost'
-$ldap_server = 'localhost';          
+$ldap_server = 'localhost';
 
-// Port LDAP listens on (default 389)        
-$ldap_port = '389';                   
+// Port LDAP listens on (default 389)
+$ldap_port = '389';
 
 // Use TLS for the connection (not the same as ldaps://)
 $ldap_start_tls = false;
@@ -48,15 +48,15 @@
 $set_ldap_version = false;
 $ldap_version = '3'; // (usually 3)
 
-// base DN to search for users      
+// base DN to search for users
 $ldap_base_dn = 'ou=people,dc=company,dc=com';
 
-// The ldap attribute used to find a user (login). 
+// The ldap attribute used to find a user (login).
 // E.g., if you use cn,  your login might be "Jane Smith"
 //       if you use uid, your login might be "jsmith"
 $ldap_login_attr = 'uid';
 
-// Account used to bind to the server and search for information. 
+// Account used to bind to the server and search for information.
 // This user must have the correct rights to perform search.
 // If left empty the search will be made in anonymous.
 //
@@ -84,7 +84,7 @@
 
 // Attributes to fetch from LDAP and corresponding user variables in the
 // application. Do change according to your LDAP Schema
-$ldap_user_attr = array( 
+$ldap_user_attr = array(
   // LDAP attribute   //WebCalendar variable
   'uid',              //login
   'sn',               //lastname
@@ -100,7 +100,7 @@
 $ldap_admin_group_attr = strtolower($ldap_admin_group_attr);
 $ldap_admin_group_type = strtolower($ldap_admin_group_type);
 
-// Function to search the dn of a given user the error message will 
+// Function to search the dn of a given user the error message will
 // be placed in $error.
 // params:
 //   $login - user login
@@ -144,13 +144,13 @@
   $ret = false;
   $ds = @ldap_connect ( $ldap_server, $ldap_port );
   if ( $ds ) {
-    if ($set_ldap_version || $ldap_start_tls) 
+    if ($set_ldap_version || $ldap_start_tls)
       ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $ldap_version);
-  
+
     if ($ldap_start_tls) {
       if (!ldap_start_tls($ds)) {
         $error = 'Could not start TLS for LDAP connection';
-        return $ret;      
+        return $ret;
       }
     }
 
@@ -389,22 +389,22 @@
 // Tries to connect as $ldap_admin_dn if we set it.
 //  returns: bind result or false
 function connect_and_bind() {
-  global $ds, $error, $ldap_server, $ldap_port, $ldap_version; 
+  global $ds, $error, $ldap_server, $ldap_port, $ldap_version;
   global $ldap_admin_dn, $ldap_admin_pwd, $ldap_start_tls, $set_ldap_version;
 
   $ret = false;
   $ds = @ldap_connect ( $ldap_server, $ldap_port );
   if ( $ds ) {
-    if ($set_ldap_version || $ldap_start_tls) 
+    if ($set_ldap_version || $ldap_start_tls)
       ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $ldap_version);
-  
+
     if ($ldap_start_tls) {
       if (!ldap_start_tls($ds)) {
         $error = 'Could not start TLS for LDAP connection';
-        return $ret;      
+        return $ret;
       }
     }
-    
+
     if ( $ldap_admin_dn != '') {
       $r = @ldap_bind ( $ds, $ldap_admin_dn, $ldap_admin_pwd );
     } else {

Modified: trunk/plugins/old/webcalendar/www/includes/user-nis.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/user-nis.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/user-nis.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -106,7 +106,7 @@
     nonuser_load_variables ( $login, $prefix );
     return true;
   }
-  
+
   if ( $login == "__public__" ) {
     $GLOBALS[$prefix . "login"] = $login;
     $GLOBALS[$prefix . "firstname"] = "";

Modified: trunk/plugins/old/webcalendar/www/includes/user.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/user.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/user.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -49,7 +49,7 @@
         $error = translate ("Invalid login") . ": " .
           translate("incorrect password");
     } else {
-      $error = translate ("Invalid login"); 
+      $error = translate ("Invalid login");
       // Could be no such user or bad password
       // Check if user exists, so we can tell.
       $res2 = dbi_query ( "SELECT cal_login FROM webcal_user " .
@@ -127,7 +127,7 @@
     nonuser_load_variables ( $login, $prefix );
     return true;
   }
-  
+
   if ( $login == "__public__" ) {
     $GLOBALS[$prefix . "login"] = $login;
     $GLOBALS[$prefix . "firstname"] = "";

Modified: trunk/plugins/old/webcalendar/www/includes/validate.php
===================================================================
--- trunk/plugins/old/webcalendar/www/includes/validate.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/includes/validate.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -92,7 +92,7 @@
   } elseif ( substr($user_inc,0,9) == 'user-app-' ) {
     // Use another application's authentication
     if (! $login = user_logged_in()) app_login_screen(clean_whitespace($login_return_path));
-  
+
   } else {
     if ( ! empty ( $settings['session'] ) && $settings['session'] == 'php' ) {
       session_start ();

Modified: trunk/plugins/old/webcalendar/www/index.php
===================================================================
--- trunk/plugins/old/webcalendar/www/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,25 +13,25 @@
 //require_once ('plugins/webcalendar/config.php');
 
 // the header that displays for the user portion of the plugin
-function webcalendar_Project_Header($params) {                                                                                                                                         
-	global $DOCUMENT_ROOT,$HTML,$id;                                                                            
-	$params['toptab']='webcalendar'; 
+function webcalendar_Project_Header($params) {
+	global $DOCUMENT_ROOT,$HTML,$id;
+	$params['toptab']='webcalendar';
 	$params['group']=$id;
-	/*                                                                                                                                                              
-		Show horizontal links                                                                                                                                   
-	*/                                                                                                                                                              
-	site_project_header($params);														
+	/*
+		Show horizontal links
+	*/
+	site_project_header($params);
 }
 
 // the header that displays for the project portion of the plugin
 function webcalendar_User_Header($params) {
-	global $DOCUMENT_ROOT,$HTML,$user_id;                                                                            
-	$params['toptab']='webcalendar'; 
+	global $DOCUMENT_ROOT,$HTML,$user_id;
+	$params['toptab']='webcalendar';
 	$params['user']=$user_id;
-	/*                                                                                                                                                              
-	 Show horizontal links                                                                                                                                   
-	 */                                                                                                                                                              
-	site_user_header($params);    
+	/*
+	 Show horizontal links
+	 */
+	site_user_header($params);
 }
 
 /*
@@ -44,7 +44,7 @@
 	$type = getStringFromRequest('type');
 	$id = getStringFromRequest('id');
 	$pluginname = getStringFromRequest('pluginname');
-	
+
 	if (!$type) {
 		exit_error("Cannot Process your request","No TYPE specified"); // you can create items in Base.tab and customize this messages
 	} elseif (!$id) {
@@ -56,26 +56,26 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the webcalendar plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission ();//we'll check if the user belongs to the group (optional)
 			if ( !$userperm->IsMember()) {
 				exit_error("Access Denied", "You are not a member of this project");
 			}
 			// other perms checks here...
-			webcalendar_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+			webcalendar_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 			// DO THE STUFF FOR THE PROJECT PART HERE
 			echo "We are in the Project webcalendar plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
 		} elseif ($type == 'user') {
-			$realuser = user_get_object($id);// 
+			$realuser = user_get_object($id);//
 			if (!($realuser) || !($realuser->usesPlugin($pluginname))) {
 				exit_error("Error", "First activate the User's $pluginname plugin through Account Manteinance Page");
 			}
 			if ( (!$user) || ($user->getID() != $id)) { // if someone else tried to access the private webcalendar part of this user
 				exit_error("Access Denied", "You cannot access other user's personal $pluginname");
 			}
-			webcalendar_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));    
+			webcalendar_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));
 			// DO THE STUFF FOR THE USER PART HERE
 			echo "We are in the User webcalendar plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -85,7 +85,7 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the webcalendar plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission ();//we'll check if the user belongs to the group
 			if ( !$userperm->IsMember()) {
@@ -93,7 +93,7 @@
 			}
 			//only project admin can access here
 			if ( $userperm->isAdmin() ) {
-				webcalendar_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+				webcalendar_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 				// DO THE STUFF FOR THE PROJECT ADMINISTRATION PART HERE
 				echo "We are in the Project webcalendar plugin <font color=\"#ff0000\">ADMINISTRATION</font> <br>";
 				echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -101,8 +101,8 @@
 				exit_error("Access Denied", "You are not a project Admin");
 			}
 		}
-	}	 
-	
+	}
+
 */
 include_once $gfplugins.'webcalendar/www/includes/init.php';
 

Modified: trunk/plugins/old/webcalendar/www/index2.php
===================================================================
--- trunk/plugins/old/webcalendar/www/index2.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/index2.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -8,23 +8,23 @@
 
 if ($group_id > 5) { // add '> 5' if you won't a calendar for the admin groups
 	$g =& group_get_object($group_id);
-	if (!$g || !is_object($g) || $g->isError()) { 
+	if (!$g || !is_object($g) || $g->isError()) {
 		exit_no_group();
 	} else {
 	$user_id = user_getid() ;
 	$belong =  user_belongs_to_group($user_id,$group_id);
 		if($belong > 0){
-	?>	
-	<iframe src="<?php echo util_make_url('/plugins/webcalendar/login.php?type=group&group_id='.$group_id); ?>" border=no scrolling="yes" width="100%" height="700"></iframe>	
+	?>
+	<iframe src="<?php echo util_make_url('/plugins/webcalendar/login.php?type=group&group_id='.$group_id); ?>" border=no scrolling="yes" width="100%" height="700"></iframe>
 	<?php
 		} else {
-			print _('You are not allowed to see this calendar.');	
-		}	
+			print _('You are not allowed to see this calendar.');
+		}
 
 	}
 } else {
 	print _('No calendar for this group.');
-	//exit_no_group(); 
+	//exit_no_group();
 }
 echo site_project_footer(array());
 
@@ -54,8 +54,8 @@
 }
 
 
-return $row[0];	
-	
+return $row[0];
+
 }
 
 // Local Variables:

Modified: trunk/plugins/old/webcalendar/www/install/index.php
===================================================================
--- trunk/plugins/old/webcalendar/www/install/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/install/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -199,7 +199,7 @@
     echo "</body></html>\n";
   } else { // Not valid user
     echo "You are not authorized.";
-    // etranslate ( "You are not authorized" );  
+    // etranslate ( "You are not authorized" );
   }
   exit;
 }
@@ -436,7 +436,7 @@
 </head>
 <body onload="<?php echo $onload;?>">
 <?php
-/* other features coming soon.... 
+/* other features coming soon....
 <div class="nav">
 <table border="0" width="100%">
 <tr>
@@ -575,7 +575,7 @@
     echo "<option value=\"mysql\" " .
       ( $settings['db_type'] == 'mysql' ? " selected=\"selected\"" : "" ) .
       "> MySQL </option>\n";
-      
+
   if ( ! empty ( $supported['mysqli'] ) )
     echo "<option value=\"mysqli\" " .
       ( $settings['db_type'] == 'mysqli' ? " selected=\"selected\"" : "" ) .

Modified: trunk/plugins/old/webcalendar/www/layers.php
===================================================================
--- trunk/plugins/old/webcalendar/www/layers.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/layers.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,13 +44,13 @@
 echo " <strong>";
 if ($layers_enabled) {
 	etranslate ("Enabled");
-	echo "</strong>. (<a title=\"" . 
+	echo "</strong>. (<a title=\"" .
 		translate ("Disable Layers") . "\" class=\"nav\" href=\"layers_toggle.php?status=off$u_url\">" .
 		translate ("Disable Layers") . "</a>)\n";
 } else {
 	etranslate ("Disabled");
 	echo "</strong>. (<a title=\"" .
-		translate ("Enable Layers") . "\" class=\"nav\" href=\"layers_toggle.php?status=on$u_url\">" . 
+		translate ("Enable Layers") . "\" class=\"nav\" href=\"layers_toggle.php?status=on$u_url\">" .
 		translate ("Enable Layers") . "</a>)\n";
 }
 echo "<br />";
@@ -59,10 +59,10 @@
   if ( empty ($public) && ! empty ( $public_access ) &&
     $public_access == 'Y' ) {
     echo "<blockquote><a href=\"layers.php?public=1\">" .
-      translate("Click here") . " " . 
+      translate("Click here") . " " .
       translate("to modify the layers settings for the") . " " .
       translate($PUBLIC_ACCESS_FULLNAME) . " " .
-      translate("calendar") . 
+      translate("calendar") .
       "</a></blockquote>\n";
   }
 }
@@ -78,11 +78,11 @@
        user_load_variables ( $layeruser, "layer" );
 ?>
 	<span style="font-weight:bold;"><?php etranslate("Layer")?> <?php echo ($layer_count); ?></span>
-	(<a title="<?php 
-		etranslate("Edit layer"); ?>" href="edit_layer.php?id=<?php echo $layer['cal_layerid'] . $u_url; ?>"><?php 
-		etranslate("Edit"); ?></a> / 
-	<a title="<?php 
-		etranslate("Delete layer")?>" href="del_layer.php?id=<?php echo $layer['cal_layerid'] . $u_url; ?>" onclick="return confirm('<?php etranslate("Are you sure you want to delete this layer?")?>');"><?php 
+	(<a title="<?php
+		etranslate("Edit layer"); ?>" href="edit_layer.php?id=<?php echo $layer['cal_layerid'] . $u_url; ?>"><?php
+		etranslate("Edit"); ?></a> /
+	<a title="<?php
+		etranslate("Delete layer")?>" href="del_layer.php?id=<?php echo $layer['cal_layerid'] . $u_url; ?>" onclick="return confirm('<?php etranslate("Are you sure you want to delete this layer?")?>');"><?php
 		etranslate("Delete")?></a>)
 
 <table style="margin-left:20px; border-width:0px;">

Modified: trunk/plugins/old/webcalendar/www/list_unapproved.php
===================================================================
--- trunk/plugins/old/webcalendar/www/list_unapproved.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/list_unapproved.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -53,7 +53,7 @@
       $duration = $row[6];
       $status = $row[7];
       $divname = "eventinfo-$id-$key";
-      echo "<li><a title=\"" . 
+      echo "<li><a title=\"" .
       		translate("View this entry") . "\" class=\"entry\" href=\"view_entry.php?id=$id&user=$user";
       echo "\" onmouseover=\"window.status='" . translate("View this entry") .
         "'; show(event, '$divname'); return true;\" onmouseout=\"hide('$divname'); return true;\">";
@@ -78,28 +78,28 @@
       echo "</a>";
       echo " (" . date_to_str ($date) . ")\n";
 //approve
-      echo ": <a title=\"" . 
+      echo ": <a title=\"" .
 	translate("Approve/Confirm") . "\"  href=\"approve_entry.php?id=$id&ret=list&user=$user";
       if ( $user == "__public__" )
         echo "&public=1";
       echo "\" class=\"nav\" onclick=\"return confirm('" .
-        translate("Approve this entry?") . "');\">" . 
+        translate("Approve this entry?") . "');\">" .
 	translate("Approve/Confirm") . "</a>, ";
 //reject
-      echo "<a title=\"" . 
+      echo "<a title=\"" .
 	translate("Reject") . "\" href=\"reject_entry.php?id=$id&ret=list&user=$user";
       if ( $user == "__public__" )
         echo "&public=1";
       echo "\" class=\"nav\" onclick=\"return confirm('" .
-        translate("Reject this entry?") . "');\">" . 
+        translate("Reject this entry?") . "');\">" .
 	translate("Reject") . "</a>";
 //delete
-      echo ", <a title=\"" . 
+      echo ", <a title=\"" .
 	translate("Delete") . "\" href=\"del_entry.php?id=$id&ret=list";
       if ( $user != $login )
         echo "&user=$user";
       echo "\" class=\"nav\" onclick=\"return confirm('" .
-        translate("Are you sure you want to delete this entry?") . "');\">" . 
+        translate("Are you sure you want to delete this entry?") . "');\">" .
 	translate("Delete") . "</a>";
       echo "\n</li>\n";
       $eventinfo .= build_event_popup ( $divname, $user, $description,
@@ -111,7 +111,7 @@
   }
   if ( $count == 0 ) {
     user_load_variables ( $user, "temp_" );
-    echo "<span class=\"nounapproved\">" . 
+    echo "<span class=\"nounapproved\">" .
 	translate("No unapproved events for") . " " . $temp_fullname . ".</span>\n";
   } else {
     if ( ! empty ( $eventinfo ) ) echo $eventinfo;
@@ -119,9 +119,9 @@
 }
 ?>
 
-<h2><?php 
-	etranslate("Unapproved Events"); 
-	if ( $user == '__public__' ) echo " - " . $PUBLIC_ACCESS_FULLNAME; 
+<h2><?php
+	etranslate("Unapproved Events");
+	if ( $user == '__public__' ) echo " - " . $PUBLIC_ACCESS_FULLNAME;
 ?></h2>
 <?php
 // List unapproved events for this user.

Modified: trunk/plugins/old/webcalendar/www/login.php
===================================================================
--- trunk/plugins/old/webcalendar/www/login.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/login.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,8 +22,8 @@
 if($_GET['type'] == 'group'){
 	$group_id = getIntFromRequest('group_id');
 	session_require_perm ('project_admin', $group_id) ;
-	
-	//choix du calendrier a afficher 
+
+	//choix du calendrier a afficher
 	$sql_group = "SELECT unix_group_name FROM groups WHERE group_id = '".$_GET['group_id']."'" ;
 	$result_group = dbi_query ($sql_group);
 		if ( $result_group ) {
@@ -33,29 +33,29 @@
 		     dbi_free_result ( $result_group );
 		   }
 	//on log l'utilisateur
-	$sql = "SELECT user_name,user_pw FROM users WHERE user_id = '".user_getid()."'" ;		
+	$sql = "SELECT user_name,user_pw FROM users WHERE user_id = '".user_getid()."'" ;
 
 $result = dbi_query ($sql);
 		if ( $result ) {
 			 if ( $row_log = dbi_fetch_row ( $result ) ) {
 		       $_POST['login'] = $row_log[0];
 		     	$_POST['password'] = $row_log[1];
-		     
+
 		     }
 		     dbi_free_result ( $result );
 		   }
-	
+
 }
 
 
 if($_GET['type'] == 'user'){
-$sql = "SELECT user_name,user_pw FROM users WHERE user_id = '".user_getid()."'" ;	
+$sql = "SELECT user_name,user_pw FROM users WHERE user_id = '".user_getid()."'" ;
 $result = dbi_query ($sql);
 		if ( $result ) {
 			 if ( $row_log = dbi_fetch_row ( $result ) ) {
 		       $_POST['login'] = $row_log[0];
 		     	$_POST['password'] = $row_log[1];
-		    
+
 		     }
 		     dbi_free_result ( $result );
 		   }
@@ -214,7 +214,7 @@
   ?>
 }
 </script>
-<?php 
+<?php
  include "includes/styles.php";
 
  // Print custom header (since we do not call print_header function)
@@ -247,25 +247,25 @@
 }
 ?>
 
-<h2><?php 
+<h2><?php
 // If Application Name is set to Title then get translation
 // If not, use the Admin defined Application Name
 if ( ! empty ( $application_name ) &&  $application_name =="Title") {
   etranslate($application_name);
 } else {
   echo htmlspecialchars ( $application_name );
-}  
+}
 ?></h2>
 
 <?php
 if ( ! empty ( $error ) ) {
-  print "<span style=\"color:#FF0000; font-weight:bold;\">" . 
+  print "<span style=\"color:#FF0000; font-weight:bold;\">" .
     translate("Error") . ": $error</span><br />\n";
 } else {
   print "<br />\n";
 }
 ?>
-<form name="login_form" id="login" action="login.php" method="post" 
+<form name="login_form" id="login" action="login.php" method="post"
   onsubmit="return valid_form(this)">
 <?php
 if ( ! empty ( $return_path ) ) {
@@ -278,17 +278,17 @@
 <tr><td rowspan="2">
  <img src="login.gif" alt="Login" /></td><td align="right">
  <label for="user"><?php etranslate("Username")?>:</label></td><td>
- <input name="login" id="user" size="15" maxlength="25" 
-   value="<?php if ( ! empty ( $last_login ) ) echo $last_login;?>" 
+ <input name="login" id="user" size="15" maxlength="25"
+   value="<?php if ( ! empty ( $last_login ) ) echo $last_login;?>"
    tabindex="1" />
 </td></tr>
 <tr><td style="text-align:right;">
  <label for="password"><?php etranslate("Password")?>:</label></td><td>
- <input name="password" id="password" type="password" size="15" 
+ <input name="password" id="password" type="password" size="15"
    maxlength="30" tabindex="2" />
 </td></tr>
 <tr><td colspan="3" style="font-size: 10px;">
- <input type="checkbox" name="remember" id="remember" tabindex="3" 
+ <input type="checkbox" name="remember" id="remember" tabindex="3"
    value="yes" <?php if ( ! empty ( $remember ) && $remember == "yes" ) {
      echo "checked=\"checked\""; }?> /><label for="remember"> 
    <?php etranslate("Save login via cookies so I don't have to login next time")?></label>

Modified: trunk/plugins/old/webcalendar/www/month.php
===================================================================
--- trunk/plugins/old/webcalendar/www/month.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/month.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,7 +33,7 @@
 if ( $auto_refresh == "Y" && ! empty ( $auto_refresh_time ) ) {
   $refresh = $auto_refresh_time * 60; // convert to seconds
   $HeadX = "<meta http-equiv=\"refresh\" content=\"$refresh; url=month.php?$u_url" .
-    "year=$thisyear&month=$thismonth$caturl" . 
+    "year=$thisyear&month=$thismonth$caturl" .
     ( ! empty ( $friendly ) ? "&friendly=1" : "") . "\" />\n";
 }
 $INC = array('js/popups.php');
@@ -163,7 +163,7 @@
 ?>
 
 <br />
-<a title="<?php etranslate("Generate printer-friendly version")?>" 
+<a title="<?php etranslate("Generate printer-friendly version")?>"
 class="printer" href="month.php?<?php
    if ( $thisyear ) {
     echo "year=$thisyear&month=$thismonth&";
@@ -174,7 +174,7 @@
    if ( ! empty ( $cat_id ) ) {
      echo "cat_id=$cat_id&";
    }
-  ?>friendly=1" target="cal_printer_friendly" 
+  ?>friendly=1" target="cal_printer_friendly"
 onmouseover="window.status = '<?php etranslate("Generate printer-friendly version")
   ?>'">[<?php etranslate("Printer Friendly")?>]</a>
 <?php

Modified: trunk/plugins/old/webcalendar/www/nonusers.php
===================================================================
--- trunk/plugins/old/webcalendar/www/nonusers.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/nonusers.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,12 +1,12 @@
 <?php
 if ( ! $is_admin ) {
-  echo "<h2>" . translate("Error") . "</h2>\n" . 
+  echo "<h2>" . translate("Error") . "</h2>\n" .
   		translate("You are not authorized") . ".\n";
   echo "</body>\n</html>";
   exit;
 }
 if ( ! $NONUSER_PREFIX ) {
-  echo "<h2>" . translate("Error") . "</h2>\n" . 
+  echo "<h2>" . translate("Error") . "</h2>\n" .
   		translate("NONUSER_PREFIX not set") . ".\n";
   echo "</body>\n</html>";
   exit;
@@ -17,17 +17,17 @@
 	<div id="tabscontent_nonusers">
 <?php
 if ( empty ($error) ) {
-  echo "<a title=\"" . 
-	translate("Add New NonUser Calendar") . "\" href=\"edit_nonusers.php?add=1\" target=\"nonusersiframe\" onclick=\"javascript:show('nonusersiframe');\">" . 
+  echo "<a title=\"" .
+	translate("Add New NonUser Calendar") . "\" href=\"edit_nonusers.php?add=1\" target=\"nonusersiframe\" onclick=\"javascript:show('nonusersiframe');\">" .
 	translate("Add New NonUser Calendar") . "</a><br />\n";
   // Displaying NonUser Calendars
   $userlist = get_nonuser_cals ();
   if ( ! empty ( $userlist ) ) {
     echo "<ul>";
     for ( $i = 0; $i < count ( $userlist ); $i++ ) {
-      echo "<li><a title=\"" . 
-      	$userlist[$i]['cal_fullname'] . "\" href=\"edit_nonusers.php?nid=" . 
-	$userlist[$i]["cal_login"] . "\" target=\"nonusersiframe\" onclick=\"javascript:show('nonusersiframe');\">" . 
+      echo "<li><a title=\"" .
+      	$userlist[$i]['cal_fullname'] . "\" href=\"edit_nonusers.php?nid=" .
+	$userlist[$i]["cal_login"] . "\" target=\"nonusersiframe\" onclick=\"javascript:show('nonusersiframe');\">" .
 	$userlist[$i]['cal_fullname'] . "</a></li>\n";
     }
     echo "</ul>";

Modified: trunk/plugins/old/webcalendar/www/pref.php
===================================================================
--- trunk/plugins/old/webcalendar/www/pref.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/pref.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -45,7 +45,7 @@
 	etranslate("Preferences");
 	if ( $is_nonuser_admin ) {
 		nonuser_load_variables ( $user, "nonuser" );
-		echo "<br /><strong>-- " . 
+		echo "<br /><strong>-- " .
 			translate("Admin mode") . ": ".$nonuserfullname." --</strong>\n";
 	}
 ?> <img src="help.gif" alt="<?php etranslate("Help")?>" class="help" onclick="window.open ( 'help_pref.php', 'cal_help', 'dependent,menubar,scrollbars,height=400,width=400,innerHeight=420,outerWidth=420');" /></h2>
@@ -53,8 +53,8 @@
 <a title="<?php etranslate("Admin") ?>" class="nav" href="adminhome.php">« <?php etranslate("Admin") ?></a><br /><br />
 
 <form action="pref_handler.php" method="post" onsubmit="return valid_form(this);" name="prefform">
-<?php 
-	if ($user) 
+<?php
+	if ($user)
 		echo "<input type=\"hidden\" name=\"user\" value=\"$user\" />\n";
 ?>
 
@@ -156,13 +156,13 @@
 
 <tr><td class="tooltip" title="<?php etooltip("display-weekends-help");?>">
 	<?php etranslate("Display weekends in week view")?>:</td><td>
-	<label><input type="radio" name="pref_DISPLAY_WEEKENDS" value="Y" <?php if ( $prefarray["DISPLAY_WEEKENDS"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+	<label><input type="radio" name="pref_DISPLAY_WEEKENDS" value="Y" <?php if ( $prefarray["DISPLAY_WEEKENDS"] != "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
 	<label><input type="radio" name="pref_DISPLAY_WEEKENDS" value="N" <?php if ( $prefarray["DISPLAY_WEEKENDS"] == "N" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
 </td></tr>
 
 <tr><td class="tooltip" title="<?php etooltip("display-desc-print-day-help");?>">
 	<?php etranslate("Display description in printer day view")?>:</td><td>
-	<label><input type="radio" name="pref_DISPLAY_DESC_PRINT_DAY" value="Y" <?php if ( $prefarray["DISPLAY_DESC_PRINT_DAY"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label> 
+	<label><input type="radio" name="pref_DISPLAY_DESC_PRINT_DAY" value="Y" <?php if ( $prefarray["DISPLAY_DESC_PRINT_DAY"] == "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("Yes")?></label>
 	<label><input type="radio" name="pref_DISPLAY_DESC_PRINT_DAY" value="N" <?php if ( $prefarray["DISPLAY_DESC_PRINT_DAY"] != "Y" ) echo " checked=\"checked\"";?> /> <?php etranslate("No")?></label>
 </td></tr>
 
@@ -252,7 +252,7 @@
 
 <tr><td class="tooltip" title="<?php etooltip("time-format-help")?>">
 	<?php etranslate("Time format")?>:</td><td>
-	<label><input type="radio" name="pref_TIME_FORMAT" value="12" <?php if ( $prefarray["TIME_FORMAT"] == "12" ) echo " checked=\"checked\"";?> /> <?php etranslate("12 hour")?></label> 
+	<label><input type="radio" name="pref_TIME_FORMAT" value="12" <?php if ( $prefarray["TIME_FORMAT"] == "12" ) echo " checked=\"checked\"";?> /> <?php etranslate("12 hour")?></label>
 	<label><input type="radio" name="pref_TIME_FORMAT" value="24" <?php if ( $prefarray["TIME_FORMAT"] != "12" ) echo " checked=\"checked\"";?> /> <?php etranslate("24 hour")?></label>
 </td></tr>
 
@@ -294,7 +294,7 @@
 </td></tr>
 <tr><td class="tooltip" title="<?php etooltip("work-hours-help")?>">
 	<?php etranslate("Work hours")?>:</td><td>
-	<label for="pref_starthr"><?php etranslate("From")?></label> 
+	<label for="pref_starthr"><?php etranslate("From")?></label>
 	<select name="pref_WORK_DAY_START_HOUR" id="pref_starthr">
 <?php
   if ( empty ( $prefarray["WORK_DAY_START_HOUR"] ) ) {
@@ -307,7 +307,7 @@
       ">" . display_time ( $i * 10000, 1 ) . "</option>\n";
   }
 ?>
-	</select> 
+	</select>
 	<label for="pref_endhr"><?php etranslate("to")?></label>
 	<select name="pref_WORK_DAY_END_HOUR" id="pref_endhr">
 <?php
@@ -322,7 +322,7 @@
 
 <tr><td class="tooltip" title="<?php etooltip("timed-evt-len-help");?>">
 	<?php etranslate("Specify timed event length by")?>:</td><td>
-	<label><input type="radio" name="pref_TIMED_EVT_LEN" value="D" <?php if ( $prefarray["TIMED_EVT_LEN"] != "E" ) echo " checked=\"checked\"";?> /> <?php etranslate("Duration")?></label> 
+	<label><input type="radio" name="pref_TIMED_EVT_LEN" value="D" <?php if ( $prefarray["TIMED_EVT_LEN"] != "E" ) echo " checked=\"checked\"";?> /> <?php etranslate("Duration")?></label>
 	<label><input type="radio" name="pref_TIMED_EVT_LEN" value="E" <?php if ( $prefarray["TIMED_EVT_LEN"] == "E" ) echo " checked=\"checked\"";?> /> <?php etranslate("End Time")?></label>
 </td></tr>
 
@@ -334,7 +334,7 @@
 	echo "<option value=\"\"";
 	if ( empty ( $prefarray["CATEGORY_VIEW"] ) ) echo " selected=\"selected\"";
 	echo ">".translate("All")."</option>\n";
-	
+
 	if ( ! empty ( $categories ) ) {
 		foreach( $categories as $K => $V ){
 			echo "<option value=\"$K\"";

Modified: trunk/plugins/old/webcalendar/www/reject_entry.php
===================================================================
--- trunk/plugins/old/webcalendar/www/reject_entry.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/reject_entry.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -30,7 +30,7 @@
       if ( ! dbi_query ( "UPDATE webcal_entry_user SET cal_status = 'R' " .
         "WHERE cal_login = '$app_user' AND cal_id = $ext_id" ) ) {
         $error = translate("Error approving event") . ": " . dbi_error ();
-      } 
+      }
     }
     dbi_free_result ( $res );
   }

Modified: trunk/plugins/old/webcalendar/www/report.php
===================================================================
--- trunk/plugins/old/webcalendar/www/report.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/report.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -240,7 +240,7 @@
     "cal_allow_nav, cal_cat_id, cal_include_empty, cal_update_date " .
     "FROM webcal_report WHERE cal_report_id = $report_id" );
   if ( $res ) {
-    if ( $row = dbi_fetch_row ( $res ) ) { 
+    if ( $row = dbi_fetch_row ( $res ) ) {
       if ( $row[2] != 'Y' && $login != $row[0] ) {
         $error = translate ( "You are not authorized" ) . ".";
       } else {
@@ -342,7 +342,7 @@
   $week_offset = 11 - $report_time_range + $offset;
   //echo "week_offset=$week_offset <br />";
   $start_date = date ( "Ymd", $wkstart + ( $week_offset * 7 * $ONE_DAY ) );
-  $end_date = date ( "Ymd", $wkstart + ( $week_offset * 7 * $ONE_DAY ) + 
+  $end_date = date ( "Ymd", $wkstart + ( $week_offset * 7 * $ONE_DAY ) +
     ( $ONE_DAY * 6 ) );
 } else if ( $report_time_range >= 20 && $report_time_range < 30 ) {
   if ( $WEEK_START == 1 ) {
@@ -356,7 +356,7 @@
   $week_offset = 21 - $report_time_range + $offset;
   //echo "week_offset=$week_offset <br />";
   $start_date = date ( "Ymd", $wkstart + ( $week_offset * 7 * $ONE_DAY ) );
-  $end_date = date ( "Ymd", $wkstart + ( $week_offset * 7 * $ONE_DAY ) + 
+  $end_date = date ( "Ymd", $wkstart + ( $week_offset * 7 * $ONE_DAY ) +
     ( $ONE_DAY * 13 ) );
 } else if ( $report_time_range >= 30 && $report_time_range < 40 ) {
   $thismonth = date ( "m" );
@@ -434,7 +434,7 @@
     $ev = get_entries ( empty ( $user ) ? $login : $user, $dateYmd );
     $cur_rep = 0;
     //echo "DATE: $dateYmd <br />\n";
-  
+
     for ( $i = 0; $i < count ( $ev ); $i++ ) {
       // print out any repeating events that are before this one...
       while ( $cur_rep < count ( $rep ) &&
@@ -491,7 +491,7 @@
       }
       $cur_rep++;
     }
-  
+
     if ( ! empty ( $event_str ) || $report_include_empty == 'Y' ||
       $report_time_range < 10 ) {
       $date_str = date_to_str ( $dateYmd, "", false );
@@ -513,7 +513,7 @@
     echo translate($PUBLIC_ACCESS_FULLNAME) . " ";
   }
   echo translate("Manage Reports");
-  echo "</h2>\n" . 
+  echo "</h2>\n" .
   "<a title=\"" . translate("Admin") . "\" class=\"nav\" href=\"adminhome.php\"> " .
      "« " . translate("Admin") . "</a><br /><br />\n" . $list;
 } else {
@@ -542,7 +542,7 @@
       translate ( "Next" ) . "</a><br />\n";
   }
   if ( $report_include_header == 'Y' ) {
-    echo '<br /><br /><a title="' . translate("Printer Friendly") . 
+    echo '<br /><br /><a title="' . translate("Printer Friendly") .
       '" class="nav" href="report.php?report_id=' . $report_id .
       '&friendly=1' . $u_url . '&offset=' . $offset .
       '" target="cal_printer_friendly" onmouseover="window.status=\'' .

Modified: trunk/plugins/old/webcalendar/www/search.php
===================================================================
--- trunk/plugins/old/webcalendar/www/search.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/search.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -8,8 +8,8 @@
 }
 	print_header($INC);
 ?>
-<h2><?php 
-	etranslate("Search"); 
+<h2><?php
+	etranslate("Search");
 ?></h2>
 
 <form action="search_handler.php" method="post" name="searchformentry" style="margin-left:13px;">
@@ -17,12 +17,12 @@
 <label for="keywordsadv"><?php etranslate("Keywords")?>: </label>
 <input type="text" name="keywords" id="keywordsadv" size="30" /> 
 <input type="submit" value="<?php etranslate("Search")?>" /><br />
-<?php 
+<?php
 	if ( ($login == "__public__" && $public_access_others != "Y") || (! $is_admin) ) {
 		echo "</form>";
 	} else {
-		echo "<div id=\"advlink\"><a title=\"" . 
-			translate("Advanced Search") . "\" href=\"javascript:show('adv'); hide('advlink');\">" . 
+		echo "<div id=\"advlink\"><a title=\"" .
+			translate("Advanced Search") . "\" href=\"javascript:show('adv'); hide('advlink');\">" .
 			translate("Advanced Search") . "</a></div>";
 ?>
 <table id="adv" style="display:none;">
@@ -54,7 +54,7 @@
     $size = count ( $users );
 ?>
 <select name="users[]" size="<?php echo $size;?>" multiple="multiple"><?php echo $out; ?></select>
-<?php 
+<?php
   if ( $groups_enabled == "Y" ) {
    echo "<input type=\"button\" onclick=\"selectUsers()\" value=\"" .
       translate("Select") . "...\" />\n";

Modified: trunk/plugins/old/webcalendar/www/tools/send_reminders.php
===================================================================
--- trunk/plugins/old/webcalendar/www/tools/send_reminders.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/tools/send_reminders.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,7 +24,7 @@
  * If you're a Windows user, you'll either need to find a cron clone
  * for Windows (they're out there) or use the Windows Task Scheduler.
  * (See docs/WebCalendar-SysAdmin.html for instructions.)
- * 
+ *
  * Comments:
  * You will need access to the PHP binary (command-line) rather than
  * the module-based version that is typically installed for use with
@@ -174,7 +174,7 @@
   $pri[3] = translate("High");
 
   // get participants first...
- 
+
   $sql = "SELECT cal_login FROM webcal_entry_user " .
     "WHERE cal_id = $id AND cal_status IN ('A','W') " .
     "ORDER BY cal_login";
@@ -338,7 +338,7 @@
           translate("External User") . ")\n";
       }
     }
-  
+
     $subject = translate("Reminder") . ": " . $name;
 
     if ( strlen ( $GLOBALS["email_fallback_from"] ) )
@@ -346,7 +346,7 @@
         "X-Mailer: " . translate($application_name);
     else
       $extra_hdrs = "X-Mailer: " . translate($application_name);
-  
+
     if ( $debug )
       echo "Sending mail to $recip (in $userlang)\n";
     if ( $only_testing ) {
@@ -400,7 +400,7 @@
       printf ( "  name: %s\n  type: %d\n  arg1: %s\n  arg2: %s\n",
       $extra_name, $extra_type, $extra_arg1, $extra_arg2 );
     if ( ! empty ( $extras[$extra_name]['cal_remind'] ) ) {
-    	
+
       if ( $debug )
         echo "  Reminder set for event. <br />\n";
       // how many minutes before event should we send the reminder?

Modified: trunk/plugins/old/webcalendar/www/upcoming.php
===================================================================
--- trunk/plugins/old/webcalendar/www/upcoming.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/upcoming.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -154,7 +154,7 @@
 // Print header without custom header and no style sheet
 if ( ! empty ( $LANGUAGE ) ) {
   $charset = translate ( "charset" );
-  $lang = languageToAbbrev ( ( $LANGUAGE == "Browser-defined" || 
+  $lang = languageToAbbrev ( ( $LANGUAGE == "Browser-defined" ||
     $LANGUAGE == "none" )? $lang : $LANGUAGE );
   if ( $charset != "charset" ) {
     echo "<?xml version=\"1.0\" encoding=\"$charset\"?>\n" .
@@ -178,7 +178,7 @@
   $charset = "iso-8859-1";
 }
 echo "<title>".translate($application_name)."</title>\n";
- 
+
 ?>
 </head>
 <body>
@@ -192,8 +192,8 @@
 print "<dl>\n";
 
 print "<!-- \nstartTime: $startTime\nendTime: $endTime\nstartDate: " .
-  "$date\nnumDays: $numDays\nuser: $username\nevents: " . 
-  count ( $events ) . "\nrepeated_events: " . 
+  "$date\nnumDays: $numDays\nuser: $username\nevents: " .
+  count ( $events ) . "\nrepeated_events: " .
   count ( $repeated_events ) . " -->\n";
 
 $numEvents = 0;
@@ -230,10 +230,10 @@
 
   if ( $e['cal_access'] == 'P' ) {
     if ( $display_link && ! empty ( $server_url ) ) {
-      print "<a title=\"" . 
-        $e['cal_name'] . "\" href=\"" . 
-        $server_url . "view_entry.php?id=" . 
-        $e['cal_id'] . "&date=" . 
+      print "<a title=\"" .
+        $e['cal_name'] . "\" href=\"" .
+        $server_url . "view_entry.php?id=" .
+        $e['cal_id'] . "&date=" .
         $e['cal_date'] . "\"";
       if ( ! empty ( $link_target ) ) {
         print " target=\"$link_target\"";

Modified: trunk/plugins/old/webcalendar/www/users.php
===================================================================
--- trunk/plugins/old/webcalendar/www/users.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/users.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -29,7 +29,7 @@
 print_header($INC);
 
 //if ( ! $is_admin ) {
-//echo "<h2>" . translate("Error") . "</h2>\n" . 
+//echo "<h2>" . translate("Error") . "</h2>\n" .
 //  translate("You are not authorized") . ".\n";
 //  echo "</body>\n</html>";
 //  exit;
@@ -39,7 +39,7 @@
 
 <!-- TABS -->
 <div id="tabs">
-	<span class="tabfor" id="tab_users"><a href="#tabusers" onclick="return showTab('users')"><?php 
+	<span class="tabfor" id="tab_users"><a href="#tabusers" onclick="return showTab('users')"><?php
 		if ($is_admin) {
 			echo translate("Users");
 		} else {
@@ -48,7 +48,7 @@
 	?></a></span>
 	<?php if ($groups_enabled == "Y" && $is_admin) { ?>
 		<span class="tabbak" id="tab_groups"><a href="#tabgroups" onclick="return showTab('groups')"><?php etranslate("Groups")?></a></span>
-	<?php } 
+	<?php }
 	if ($nonuser_enabled == 'Y' && $is_admin) { ?>
 		<span class="tabbak" id="tab_nonusers"><a href="#tabnonusers" onclick="return showTab('nonusers')"><?php etranslate("NonUser Calendars")?></a></span>
 	<?php } ?>
@@ -62,8 +62,8 @@
 	<?php if ( $is_admin ) { ?>
 		<?php
 			if ( $admin_can_add_user )
-				echo "<a title=\"" . 
-					translate("Add New User") . "\" href=\"edit_user.php\" target=\"useriframe\" onclick=\"javascript:show('useriframe');\">" . 
+				echo "<a title=\"" .
+					translate("Add New User") . "\" href=\"edit_user.php\" target=\"useriframe\" onclick=\"javascript:show('useriframe');\">" .
 					translate("Add New User") . "</a><br />\n";
 		?>
 		<ul>
@@ -71,8 +71,8 @@
 				$userlist = user_get_users ();
 				for ( $i = 0; $i < count ( $userlist ); $i++ ) {
 					if ( $userlist[$i]['cal_login'] != '__public__' ) {
-						echo "<li><a title=\"" . 
-							$userlist[$i]['cal_fullname'] . "\" href=\"edit_user.php?user=" . 
+						echo "<li><a title=\"" .
+							$userlist[$i]['cal_fullname'] . "\" href=\"edit_user.php?user=" .
 							$userlist[$i]["cal_login"] . "\" target=\"useriframe\" onclick=\"javascript:show('useriframe');\">";
 						echo $userlist[$i]['cal_fullname'];
 						echo "</a>";
@@ -85,7 +85,7 @@
 		</ul>
 	* <?php etranslate("denotes administrative user")?><br />
 
-		<?php 
+		<?php
 			echo "<iframe " .
 				" name=\"useriframe\" id=\"useriframe\" style=\"width:90%;border-width:0px; height:280px;\"></iframe>";
 		?>
@@ -94,10 +94,10 @@
 <?php } ?>
 </div>
 
-<?php 
-	if ($groups_enabled == "Y" && $is_admin) { 
+<?php
+	if ($groups_enabled == "Y" && $is_admin) {
 		include_once $gfplugins.'webcalendar/www/groups.php';
-	} 
+	}
 	if ($nonuser_enabled == 'Y' && $is_admin) {
 		include_once $gfplugins.'webcalendar/www/nonusers.php';
 	}

Modified: trunk/plugins/old/webcalendar/www/view_d.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_d.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_d.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,7 +44,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( empty( $view_name ) ) {
   $error = translate ( "You are not authorized" );
 }
@@ -135,16 +135,16 @@
 
 <div style="border-width:0px; width:99%;">
 <a title="<?php etranslate("Previous")?>" class="prev" href="view_d.php?id=
-<?php echo $id . "&date=" . $prevdate?>"><img src="leftarrow.gif" 
+<?php echo $id . "&date=" . $prevdate?>"><img src="leftarrow.gif"
   class="prevnext" alt="<?php etranslate("Previous")?>" /></a>
 
 <a title="<?php etranslate("Next")?>" class="next" href="view_d.php?id=
-<?php echo $id . "&date=" . $nextdate?>"><img src="rightarrow.gif" 
+<?php echo $id . "&date=" . $nextdate?>"><img src="rightarrow.gif"
   class="prevnext" alt="<?php etranslate("Next")?>" /></a>
 <div class="title">
-<span class="date"><?php 
+<span class="date"><?php
   printf ( "%s, %s %d, %d", weekday_name ( $wday ),
-    month_name ( $thismonth - 1 ), $thisday, $thisyear ); 
+    month_name ( $thismonth - 1 ), $thisday, $thisyear );
 ?></span><br />
 <span class="viewname"><?php echo $view_name; ?></span>
 </div></div>
@@ -165,7 +165,7 @@
 </form>
 
 <?php
-echo "<br /><a title=\"" . translate ( "Generate printer-friendly version" ) . 
+echo "<br /><a title=\"" . translate ( "Generate printer-friendly version" ) .
   "\" class=\"printer\" href=\"view_d.php?id=$id&";
 echo ( empty ( $u_url ) ? '' : $u_url ) . "date=$nowYmd";
 echo ( empty ( $caturl ) ? '' : $caturl );

Modified: trunk/plugins/old/webcalendar/www/view_entry.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_entry.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_entry.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -19,12 +19,12 @@
 
 if ( $is_admin || $is_nonuser_admin || $is_assistant ) {
   $can_view = true;
-} 
+}
 
 $error = '';
 
 if ( empty ( $id ) || $id <= 0 || ! is_numeric ( $id ) ) {
-  $error = translate ( "Invalid entry id" ) . "."; 
+  $error = translate ( "Invalid entry id" ) . ".";
 }
 
 if ( empty ( $error ) ) {
@@ -131,7 +131,7 @@
     $can_view = true;
   }
 }
-  
+
 if ( empty ( $error ) && ! $can_view ) {
   $error = translate ( "You are not authorized" );
 }
@@ -235,8 +235,8 @@
 
 // If we have no event status yet, it must have been deleted.
 if ( ( empty ( $event_status ) && ! $is_admin ) || ! $can_view ) {
-  echo "<h2>" . 
-    translate("Error") . "</h2>" . 
+  echo "<h2>" .
+    translate("Error") . "</h2>" .
     translate("You are not authorized") . ".\n";
   print_trailer ();
   echo "</body>\n</html>";
@@ -255,15 +255,15 @@
 }
 
 $row = dbi_fetch_row ( $res );
-if ( $row ) { 
+if ( $row ) {
   $create_by = $row[0];
   $orig_date = $row[1];
   $event_time = $row[2];
   $name = $row[9];
   $description = $row[10];
 } else {
-  echo "<h2>" . 
-    translate("Error") . "</h2>" . 
+  echo "<h2>" .
+    translate("Error") . "</h2>" .
     translate("Invalid entry id") . ".\n";
   print_trailer ();
   echo "</body>\n</html>";
@@ -271,7 +271,7 @@
 }
 
 // Timezone Adjustments
-if ( $event_time >= 0 && ! empty ( $TZ_OFFSET )  && $TZ_OFFSET != 0 ) { 
+if ( $event_time >= 0 && ! empty ( $TZ_OFFSET )  && $TZ_OFFSET != 0 ) {
   // -1 = no time specified
   $adjusted_time = $event_time + $TZ_OFFSET * 10000;
   $year = substr($row[1],0,4);
@@ -427,7 +427,7 @@
 // Get category Info
 if ( $categories_enabled == "Y" ) {
   $cat_owner =  ( ( ! empty ( $user ) && strlen ( $user ) ) &&  ( $is_assistant  ||
-    $is_admin ) ) ? $user : $login;  
+    $is_admin ) ) ? $user : $login;
   $sql = "SELECT cat_name FROM webcal_categories, webcal_entry_user " .
     "WHERE webcal_entry_user.cal_login = '$cat_owner' AND webcal_entry_user.cal_id = $id " .
     "AND webcal_entry_user.cal_category = webcal_categories.cat_id";
@@ -530,7 +530,7 @@
 <?php
 // Display who originally created event
 // useful if assistant or Admin
-$proxy_fullname = '';  
+$proxy_fullname = '';
 if ( !empty ( $DISPLAY_CREATED_BYPROXY ) && $DISPLAY_CREATED_BYPROXY == "Y" ) {
   $res = dbi_query ( "SELECT wu.cal_firstname, wu.cal_lastname " .
     "FROM webcal_user wu INNER JOIN webcal_entry_log wel ON wu.cal_login = wel.cal_login " .
@@ -545,7 +545,7 @@
 }
 
 if ( $single_user == "N" ) {
-  echo "<tr><td style=\"vertical-align:top; font-weight:bold;\">\n" . 
+  echo "<tr><td style=\"vertical-align:top; font-weight:bold;\">\n" .
  translate("Created by") . ":</td><td>\n";
   if ( $is_private ) {
     echo "[" . translate("Confidential") . "]\n</td></tr>";
@@ -688,7 +688,7 @@
   for ( $i = 0; $i < $num_app; $i++ ) {
     user_load_variables ( $approved[$i], "temp" );
     if ( strlen ( $tempemail ) ) {
-      echo "<a href=\"mailto:" . $tempemail . "?subject=$subject\">" . 
+      echo "<a href=\"mailto:" . $tempemail . "?subject=$subject\">" .
         $tempfullname . "</a><br />\n";
       $allmails[] = $tempemail;
     } else {
@@ -702,7 +702,7 @@
     if ( is_array ( $ext_users ) ) {
       for ( $i = 0; $i < count( $ext_users ); $i++ ) {
         if ( ! empty ( $ext_users[$i] ) ) {
-          echo $ext_users[$i] . " (" . translate("External User") . 
+          echo $ext_users[$i] . " (" . translate("External User") .
             ")<br />\n";
         }
       }
@@ -711,7 +711,7 @@
   for ( $i = 0; $i < $num_wait; $i++ ) {
     user_load_variables ( $waiting[$i], "temp" );
     if ( strlen ( $tempemail ) ) {
-      echo "<br /><a href=\"mailto:" . $tempemail . "?subject=$subject\">" . 
+      echo "<br /><a href=\"mailto:" . $tempemail . "?subject=$subject\">" .
         $tempfullname . "</a> (?)\n";
       $allmails[] = $tempemail;
     } else {
@@ -725,7 +725,7 @@
         "?subject=$subject\">" . $tempfullname .
         "</a></strike> (" . translate("Rejected") . ")\n";
     } else {
-      echo "<br /><strike>$tempfullname</strike> (" . 
+      echo "<br /><strike>$tempfullname</strike> (" .
         translate("Rejected") . ")\n";
     }
   }
@@ -746,7 +746,7 @@
 
 // Show a printer-friendly link
 if ( empty ( $friendly ) ) {
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Generate printer-friendly version") . "\" class=\"printer\" " .
     "href=\"view_entry.php?id=$id&friendly=1$rdate\" " .
     "target=\"cal_printer_friendly\">" .
@@ -761,16 +761,16 @@
 }
 
 if ( $unapproved && $readonly == 'N' ) {
-  echo "<a title=\"" . 
-    translate("Approve/Confirm entry") . 
+  echo "<a title=\"" .
+    translate("Approve/Confirm entry") .
     "\" href=\"approve_entry.php?id=$id\" " .
-    "onclick=\"return confirm('" . 
-    translate("Approve this entry?") . "');\">" . 
+    "onclick=\"return confirm('" .
+    translate("Approve this entry?") . "');\">" .
     translate("Approve/Confirm entry") . "</a><br />\n";
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Reject entry") . "\" href=\"reject_entry.php?id=$id\" " .
     "onclick=\"return confirm('" .
-    translate("Reject this entry?") . "');\">" . 
+    translate("Reject this entry?") . "');\">" .
     translate("Reject entry") . "</a><br />\n";
 }
 
@@ -780,7 +780,7 @@
   $u_url = "";
 }
 
-$can_edit = ( $is_admin || $is_nonuser_admin && ($user == $create_by) || 
+$can_edit = ( $is_admin || $is_nonuser_admin && ($user == $create_by) ||
   ( $is_assistant && ! $is_private && ($user == $create_by) ) ||
   ( $readonly != "Y" && ( $login == $create_by || $single_user == "Y" ) ) );
 if ( $public_access == "Y" && $login == "__public__" ) {
@@ -796,7 +796,7 @@
 if ( empty ( $user ) && $categories_enabled == "Y" &&
   $readonly != "Y" && $is_my_event && $login != "__public__" &&
   $event_status != "D" && ! $can_edit )  {
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Set category") . "\" class=\"nav\" " .
     "href=\"set_entry_cat.php?id=$id$rdate\">" .
     translate("Set category") . "</a><br />\n";
@@ -805,31 +805,31 @@
 if ( $can_edit && $event_status != "D" ) {
   if ( $event_repeats ) {
     echo "<a title=\"" .
-      translate("Edit repeating entry for all dates") . 
-      "\" class=\"nav\" href=\"edit_entry.php?id=$id$u_url\">" . 
+      translate("Edit repeating entry for all dates") .
+      "\" class=\"nav\" href=\"edit_entry.php?id=$id$u_url\">" .
       translate("Edit repeating entry for all dates") . "</a><br />\n";
     // Don't allow override of first event
     if ( ! empty ( $date ) && $date != $orig_date ) {
       echo "<a title=\"" .
-        translate("Edit entry for this date") . "\" class=\"nav\" " . 
+        translate("Edit entry for this date") . "\" class=\"nav\" " .
         "href=\"edit_entry.php?id=$id$u_url$rdate&override=1\">" .
         translate("Edit entry for this date") . "</a><br />\n";
     }
-    echo "<a title=\"" . 
-      translate("Delete repeating event for all dates") . 
+    echo "<a title=\"" .
+      translate("Delete repeating event for all dates") .
       "\" class=\"nav\" href=\"del_entry.php?id=$id$u_url&override=1\" " .
-      "onclick=\"return confirm('" . 
-      translate("Are you sure you want to delete this entry?") . "\\n\\n" . 
-      translate("This will delete this entry for all users.") . "');\">" . 
+      "onclick=\"return confirm('" .
+      translate("Are you sure you want to delete this entry?") . "\\n\\n" .
+      translate("This will delete this entry for all users.") . "');\">" .
       translate("Delete repeating event for all dates") . "</a><br />\n";
     // Don't allow deletion of first event
     if ( ! empty ( $date ) && $date != $orig_date ) {
-      echo "<a title=\"" . 
-        translate("Delete entry only for this date") . 
+      echo "<a title=\"" .
+        translate("Delete entry only for this date") .
         "\" class=\"nav\" href=\"del_entry.php?id=$id$u_url$rdate&override=1\" " .
         "onclick=\"return confirm('" .
-        translate("Are you sure you want to delete this entry?") . "\\n\\n" . 
-        translate("This will delete this entry for all users.") . "');\">" . 
+        translate("Are you sure you want to delete this entry?") . "\\n\\n" .
+        translate("This will delete this entry for all users.") . "');\">" .
         translate("Delete entry only for this date") . "</a><br />\n";
     }
   } else {
@@ -837,45 +837,45 @@
       translate("Edit entry") . "\" class=\"nav\" " .
       "href=\"edit_entry.php?id=$id$u_url\">" .
       translate("Edit entry") . "</a><br />\n";
-    echo "<a title=\"" . 
+    echo "<a title=\"" .
       translate("Delete entry") . "\" class=\"nav\" " .
-      "href=\"del_entry.php?id=$id$u_url$rdate\" onclick=\"return confirm('" . 
-       translate("Are you sure you want to delete this entry?") . "\\n\\n" . 
-       translate("This will delete this entry for all users.") . "');\">" . 
+      "href=\"del_entry.php?id=$id$u_url$rdate\" onclick=\"return confirm('" .
+       translate("Are you sure you want to delete this entry?") . "\\n\\n" .
+       translate("This will delete this entry for all users.") . "');\">" .
        translate("Delete entry") . "</a><br />\n";
   }
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Copy entry") . "\" class=\"nav\" " .
-    "href=\"edit_entry.php?id=$id$u_url&copy=1\">" . 
-    translate("Copy entry") . "</a><br />\n";  
+    "href=\"edit_entry.php?id=$id$u_url&copy=1\">" .
+    translate("Copy entry") . "</a><br />\n";
 } elseif ( $readonly != "Y" && $is_my_event && $login != "__public__" &&
   $event_status != "D" )  {
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Delete entry") . "\" class=\"nav\" " .
-    "href=\"del_entry.php?id=$id$u_url$rdate\" onclick=\"return confirm('" . 
-    translate("Are you sure you want to delete this entry?") . "\\n\\n" . 
-    translate("This will delete the entry from your calendar.") . "');\">" . 
+    "href=\"del_entry.php?id=$id$u_url$rdate\" onclick=\"return confirm('" .
+    translate("Are you sure you want to delete this entry?") . "\\n\\n" .
+    translate("This will delete the entry from your calendar.") . "');\">" .
     translate("Delete entry") . "</a><br />\n";
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Copy entry") . "\" class=\"nav\" " .
-    "href=\"edit_entry.php?id=$id&copy=1\">" . 
+    "href=\"edit_entry.php?id=$id&copy=1\">" .
     translate("Copy entry") . "</a><br />\n";
 }
-if ( $readonly != "Y" && ! $is_my_event && ! $is_private && 
+if ( $readonly != "Y" && ! $is_my_event && ! $is_private &&
   $event_status != "D" && $login != "__public__" )  {
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Add to My Calendar") . "\" class=\"nav\" " .
-    "href=\"add_entry.php?id=$id&user=".$_GET['user']."\" onclick=\"return confirm('" . 
-    translate("Do you want to add this entry to your calendar?") . "\\n\\n" . 
-    translate("This will add the entry to your calendar.") . "');\">" . 
+    "href=\"add_entry.php?id=$id&user=".$_GET['user']."\" onclick=\"return confirm('" .
+    translate("Do you want to add this entry to your calendar?") . "\\n\\n" .
+    translate("This will add the entry to your calendar.") . "');\">" .
     translate("Add to My Calendar") . "</a><br />\n";
 }
 
 if ( count ( $allmails ) > 0 ) {
-  echo "<a title=\"" . 
+  echo "<a title=\"" .
     translate("Email all participants") . "\" class=\"nav\" " .
     "href=\"mailto:" . implode ( ",", $allmails ) .
-    "?subject=" . rawurlencode($subject) . "\">" . 
+    "?subject=" . rawurlencode($subject) . "\">" .
     translate("Email all participants") . "</a><br />\n";
 }
 
@@ -883,14 +883,14 @@
 
 if ( $is_admin ) {
   if ( empty ( $log ) ) {
-    echo "<a title=\"" . 
+    echo "<a title=\"" .
       translate("Show activity log") . "\" class=\"nav\" " .
-      "href=\"view_entry.php?id=$id&log=1\">" . 
+      "href=\"view_entry.php?id=$id&log=1\">" .
       translate("Show activity log") . "</a><br />\n";
   } else {
-    echo "<a title=\"" . 
+    echo "<a title=\"" .
       translate("Hide activity log") . "\" class=\"nav\" " .
-      "href=\"view_entry.php?id=$id\">" . 
+      "href=\"view_entry.php?id=$id\">" .
        translate("Hide activity log") . "</a><br />\n";
     $show_log = true;
   }
@@ -902,7 +902,7 @@
   echo "<tr><th class=\"usr\">\n";
   echo translate("User") . "</th><th class=\"cal\">\n";
   echo translate("Calendar") . "</th><th class=\"date\">\n";
-  echo translate("Date") . "/" . 
+  echo translate("Date") . "/" .
    translate("Time") . "</th><th class=\"action\">\n";
   echo translate("Action") . "\n</th></tr>\n";
 
@@ -914,7 +914,7 @@
     while ( $row = dbi_fetch_row ( $res ) ) {
       echo "<tr><td>\n";
       echo $row[0] . "</td><td>\n";
-      echo $row[1] . "</td><td>\n" . 
+      echo $row[1] . "</td><td>\n" .
         date_to_str ( $row[3] ) . " " .
         display_time ( $row[4] ) . "</td><td>\n";
       if ( $row[2] == $LOG_CREATE ) {
@@ -942,18 +942,18 @@
 if (! $is_private) {
   echo "<br /><form method=\"post\" name=\"exportform\" " .
     "action=\"export_handler.php\">\n";
-  echo "<label for=\"exformat\">" . 
+  echo "<label for=\"exformat\">" .
     translate("Export this entry to") . ": </label>\n";
   echo "<select name=\"format\" id=\"exformat\">\n";
   echo " <option value=\"ical\">iCalendar</option>\n";
   echo " <option value=\"vcal\">vCalendar</option>\n";
-  echo " <option value=\"pilot-csv\">Pilot-datebook CSV (" . 
+  echo " <option value=\"pilot-csv\">Pilot-datebook CSV (" .
     translate("Palm Pilot") . ")</option>\n";
-  echo " <option value=\"pilot-text\">Install-datebook (" . 
+  echo " <option value=\"pilot-text\">Install-datebook (" .
     translate("Palm Pilot") . ")</option>\n";
   echo "</select>\n";
   echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />\n";
-  echo "<input type=\"submit\" value=\"" . 
+  echo "<input type=\"submit\" value=\"" .
     translate("Export") . "\" />\n";
   echo "</form>\n";
 }

Modified: trunk/plugins/old/webcalendar/www/view_l.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_l.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_l.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -45,7 +45,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( empty ( $view_name ) ) {
   $error = translate ( "You are not authorized" );
 }
@@ -87,7 +87,7 @@
 $all_users = false;
 if ( $res ) {
   while ( $row = dbi_fetch_row ( $res ) ) {
-    $viewusers[] = $row[0]; 
+    $viewusers[] = $row[0];
     if ( $row[0] == "__all__" ) {
       $all_users = true;
     }
@@ -142,12 +142,12 @@
 $re_save = array ();
 for ( $i = 0; $i < count ( $viewusers ); $i++ ) {
   /* Pre-Load the repeated events for quckier access */
-  $repeated_events = read_repeated_events ( $viewusers[$i], "", $startdate ); 
+  $repeated_events = read_repeated_events ( $viewusers[$i], "", $startdate );
   $re_save = array_merge($re_save, $repeated_events);
   /* Pre-load the non-repeating events for quicker access */
   $events = read_events ( $viewusers[$i], $startdate, $enddate );
   $e_save = array_merge($e_save, $events);
-} 
+}
 $events = array ();
 $repeated_events = array ();
 
@@ -175,9 +175,9 @@
   }
 }
 
-display_small_month ( $prevmonth, $prevyear, true, true, "prevmonth", 
+display_small_month ( $prevmonth, $prevyear, true, true, "prevmonth",
   "view_l.php?id=$id&" );
-display_small_month ( $nextmonth, $nextyear, true, true, "nextmonth", 
+display_small_month ( $nextmonth, $nextyear, true, true, "nextmonth",
   "view_l.php?id=$id&" );
 ?>
 
@@ -263,12 +263,12 @@
   echo $eventinfo;
 }
 
-display_unapproved_events ( ( $is_assistant || 
+display_unapproved_events ( ( $is_assistant ||
   $is_nonuser_admin ? $user : $login ) );
 ?>
 
 <br />
-<a title="<?php 
+<a title="<?php
  etranslate("Generate printer-friendly version")
 ?>" class="printer" href="view_l.php?id=<?php echo $id?>&<?php
  if ( $thisyear ) {
@@ -276,8 +276,8 @@
  }
  if ( ! empty ( $user ) ) echo "user=$user&";
  if ( ! empty ( $cat_id ) ) echo "cat_id=$cat_id&";
-?>friendly=1" target="cal_printer_friendly" onmouseover="window.status = '<?php 
- etranslate("Generate printer-friendly version")?>'">[<?php 
+?>friendly=1" target="cal_printer_friendly" onmouseover="window.status = '<?php
+ etranslate("Generate printer-friendly version")?>'">[<?php
  etranslate("Printer Friendly")?>]</a>
 
 <?php print_trailer ();?>

Modified: trunk/plugins/old/webcalendar/www/view_m.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_m.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_m.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -43,7 +43,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( $view_name == "" ) {
   $error = translate ( "You are not authorized" );
 }
@@ -245,11 +245,11 @@
   echo $eventinfo;
 }
 
-echo "<a title=\"" . 
+echo "<a title=\"" .
   translate("Generate printer-friendly version") . "\" class=\"printer\" " .
   "href=\"view_m.php?id=$id&date=$thisdate&friendly=1\" " .
   "target=\"cal_printer_friendly\" onmouseover=\"window.status='" .
-  translate("Generate printer-friendly version") . "'\">[" . 
+  translate("Generate printer-friendly version") . "'\">[" .
   translate("Printer Friendly") . "]</a>\n";
 
 print_trailer (); ?>

Modified: trunk/plugins/old/webcalendar/www/view_t.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_t.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_t.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,7 +44,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( empty ( $view_name ) ) {
   $error = translate ( "You are not authorized" );
 }
@@ -192,8 +192,8 @@
     "    -    " .
     date_to_str ( date ( "Ymd", $wkend ), false );
 ?></span><br />
-<span class="viewname"><?php 
- echo $view_name 
+<span class="viewname"><?php
+ echo $view_name
 ?></span>
 </div>
 </div><br /><br />
@@ -250,17 +250,17 @@
   }
 
   // Default settings
-  if ( ! isset ($prefarray["WORK_DAY_START_HOUR"] ) || 
+  if ( ! isset ($prefarray["WORK_DAY_START_HOUR"] ) ||
     ! isset ( $prefarray["WORK_DAY_END_HOUR"] ) ) {
-     $val = dbi_fetch_row ( dbi_query ( "SELECT cal_value FROM webcal_config 
+     $val = dbi_fetch_row ( dbi_query ( "SELECT cal_value FROM webcal_config
      where cal_setting='WORK_DAY_START_HOUR'" ));
      $prefarray["WORK_DAY_START_HOUR"]=$val[0];
-     $val = dbi_fetch_row ( dbi_query ( "SELECT cal_value FROM webcal_config 
+     $val = dbi_fetch_row ( dbi_query ( "SELECT cal_value FROM webcal_config
      where cal_setting='WORK_DAY_END_HOUR'" ));
      $prefarray["WORK_DAY_END_HOUR"]=$val[0];
   }
-    
-  print_header_timebar($prefarray["WORK_DAY_START_HOUR"], 
+
+  print_header_timebar($prefarray["WORK_DAY_START_HOUR"],
     $prefarray["WORK_DAY_END_HOUR"]);
   print_date_entries_timebar ( date ( "Ymd", $date ), $GLOBALS["login"], true );
   echo "</td>";

Modified: trunk/plugins/old/webcalendar/www/view_v.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_v.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_v.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -45,7 +45,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( empty( $view_name ) ) {
   $error = translate ( "You are not authorized" );
 }
@@ -90,11 +90,11 @@
 ?>
 
 <div style="border-width:0px; width:99%;">
-<a title="<?php etranslate("Previous")?>" class="prev" 
+<a title="<?php etranslate("Previous")?>" class="prev"
   href="view_v.php?id=<?php echo $id?>&date=<?php echo $prevdate?>">
   <img src="leftarrow.gif" alt="<?php etranslate("Previous")?>" /></a>
 
-<a title="<?php etranslate("Next")?>" class="next" 
+<a title="<?php etranslate("Next")?>" class="next"
   href="view_v.php?id=<?php echo $id?>&date=<?php echo $nextdate?>">
   <img src="rightarrow.gif" class="prevnext" alt="<?php etranslate("Next")?>" /></a>
 <div class="title">
@@ -241,7 +241,7 @@
   echo $eventinfo;
 }
 
-echo "<a title=\"" . translate("Generate printer-friendly version") . 
+echo "<a title=\"" . translate("Generate printer-friendly version") .
   "\" class=\"printer\" href=\"view_v.php?id=$id&date=" .
   "$thisdate&friendly=1\" " .
   "target=\"cal_printer_friendly\" onmouseover=\"window.status='" .

Modified: trunk/plugins/old/webcalendar/www/view_w.php
===================================================================
--- trunk/plugins/old/webcalendar/www/view_w.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/view_w.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -42,7 +42,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( empty( $view_name ) ) {
   $error = translate ( "You are not authorized" );
 }
@@ -149,10 +149,10 @@
 ?>
 
 <div style="border-width:0px; width:99%;">
-<a title="<?php etranslate("Previous")?>" class="prev" 
+<a title="<?php etranslate("Previous")?>" class="prev"
   href="view_w.php?id=<?php echo $id?>&date=<?php echo $prevdate?>">
   <img src="leftarrow.gif" alt="<?php etranslate("Previous")?>" /></a>
-<a title="<?php etranslate("Next")?>" class="next" 
+<a title="<?php etranslate("Next")?>" class="next"
   href="view_w.php?id=<?php echo $id?>&date=<?php echo $nextdate?>">
   <img src="rightarrow.gif" alt="<?php etranslate("Next")?>" /></a>
 <div class="title">
@@ -264,7 +264,7 @@
   echo $eventinfo;
 }
 
-echo "<a title=\"" . translate("Generate printer-friendly version") . 
+echo "<a title=\"" . translate("Generate printer-friendly version") .
   "\" class=\"printer\" href=\"view_w.php?id=$id&date=$date&friendly=1\" " .
   "target=\"cal_printer_friendly\" onmouseover=\"window.status='" .
   translate("Generate printer-friendly version") .

Modified: trunk/plugins/old/webcalendar/www/views_edit.php
===================================================================
--- trunk/plugins/old/webcalendar/www/views_edit.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/views_edit.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -51,7 +51,7 @@
 }
 
 // If view_name not found, then the specified view id does not
-// belong to current user. 
+// belong to current user.
 if ( empty( $viewname ) ) {
   $error = translate ( "You are not authorized" );
 }
@@ -79,7 +79,7 @@
   print_trailer ();
   exit;
 }
-	
+
 if ( $newview ) {
   $v = array ();
   echo "<h2>" . translate("Add View") . "</h2>\n";

Modified: trunk/plugins/old/webcalendar/www/week.php
===================================================================
--- trunk/plugins/old/webcalendar/www/week.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/week.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,7 +21,7 @@
 }
 
 $wkend = $wkstart + ( 3600 * 24 * 6 );
- 
+
 $startdate = date ( "Ymd", $wkstart );
 $enddate = date ( "Ymd", $wkend );
 
@@ -43,7 +43,7 @@
   ! empty ( $auto_refresh_time ) ) {
   $refresh = $auto_refresh_time * 60; // convert to seconds
   $HeadX = "<meta http-equiv=\"refresh\" content=\"$refresh; url=week.php?$u_url" .
-    "date=$startdate$caturl" . 
+    "date=$startdate$caturl" .
     ( ! empty ( $friendly ) ? "&friendly=1" : "") . "\" />\n";
 }
 $INC = array('js/popups.php');
@@ -77,14 +77,14 @@
     translate("Week") . " " . week_number ( $wkstart ) . ")</span>";
 }
 ?>
-<a title="<?php etranslate("Previous")?>" 
-class="prev" href="week.php?<?php echo $u_url; ?>date=<?php echo 
-  date("Ymd", $prev ) . $caturl;?>"><img src="leftarrow.gif" 
+<a title="<?php etranslate("Previous")?>"
+class="prev" href="week.php?<?php echo $u_url; ?>date=<?php echo
+  date("Ymd", $prev ) . $caturl;?>"><img src="leftarrow.gif"
   alt="<?php etranslate("Previous")?>" /></a>
 
-<a title="<?php etranslate("Next")?>" class="next" 
-href="week.php?<?php echo $u_url;?>date=<?php echo 
-  date ("Ymd", $next ) . $caturl;?>"><img src="rightarrow.gif" 
+<a title="<?php etranslate("Next")?>" class="next"
+href="week.php?<?php echo $u_url;?>date=<?php echo
+  date ("Ymd", $next ) . $caturl;?>"><img src="rightarrow.gif"
   alt="<?php etranslate("Next")?>" /></a>
 <span class="user"><?php
   if ( $single_user == "N" ) {
@@ -98,10 +98,10 @@
   }
 ?></span>
 <?php
-  if ( $categories_enabled == "Y" && (!$user || ($user == $login || 
+  if ( $categories_enabled == "Y" && (!$user || ($user == $login ||
     $is_assistant ))) {
     echo "<br /><br />\n";
-    print_category_menu('week', sprintf ( "%04d%02d%02d",$thisyear, 
+    print_category_menu('week', sprintf ( "%04d%02d%02d",$thisyear,
       $thismonth, $thisday ), $cat_id );
   }
 ?></div>
@@ -262,7 +262,7 @@
         // this will move entries apart that appear in one field,
         // yet start on different hours
         for ( $u = $diff_start_time ; $u > 0 ; $u-- ) {
-          $hour_arr[$last_row] .= "<br />\n"; 
+          $hour_arr[$last_row] .= "<br />\n";
         }
         $hour_arr[$last_row] .= $hour_arr[$i];
         $hour_arr[$i] = "";
@@ -366,7 +366,7 @@
      }
      echo ">";
      if ( $can_add ) { //if user can add events...
-       echo html_for_add_icon (  date ( "Ymd", $days[$d] ), $time_h, $time_m, 
+       echo html_for_add_icon (  date ( "Ymd", $days[$d] ), $time_h, $time_m,
          $user ); //..then echo the add event icon
      }
      echo " </td>\n";
@@ -397,7 +397,7 @@
   }
   echo "</tr>\n";
 }
-?> 
+?>
 </table>
 <br />
 
@@ -405,12 +405,12 @@
 if ( ! empty ( $eventinfo ) ) {
   echo $eventinfo;
 }
-display_unapproved_events ( ( $is_assistant || 
+display_unapproved_events ( ( $is_assistant ||
   $is_nonuser_admin ? $user : $login ) );
 ?>
 
 <br />
-<a title="<?php etranslate("Generate printer-friendly version")?>" 
+<a title="<?php etranslate("Generate printer-friendly version")?>"
 class="printer" href="week.php?<?php
   echo $u_url;
   if ( $thisyear ) {

Modified: trunk/plugins/old/webcalendar/www/week_details.php
===================================================================
--- trunk/plugins/old/webcalendar/www/week_details.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/week_details.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -110,14 +110,14 @@
 
   if ( $can_add ) {
     echo "<a title=\"" .
-      translate("New Entry") . "\" href=\"edit_entry.php?" . 
-      $u_url . "date=" . 
+      translate("New Entry") . "\" href=\"edit_entry.php?" .
+      $u_url . "date=" .
       date ( "Ymd", $days[$d] ) . "\"><img src=\"new.gif\" class=\"new\" alt=\"" .
       translate("New Entry") . "\" /></a>\n";
   }
   echo "<a title=\"" .
-    $header[$d] . "\" href=\"day.php?" . 
-    $u_url . "date=" . 
+    $header[$d] . "\" href=\"day.php?" .
+    $u_url . "date=" .
     date("Ymd", $days[$d] ) . "$caturl\">" .
     $header[$d] . "</a></th>\n</tr>\n";
 
@@ -146,8 +146,8 @@
     echo "year=$thisyear&month=$thismonth&day=$thisday";
   }
   echo $caturl . "&";
-?>friendly=1" target="cal_printer_friendly" 
-onmouseover="window.status = '<?php etranslate("Generate printer-friendly version")?>'">[<?php 
+?>friendly=1" target="cal_printer_friendly"
+onmouseover="window.status = '<?php etranslate("Generate printer-friendly version")?>'">[<?php
 	etranslate("Printer Friendly")
 ?>]</a>
 
@@ -184,11 +184,11 @@
   if ( $pri == 3 ) echo "<strong>";
 	$divname = "eventinfo-$id-$key";
 	$key++;
-	echo "<a title=\"" . 
+	echo "<a title=\"" .
 		translate("View this entry") . "\" class=\"$class\" href=\"view_entry.php?id=$id&date=$date";
 	if ( strlen ( $user ) > 0 )
 		echo "&user=" . $user;
-	echo "\" onmouseover=\"window.status='" . 
+	echo "\" onmouseover=\"window.status='" .
 		translate("View this entry") .	"'; return true;\" onmouseout=\"window.status=''; return true;\">";
 	echo "<img src=\"circle.gif\" class=\"bullet\" alt=\"view icon\" />";
 

Modified: trunk/plugins/old/webcalendar/www/ws/get_events.php
===================================================================
--- trunk/plugins/old/webcalendar/www/ws/get_events.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/ws/get_events.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -97,7 +97,7 @@
   $pri[3] = translate("High");
 
   // get participants first...
- 
+
   $sql = "SELECT cal_login FROM webcal_entry_user " .
     "WHERE cal_id = $id AND cal_status IN ('A','W') " .
     "ORDER BY cal_login";
@@ -176,7 +176,7 @@
   if ( ! $disable_priority_field )
     echo "  <priority>" . $pri[$row[6]] . "</priority>\n";
   if ( ! $disable_access_field )
-    echo "  <access>" . 
+    echo "  <access>" .
       ( $row[8] == "P" ? translate("Public") : translate("Confidential") ) .
       "</access>\n";
   if ( ! strlen ( $single_user_login ) )

Modified: trunk/plugins/old/webcalendar/www/ws/get_reminders.php
===================================================================
--- trunk/plugins/old/webcalendar/www/ws/get_reminders.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/ws/get_reminders.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -129,7 +129,7 @@
   $pri[3] = translate("High");
 
   // get participants first...
- 
+
   $sql = "SELECT cal_login FROM webcal_entry_user " .
     "WHERE cal_id = $id AND cal_status IN ('A','W') " .
     "ORDER BY cal_login";
@@ -212,7 +212,7 @@
   if ( ! $disable_priority_field )
     echo "  <priority>" . $pri[$row[6]] . "</priority>\n";
   if ( ! $disable_access_field )
-    echo "  <access>" . 
+    echo "  <access>" .
       ( $row[8] == "P" ? translate("Public") : translate("Confidential") ) .
       "</access>\n";
   if ( ! strlen ( $single_user_login ) )

Modified: trunk/plugins/old/webcalendar/www/year.php
===================================================================
--- trunk/plugins/old/webcalendar/www/year.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/old/webcalendar/www/year.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,7 +44,7 @@
 
  print_header();
  ?>
- 
+
 <div class="title">
 	<a title="<?php etranslate("Previous")?>" class="prev" href="year.php?year=<?php echo $prevYear; if ( ! empty ( $user ) ) echo "&user=$user";?>"><img src="leftarrow.gif" alt="<?php etranslate("Previous")?>" /></a>
 	<a title="<?php etranslate("Next")?>" class="next" href="year.php?year=<?php echo $nextYear; if ( ! empty ( $user ) ) echo "&user=$user";?>"><img src="rightarrow.gif" alt="<?php etranslate("Next")?>" /></a>
@@ -64,7 +64,7 @@
 	?></span>
 </div>
 <br />
- 
+
 <div align="center">
 	<table class="main">
 		<tr><td>
@@ -91,7 +91,7 @@
 <br />
 <?php display_unapproved_events ( $login ); ?>
 <br />
-<a title="<?php 
+<a title="<?php
 	etranslate("Generate printer-friendly version")
 ?>" class="printer" href="year.php?<?php
 	if ( $thisyear )

Modified: trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php
===================================================================
--- trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/helloworld/cronjobs/manage_helloworld.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -29,10 +29,10 @@
 // MailingList backend class
 /* This is only sample
 require_once $gfplugins.'helloworld/include/BackendHelloworld.class.php' ;
-			 
 
+
 $res = db_query_params ('SELECT id,type, parameters FROM system_event WHERE status=$1 ORDER BY id DESC',
-			array ('1')); 
+			array ('1'));
 if (!$res) {
 	printf('Unable to get list of events: '.db_error());
 	return false;
@@ -50,7 +50,7 @@
 }
 if(isset($events)) {
 	foreach($events as $event_id => $log) {
-		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;"; 
+		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;";
 		$result = db_query_params($sql,array(time(),$log,$event_id));
 		if (!$result) {
 			printf('Unable to update the list of events: '.db_error());

Modified: trunk/plugins/templates/helloworld/etc/plugins/helloworld/config.php
===================================================================
--- trunk/plugins/templates/helloworld/etc/plugins/helloworld/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/helloworld/etc/plugins/helloworld/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 // here you can put all your configuration variables
 

Modified: trunk/plugins/templates/helloworld/include/helloworldPlugin.class.php
===================================================================
--- trunk/plugins/templates/helloworld/include/helloworldPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/helloworld/include/helloworldPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,7 +44,7 @@
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
 				echo $HTML->PrintSubMenu (array ($text),
 						  array ('/plugins/helloworld/index.php' . $param ));
-						  
+
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
@@ -64,7 +64,7 @@
 			} else {
 				$params['TITLES'][]=$this->text." is [Off]";
 				$params['DIRS'][]='';
-			}	
+			}
 			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
 		} elseif ($hookname == "groupisactivecheckbox") {
 			//Check if the group is active
@@ -115,10 +115,10 @@
 				echo '<p>'.util_make_link ("/plugins/helloworld/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('HelloWorld Admin')).'</p>' ;
 			}
-		}												    
+		}
 		elseif ($hookname == "blahblahblah") {
 			// ...
-		} 
+		}
 	}
 }
 

Modified: trunk/plugins/templates/helloworld/www/admin/index.php
===================================================================
--- trunk/plugins/templates/helloworld/www/admin/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/helloworld/www/admin/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,25 +13,25 @@
 require_once $gfconfig.'plugins/helloworld/config.php';
 
 // the header that displays for the user portion of the plugin
-function helloworld_Project_Header($params) {                                                                                                                                         
+function helloworld_Project_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$id;
-	$params['toptab']='helloworld'; 
+	$params['toptab']='helloworld';
 	$params['group']=$id;
-	/*                                                                                                                                                              
-		Show horizontal links                                                                                                                                   
-	*/                                                                                                                                                              
-	site_project_header($params);														
+	/*
+		Show horizontal links
+	*/
+	site_project_header($params);
 }
 
 // the header that displays for the project portion of the plugin
 function helloworld_User_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$user_id;
-	$params['toptab']='helloworld'; 
+	$params['toptab']='helloworld';
 	$params['user']=$user_id;
-	/*                                                                                                                                                              
-	 Show horizontal links                                                                                                                                   
-	 */                                                                                                                                                              
-	site_user_header($params);    
+	/*
+	 Show horizontal links
+	 */
+	site_user_header($params);
 }
 
 
@@ -44,7 +44,7 @@
 	$type = getStringFromRequest('type');
 	$id = getStringFromRequest('id');
 	$pluginname = getStringFromRequest('pluginname');
-	
+
 	if (!$type) {
 		exit_error("Cannot Process your request","No TYPE specified"); // you can create items in Base.tab and customize this messages
 	} elseif (!$id) {
@@ -56,26 +56,26 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the HelloWorld plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group (optional)
 			if ( !$userperm->IsMember()) {
 				exit_error("Access Denied", "You are not a member of this project");
 			}
 			// other perms checks here...
-			helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+			helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 			// DO THE STUFF FOR THE PROJECT PART HERE
 			echo "We are in the Project HelloWorld plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
 		} elseif ($type == 'user') {
-			$realuser = user_get_object($id);// 
+			$realuser = user_get_object($id);//
 			if (!($realuser) || !($realuser->usesPlugin($pluginname))) {
 				exit_error("Error", "First activate the User's $pluginname plugin through Account Manteinance Page");
 			}
 			if ( (!$user) || ($user->getID() != $id)) { // if someone else tried to access the private HelloWorld part of this user
 				exit_error("Access Denied", "You cannot access other user's personal $pluginname");
 			}
-			helloworld_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));    
+			helloworld_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));
 			// DO THE STUFF FOR THE USER PART HERE
 			echo "We are in the User HelloWorld plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -85,7 +85,7 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the HelloWorld plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group
 			if ( !$userperm->IsMember()) {
@@ -93,7 +93,7 @@
 			}
 			//only project admin can access here
 			if ( $userperm->isAdmin() ) {
-				helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+				helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 				// DO THE STUFF FOR THE PROJECT ADMINISTRATION PART HERE
 				echo "We are in the Project HelloWorld plugin <font color=\"#ff0000\">ADMINISTRATION</font> <br>";
 				echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -101,8 +101,8 @@
 				exit_error("Access Denied", "You are not a project Admin");
 			}
 		}
-	}	 
-	
+	}
+
 	site_project_footer(array());
 
 // Local Variables:

Modified: trunk/plugins/templates/helloworld/www/index.php
===================================================================
--- trunk/plugins/templates/helloworld/www/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/helloworld/www/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,25 +13,25 @@
 require_once $gfconfig.'plugins/helloworld/config.php';
 
 // the header that displays for the user portion of the plugin
-function helloworld_Project_Header($params) {                                                                                                                                         
+function helloworld_Project_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$id;
-	$params['toptab']='helloworld'; 
+	$params['toptab']='helloworld';
 	$params['group']=$id;
-	/*                                                                                                                                                              
-		Show horizontal links                                                                                                                                   
-	*/                                                                                                                                                              
-	site_project_header($params);														
+	/*
+		Show horizontal links
+	*/
+	site_project_header($params);
 }
 
 // the header that displays for the project portion of the plugin
 function helloworld_User_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$user_id;
-	$params['toptab']='helloworld'; 
+	$params['toptab']='helloworld';
 	$params['user']=$user_id;
-	/*                                                                                                                                                              
-	 Show horizontal links                                                                                                                                   
-	 */                                                                                                                                                              
-	site_user_header($params);    
+	/*
+	 Show horizontal links
+	 */
+	site_user_header($params);
 }
 
 
@@ -44,7 +44,7 @@
 	$type = getStringFromRequest('type');
 	$id = getStringFromRequest('id');
 	$pluginname = getStringFromRequest('pluginname');
-	
+
 	if (!$type) {
 		exit_error("Cannot Process your request","No TYPE specified"); // you can create items in Base.tab and customize this messages
 	} elseif (!$id) {
@@ -56,26 +56,26 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the HelloWorld plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group (optional)
 			if ( !$userperm->IsMember()) {
 				exit_error("Access Denied", "You are not a member of this project");
 			}
 			// other perms checks here...
-			helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+			helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 			// DO THE STUFF FOR THE PROJECT PART HERE
 			echo "We are in the Project HelloWorld plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
 		} elseif ($type == 'user') {
-			$realuser = user_get_object($id);// 
+			$realuser = user_get_object($id);//
 			if (!($realuser) || !($realuser->usesPlugin($pluginname))) {
 				exit_error("Error", "First activate the User's $pluginname plugin through Account Manteinance Page");
 			}
 			if ( (!$user) || ($user->getID() != $id)) { // if someone else tried to access the private HelloWorld part of this user
 				exit_error("Access Denied", "You cannot access other user's personal $pluginname");
 			}
-			helloworld_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));    
+			helloworld_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));
 			// DO THE STUFF FOR THE USER PART HERE
 			echo "We are in the User HelloWorld plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -85,7 +85,7 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the HelloWorld plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group
 			if ( !$userperm->IsMember()) {
@@ -93,7 +93,7 @@
 			}
 			//only project admin can access here
 			if ( $userperm->isAdmin() ) {
-				helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+				helloworld_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 				// DO THE STUFF FOR THE PROJECT ADMINISTRATION PART HERE
 				echo "We are in the Project HelloWorld plugin <font color=\"#ff0000\">ADMINISTRATION</font> <br>";
 				echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -101,8 +101,8 @@
 				exit_error("Access Denied", "You are not a project Admin");
 			}
 		}
-	}	 
-	
+	}
+
 	site_project_footer(array());
 
 // Local Variables:

Modified: trunk/plugins/templates/scmcpold/common/CpoldPlugin.class.php
===================================================================
--- trunk/plugins/templates/scmcpold/common/CpoldPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/scmcpold/common/CpoldPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -9,7 +9,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -28,22 +28,22 @@
 		$this->text = 'CPOLD';
 		$this->hooks[] = 'scm_generate_snapshots' ;
 		$this->hooks[] = 'scm_cpold_do_nothing' ;
-		
+
 		require $gfconfig.'plugins/scmcpold/config.php' ;
-		
+
 		$this->default_cpold_server = $default_cpold_server ;
 		if (isset ($cpold_root)) {
 			$this->cpold_root = $cpold_root;
 		} else {
 			$this->cpold_root = $GLOBALS['sys_chroot'].'/scmrepos/cpold' ;
 		}
-		
+
 		$this->register () ;
 	}
-	
+
 	function CallHook ($hookname, &$params) {
 		global $HTML;
-		
+
 		switch ($hookname) {
 		case 'scm_cpold_do_nothing':
 			// Do nothing
@@ -98,7 +98,7 @@
 		if (!$project) {
 			return false ;
 		}
-				
+
 		if (! $project->usesPlugin ($this->name)) {
 			return false;
 		}
@@ -124,7 +124,7 @@
 		if (!$project) {
 			return false ;
 		}
-		
+
 		$group_name = $project->getUnixName() ;
 
 		$tarball = $sys_scm_tarballs_path.'/'.$group_name.'-scmroot.tar.gz';

Modified: trunk/plugins/templates/scmcpold/common/scmcpold-init.php
===================================================================
--- trunk/plugins/templates/scmcpold/common/scmcpold-init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/scmcpold/common/scmcpold-init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -9,7 +9,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU

Modified: trunk/plugins/templates/scmcpold/etc/plugins/scmcpold/config.php
===================================================================
--- trunk/plugins/templates/scmcpold/etc/plugins/scmcpold/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/plugins/templates/scmcpold/etc/plugins/scmcpold/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,5 +1,5 @@
 <?php
- 
+
 $default_cpold_server = $GLOBALS['sys_scm_host'];
 // $cpold_root = $GLOBALS['sys_chroot'].'/scmrepos/cpold' ;
 
@@ -7,5 +7,5 @@
 // mode: php
 // c-file-style: "bsd"
 // End:
- 
+
 ?>

Modified: trunk/src/common/dao/CodendiDataAccess.class.php
===================================================================
--- trunk/src/common/dao/CodendiDataAccess.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/dao/CodendiDataAccess.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,12 +23,12 @@
 require_once('include/DataAccess.class.php');
 
 class CodendiDataAccess extends DataAccess {
-    
+
     protected function __construct() {
-      
+
       $this->DataAccess();
     }
-    
+
     protected static $_instance;
     public static function instance() {
         if (!isset(self::$_instance)) {
@@ -37,9 +37,9 @@
         }
         return self::$_instance;
     }
-    
-    
+
+
 }
 
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/common/dao/include/DataAccess.class.php
===================================================================
--- trunk/src/common/dao/include/DataAccess.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/dao/include/DataAccess.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,13 +28,13 @@
     * Constucts a new DataAccess object
     */
     function DataAccess() {
-       
+
     }
    function quoteSmart($value, $params = array()) {
-        
+
         return $value;
     }
-     
 
+
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/common/dao/include/DataAccessObject.class.php
===================================================================
--- trunk/src/common/dao/include/DataAccessObject.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/dao/include/DataAccessObject.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -12,11 +12,11 @@
     */
     function DataAccessObject( & $da ) {
         $this->table_name = 'CLASSNAME_MUST_BE_DEFINE_FOR_EACH_CLASS';
-        
+
         $this->da=$da;
     }
-	
 
+
     //! An accessor
     /**
     * For SELECT queries
@@ -25,7 +25,7 @@
     */
     function &retrieve($sql,$params) {
         $result = new DataAccessResult(db_query_params($sql,$params));
-        
+
         return $result;
     }
 
@@ -39,8 +39,8 @@
         $result = db_query_params($sql,$params);
         return $result;
     }
-    
-    
-   
+
+
+
 }
 ?>

Modified: trunk/src/common/dao/include/DataAccessResult.class.php
===================================================================
--- trunk/src/common/dao/include/DataAccessResult.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/dao/include/DataAccessResult.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -17,14 +17,14 @@
     var $_current;
     var $_row;
     var $nb_rows;
-    
+
     function DataAccessResult($result) {
         $this->result       = $result;
-        
+
             $this->_current = -1;
             $this->_row     = false;
             $this->rewind();
-       
+
     }
 
     /**
@@ -59,33 +59,33 @@
         else
             return false;
     }
-    
-    
+
+
     // {{{ Iterator
     function &current() {
         return $this->_row;
     }
-    
+
     function next() {
         $this->_current++;
         if ($this->_current < $this->rowCount()) {
-        $this->_row = db_fetch_array_by_row($this->result, $this->_current);   
+        $this->_row = db_fetch_array_by_row($this->result, $this->_current);
         } else {
             $this->_row = false;
         }
     }
-    
+
     function valid() {
         return $this->_row !== false;
     }
-    
+
     function rewind() {
         if ($this->rowCount() > 0) {
             $this->_current = -1;
             $this->next();
         }
     }
-    
+
     function key() {
         return $this->_current;
     }

Modified: trunk/src/common/docman/actions/injectzip.php
===================================================================
--- trunk/src/common/docman/actions/injectzip.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/docman/actions/injectzip.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -38,7 +38,7 @@
 $doc_group = getIntFromRequest('dirid');
 $uploaded_zip = getUploadedFile('uploaded_zip');
 $dg = new DocumentGroup($g,$doc_group);
-	
+
 if ($dg->isError())
 	session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($dg->getErrorMessage()));
 

Modified: trunk/src/common/docman/engine/parser_text.inc.php
===================================================================
--- trunk/src/common/docman/engine/parser_text.inc.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/docman/engine/parser_text.inc.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,7 +44,7 @@
 		$buff = mb_convert_encoding($buff, "ascii");
 	}
 
-	// élimination caractères avec accents 
+	// élimination caractères avec accents
 	// et caractères spéciaux
 	$buff = suppression_diacritics($buff);
 	// tous les mots dans un tableau

Modified: trunk/src/common/docman/include/DocumentGroupHTML.class.php
===================================================================
--- trunk/src/common/docman/include/DocumentGroupHTML.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/docman/include/DocumentGroupHTML.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -70,7 +70,7 @@
 
 		// Recursively build the document group tree
 		$this->buildArrays($group_arr, $id_array, $text_array, $dont_display);
-		
+
 		echo html_build_select_box_from_arrays($id_array, $text_array, $select_name, $selected_id, false);
 	}
 
@@ -95,10 +95,10 @@
 			if (in_array($doc_group->getID(), $dont_display)) continue;
 
 			$margin = str_repeat("--", $level);
-			
+
 			$id_array[] = $doc_group->getID();
 			$text_array[] = $margin.$doc_group->getName();
-			
+
 			// Show childs (if any)
 			$this->buildArrays($group_arr, $id_array, $text_array, $dont_display, $doc_group->getID(), $level+1);
 		}

Modified: trunk/src/common/docman/include/vtemplate.class.php
===================================================================
--- trunk/src/common/docman/include/vtemplate.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/docman/include/vtemplate.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -5,16 +5,16 @@
  * Version : 1.3.2 Base Edition ( Decembre 2003 ) build 1
  *
  * Address : http://vtemplate.sourceforge.net
- * 
- * Authors: 
+ *
+ * Authors:
  *   + THIEBAUT Jean-Baptiste(J.Baptiste at leweby.com)  -  http://www.leweby.com .
  *   + CAMPANA François (fc at netouaibe.com).
  * Licence: GPL.
- * 
- * 
  *
- *			  
- *****************************************************************/ 
+ *
+ *
+ *
+ *****************************************************************/
 
 if ( !isset($DEFINE_VTEMPLATE) ){
 define("ALL",1);
@@ -145,19 +145,19 @@
 
 function parseVar_orig(){
  // Récupération des noms des variables
- $regle = "|".VARTAG."(.*)}|sU"; 
+ $regle = "|".VARTAG."(.*)}|sU";
  preg_match_all ($regle,$this->source,$var1);
  // Création du tableau de variable  à partir de la liste parsée.
  $this->varlist=@array_merge($var[1],$var1[1]);
 return 1;
-} 
+}
 
 // la fonction parseVar a été reécrire ( voir l'origin parseVar_orig )
 // car des prblèmes se présentaient avec array_merge quand la classe
 // était utilisée avec php5 ( bogue dans php5beta4 ? )
 function parseVar(){
  // Récupération des noms des variables
- $regle = "|".VARTAG."(.*)}|sU"; 
+ $regle = "|".VARTAG."(.*)}|sU";
  $var1 = array(); $var1[1] = array();
  preg_match_all ($regle,$this->source,$var1);
  /* Création du tableau de variable  à partir de la liste parsée. */
@@ -166,7 +166,7 @@
  	$this->varlist[] = $v;
  }
 return 1;
-} 
+}
 
 function init(){
 if($this->used) return $this->error(1,array($this->stored,$this->name),"SESSION1",1,"init",__LINE__);
@@ -175,7 +175,7 @@
 $this->used = 1;
 }
 function closeSession(){
-// Check if the zone has been used.    
+// Check if the zone has been used.
 if(!$this->used) return $this->error(2,array($this->stored,$this->name),"SESSION2",1,"closeSession",__LINE__);
 // Set Globals vars.
 $this->generateCode();
@@ -230,8 +230,8 @@
 function setGlobalVar($varname,$value){
 $set = 0;
 if (in_array($varname,$this->varlist)){
-  // Replace the var into this session 
-  $this->globalvar[$varname]=$value;   
+  // Replace the var into this session
+  $this->globalvar[$varname]=$value;
   $set = 1;
 }
   // Replace the var into sub zones
@@ -261,7 +261,7 @@
 	if(count($this->subzone)){
 	  foreach(array_keys($this->subzone) as $subzone){
 		$text = ($this->subzone[$subzone]->used) ? $this->subzone[$subzone]->generateCode() : $this->subzone[$subzone]->generated;
-		$this->temp = preg_replace("(\|$subzone\|)",$text,$this->temp); 	
+		$this->temp = preg_replace("(\|$subzone\|)",$text,$this->temp);
 		$this->subzone[$subzone]->reset();
 	  }
     }
@@ -293,10 +293,10 @@
 // Retourne le premier nom de zone qu'il trouve dans le code
 
    preg_match("(<!--VTP_([^()]+)-->)sU",$code,$reg);
-   
+
    // Tester la présence des caratère invalides dans le nom ( | et {});
    if (@count(explode("|",$reg[1]))>1 || @count(explode("{",$reg[1]))>1 || @count(explode("}",$reg[1]))>1) exit($this->error(5,$reg[1],"PARSE1",1,"getNom",__LINE__));
-   
+
    return @$reg[1];
 }
 
@@ -359,12 +359,12 @@
 
 // Create sub-zone
 if (@count($this->sources[$zone]["fils"])){
-   foreach($this->sources[$zone]["fils"] as $subzone){	  
+   foreach($this->sources[$zone]["fils"] as $subzone){
     $this->createSession($handle,$subzone);
     $this->sessions[$handle][$zone]->addSubZone($this->sessions[$handle][$subzone]);
    }
 }
-				  
+
 //end createSession
 }
 
@@ -389,8 +389,8 @@
 if (is_array($this->sessions)){
     foreach($this->sessions as $handle => $v){
 		$declare = $this->setGFile($handle,$var,$value) || $declare;
-		}	
-  } 
+		}
+  }
 return $declare;
 }
 
@@ -401,7 +401,7 @@
 }
 return 1;
 }
- 
+
 // Fin VTemplate_Private
 }
 
@@ -413,7 +413,7 @@
 
 
 /****************************************************************
-	    Core Functions 
+	    Core Functions
 *****************************************************************/
 
 
@@ -463,19 +463,19 @@
    return 1;
 }
 
-function closeSession($handle="{0}",$nom_zone = "|root|"){ 
+function closeSession($handle="{0}",$nom_zone = "|root|"){
 // Close the current session and all his sub-session
 	  // Check if the zone exists.
 	if(!isset($this->sessions[$handle][$nom_zone])) return $this->error(11,array($nom_zone,$this->file_name[$handle]),"TTT5",1,"closeSession",__LINE__);
      // Closing sub-zone
-     $this->sessions[$handle][$nom_zone]->closeSession();	
+     $this->sessions[$handle][$nom_zone]->closeSession();
    return 1;
 }
 
 function setGlobalVar($arg1,$arg2,$arg3){
 if ($arg1 == 1){
   if (!$this->setGAll($arg2,$arg3)) return $this->error(12,$arg2,"TTT6",1,"setGlobalVar",__LINE__);
-  return 1; 
+  return 1;
 }
 if (!isset($this->sessions[$arg1])) return $this->error(13,$arg1,"TTT7",1,"setGlobalVar",__LINE__);
  $tab=explode(".",$arg2);
@@ -546,97 +546,97 @@
 
 
 
-function isZone($handle, $zone="|root|") 
-{ 
-return isset($this->sessions[$handle][$zone]) ; 
-} 
+function isZone($handle, $zone="|root|")
+{
+return isset($this->sessions[$handle][$zone]) ;
+}
 
 function Display($handle="{0}",$display=1,$zone="|root|"){
 	$this->closeSession($handle,$zone);
-	$c_genere = $this->sessions[$handle][$zone]->generated; 
-	
+	$c_genere = $this->sessions[$handle][$zone]->generated;
+
 	if ($display) echo $c_genere; else return ($c_genere);
 }
 //fonction complementaire version BETA
 
 /*
-* 
-On peut l'utiliser : 
-- SetVarTab($array): tout les couples clef/valeur sont valorisées 
-- SetVarTab($array,$index) seuls les couples clef/valeur dont la clef est dans le tableau index ou dont la valeur == $index (si pas tableau) 
-Si $index contient ou est une clef de type zone.clef, la clef sera extraite du texte est servira d'index pour $array 
+*
+On peut l'utiliser :
+- SetVarTab($array): tout les couples clef/valeur sont valorisées
+- SetVarTab($array,$index) seuls les couples clef/valeur dont la clef est dans le tableau index ou dont la valeur == $index (si pas tableau)
+Si $index contient ou est une clef de type zone.clef, la clef sera extraite du texte est servira d'index pour $array
 
-Vincent 
+Vincent
 */
 
-function setVarTab($handle,$zones,$index = array()){ 
-	if (is_array($index)) 
-	{ 
-		if (count($index)>0) 
-		{ 
-			reset($index); 
-			while (list (, $key) = each ($index)) 
-			{ 
-				$tab=explode(".",$key); 
-				if(count($tab)==2){ 
-					$var=$tab[1]; 
-				} 
-				else 
-				{ 
-					$var=$tab[0]; 
-				} 
-				setVar($handle,$key,$zones[$var]); 
-			} 
-		} 
-		else 
-		{ 
-			reset($zones); 
-			while (list ($key, $val) = each ($zones)) 
-			{ 
-				setVar($handle,$key,$val); 
-			} 
-		} 
-	} 
-	else 
-	{ 
-		setVar($handle,$index,$zones[$index]); 
-	} 
-} 
+function setVarTab($handle,$zones,$index = array()){
+	if (is_array($index))
+	{
+		if (count($index)>0)
+		{
+			reset($index);
+			while (list (, $key) = each ($index))
+			{
+				$tab=explode(".",$key);
+				if(count($tab)==2){
+					$var=$tab[1];
+				}
+				else
+				{
+					$var=$tab[0];
+				}
+				setVar($handle,$key,$zones[$var]);
+			}
+		}
+		else
+		{
+			reset($zones);
+			while (list ($key, $val) = each ($zones))
+			{
+				setVar($handle,$key,$val);
+			}
+		}
+	}
+	else
+	{
+		setVar($handle,$index,$zones[$index]);
+	}
+}
 
-function setGlobalVarTab($handle,$zones,$index = array()){ 
+function setGlobalVarTab($handle,$zones,$index = array()){
 
-	if (is_array($index)) 
-	{ 
-		if (count($index)>0) 
-		{ 
-			reset($index); 
-			while (list (, $key) = each ($index)) 
-			{ 
-				$tab=explode(".",$key); 
-				if(count($tab)==2){ 
-					$var=$tab[1]; 
-				} 
-				else 
-				{ 
-					$var=$tab[0]; 
-				} 
-				setGlobalVar($handle,$key,$zones[$var]); 
-			} 
-		} 
-		else 
-		{ 
-			reset($zones); 
-			while (list ($key, $val) = each ($zones)) 
+	if (is_array($index))
+	{
+		if (count($index)>0)
+		{
+			reset($index);
+			while (list (, $key) = each ($index))
 			{
-				GlobalVar($handle,$key,$val); 
-			} 
-		} 
-	} 
-	else 
-	{ 
-		setBlobalVar($handle,$index,$zones[$index]); 
-	} 
-} 
+				$tab=explode(".",$key);
+				if(count($tab)==2){
+					$var=$tab[1];
+				}
+				else
+				{
+					$var=$tab[0];
+				}
+				setGlobalVar($handle,$key,$zones[$var]);
+			}
+		}
+		else
+		{
+			reset($zones);
+			while (list ($key, $val) = each ($zones))
+			{
+				GlobalVar($handle,$key,$val);
+			}
+		}
+	}
+	else
+	{
+		setBlobalVar($handle,$index,$zones[$index]);
+	}
+}
 
 
 

Modified: trunk/src/common/docman/include/webdav.php
===================================================================
--- trunk/src/common/docman/include/webdav.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/docman/include/webdav.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -79,7 +79,7 @@
 	/*
 	 * PROPFIND - use by any webdav client like cadaver
 	 * called by HTTP_WebDAV_Server
-	 * 
+	 *
 	 * @param	array	options passed by previous functions in HTTP_WebDAV_Server
 	 * @param	array	files passed by previous functions in HTTP_WebDAV_Server
 	 */
@@ -175,7 +175,7 @@
 	/*
 	 * GET - use by http webdav client like your browser firefox
 	 * called by HTTP_WebDAV_Server
-	 * 
+	 *
 	 * @param	array	options passed by previous functions in HTTP_WebDAV_Server
 	 */
 	function GET(&$options) {

Modified: trunk/src/common/event/Event.class.php
===================================================================
--- trunk/src/common/event/Event.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/event/Event.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,13 +18,13 @@
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  */
 class Event {
-   
+
     /**
      * Use this event to get the class name of an external event type (plugins)
      * see git plugin for implementation example
      */
      const GET_SYSTEM_EVENT_CLASS = 'get_system_event_class';
-     
-   
+
+
 }
 ?>

Modified: trunk/src/common/forum/AttachManager.class.php
===================================================================
--- trunk/src/common/forum/AttachManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/forum/AttachManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,26 +24,26 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-/* 
+/*
 	by Daniel Perez - 2005
 */
 
 class AttachManager extends Error {
-	
+
 	var $attachs = array(); //the attached files
 	var $msg_id; //the msg_id that links to the attachs
 	var $user_id,$dateline,$filename,$filedata,$filesize,$visible,$filehash,$posthash;
 	var $messages = array();
 	var $ForumMsg; // The Forum object
-	
+
 	function Setmsgid($id) {
 		$this->msg_id = $id;
 	}
-	
+
 	function Getmessages() {
 		return $this->messages;
 	}
-	
+
 	function fillvalues($user_id,$dateline,$filename,$filedata,$filesize,$visible,$filehash,$posthash) {
 		$this->user_id = $user_id;
 		$this->dateline = $dateline;
@@ -53,7 +53,7 @@
 		$this->filehash = $filehash;
 		$this->posthash = $posthash;
 	}
-	
+
 	/**
 	* Function SetForumMsg
 	*
@@ -62,7 +62,7 @@
 	function SetForumMsg(&$ForumMsg) {
 		$this->ForumMsg =& $ForumMsg;
 	}
-	
+
 	/**
 	* Function GetAttachId
 	*
@@ -77,23 +77,23 @@
 			return false;
 		}
 	}
-	
+
 	/**
 	* Function PrintHelperFunctions
 	*
 	*
 	* @return 	returns the javascript helper functions
 	*/
-	
+
 	function PrintHelperFunctions() {
 		return '<script language="JavaScript" type="text/javascript">/* <![CDATA[ */
-		
+
 		function confirmDel() {
 			var agree=confirm("Proceed with deletion? ");
 			if (agree) return true ;
 			else return false ;
 		}
-		
+
 		function manageattachments(url,del) {
 			var newwindow;
 			if (del=="yes") {
@@ -105,7 +105,7 @@
 		}
 		/* ]]> */</script>';
 	}
-	
+
 	 /**
 	 * Function PrintAttachLink
 	 *
@@ -116,7 +116,7 @@
 	 * @return 	returns link to attachment /delete if corresponding; else returns a message about no attachment found
 	 */
 	function PrintAttachLink(&$msg,$group_id,$forum_id) {
-		
+
 		//ask if the message has an attachment
 		$msg_id = $msg->getID();
 		if ($msg->isPending()) {
@@ -128,7 +128,7 @@
 						array ($msg_id));
 			$pend = "";
 		}
-		
+
 		$attach = '';
 		$attachid = '';
 		if ($res && db_numrows($res)) {
@@ -138,7 +138,7 @@
 			$attach = "<br/>
 			<a href=\"javascript:manageattachments('".util_make_url("/forum/attachment.php?attachid=$attachid&group_id=$group_id&forum_id=$forum_id$pend")."','no');\">" . html_image('ic/cfolder15.png',"15","13") . db_result($res,0,'filename') . "</a>  (" . db_result($res,0,'counter') . ") downloads";
 			$attach_userid = db_result($res,0,'userid');
-			
+
 			$f = $msg->getForum();
 			if (!$f || !is_object($f)) {
 			exit_error('Error', _('Could Not Get Forum Object'));
@@ -165,10 +165,10 @@
 				}
 			}
 		}
-		
+
 		return $attach;
 	}
-	
+
 	/**
 	 * Function AddToDBOnly : DB Query Only - used for releasing pending messages
 	 *
@@ -182,7 +182,7 @@
 		} else {
 			$this->msg_id = db_result($result,0,0);
 			if (db_query_params ('INSERT INTO forum_attachment (userid, dateline, filename, filedata, filesize, visible, msg_id , filehash, mimetype)
-					VALUES 
+					VALUES
 					( $1 , $2, $3,
 					$4, $5, $6, $7,  $8, $9)',
 			array ($userid,
@@ -201,9 +201,9 @@
 			}
 		}
 	}
-	
-	
-	
+
+
+
 	/**
 	 * Function attach : saves the file in the DB
 	 *
@@ -222,15 +222,15 @@
 		$attachment_name = trim($attach['name']);
 		$attachment_size = trim($attach['size']);
 		$attachment_type = trim($attach['type']);
-			
+
 		if ($attachment == 'none' OR empty($attachment) OR empty($attachment_name))
 		{
 			return false; //no point in continuing if there's no file
 		}
-		
+
 		$attachment_name2 = strtolower($attachment_name);
 		$extension = substr(strrchr($attachment_name2, '.'), 1);
-		
+
 		if ($extension == 'exe')
 		{
 			// invalid extension
@@ -239,21 +239,21 @@
 			@unlink($attachment);
 			return false;
 		}
-		
+
 		if (!is_uploaded_file($attachment) || !($filestuff = @file_get_contents($attachment)) )
 		{
 			$this->messages[] = _('Error, problem with the attachment file uploaded into the server');
 			return false;
 		}
-		
+
 		if (!session_loggedin()) {
 			$user_id = 100;
 		}	else {
 			$user_id = user_getid();
 		}
-		
+
 		$id = 0;
-			
+
 		if ($this->ForumMsg->isPending()) {
 			if ($update) {
 				//update the fileinfo
@@ -274,7 +274,7 @@
 					}
 				}
 				$res = db_query_params ('INSERT INTO forum_pending_attachment (userid, dateline, filename, filedata, filesize, visible, msg_id , filehash, mimetype)
-					VALUES 
+					VALUES
 					( $1 , $2, $3,
 					$4, $5, 1, $6,  $7, $8)',
 			array ($user_id,
@@ -296,8 +296,8 @@
 			if ($update) {
 				//update the fileinfo
 				if (db_query_params ('UPDATE forum_attachment SET dateline = $1 , filedata = $2 ,
-				 filename = $3 , 
-				 filehash = $4 , 
+				 filename = $3 ,
+				 filehash = $4 ,
 				 mimetype = $5 ,
 				 counter = 0 ,
 				 filesize = $6 where attachmentid=$7',
@@ -330,7 +330,7 @@
 					}
 				}
 				$res = db_query_params ('INSERT INTO forum_attachment (userid, dateline, filename, filedata, filesize, visible, msg_id , filehash, mimetype)
-					VALUES 
+					VALUES
 					( $1 , $2, $3,
 					$4, $5, 1, $6,  $7, $8)',
 			array ($user_id,

Modified: trunk/src/common/forum/Forum.class.php
===================================================================
--- trunk/src/common/forum/Forum.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/forum/Forum.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -31,7 +31,7 @@
 
 /**
  * Gets a Forum object from its id
- * 
+ *
  * @param	int	the Forum id
  * @return	object	the Forum object
  */
@@ -49,7 +49,7 @@
 	$f->fetchData($forum_id);
 
 	return $f;
-}	
+}
 
 function forum_get_groupid ($forum_id) {
 	$res = db_query_params('SELECT group_id FROM forum_group_list WHERE group_forum_id=$1',
@@ -211,7 +211,7 @@
 		}
 		$this->group_forum_id=db_insertid($result,'forum_group_list','group_forum_id');
 		$this->fetchData($this->group_forum_id);
-		
+
 		if ($create_default_message) {
 			$fm=new ForumMessage($this);
 			// Use the system side default language
@@ -362,7 +362,7 @@
 	function getDescription() {
 		return $this->data_array['description'];
 	}
-	
+
 	/**
 	 * getModerationLevel - the moderation level of the forum
 	 *
@@ -409,7 +409,7 @@
 					  array($this->getID()));
 		return util_result_column_to_array($result);
 	}
-	
+
 	/**
 	 * getReturnEmailAddress() - return the return email address for notification emails
 	 *
@@ -597,7 +597,7 @@
 					      $is_public,
 					      $this->Group->getID(),
 					      $this->getID()));
-		
+
 		if (!$res || db_affected_rows($res) < 1) {
 			$this->setError(_('Error On Update:').': '.db_error());
 			return false;

Modified: trunk/src/common/forum/ForumAdmin.class.php
===================================================================
--- trunk/src/common/forum/ForumAdmin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/forum/ForumAdmin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,16 +28,16 @@
 class ForumAdmin extends Error {
 	var $group_id;
 	var $p,$g;
-	
+
 	function ForumAdmin($group_id) {
-		$this->group_id = $group_id; 
+		$this->group_id = $group_id;
 		if ($group_id) {
 			$this->group_id = $group_id;
 			$this->g = group_get_object($group_id);
 			$this->p =& $this->g->getPermission ();
 		}
 	}
-	
+
 	/**
 	 *  PrintAdminMessageOptions - prints the different administrator options for a message
 	 *
@@ -47,9 +47,9 @@
 	 *	@param   integer	The Forum ID : to return to the message if the user cancels (forumhtml only, not message.php)
 	 *	@return  The HTML output
 	 */
-	
+
 	function PrintAdminMessageOptions($msg_id,$group_id,$thread_id=0,$forum_id=0,$return_to_message=0) {
-		
+
 		$return = '<a href="admin/index.php?movethread=' . $thread_id  . '&msg_id=' . $msg_id . '&group_id=' . $group_id . '&forum_id=' . $forum_id .
 				  '&return_to_message=' . $return_to_message . '">' . html_image('ic/forum_move.gif','37','15',array('alt'=>_('Move thread'))). "</a>";
 
@@ -63,34 +63,34 @@
 		//		$return .= "<br />";
 		return $return;
 	}
-	
+
 	/**
 	 *  PrintAdminOptions - prints the different administrator option for the forums (heading).
 	 *
 	 */
-	
+
 	function PrintAdminOptions() {
 		global $group_id,$forum_id;
-		
+
 		echo '
 			<p>
 			<a href="index.php?group_id='.$group_id.'&add_forum=1">'._('Add forum').'</a>';
 		echo '
 			| <a href="pending.php?action=view_pending&group_id=' . $group_id . '">' . _('Manage Pending Messages').'</a><br /></p>';
 	}
-	
+
 	/**
 	 *  PrintAdminOptions - prints the administrator option for an individual forum, to link to the pending messages management
 	 *
 	 *	@param 	int		The Forum ID.
 	 */
-	
+
 	function PrintAdminPendingOption($forum_id) {
 		echo '
 			<p>
 			<a href="pending.php?action=view_pending&group_id=' . $this->group_id . '&forum_id=' . $forum_id . '">' . _('Manage Pending Messages').'</a><br /></p>';
 	}
-	
+
 	/**
 	 *  GetPermission - Gets the permission for the user
 	 *
@@ -99,7 +99,7 @@
 	function &GetPermission() {
 		return $this->p;
 	}
-	
+
 	/**
 	 *  GetGroupObject - Gets the group object of the forum
 	 *
@@ -108,7 +108,7 @@
 	function &GetGroupObject() {
 		return $this->g;
 	}
-	
+
 	/**
 	 *  isGroupAdmin - checks whether the authorized user is a group admin for the forums. The user must be authenticated
 	 *
@@ -116,13 +116,13 @@
 	function isGroupAdmin() {
 		return forge_check_perm ('forum_admin', $this->group_id) ;
 	}
-	
+
 	/**
 	 *  Authorized - authorizes and returns true if the user is authorized for the group, or false.
 	 *
 	 *  @param  string	 The group id.
 	 */
-	
+
 	function Authorized($group_id) {
 		if (!$group_id) {
 			$this->setGroupIdError();
@@ -145,7 +145,7 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 *  ExecuteAction - Executes the action passed as parameter
 	 *
@@ -153,7 +153,7 @@
 	 */
 	function ExecuteAction ($action) {
         global $HTML;
-		
+
 		$feedback='';
 		if ($action == "change_status") { //change a forum
 			$forum_name = getStringFromRequest('forum_name');
@@ -270,15 +270,15 @@
 						array ($group_id));
 			if (!$res) {
 				echo db_error();
-				return;			
+				return;
 			}
-			
+
 			$moderated_forums = array();
 			for ($i=0;$i<db_numrows($res);$i++) {
 				$aux = db_fetch_array($res);
 				$moderated_forums[$aux[1]] = $aux[0];
 			}
-			
+
 			if (count($moderated_forums)==0) {
 				echo $HTML->warning_msg(_('No forums are moderated for this group'));
 				forum_footer(array());
@@ -289,10 +289,10 @@
 				$keys = array_keys($moderated_forums);
 				$forum_id = $keys[0];
 			}
-			
+
 			echo '
 			<script language="JavaScript" type="text/javascript">/* <![CDATA[ */
-		
+
 			function confirmDel() {
 				var agree=confirm("' . _('Proceed? Actions are permanent!') . '");
 				if (agree) {
@@ -309,21 +309,21 @@
 			<input type="hidden" name="forum_id" value="' . $forum_id . '" />
 
 			';
-			
+
 			echo html_build_select_box_from_assoc($moderated_forums,'forum_id',$forum_id);
 			echo '    <input name="Go" type="submit" value="Go" />';
-			
+
 			$title = array();
 			$title[] = _('Forum Name');
 			$title[] = _('Message');
 			$title[] = "Action";
-			
+
 			$res = db_query_params ('SELECT msg_id,subject,pm.group_forum_id,gl.forum_name FROM forum_pending_messages pm, forum_group_list gl WHERE pm.group_forum_id=$1 AND pm.group_forum_id=gl.group_forum_id AND gl.group_forum_id=$2',
 			array ($forum_id,
 				$forum_id));
 			if (!$res) {
 				echo db_error();
-				return;			
+				return;
 			}
 
 			//array with the supported actions
@@ -335,7 +335,7 @@
 			for($i=0;$i<db_numrows($res);$i++) {
 				$ids .= db_result($res,$i,'msg_id') . ",";
 			}
-			
+
 			$i = 2;
 			echo $HTML->listTableTop($title);
 			while ($onemsg = db_fetch_array($res)) {
@@ -345,12 +345,12 @@
 				$url = "http://www.google.com";
 				echo "
 				<tr" . $HTML->boxGetAltRowStyle($i++). ">
-					<td>$onemsg[forum_name]</td>	
+					<td>$onemsg[forum_name]</td>
 					<td><a href=\"#\" onclick=\"window.open('pendingmsgdetail.php?msg_id=$onemsg[msg_id]&forum_id=$onemsg[group_forum_id]&group_id=$group_id','PendingMessageDetail','width=800,height=600,status=no,resizable=yes');\">$onemsg[subject]</a></td>
 					<td><div align=\"right\">" . html_build_select_box_from_assoc($options,"doaction[]",1) . "</div></td>
 				</tr>";
 			}
-			
+
 			echo $HTML->listTableBottom();
 			echo '
 			<input type="hidden" name="msgids" value="' . $ids . '" />
@@ -363,22 +363,22 @@
 			$forum_id = getIntFromRequest("forum_id");
 			$msgids = getStringFromRequest("msgids");//the message ids to update
 			$doaction = getArrayFromRequest("doaction"); //the actions for the messages
-			
+
 			$msgids = explode(",",$msgids);
 			array_pop($msgids);//this last one is empty
-			
+
 			/*if ($this->isGroupAdmin()) {
 				$this->PrintAdminOptions();
 			}*/
-			
+
 			$results = array(); //messages
 			for($i=0;$i<count($msgids);$i++) {
 				switch ($doaction[$i]) {
-					case 1 : { 
+					case 1 : {
 						//no action
 						break;
 					}
-					case 2 : { 
+					case 2 : {
 						//delete
 						db_begin();
 						if (!db_query_params ('DELETE FROM forum_pending_attachment WHERE msg_id=$1',
@@ -397,7 +397,7 @@
 						$feedback .= _('Forum deleted');
 						break;
 					}
-					case 3 : { 
+					case 3 : {
 						//release
 						$res1 = db_query_params ('SELECT * FROM forum_pending_messages WHERE msg_id=$1',
 			array ($msgids[$i]));
@@ -464,7 +464,7 @@
 								$deleteok = false;
 							}
 						}
-								
+
 						if ( isset($am) && (is_object($am)) ) {
 							//if there was an attach, check if it was uploaded ok
 							 if ((!$am->isError())) {
@@ -482,7 +482,7 @@
 								$deleteok = false;
 							 }
 						}
-						
+
 						if ($deleteok) {
 							//delete the message and attach
 							db_begin();

Modified: trunk/src/common/forum/ForumFactory.class.php
===================================================================
--- trunk/src/common/forum/ForumFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/forum/ForumFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -83,7 +83,7 @@
 			$result[] = $arr['group_forum_id'] ;
 		}
 		return $result ;
-	}		
+	}
 
 	/**
 	 *	getForums - get an array of Forum objects for this Group.
@@ -97,7 +97,7 @@
 
 		$this->forums = array () ;
 		$ids = $this->getAllForumIds() ;
-		
+
 		if (!empty($ids) ) {
 			foreach ($ids as $id) {
 				if (forge_check_perm ('forum', $id, 'read')) {
@@ -107,7 +107,7 @@
 		}
 		return $this->forums;
 	}
-		
+
 	/**
 	 *	getForumsAdmin - get an array of all (public, private and suspended) Forum objects for this Group.
 	 *
@@ -118,7 +118,7 @@
 			return $this->forums;
 		}
 
-		
+
 		if (session_loggedin()) {
 			if (!forge_check_perm ('forum_admin', $this->Group->getID())) {
 				$this->setError(_("You don't have a permission to access this page"));
@@ -133,9 +133,9 @@
 			$this->setError(_("You don't have a permission to access this page"));
 			$this->forums = false;
 		}
-		
+
 		$rows = db_numrows($result);
-		
+
 		if (!$result) {
 			$this->setError(_('Forum not found').' : '.db_error());
 			$this->forums = false;
@@ -149,11 +149,11 @@
 
 	/**
 	 *	moveThread - move thread in another forum
-	 *	
+	 *
 	 *	@param	string	The forum ID
 	 *	@param	int		The thread_id of the tread to change.
 	 *	@param	string	The old forum ID
-	 * 
+	 *
 	 * 	Note:
 	 *   old forum ID is useless if forum_agg_msg_count table is no longer used
 	 *

Modified: trunk/src/common/forum/ForumMessage.class.php
===================================================================
--- trunk/src/common/forum/ForumMessage.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/forum/ForumMessage.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -42,7 +42,7 @@
 	 * @var	 object  $Forum.
 	 */
 	var $Forum;
-	
+
 		/**
 	 *  Constructor.
 	 *
@@ -102,7 +102,7 @@
 	 *	@param 	int	The id of the user that is posting the message
 	 *	@return	boolean success.
 	*/
-	
+
 	function insertmoderated($subject, $body, $thread_id='', $is_followup_to='',$user_id) {
 		if (!$thread_id) {
 			$thread_id=$this->Forum->getNextThreadID();
@@ -113,7 +113,7 @@
 				return false;
 			}
 		}
-		
+
 		$result = db_query_params ('INSERT INTO forum_pending_messages (group_forum_id,posted_by,subject,
 		body,post_date,is_followup_to,thread_id,most_recent_date) VALUES ($1,$2,$3,$4,$5,$6,$7,$8)',
 					   array ($this->Forum->getID(),
@@ -149,8 +149,8 @@
 			}
 		}
 	}
-	
 
+
 	/**
 	*	insertreleasedmsg - inserts the released message into the main table (forum)
 	 *	@param 	string	The Forum id
@@ -164,10 +164,10 @@
 	 *	@param 	int	most recent date
 	 *	@return	boolean success.
 	*/
-	
+
 	function insertreleasedmsg($group_forum_id,$subject, $body,$post_date, $thread_id, $is_followup_to,$posted_by,$has_followups,$most_recent_date) {
 		if ($is_followup_to != 0) {
-			
+
 			//was posted in reply to another thread
 			//we must check whether that thread still exists. if it does, post the message. else, set the error
 				//
@@ -196,8 +196,8 @@
 			}
 			db_commit();
 		}
-			
-			
+
+
 		db_begin();
 		$result = db_query_params ('INSERT INTO forum (group_forum_id,posted_by,subject,body,post_date,is_followup_to,thread_id,most_recent_date) VALUES ($1,$2,$3,$4,$5,$6,$7,$8)',
 					   array ($group_forum_id,
@@ -235,9 +235,9 @@
 			}
 		}
 	}
-	
-	
-	
+
+
+
 	/**
 	*	insertmsg - inserts the message into the main table (forum)
 	 *	@param	string	The subject of the message.
@@ -248,7 +248,7 @@
 	 *	@param  boolean	Whether the message has an attach associated. Defaults to false
 	 *	@return	boolean success.
 	*/
-	
+
 	function insertmsg($subject, $body, $thread_id='', $is_followup_to='',$user_id,$has_attach=false) {
 		if (!$thread_id) {
 			$thread_id=$this->Forum->getNextThreadID();
@@ -283,7 +283,7 @@
 				}
 			}
 		}
-		
+
 		$result = db_query_params ('INSERT INTO forum (group_forum_id,posted_by,subject,body,post_date,is_followup_to,thread_id,most_recent_date) VALUES ($1,$2,$3,$4,$5,$6,$7,$8)',
 					   array ($this->Forum->getID(),
 						  $user_id,
@@ -321,8 +321,8 @@
 		$this->awaits_moderation = false;
 		return true;
 	}
-	
-	
+
+
 	/**
 	 *	create - use this function to create a new message in the database.
 	 *
@@ -359,12 +359,12 @@
 				return false;
 			}
 		}
-		if (!$is_followup_to) { 
-			$is_followup_to=0; 
+		if (!$is_followup_to) {
+			$is_followup_to=0;
 		}
 
 		db_begin();
-		
+
 		//now we check the moderation status of the forum and act accordingly
 		if (forge_check_perm ('forum', $this->Forum->getID(), 'unmoderated_post')) {
 			//no moderation
@@ -392,7 +392,7 @@
 		db_free_result($res);
 		return true;
 	}
-	
+
 	/**
 	 *  fetchModeratedData - re-fetch the data for this forum_message from the database, for pending messages
 	 *
@@ -492,7 +492,7 @@
 	function getParentID() {
 		return $this->data_array['is_followup_to'];
 	}
-	
+
 	/**
 	 *	isPending - is the message pending, awaiting moderation?
 	 *
@@ -528,13 +528,13 @@
 	function hasFollowups() {
 		return $this->data_array['has_followups'];
 	}
-	
+
 	/**
 	 *	hasAttach - whether this message has an attachment.
 	 *
 	 *	@return boolean has_attach.
 	 */
-	
+
 	function hasAttach() {
 		if ($this->isPending()) {
 			$res = db_query_params ('SELECT attachmentid FROM forum_pending_attachment WHERE msg_id=$1',
@@ -546,7 +546,7 @@
 		if (db_numrows($res) > 0) {
 			return true;
 		}
-		return false;		
+		return false;
 	}
 
 	/**
@@ -560,13 +560,13 @@
 			$this->setError(_('Invalid Message ID'));
 			return false;
 		}
-		
+
 		if (!forge_check_perm ('forum_admin', $this->Forum->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
-		
-		$result = db_query_params ('SELECT msg_id FROM forum 
+
+		$result = db_query_params ('SELECT msg_id FROM forum
 			WHERE is_followup_to=$1
 			AND group_forum_id=$2',
 					   array ($msg_id,
@@ -578,7 +578,7 @@
 			$msg = new ForumMessage($this->Forum,db_result($result,$i,'msg_id'));
 			$count += $msg->delete();
 		}
-		$toss = db_query_params ('DELETE FROM forum 
+		$toss = db_query_params ('DELETE FROM forum
 			WHERE msg_id=$1
 			AND group_forum_id=$2',
 					 array ($msg_id,
@@ -600,7 +600,7 @@
 		$replaced =  preg_replace("/\[.+\](.+)\[\/.+\]/","$1",$text);
 		return $replaced;
 	}
-	
+
 	/**
 	 *	sendNotice - contains the logic to send out email followups when a message is posted.
 	 *
@@ -641,7 +641,7 @@
 			$body = sprintf(_("\nRead and respond to this message at: \n%s"), util_make_url ('/forum/message.php?msg_id='.$this->getID()));
 			if (forge_get_config('use_mail')) {
 				$body .= stripcslashes(sprintf(_('
-Or reply to this e-mail entering your response between the following markers: 
+Or reply to this e-mail entering your response between the following markers:
 %1$s
 (enter your response here)
 %1$s'), FORUM_MAIL_MARKER));
@@ -683,7 +683,7 @@
 				$extra_headers .= "\nIn-Reply-To: ".$this->Forum->getReturnEmailAddress()."\n"
 					."References: <forumpost".$this->getParentId()."@".forge_get_config('web_host').">";
 			}
-			
+
 			$subject="[" . $this->Forum->getUnixName() ."][".$this->getID()."] ".util_unconvert_htmlspecialchars($this->getSubject());
 
 			util_send_message($dest_email,$subject,$body,"noreply@".forge_get_config('web_host'),'','Forum',$extra_headers);
@@ -693,7 +693,7 @@
 		setup_gettext_from_context();
 		return true;
 	}
-	
+
 	/**
 	 *	sendNewModeratedMsgNotice - contains the logic to send out email notifications to the forum admins when a new moderated message is posted
 	 *
@@ -707,14 +707,14 @@
 		foreach ($moderators as $m) {
 			$ids[] = $m->getID () ;
 		}
-		
+
 		//
 		//	See if there is anyone to send messages to
 		//
 		if (!count($ids) > 0 && !$this->Forum->getSendAllPostsTo()) {
 			return true;
 		}
-		
+
 		$f =& $this->getForum();
 		$g =& $f->getGroup();
 
@@ -723,7 +723,7 @@
 		"\nBy: " . $this->getPosterRealName() . "\n\n";
 
 		$text = $this->getBody();
-		$sanitizer = new TextSanitizer();	
+		$sanitizer = new TextSanitizer();
 		$text = $sanitizer->convertNeededTagsForEmail($text);
 		$text= strip_tags($this->removebbcode(util_line_wrap($text)));
 		$text = $sanitizer->convertExtendedCharsForEmail($text);
@@ -752,7 +752,7 @@
 						   array ('A',
 							  db_int_array_to_any_clause ($ids))) ;
 		}
-		
+
 		$BCC = implode(util_result_column_to_array($bccres),',').','.$this->Forum->getSendAllPostsTo();
 		$User = user_get_object($this->getPosterID());
 		//util_send_message('',$subject,$body,$User->getEmail(),$BCC,$this->getPosterRealName(),$extra_headers);
@@ -763,7 +763,7 @@
 
 	/**
 	 *	updatemsg - impacts in the DB the new content of the message
-	 *	
+	 *
 	 *	@param	string	The forum ID
 	 *	@param 	int		The id of the user that is posting the message
 	 *	@param	string	The subject of the message.
@@ -780,7 +780,7 @@
 		$subject = htmlspecialchars($subject);
 		$body = $body;
 		$msg_id = $this->getID();
-		$res = db_query_params ('UPDATE forum 
+		$res = db_query_params ('UPDATE forum
 			SET group_forum_id=$1, posted_by=$2, subject=$3,
 			body=$4, post_date=$5, is_followup_to=$6,
 			thread_id=$7, most_recent_date=$8
@@ -805,7 +805,7 @@
 			return true;
 		}
 	}
-	
+
 	/**
 	 *	sendAttachNotice - contains the logic to send out email attachement followups when a message is posted.
 	 *
@@ -823,11 +823,11 @@
 			if (!count($ids) > 0 && !$this->Forum->getSendAllPostsTo()) {
 				return true;
 			}
-			
+
 			$body = "\nRead and respond to this message at: ".
 				"\n".util_make_url('/forum/message.php?msg_id='.$this->getID()).
 			"\nBy: " . $this->getPosterRealName() . "\n\n";
-			
+
 			$body .= "A file has been uploaded to this message, you can download it at: ".
 				"\n".util_make_url('/forum/attachment.php?attachid='. $attach_id . "&group_id=" . $this->Forum->Group->getID() . "&forum_id=" . $this->Forum->getID()) . "\n\n";
 
@@ -836,7 +836,7 @@
 			"\nYou are receiving this email because you elected to monitor this forum.".
 			"\nTo stop monitoring this forum, login to ".forge_get_config ('forge_name')." and visit: ".
 			"\n".util_make_url ('/forum/monitor.php?forum_id='.$this->Forum->getID() .'&group_id='.$this->Forum->Group->getID().'&stop=1');
-	
+
 			$extra_headers = "Return-Path: <noreply@".forge_get_config('web_host').">\n";
 			$extra_headers .= "Errors-To: <noreply@".forge_get_config('web_host').">\n";
 			$extra_headers .= "Sender: <noreply@".forge_get_config('web_host').">\n";
@@ -850,7 +850,7 @@
 				$extra_headers .= "\nIn-Reply-To: ".$this->Forum->getReturnEmailAddress()."\n"
 					."References: <forumpost".$this->getParentId()."@".forge_get_config('web_host').">";
 			}
-	
+
 			$subject="[" . $this->Forum->getUnixName() ."][".$this->getID()."] ".util_unconvert_htmlspecialchars($this->getSubject());
 			if (count($ids) != 0) {
 				$bccres = db_query_params ('SELECT email FROM users WHERE status=$1 AND user_id = ANY ($2)',
@@ -862,7 +862,7 @@
 			util_send_message('',$subject,$body,"noreply@".forge_get_config('web_host'),$BCC,'Forum',$extra_headers);
 			return true;
 		}
-		
+
 		return false;
 	}
 }

Modified: trunk/src/common/forum/ForumMessageFactory.class.php
===================================================================
--- trunk/src/common/forum/ForumMessageFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/forum/ForumMessageFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -145,7 +145,7 @@
 		for ($i=0; $i<$cnt; $i++) {
 			if ($row[$i]) {
 				$msg_arr["".$row[$i]->getParentID().""][] =& $row[$i];
-			}  
+			}
 	  	}
 		return $msg_arr;
 	}
@@ -160,7 +160,7 @@
 			return $this->forum_messages;
 		}
 		if (isset ($thread_id) && is_numeric($thread_id)) {
-			$result = db_query_params ('SELECT * FROM forum_user_vw 
+			$result = db_query_params ('SELECT * FROM forum_user_vw
 		WHERE group_forum_id=$1
                   AND thread_id=$2
 		ORDER BY most_recent_date DESC',
@@ -169,7 +169,7 @@
 						   $this->max_rows+25,
 						   $this->offset);
 		} else {
-			$result = db_query_params ('SELECT * FROM forum_user_vw 
+			$result = db_query_params ('SELECT * FROM forum_user_vw
 		WHERE group_forum_id=$1
 		ORDER BY most_recent_date DESC',
 						   array ($this->Forum->getID()),
@@ -201,7 +201,7 @@
 			return $this->forum_messages;
 		}
 		if (isset ($thread_id) && is_numeric($thread_id)) {
-			$result = db_query_params ('SELECT * FROM forum_user_vw 
+			$result = db_query_params ('SELECT * FROM forum_user_vw
 		WHERE group_forum_id=$1
                   AND thread_id=$2
 		ORDER BY most_recent_date DESC',
@@ -210,7 +210,7 @@
 						   $this->max_rows+25,
 						   $this->offset);
 		} else {
-			$result = db_query_params ('SELECT * FROM forum_user_vw 
+			$result = db_query_params ('SELECT * FROM forum_user_vw
 		WHERE group_forum_id=$1
 		ORDER BY most_recent_date DESC',
 						   array ($this->Forum->getID()),
@@ -242,7 +242,7 @@
 			return $this->forum_messages;
 		}
 		if (isset ($thread_id) && is_numeric($thread_id)) {
-			$result = db_query_params ('SELECT * FROM forum_user_vw 
+			$result = db_query_params ('SELECT * FROM forum_user_vw
 		WHERE group_forum_id=$1
                   AND thread_id=$2
 		ORDER BY msg_id DESC',
@@ -251,7 +251,7 @@
 						   $this->max_rows+25,
 						   $this->offset);
 		} else {
-			$result = db_query_params ('SELECT * FROM forum_user_vw 
+			$result = db_query_params ('SELECT * FROM forum_user_vw
 		WHERE group_forum_id=$1
 		ORDER BY msg_id DESC',
 						   array ($this->Forum->getID()),

Modified: trunk/src/common/frs/FRSFile.class.php
===================================================================
--- trunk/src/common/frs/FRSFile.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/frs/FRSFile.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -125,7 +125,7 @@
 //
 //	Can't really use is_uploaded_file() or move_uploaded_file()
 //	since we want this to be generalized code
-//	This is potentially exploitable if you do not validate 
+//	This is potentially exploitable if you do not validate
 //	before calling this function
 //
 		if (!is_file($file_location) || !file_exists($file_location)) {
@@ -349,8 +349,8 @@
 			return false;
 		}
 
-		$file=forge_get_config('upload_dir').'/'. 
-			$this->FRSRelease->FRSPackage->Group->getUnixName() . '/' . 
+		$file=forge_get_config('upload_dir').'/'.
+			$this->FRSRelease->FRSPackage->Group->getUnixName() . '/' .
 			$this->FRSRelease->FRSPackage->getFileName().'/'.
 			$this->FRSRelease->getFileName().'/'.
 			$this->getName();

Modified: trunk/src/common/import/import_docman.php
===================================================================
--- trunk/src/common/import/import_docman.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_docman.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -7,20 +7,20 @@
 require_once $gfcommon.'docman/Document.class.php';
 
 class Docman {
-	
+
 	public $doc_group_ids = array();
-	
+
 	var $group;
-	
+
 	var $group_id;
-	
+
 	public $language_ids = array("Bulgarian" => 20, "Catalan" => 14, "Dutch" => 12, "English" => 1, "Esperanto" =>13, "French" =>7, "Greek" => 19, "German" =>6, "Hebrew" =>3,
-					"Indonesian" =>21, "Italian" => 8, "Japanese" =>2, "Korean" => 22, "Latin" => 25, "Norwegian" =>9, "Polish" =>15, "Portuguese" =>18, "Pt. Brazilian" =>16, "Russian" => 17, 
+					"Indonesian" =>21, "Italian" => 8, "Japanese" =>2, "Korean" => 22, "Latin" => 25, "Norwegian" =>9, "Polish" =>15, "Portuguese" =>18, "Pt. Brazilian" =>16, "Russian" => 17,
 					"Smpl.Chinese" =>23, "Spanish" =>4, "Swedish" =>10, "Thai" =>5, "Trad.Chinese" =>11);
-	
-	public $docman_states = array("active"=>1, "deleted"=>2, "pending"=>3, "hidden"=>4, "private"=>5);	
-	
-	
+
+	public $docman_states = array("active"=>1, "deleted"=>2, "pending"=>3, "hidden"=>4, "private"=>5);
+
+
     function __construct($docman, $group_id) {
         $this->docman = $docman;
         $this->group_id = $group_id;
@@ -40,7 +40,7 @@
     	}
     	return false;
     }
-    
+
     function addFile($params, $parent_dir_id, $status="active"){
     	//nothing for now
     	echo "Adding file:".$params["given_name"]." at directory:".$parent_dir_id;
@@ -48,10 +48,10 @@
     	$path = '/tmp/'.$params['url'];
 		if (is_file($path)){
     		$doc = new Document($this->group);
-			
+
     		$fn = $params["file_name"];
     		$ftitle = $params["given_name"];
-			$fdata = file_get_contents($path); 
+			$fdata = file_get_contents($path);
 			$fdocgrp = $parent_dir_id;
 			$flanguage = $this->language_ids[$params["language"]];
 			$fdesc = $params["description"];
@@ -61,17 +61,17 @@
 	    		exit();
 			}
 			$ftype = $finfo->file($path);
-			
-			$doc->create($fn,$ftype,$fdata,$fdocgrp,$ftitle,$flanguage,$fdesc);    
 
+			$doc->create($fn,$ftype,$fdata,$fdocgrp,$ftitle,$flanguage,$fdesc);
+
 			//now update state
 			$fstate_id = $this->docman_states[$status];
 			$doc->update($fn, $ftype, $fdata, $fdocgrp, $ftitle, $flanguage, $fdesc,$fstate_id);
 		}
     }
-    
-    
-    
+
+
+
     function addDirectory($dirName, $parent_dir_id){
     	if(!$parent_dir_id){
     		//root of the current type
@@ -87,7 +87,7 @@
     		} else {
     			//dir exists : return its id
     		}
-    		
+
     	} else {
     		echo $parent_dir.":".$dirName;
     		echo "<br />";
@@ -104,7 +104,7 @@
     	}
     	return $dirid;
     }
-    
+
     function getUncat(){
     	$gr = new DocumentGroupFactory($this->group);
 		$dgroups = $gr->getDocumentGroups();
@@ -115,7 +115,7 @@
 		}
 		return false;
     }
-    
+
     function fill_type($content, $status = "", $parent_dir_id = ""){
 //    	while (len($content) != 0){
 //    		$c = array_pop($content);
@@ -126,30 +126,30 @@
     		} else {
     			//$k is a directory
     			if($k!='Uncategorized Submissions'){ //Uncategorized subs is a basic category which should not be duplicated, we need to get its id to add docs to it though
-    				$dirid = $this->addDirectory($k, $parent_dir_id); 
+    				$dirid = $this->addDirectory($k, $parent_dir_id);
     			} else {
     				//get Uncategorized Submissions doc_group
     				$dirid = $this->getUncat();
     				if(!$dirid){
     					//error : no Uncategorized subs for this project for unknown reason
     					//create it
-    					$dirid = $this->addDirectory($k, $parent_dir_id); 
+    					$dirid = $this->addDirectory($k, $parent_dir_id);
     				}
     			}
-    			
+
     			$this->fill_type($v,$status,$dirid);
     		}
     	}
     }
-    
+
 	function docman_fill(){
 		$r1 = db_query_params ('DELETE FROM doc_data WHERE group_id=$1',
 					   array ($this->group_id)) ;
-		
+
 		$r2 = db_query_params ('DELETE FROM doc_groups WHERE group_id=$1',
 					   array ($this->group_id)) ;
 
-		
+
 		foreach($this->docman as $status => $content){
 			$this->fill_type($content, $status);
 		}

Modified: trunk/src/common/import/import_frs.php
===================================================================
--- trunk/src/common/import/import_frs.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_frs.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -6,18 +6,18 @@
 require_once $gfcommon.'frs/FRSRelease.class.php';
 
 class FRS {
-	
+
 	var $frs;
-	
+
 	var $group;
-	
+
 	var $group_id;
-	
+
 	public $pk_vars = array('Active' => 1, 'Hidden' =>3);
-	
+
 	public $rel_vars = array('Active' => 1, 'Hidden' =>3);
-	
-	
+
+
     function __construct($frs, $group_id) {
         $this->frs = $frs;
         $this->group_id = $group_id;
@@ -29,8 +29,8 @@
 		}
 		$this->group = $group;
     }
-	
-    
+
+
 	function frs_fill(){
 $pkgs = &get_frs_packages($this->group);
 foreach($pkgs as $pkg){
@@ -77,5 +77,5 @@
 			}
 		}
 	}
-	
+
 }

Modified: trunk/src/common/import/import_mailman.php
===================================================================
--- trunk/src/common/import/import_mailman.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_mailman.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -7,7 +7,7 @@
 	OLD_DOMAIN_NAME : Old mailman server address in the original forge, it can be found by reading an archive file. Cannot be automatically retrieved for now, if nothing provided, no change will be done
 	NEW_DOMAIN_NAME : New mailman server address on the target forge, this param should never be used if the preceding one was not used
 */
-	
+
 class Mailman {
 
 	function __construct($mailingDir, $oldlistname, $oldprojectname, $gid, $olddomain="", $newdomain=""){
@@ -26,15 +26,15 @@
 		shell_exec( " mv ".$this->dir."/lists/".$this->oldlistname." ".$this->dir."/lists/".$this->newpjct."-".$this->listname);
 		$this->newlistname = $this->newpjct."-".$this->listname;
 	}
-	
-	
+
+
 	function copy(){
 		echo "Copying archives : ".$this->dir."/archives/* ---> /var/lib/mailman/archives/\n\n";
 		shell_exec( " cp -r -a ".$this->dir."/archives/* /var/lib/mailman/archives/ 2>&1 " );
 		echo "Copying lists : ".$this->dir."/lists/* ---> /var/lib/mailman/lists\n\n";
 		shell_exec( " cp -r -a ".$this->dir."/lists/* /var/lib/mailman/lists 2>&1 " );#possible to replace with PHP code like copy(), useful?
 	}
-	
+
 	function search_replace($startdir, $original, $new){
 		if (count($original) != count($new)){
 			return false;
@@ -53,12 +53,12 @@
 		}
 		return true;
 	}
-	
+
 	function update(){
 		isset($this->newlistname)? $name=$this->newlistname : $name=$this->oldlistname;
 		shell_exec( " /var/lib/mailman/bin/check_perms -f 1>/dev/null 2>/dev/null" );
 		shell_exec( " /var/lib/mailman/bin/check_perms -f 1>/dev/null 2>/dev/null" );
-		echo "permission update done\n\n";	
+		echo "permission update done\n\n";
 	//Updates list domain in config
 		shell_exec( " /var/lib/mailman/bin/withlist -l -r fix_url ".$name." -v -u ".$this->newdomain."/".$name." 1>/dev/null 2>/dev/null");
 		echo "url fixed to ".$this->newdomain."\n\n";
@@ -66,18 +66,18 @@
 			$filepath = "/tmp/".$name;
 			shell_exec( " /var/lib/mailman/bin/config_list -o ".$filepath." ".$name." 1>/dev/null 2>/dev/null");
 			echo "config output to ".$filepath."\n\n";
-			
+
 			//updates list name in config
 			$pattern = "/real_name = '[^']*'/";
 			$replacement = "real_name = '".$name."'";
 			$content = preg_replace($pattern, $replacement, file_get_contents($filepath));
 			file_put_contents($filepath, $content);
-	
+
 			echo "updated real name\n\n";
 			shell_exec( " /var/lib/mailman/bin/config_list -i ".$filepath." ".$name);
 			echo "new configuration loaded\n\n";
 		}
-			
+
 		echo "Replacing old name strings and list domain in archives : \n";
 		$original = array();
 		$new = array();
@@ -96,7 +96,7 @@
 		}
 		$this->search_replace("/var/lib/mailman/archives/private/".$name, $original, $new);
 	}
-		
+
 }
 
 
@@ -106,8 +106,8 @@
 	$newpjctname = $argv[2];
 	$olddomainname = $argv[3];
 	$newdomainname = $argv[4];
-	
-	
+
+
 	/*
 	Optional necessitates PHP>5.3.0 not supported by lenny, use $argv in the meantime
 	$options = "o:n:d::e::";
@@ -117,11 +117,11 @@
 	$olddomainname = $chosen["d"];
 	$newdomainname = $chosen["e"];
 	*/
-	
+
 	if($dirs = scandir($mailingspath = '/tmp/'.$oldpjctname.'/mailings')){
 		echo "Mailing lists found\n\n";
 		foreach ($dirs as $dir){
-			if($dir != '.' && $dir != '..'){	
+			if($dir != '.' && $dir != '..'){
 				if (isset($olddomainname) && isset($newdomainname)){
 					$mailing = new Mailman($mailingspath.'/'.$dir, $dir, $oldpjctname, $newpjctname, $olddomainname, $newdomainname);
 				} else {

Modified: trunk/src/common/import/import_news.php
===================================================================
--- trunk/src/common/import/import_news.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_news.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -2,27 +2,27 @@
 require_once $gfcommon.'import/import_forums.php';
 require_once($gfcommon.'include/User.class.php');
 class News{
-	
+
 	function __construct($news, $group_id, $users){
 		$this->news = $news;
 		$this->group_id = $group_id;
-		//create hash table hashrn{real_name:mail} 
+		//create hash table hashrn{real_name:mail}
 		foreach($users as $user => $infos){
 			$this->hashrn[$infos['real_name']] = $infos['mail'];
 		}
 	}
-	
+
 	function news_fill(){
 	//	$sys_news_group = 3; Use this var instead.
 		$importForum = new Forums($this->news, 3 , true);
-		
-		
+
+
 		foreach($importForum->forums as $singleNews){
 			$fid = $importForum->create_forum($singleNews);
 			$this->addToDB($singleNews, $fid);
 		}
 	}
-	
+
 	function addToDB($news, $fid){
 		db_begin();
 		$uid = user_get_object_by_mail($this->hashrn[$news['poster_name']])->getID();
@@ -36,17 +36,17 @@
    		} else {
 			db_commit();
    		}
-	}	
-	
-//	
+	}
+
+//
 //	function create_news($news){
 //		$date = $news["date"];
 //		$content = $news["news_content"];
 //		$postername = $news["poster_name"];
 //		$summary = $news["summary"];
 //		$forum = $news["forum"];
-//		
-	
-	
-	
+//
+
+
+
 }

Modified: trunk/src/common/import/import_svn.php
===================================================================
--- trunk/src/common/import/import_svn.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_svn.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -15,7 +15,7 @@
 	$dumppath = "/tmp/".$oldpjctname."/SCM/SVN/".$oldpjctname.".svndump";
 
 	$shellstring = "svnadmin load ".$svnpath." < ".$dumppath." 1>/dev/null 2>/dev/null";
-	
+
 	shell_exec($shellstring);
 
 }

Modified: trunk/src/common/import/import_tasks.php
===================================================================
--- trunk/src/common/import/import_tasks.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_tasks.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -12,7 +12,7 @@
 class Tasks{
 
 	function __construct($trackers, $group_id, $users) {
-		
+
 		$this->group =& group_get_object($group_id);
 		if (!$this->group || !is_object($this->group)) {
 			print "error retrieving group from id";
@@ -41,7 +41,7 @@
 			$artifact->addMessage($c['comment'], $importData);
 		}
 	}
-	
+
 	/**
 	 * addHistory - Add history of changes to an Artifact Object
 	 * @param Artifact	the artifact object where history should be added
@@ -72,7 +72,7 @@
 			$artifact->addHistory($h['field'],$old, $importData);
 		}
 	}
-	
+
 	/**
 	 * createTaskTracker - Create a specific tracker from data in the specified group
 	 * @param string Tracker type (bugs, support, ...)
@@ -80,7 +80,7 @@
 	 * @param array	Tracker data from JSON
 	 * @return ArtifactType	the tracker created
 	 */
-	
+
 	function createTaskTracker($data){
 		// TaskTracker's type
 		$tracker = $data['type'];
@@ -119,7 +119,7 @@
 		db_commit();
 		return $output;
 	}
-	
+
 	/**
 	 * Create each category for a single project group
 	 * @param ProjectGroup $pg
@@ -146,7 +146,7 @@
 		}
 		return $cats;
 	}
-	
+
 	/**
 	 * Create each task for the considered project group
 	 * @param ProjectGroup $pg
@@ -162,14 +162,14 @@
 			$artifact = new ProjectTask($pg);
 			if ($artifact){
 				$start = strtotime($a['start_date']);
-				$end = strtotime($a['end_date']); 
+				$end = strtotime($a['end_date']);
 				$assigned = array();
 				if(is_array($a['assigned_to[]'])){
 					foreach($a['assigned_to[]'] as $realname){
 						if($realname == 'None'){
 							$assigned[]=100;
 						}else{
-							$assigned[] = user_get_object_by_mail($this->hashrn[$realname])->getID(); // this should be done once instead of for each artifact, TODO	
+							$assigned[] = user_get_object_by_mail($this->hashrn[$realname])->getID(); // this should be done once instead of for each artifact, TODO
 						}
 					}
 				} else {
@@ -185,7 +185,7 @@
 				if(!$artifact->create($a['summary'], $a['description'], $a['priority'], $a['hours'], $start, $end, $cats[$a['category']], $a['percent_complete'], &$assigned, &$dependentTemp, 0, 0, array('user' => $uid))){
 					return false;
 				} else {
-					
+
 					$atid =  $artifact->getID();
 					$atids[$a['summary']] = $atid;
 					$dependent[$atid] = $a['dependent_on[]'];
@@ -205,13 +205,13 @@
 						$dependentIds[$atids[$taskName]] = 'FS'; // Default to PM_LINK_DEFAULT defined as FS in ProjectTask class, it seems there is no way to use any of the other relations anyway...
 					}
 				} else {
-					$dependentIds[$atids[$depNames]] = 'FS';				
+					$dependentIds[$atids[$depNames]] = 'FS';
 				}
 				$artifact->setDependentOn($dependentIds);
 			}
 		}
 	}
-	
+
 	/**
 	 * deleteTrackers - Delete all existing default trackers from a projet
 	 * @param Group A Group object
@@ -225,7 +225,7 @@
 			}
 		}
 	}
-	
+
 	function createAllTasks(){
 		if($this->taskCreationArray){
 			foreach($this->taskCreationArray as $taskCreation){
@@ -233,17 +233,17 @@
 			}
 		}
 	}
-	
+
 	/**
 	 * tracker_fill - Create trackers from an array in a given group
 	 * @param array Trackers part of a JSON pluck, including label, artifacts, vocabulary...
 	 * @param int	Group id of the group where the trackers should be added
 	 */
 	function tasks_fill(){
-	
+
 		//existing tracker deletion
 		$this->deleteTrackers();
-		
+
 		//Tracker creation
 		$this->taskCreationArray = array(); // This array is used to store each projectGroup and each artifacts which will be imported later, we need to stop the script so as to update permissions again (default to Read for each new TaskTracker, and thus nobody can be assigned to a task except userid 100 which is Nobody)
 		foreach ($this->trackers as $data){

Modified: trunk/src/common/import/import_trackers.php
===================================================================
--- trunk/src/common/import/import_trackers.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_trackers.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -66,19 +66,19 @@
 function createFields($at, $data){
 	global $NOT_EXTRA_FIELDS;
 //new dBug($data);
-	//TODO:Create ExtraFields	
+	//TODO:Create ExtraFields
 	//include $GLOBALS['gfcommon'].'import/import_arrays.php';
 	$artifactToCheck = $data["artifacts"][0];
 	foreach($artifactToCheck as $fieldName => $fieldValue){
 		if (!in_array($fieldName, $NOT_EXTRA_FIELDS)){
 			$type = findType($fieldName, $fieldValue, $data["vocabulary"]);
 			$aef = new ArtifactExtraField($at);
-			
+
 			$defaultExtraFieldsSettings = array(0,0,0);
 			$defaultTextFieldsSettings = array(40,100,0);
-			
+
 			if($type==ARTIFACT_EXTRAFIELDTYPE_TEXT){
-				$extraFieldSettings = $defaultTextFieldsSettings;				
+				$extraFieldSettings = $defaultTextFieldsSettings;
 			}
 			else{
 				$extraFieldSettings = $defaultExtraFieldsSettings;
@@ -114,14 +114,14 @@
 		return false;
 	}
 	//include $GLOBALS['gfcommon'].'import/import_arrays.php';
-	
+
 	$base_tracker_association = array( 'bugs' => TRACKER_BUGS, 'support' => TRACKER_SUPPORT, 'patches' => TRACKER_PATCHES, 'features' => TRACKER_FEATURES );
 	if(array_key_exists($tracker, $base_tracker_association)){
 		$valueType = $base_tracker_association[$tracker];
 	} else {
 		$valueType = 0;
 	}
-	
+
 	$is_public = TRACKER_IS_PUBLIC;
 	$allow_anon = TRACKER_ALLOW_ANON;
 	$email_all = '';
@@ -130,7 +130,7 @@
 	$use_resolution = 0;
 	$submit_instructions = 0;
 	$use_resolution = 0;
-	
+
 	if (!$at->create($data["label"], $data["label"], $is_public, $allow_anon, $email_all, $email_address, $due_period, $use_resolution, $submit_instructions, $use_resolution, $valueType)) {
 		db_rollback();
 		return false;
@@ -147,7 +147,7 @@
  * @param Group A Group object
  */
 function deleteTrackers($group){
-	$res = db_query_params ('SELECT group_artifact_id FROM artifact_group_list 
+	$res = db_query_params ('SELECT group_artifact_id FROM artifact_group_list
 			WHERE group_id=$1 AND datatype > 0',
 					array ($group->getID()));
 	while($row=db_fetch_array($res)){
@@ -155,7 +155,7 @@
 		$at->delete(true,true);
 		//print $at->getID();
 	}
-	
+
 }
 
 /**
@@ -206,33 +206,33 @@
 
 function addFiles($artifact, $jsonArtifact){
 	foreach($jsonArtifact['attachments'] as $a){
-		
+
 		$path = '/tmp/'.$a['url'];
 		if (is_file($path)){
 			$af = new ArtifactFile($artifact);
 			$fn = $a['filename'];
 			//$bin_data = 0;//load bin data from $a['url']?
-			
-			$bin_data = file_get_contents($path); 
-			
+
+			$bin_data = file_get_contents($path);
+
 			$fs = filesize($path);
-			
-			
+
+
 			$finfo = new finfo(FILEINFO_MIME, "/usr/share/misc/magic"); // Retourne le type mime
 			if (!$finfo) {
 	   			echo "error opening fileinfo";
 	    		exit();
 			}
-			
+
 			$ftype = $finfo->file($path);
 			$time = strtotime($a['date']);
 			$uid =&user_get_object_by_name($a['by'])->getID();
 			$importData = array('user' => $uid, 'time' => $time);
-			
+
 			//we have no descriptions for files => None
 			$af->create($fn,$ftype,$fs,$bin_data,'None',$importData);
-		}		
-	}	
+		}
+	}
 }
 
 
@@ -245,7 +245,7 @@
  */
 function createArtifacts($at, $data, $hashrn, $hashlogin) {
 	global $NOT_EXTRA_FIELDS;
-	
+
 	$name_id = array();
 	//include $GLOBALS['gfcommon'].'import/import_arrays.php';
 	$extra_fields_ids = $at->getExtraFields();
@@ -298,21 +298,21 @@
 			$assigned_to = 100;
 		} else {
 			$m = $hashrn[$artifact['assigned_to']];
-			$assigned_to =&user_get_object_by_mail($m)->getID(); 
+			$assigned_to =&user_get_object_by_mail($m)->getID();
 //new dBug(array($m,$assigned_to));
 		}
-		
+
 		$arti->create($artifact['summary'],$artifact['description'],$assigned_to,substr($artifact['priority'],0,1),$extra_fields_array,array('user' => $uid, 'time' => $timestamp));
-		//TODO:pass only relevant JSON info		
+		//TODO:pass only relevant JSON info
 		addComments($arti, $artifact);
 		addHistory($arti, $artifact);
 		addFiles($arti, $artifact);
 
 		if(array_key_exists('closed_at', $artifact)){
-			
+
 			$timestamp_closed = strtotime($artifact['closed_at']);
 
-			$arti->setStatus(2, $timestamp_closed);			
+			$arti->setStatus(2, $timestamp_closed);
 		}
 	}
 }
@@ -338,11 +338,11 @@
 
 	//existing tracker deletion
 	deleteTrackers($group);
-	
+
 	//Tracker creation
-	foreach ($trackers as $data){	
-		
+	foreach ($trackers as $data){
 
+
 		$at = createTracker($data['type'], $group, $data);
 		createArtifacts($at, $data['artifacts'], $hashrn, $hashlogin);
 

Modified: trunk/src/common/import/import_users.php
===================================================================
--- trunk/src/common/import/import_users.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/import/import_users.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -89,12 +89,12 @@
 global $cache_forums;
 global $cache_tasks;
 global $cache_trackers;
-global $cache_frs;	
+global $cache_frs;
 */
 //$cache_forums=array();
 //$cache_tasks=array();
 //$cache_trackers=array();
-//$cache_frs=array();	
+//$cache_frs=array();
 
 /*
 function get_role_by_name($role,$group_id){
@@ -116,10 +116,10 @@
   $res = db_query_params('SELECT role_id,role_name
 					FROM role
 					WHERE group_id=$1', array($group_id));
-		
+
   while ($row_roles=db_fetch_array($res)){
     $res_roles[]=array($row_roles['role_name'],$row_roles['role_id']);
-  }	
+  }
   foreach($res_roles as $nameid){
     if(isset($roles[$nameid[0]])){
       $roles[$nameid[0]]["role_id"]=$nameid[1];
@@ -130,17 +130,17 @@
   }
   return $rolestodelete;
 }
-*/	
+*/
 /*
 function get_forum_id($forumname,$group_id,$i){
   $forum_id=-1;
-		
+
   if(array_key_exists($forumname,$cache_forums)){
     $cache_forums[$forumname][1]=1;
     $forum_id = $cache_forums[$forumname];
   }
   else {
-    $res = db_query_params('SELECT group_forum_id,forum_name 
+    $res = db_query_params('SELECT group_forum_id,forum_name
 					FROM forum_group_list WHERE group_id=$1', array($group_id));
     while ($row=db_fetch_array($res)){
       if ($row['forum_name']==$forumname){
@@ -161,13 +161,13 @@
 /*
 function get_tasks_id($taskname,$group_id,$i){
   $task_id=-1;
-		
+
   if(array_key_exists($taskname,$cache_tasks)){
     $cache_tasks[$taskname][1]=1;
     $task_id = $cache_tasks[$taskname][0];
   }
   else {
-    $res = db_query_params('SELECT group_project_id,project_name 
+    $res = db_query_params('SELECT group_project_id,project_name
 					FROM project_group_list WHERE group_id=$1', array($group_id));
     while ($row=db_fetch_array($res)){
       if ($row['project_name']==$taskname){
@@ -188,13 +188,13 @@
 /*
 function get_tracker_id($trackername,$group_id,$i){
   $tracker_id=-1;
-		
+
   if(array_key_exists($trackername,$cache_trackers)){
     $cache_trackers[$trackername][1]=1;
     $tracker_id = $cache_trackers[$trackername][0];
   }
   else {
-    $res = db_query_params('SELECT group_artifact_id,name 
+    $res = db_query_params('SELECT group_artifact_id,name
 				FROM artifact_group_list WHERE group_id=$1', array($group_id));
     while ($row=db_fetch_array($res)){
       if ($row['name']==$trackername){
@@ -206,13 +206,13 @@
       }
     }
   }
-	
+
   if ($tracker_id==-1){
     //TODO:Create Tracker
   }
   return $tracker_id;
 }
-*/	
+*/
 /*
 function get_frs_id($frsname, $group_id){
   $frs_id=-1;
@@ -221,7 +221,7 @@
     $frs_id = $cache_frs[$frsname][0];
   }
   else {
-    $res = db_query_param('SELECT package_id,name 
+    $res = db_query_param('SELECT package_id,name
 				FROM frs_package WHERE group_id=$1', array($group_id));
     while ($row=db_fetch_array($res)){
       if ($row['name']==$frsname){
@@ -233,29 +233,29 @@
       }
     }
   }
-		
+
   return $frs_id;
 }
 */
-/*	
+/*
 function role_update($group_id, $rolename, $role_id, $data){
 
   if ($role_id=='observer') {
-			
+
     $role = new RoleObserver(group_get_object($group_id));
     if (!$role || !is_object($role)) {
       exit_error('Error','Could Not Get RoleObserver');
     } elseif ($role->isError()) {
       exit_error('Error',$role->getErrorMessage());
     }
-			
+
     if (!$role->update($data)) {
       $feedback = $role->getErrorMessage();
     } else {
       $feedback = _('Successfully Updated Role');
     }
-			
-			
+
+
   }
   else{
     echo "update de : ".$role_id." ".$rolename."<br>";
@@ -265,17 +265,17 @@
     } elseif ($role->isError()) {
       exit_error('Error',$role->getErrorMessage());
     }
-			
+
     if (!$role->update($rolename,$data)) {
       $feedback = $role->getErrorMessage();
     } else {
       $feedback = _('Successfully Updated Role');
     }
-    plugin_hook('change_cal_permission_auto',$group_id);	
+    plugin_hook('change_cal_permission_auto',$group_id);
   }
 }
 */
-	
+
 //function role_create($group_id, $rolename, $data){
 //  $role = new Role(group_get_object($group_id),false);
 //  if (!$role || !is_object($role)) {
@@ -284,7 +284,7 @@
 //    exit_error('Error',$role->getErrorMessage());
 //  }
 //  echo "<br>Role added:".$rolename;/*
-//				     var_dump($rolename);	
+//				     var_dump($rolename);
 //				     echo "<br>";
 //				     echo "groupidid:<br>";
 //				     var_dump($group_id);
@@ -298,17 +298,17 @@
 //  } else {
 //    $feedback = _('Successfully Created New Role');
 //  }
-//  plugin_hook('change_cal_permission_auto',$group_id);	
+//  plugin_hook('change_cal_permission_auto',$group_id);
 //}
-/* TODO : reactivate or get rid, depending if still of any use 	
+/* TODO : reactivate or get rid, depending if still of any use
 function role_fill($roles,$group_id, $equivs_text_value,$equivs_name_value, $observer_equivs_text_value, $observer_equivs_name_value ){
   //	$debugdata=array();
   foreach($roles as $rolename => $rights){
-			
+
     $data = array(array());
-			
+
     $i=0;
-	
+
     if($rolename=='Observer'){
       $j=0;
       foreach($rights as $rightname => $right){
@@ -343,7 +343,7 @@
 	elseif($rightname!='role_id'){
 	  $data[$observer_equivs_name_value[$rightname]][0]=$observer_equivs_text_value[$observer_equivs_name_value[$rightname]][$right];
 	}
-	$j++;	
+	$j++;
       }
       if(array_key_exists("role_id", $rights)){
 	role_update($group_id, $rolename, $rights['role_id'], $data);
@@ -354,7 +354,7 @@
       //			$debugdata[]=array($rolename,$data);
     }
     else{
-	
+
       foreach($rights as $rightname => $right){
 	if(substr($rightname, 0, 6)=='Forum:'){
 	  $forum_id = get_forum_id(substr($rightname, 6),$group_id,$i);
@@ -396,7 +396,7 @@
 function user_fill($users, $group_id, $check=False){
 	global $feedback;
 	global $message;
-	
+
 	$group =& group_get_object($group_id);
 	if (!$group || !is_object($group)) {
 		exit_error('Error','Could Not Get Group');
@@ -410,10 +410,10 @@
 			$feedback .= sprintf(_('Failed to find user %s'), $user);
 		} else {
 			$user_id = $user_object->getID();
-			
+
 			//$role_id = get_role_by_name($role['role'],$group_id);
 			$role_id = $role['role'];
-			
+
 			if(!$check) {
 				if (!$group->addUser($user,$role_id)) {
 					$feedback = $group->getErrorMessage();

Modified: trunk/src/common/include/AuthPlugin.class.php
===================================================================
--- trunk/src/common/include/AuthPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/AuthPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,7 +28,7 @@
 
 /**
  * Pluggable Authentication plugins base class
- * 
+ *
  * By default, the session cookie is used
  *
  */
@@ -48,7 +48,7 @@
 		// get_extra_roles - add new roles not necessarily stored in the database
 		// restrict_roles - filter out unwanted roles
 		// close_auth_session - terminate an authentication session
-		
+
 		$this->saved_user = NULL;
 	}
 
@@ -91,18 +91,18 @@
 	}
 
 	// Default mechanisms
-	
-	
+
+
 	/**
 	 * Current forge user
-	 * 
+	 *
 	 * @var object GFUser
 	 */
 	protected $saved_user;
-	
+
 	/**
 	 * Is there a valid session?
-	 * 
+	 *
 	 * @param unknown_type $params
 	 * @return FORGE_AUTH_AUTHORITATIVE_ACCEPT, FORGE_AUTH_AUTHORITATIVE_REJECT or FORGE_AUTH_NOT_AUTHORITATIVE
 	 * TODO : document 'auth_token' param
@@ -133,9 +133,9 @@
 
 	/**
 	 * What GFUser is logged in?
-	 * 
+	 *
 	 * This will generate a valid forge user (by default, it was generated and cached already in saved_user)
-	 * 
+	 *
 	 * @param unknown_type $params
 	 * @return array $params['results'] containing user object
 	 */
@@ -165,7 +165,7 @@
 	function getExtraRoles(&$params) {
 		// $params['new_roles'][] = RBACEngine::getInstance()->getRoleById(123);
 	}
-	
+
 	/**
 	 * Filter out unwanted roles
 	 * @param unknown_type $params
@@ -173,14 +173,14 @@
 	function restrictRoles(&$params) {
 		// $params['dropped_roles'][] = RBACEngine::getInstance()->getRoleById(123);
 	}
-	
+
 	// Helper functions for individual plugins
 	// FIXME : where is $this->cookie_name set ?
 	protected $cookie_name;
 
 	/**
 	 * Returns the session cookie name for the auth plugin (by default forge_session_AUTHPLUGINNAME)
-	 * 
+	 *
 	 * @return string
 	 */
 	protected function getCookieName() {
@@ -272,7 +272,7 @@
 			$events = array();
 			break;
 		}
-		
+
 		return in_array($event, $events);
 	}
 

Modified: trunk/src/common/include/Codendi_HTMLPurifier.class.php
===================================================================
--- trunk/src/common/include/Codendi_HTMLPurifier.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Codendi_HTMLPurifier.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,9 +1,9 @@
 <?php
 /**
  * Copyright (c) STMicroelectronics, 2007. All Rights Reserved.
- * 
+ *
  * Originally written by Manuel VACELET, 2007.
- * 
+ *
  * This file is a part of Codendi.
  *
  * Codendi is free software; you can redistribute it and/or modify
@@ -50,7 +50,7 @@
      * Hold an instance of the class
      */
     private static $Codendi_HTMLPurifier_instance;
-    
+
     /**
      * Constructor
      */
@@ -90,7 +90,7 @@
         $config->set('HTML', 'Allowed', $this->getLightConfigMarkups());
         return $config;
     }
-    
+
     /**
      * Get allowed markups for light config
      *
@@ -109,10 +109,10 @@
         $eList            = array('ul', 'ol', 'li');
         $eContentBasedTxt = array('cite', 'code', 'blockquote', 'strong', 'em',
                                   'pre', 'b', 'i');
-        
+
         $aa = array_merge($eParagraph, $eLinks, $eList, $eContentBasedTxt);
         $allowed = implode(',', $aa);
-        
+
         return $allowed;
     }
 
@@ -168,7 +168,7 @@
      *   consider CONVERT_HTML.
      *
      * - CODENDI_PURIFIER_BASIC (need $groupId to be set for automagic links)
-     *   Removes all user submitted HTML markups but: 
+     *   Removes all user submitted HTML markups but:
      *    - transform typed URLs into clickable URLs.
      *    - transform autmagic links.
      *    - transform carrige return into HTML br markup.

Modified: trunk/src/common/include/Codendi_Request.class.php
===================================================================
--- trunk/src/common/include/Codendi_Request.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Codendi_Request.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -68,7 +68,7 @@
 
 
 	/**
-	 * Get the value of $variable in $array. 
+	 * Get the value of $variable in $array.
 	 *
 	 * @access private
 	 * @param string $variable Name of the parameter to get.
@@ -127,7 +127,7 @@
 	function valid(&$validator) {
 		$this->_validated_input[$validator->getKey()] = true;
 		return $validator->validate($this->get($validator->getKey()));
-	} 
+	}
 
 	/**
 	 * Apply validator on all values of a submitted user array.

Modified: trunk/src/common/include/DatabaseInstaller.class.php
===================================================================
--- trunk/src/common/include/DatabaseInstaller.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/DatabaseInstaller.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,10 +21,10 @@
  */
 
 class DatabaseInstaller extends Error {
-	
+
 	function DatabaseInstaller($name='', $path='') {
 		$this->name = $name;
-		$this->path	= $path;	
+		$this->path	= $path;
 	}
 
 	/**
@@ -45,7 +45,7 @@
 		}
 		return $this->setError(_('No database installation scripts found.'));
 	}
-	
+
 	/**
 	 * TODO: Enter description here ...
 	 * @return boolean|string
@@ -89,7 +89,7 @@
 		}
 		return $output;
 	}
-	
+
 	private static function getDatabaseDate() {
 		// Check if table 'database_startpoint' has proper values
 		$res = db_query_params ('SELECT * FROM database_startpoint', array()) ;
@@ -135,7 +135,7 @@
 						if (strlen($name) >= 8) {
 							$date_aux = substr($name, 0, 8);
 							$type_aux = substr($file, $pos + 1);
-							if ((int) $date_aux > 20000000 && ($type_aux=='sql' || $type_aux=='php') 
+							if ((int) $date_aux > 20000000 && ($type_aux=='sql' || $type_aux=='php')
 								&& strpos($file, 'debian') === false) {
 								$data[] = array('date'=>$date_aux, 'filename'=>$file, 'ext'=>$type_aux);
 							}

Modified: trunk/src/common/include/Error.class.php
===================================================================
--- trunk/src/common/include/Error.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Error.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php   
+<?php
 /**
  * FusionForge base error class
  *
@@ -54,7 +54,7 @@
 	 * @var int $error_code.
 	 */
 	var $error_code;
-	
+
 	/**
 	 * Error() - Constructor.
 	 * Constructor for the Error class.
@@ -118,8 +118,8 @@
 	function isError() {
 		return $this->error_state;
 	}
-	
 
+
 	/**
 	 * setPermissionDeniedError() - sets a Permission Denied error
 	 *  retrieves the localized error string for Permission Denied and calls exit_error()
@@ -129,7 +129,7 @@
 	function setPermissionDeniedError(){
 		$this->setError(_('Permission denied.'), ERROR__PERMISSION_DENIED_ERROR);
 	}
-	
+
 	/**
 	 * isPermissionDeniedError() - Determines if it is a permission denied error
 	 *
@@ -151,7 +151,7 @@
 			$e .= ' ' . _('(none given)');
 		$this->setError($e, ERROR__INVALID_EMAIL_ERROR);
 	}
-	
+
 	/**
 	 * isInvalidEmailError() - Determines if it is an invalid email error
 	 *
@@ -160,7 +160,7 @@
 	function isInvalidEmailError(){
 		return ($this->error_code == ERROR__INVALID_EMAIL_ERROR);
 	}
-	
+
 	/**
 	 * setOnUpdateError() - sets an On Update Error
 	 *  retrieves the localized error string for On Update
@@ -171,7 +171,7 @@
 	function setOnUpdateError($result=""){
 		$this->setError(sprintf(_('Error On Update: %s'), $result), ERROR__ON_UPDATE_ERROR);
 	}
-	
+
 	/**
 	 * isOnUpdateError() - Determines if it is an on update error
 	 *
@@ -183,13 +183,13 @@
 
 	/**
 	 * setGroupIdError() - sets an Group ID Error
-	 *  retrieves the localized error string for Group ID 
+	 *  retrieves the localized error string for Group ID
 	 */
 	function setGroupIdError(){
 		$this->setError(_('Group_id in db result does not match Group Object'), ERROR__GROUPID_ERROR);
-		
+
 	}
-	
+
 	/**
 	 * isGroupIdError() - Determines if it is a group ID error
 	 *
@@ -212,7 +212,7 @@
 		}
 		$this->setError(_('Missing Parameters').$param, ERROR__MISSING_PARAMS_ERROR);
 	}
-	
+
 	/**
 	 * isMissingParamsError() - Determines if it is a missing params error
 	 *

Modified: trunk/src/common/include/FusionForge.class.php
===================================================================
--- trunk/src/common/include/FusionForge.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/FusionForge.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php   
+<?php
 /**
  * FusionForge top-level information
  *
@@ -61,7 +61,7 @@
 
 	function getNumberOfPublicHostedProjects() {
 		$res = db_query_params ('SELECT group_id FROM groups WHERE status=$1',
-				      array ('A'));	
+				      array ('A'));
 		if (!$res) {
 			$this->setError('Unable to get hosted project count: '.db_error());
 			return false;
@@ -78,7 +78,7 @@
 
 	function getNumberOfHostedProjects() {
 		$res = db_query_params ('SELECT group_id FROM groups WHERE status=$1',
-					array ('A'));	
+					array ('A'));
 		if (!$res) {
 			$this->setError('Unable to get hosted project count: '.db_error());
 			return false;
@@ -120,7 +120,7 @@
 		}
 		return $result;
 	}
-	
+
 	function parseCount($res) {
 		$row_count = db_fetch_array($res);
 		return $row_count['count'];

Modified: trunk/src/common/include/Group.class.php
===================================================================
--- trunk/src/common/include/Group.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Group.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -63,9 +63,9 @@
 	//create a common set of group objects
 	//saves a little wear on the database
 
-	//automatically checks group_type and 
+	//automatically checks group_type and
 	//returns appropriate object
-	
+
 	global $GROUP_OBJ;
 	if (!isset($GROUP_OBJ["_".$group_id."_"])) {
 		if ($res) {
@@ -93,11 +93,11 @@
 
 function &group_get_objects($id_arr) {
 	global $GROUP_OBJ;
-	
+
 	// Note: if we don't do this, the result may be corrupted
 	$fetch = array();
 	$return = array();
-	
+
 	foreach ($id_arr as $id) {
 		//
 		//	See if this ID already has been fetched in the cache
@@ -152,14 +152,14 @@
 class Group extends Error {
 	/**
 	 * Associative array of data from db.
-	 * 
+	 *
 	 * @var	array	$data_array.
 	 */
 	var $data_array;
 
 	/**
 	 * array of User objects.
-	 * 
+	 *
 	 * @var	array	$membersArr.
 	 */
 	var $membersArr;
@@ -173,14 +173,14 @@
 
 	/**
 	 * Artifact types result handle.
-	 * 
+	 *
 	 * @var	int	$types_res.
 	 */
 	var $types_res;
 
 	/**
 	 * Associative array of data for plugins.
-	 * 
+	 *
 	 * @var	array	$plugins_data.
 	 */
 	var $plugins_data;
@@ -253,7 +253,7 @@
 	 * create - Create new group.
 	 *
 	 * This method should be called on empty Group object.
-	 * It will add an entry for a pending group/project (status 'P') 
+	 * It will add an entry for a pending group/project (status 'P')
 	 *
 	 * @param	object	The User object.
 	 * @param	string	The full name of the user.
@@ -551,7 +551,7 @@
 
 		db_begin();
 
-		//XXX not yet actived logo_image_id='$logo_image_id', 
+		//XXX not yet actived logo_image_id='$logo_image_id',
 		$res = db_query_params('UPDATE groups
 			SET group_name=$1,
 				homepage=$2,
@@ -587,7 +587,7 @@
 					     $use_frs,
 					     $use_stats,
 					     $this->getID()));
-		
+
 		if (!$res) {
 			$this->setError(sprintf(_('Error updating project information: %s'), db_error()));
 			db_rollback();
@@ -959,7 +959,7 @@
 	 */
 	function &getAdmins() {
 		$roles = RBACEngine::getInstance()->getRolesByAllowedAction ('project_admin', $this->getID());
-		
+
 		$user_ids = array();
 
 		foreach ($roles as $role) {
@@ -970,7 +970,7 @@
 			    || $role->getHomeProject()->getID() != $this->getID()) {
 				continue;
 			}
-			
+
 			foreach ($role->getUsers() as $u) {
 				$user_ids[] = $u->getID();
 			}
@@ -1399,7 +1399,7 @@
 	}
 
 	/**
-	 * usesPlugin - returns true if the group uses a particular plugin 
+	 * usesPlugin - returns true if the group uses a particular plugin
 	 *
 	 * @param	string	name of the plugin
 	 * @return	boolean	whether plugin is being used or not
@@ -1440,7 +1440,7 @@
 	 *
 	 * @param	string	name of the plugin
 	 * @param	boolean	the new state
-	 * @return	string	database result 
+	 * @return	string	database result
 	 */
 	function setPluginUse($pluginname, $val=true) {
 		if ($val == $this->usesPlugin($pluginname)) {
@@ -1713,7 +1713,7 @@
 			db_rollback();
 			return false;
 		}
-					
+
 		//
 		//	Delete group history
 		//
@@ -1846,7 +1846,7 @@
 		$hook_params['group'] = $this;
 		$hook_params['group_id'] = $this->getID();
 		plugin_hook("group_delete", $hook_params);
-		
+
 		if (forge_get_config('upload_dir') != '' && $this->getUnixName()) {
 			exec('/bin/rm -rf '.forge_get_config('upload_dir').'/'.$this->getUnixName().'/');
 		}
@@ -1927,7 +1927,7 @@
 				db_rollback();
 				return false;
 			}
-				
+
 			if (USE_PFO_RBAC) {
 				$role->addUser(user_get_object($user_id)) ;
 				if (!$SYS->sysCheckCreateGroup($this->getID())){
@@ -1951,7 +1951,7 @@
 				//	if not already a member, add them
 				//
 				$res_member = db_query_params('SELECT user_id
-				FROM user_group 
+				FROM user_group
 				WHERE user_id=$1 AND group_id=$2',
 				array($user_id, $this->getID()));
 
@@ -2055,7 +2055,7 @@
 		$hook_params['user'] = user_get_object($user_id);
 		$hook_params['user_id'] = $user_id;
 		plugin_hook ("group_adduser", $hook_params);
-		
+
 		//
 		//	audit trail
 		//
@@ -2066,7 +2066,7 @@
 
 	/**
 	 * removeUser - controls removing a user from a group.
-	 * 
+	 *
 	 * Users can remove themselves.
 	 *
 	 * @param	int	The ID of the user to remove.
@@ -2106,7 +2106,7 @@
 			}
 
 		} else {
-			$res = db_query_params('DELETE FROM user_group WHERE group_id=$1 AND user_id=$2', 
+			$res = db_query_params('DELETE FROM user_group WHERE group_id=$1 AND user_id=$2',
 						array($this->getID(),
 						      $user_id));
 			if (!$res || db_affected_rows($res) < 1) {
@@ -2120,9 +2120,9 @@
 		//	reassign open artifacts to id=100
 		//
 		$res = db_query_params('UPDATE artifact SET assigned_to=100
-				WHERE group_artifact_id 
-				IN (SELECT group_artifact_id 
-				FROM artifact_group_list 
+				WHERE group_artifact_id
+				IN (SELECT group_artifact_id
+				FROM artifact_group_list
 				WHERE group_id=$1 AND status_id=1 AND assigned_to=$2)',
 						array($this->getID(),
 						      $user_id));
@@ -2134,13 +2134,13 @@
 
 		//
 		//	reassign open tasks to id=100
-		//	first have to purge any assignments that would cause 
+		//	first have to purge any assignments that would cause
 		//	conflict with existing assignment to 100
 		//
 		$res = db_query_params('DELETE FROM project_assigned_to
-					WHERE project_task_id IN (SELECT pt.project_task_id 
-					FROM project_task pt, project_group_list pgl, project_assigned_to pat 
-					WHERE pt.group_project_id = pgl.group_project_id 
+					WHERE project_task_id IN (SELECT pt.project_task_id
+					FROM project_task pt, project_group_list pgl, project_assigned_to pat
+					WHERE pt.group_project_id = pgl.group_project_id
 					AND pat.project_task_id=pt.project_task_id
 					AND pt.status_id=1 AND pgl.group_id=$1
 					AND pat.assigned_to_id=$2)
@@ -2153,10 +2153,10 @@
 			return false;
 		}
 		$res = db_query_params('UPDATE project_assigned_to SET assigned_to_id=100
-					WHERE project_task_id IN (SELECT pt.project_task_id 
-					FROM project_task pt, project_group_list pgl 
-					WHERE pt.group_project_id = pgl.group_project_id 
-					AND pt.status_id=1 AND pgl.group_id=$1) 
+					WHERE project_task_id IN (SELECT pt.project_task_id
+					FROM project_task pt, project_group_list pgl
+					WHERE pt.group_project_id = pgl.group_project_id
+					AND pt.status_id=1 AND pgl.group_id=$1)
 					AND assigned_to_id=$2',
 						array($this->getID(),
 						      $user_id));
@@ -2183,7 +2183,7 @@
 
 		//audit trail
 		$this->addHistory('Removed User',$user_id);
-		
+
 		db_commit();
 		return true;
 	}
@@ -2211,7 +2211,7 @@
 			} elseif ($newrole->isError()) {
 				$this->setError(sprintf(_('Role: %s'),$role->getErrorMessage()));
 				return false;
-			} elseif ($newrole->getHomeProject() == NULL 
+			} elseif ($newrole->getHomeProject() == NULL
 				  || $newrole->getHomeProject()->getID() != $this->getID()) {
 				$this->setError(_('Wrong destination role'));
 				return false;
@@ -2261,7 +2261,7 @@
 	 * @access public
 	 */
 	function addHistory($field_name, $old_value) {
-		return db_query_params ('INSERT INTO group_history(group_id,field_name,old_value,mod_by,adddate) 
+		return db_query_params ('INSERT INTO group_history(group_id,field_name,old_value,mod_by,adddate)
 			VALUES ($1,$2,$3,$4,$5)',
 					array ($this->getID(),
 					       $field_name,
@@ -2274,7 +2274,7 @@
 	 * activateUsers - Make sure that group members have unix accounts.
 	 *
 	 * Setup unix accounts for group members. Can be called even
-	 * if members are already active. 
+	 * if members are already active.
 	 *
 	 * @access private
 	 */
@@ -2282,7 +2282,7 @@
 		/*
 			Activate member(s) of the project
 		*/
-		
+
 		if (USE_PFO_RBAC) {
 		$members = $this->getUsers (true) ;
 
@@ -2296,7 +2296,7 @@
 					return false;
 				}
 			}
-			
+
 		}
 		} else {
 			$res_member = db_query_params('SELECT user_id,role_id FROM user_group WHERE group_id=$1',
@@ -2348,7 +2348,7 @@
 			$this->setError(_("Group already active"));
 			return false;
 		}
-		
+
 		db_begin();
 
 		// Step 1: Activate group and create LDAP entries
@@ -2413,7 +2413,7 @@
 			$adminperms = array ('project_admin' => array ($this->getID() => 1)) ;
 			$role_id = $role->create ('Admin', $adminperms, true) ;
 		}
-		
+
 		if (USE_PFO_RBAC) {
 			$roles = $this->getRoles() ;
 			foreach ($roles as $r) {
@@ -2422,7 +2422,7 @@
 				}
 			}
 		}
-		
+
 		// Temporarily switch to the submitter's identity
 		$saved_session = session_get_user();
 		session_set_internal($idadmin_group);
@@ -2464,7 +2464,7 @@
 					}
 				}
 			}
-			
+
 			if (forge_get_config('use_docman')) {
 				$this->setUseDocman($template->usesDocman());
 				if ($template->usesDocman()) {
@@ -2489,7 +2489,7 @@
 					}
 				}
 			}
-			
+
 			if (forge_get_config('use_frs')) {
 				$this->setUseFRS ($template->usesFRS());
 				if ($template->usesFRS()) {
@@ -2528,7 +2528,7 @@
 					$newrole->setPublic ($oldrole->isPublic()) ;
 				}
 				$oldsettings = $oldrole->getSettingsForProject ($template) ;
-				
+
 				$sections = array ('project_read', 'project_admin', 'frs', 'scm', 'docman', 'tracker_admin', 'new_tracker', 'forum_admin', 'new_forum', 'pm_admin', 'new_pm') ;
 				foreach ($sections as $section) {
 					$newrole->setSetting ($section, $this->getID(), $oldsettings[$section][$template->getID()]) ;
@@ -2547,7 +2547,7 @@
 						}
 					}
 				}
-			}	
+			}
 
 			$lm = new WidgetLayoutManager();
 			$lm->createDefaultLayoutForProject ($this->getID(), $template->getID()) ;
@@ -2575,7 +2575,7 @@
 
 		$this->sendApprovalEmail();
 		$this->addHistory('Approved', 'x');
-		
+
 		//
 		//	Plugin can make approve operation there
 		//
@@ -2636,12 +2636,12 @@
 Enjoy the system, and please tell others about %4$s. Let us know
 if there is anything we can do to help you.
 
--- the %4$s crew'), 
+-- the %4$s crew'),
 						       htmlspecialchars_decode($this->getPublicName()),
-						       $this->getUnixName(), 
+						       $this->getUnixName(),
 						       util_make_url ('/project/admin/?group_id='.$this->getID()),
 						       forge_get_config ('forge_name'));
-	
+
 			util_send_message($admin->getEmail(), sprintf(_('%1$s Project Approved'), forge_get_config ('forge_name')), $message);
 
 			setup_gettext_from_context();
@@ -2738,7 +2738,7 @@
 			$this->setError(_("Could not find user who has submitted the project."));
 			return false;
 		}
-		
+
 		$admins = RBACEngine::getInstance()->getUsersByAllowedAction ('approve_projects', -1) ;
 
 		if (count($admins) < 1) {
@@ -2753,7 +2753,7 @@
 			foreach ($submitters as $u) {
 				$submitter_names[] = $u->getRealName() ;
 			}
-			
+
 			$message = sprintf(_('New %1$s Project Submitted
 
 Project Full Name:  %2$s
@@ -2762,11 +2762,11 @@
 					   forge_get_config ('forge_name'),
 					   htmlspecialchars_decode($this->getPublicName()),
 					   htmlspecialchars_decode($this->getRegistrationPurpose()));
-			
+
 			foreach ($submitters as $submitter) {
 				$message .= sprintf(_('Submitter: %1$s (%2$s)
 '),
-						    $submitter->getRealName(), 
+						    $submitter->getRealName(),
 						    $submitter->getUnixName());
 			}
 
@@ -2777,21 +2777,21 @@
 			util_send_message($admin_email, sprintf(_('New %1$s Project Submitted'), forge_get_config ('forge_name')), $message);
 			setup_gettext_from_context();
 		}
-		
 
+
 		$email = $submitter->getEmail() ;
 		setup_gettext_for_user ($submitter) ;
-				
+
 		$message=sprintf(_('New %1$s Project Submitted
 
 Project Full Name:  %2$s
 Submitted Description: %3$s
 
 The %1$s admin team will now examine your project submission.  You will be notified of their decision.'), forge_get_config ('forge_name'), $this->getPublicName(), util_unconvert_htmlspecialchars($this->getRegistrationPurpose()), forge_get_config('web_host'));
-				
+
 		util_send_message($email, sprintf(_('New %1$s Project Submitted'), forge_get_config ('forge_name')), $message);
 		setup_gettext_from_context();
-		
+
 		return true;
 	}
 
@@ -2827,7 +2827,7 @@
 	 */
 	function getRolesId() {
 		$role_ids = array();
-		
+
 		if (USE_PFO_RBAC) {
 			$res = db_query_params('SELECT role_id FROM pfo_role WHERE home_group_id=$1',
 						array($this->getID()));
@@ -2846,7 +2846,7 @@
 				$role_ids[] = $arr['role_id'];
 			}
 		}
-		
+
 		return array_unique($role_ids);
 	}
 
@@ -2875,7 +2875,7 @@
 
 	function normalizeAllRoles() {
 		$roles = $this->getRoles();
-		
+
 		foreach ($roles as $r) {
 			$r->normalizeData();
 		}
@@ -2889,7 +2889,7 @@
 	function getUnixStatus() {
 		return $this->data_array['unix_status'];
 	}
-	
+
 	/**
 	 * setUnixStatus - Sets status of activation of unix account.
 	 *
@@ -2907,7 +2907,7 @@
 		$res = db_query_params ('UPDATE groups SET unix_status=$1 WHERE group_id=$2',
 					array ($status,
 					       $this->getID())) ;
-	
+
 		if (!$res) {
 			$this->setError(sprintf(_('ERROR - Could Not Update Group Unix Status: %s'),db_error()));
 			db_rollback();
@@ -2928,13 +2928,13 @@
 					}
 				}
 			}
-			
+
 			$this->data_array['unix_status']=$status;
 			db_commit();
 			return true;
 		}
 	}
-	
+
 	/**
 	 * getUsers - Get the users of a group
 	 *
@@ -2943,11 +2943,11 @@
 	function getUsers($onlylocal = true) {
 		if (!isset($this->membersArr)) {
 			$this->membersArr = array () ;
-			
+
 			if (USE_PFO_RBAC) {
 				$ids = array () ;
 				foreach ($this->getRoles() as $role) {
-					if ($onlylocal 
+					if ($onlylocal
 					    && ($role->getHomeProject() == NULL || $role->getHomeProject()->getID() != $this->getID())) {
 						continue ;
 					}
@@ -2963,7 +2963,7 @@
 					}
 				}
 			} else {
-				
+
 				$users_group_res = db_query_params ('SELECT u.user_id FROM users u, user_group ug WHERE ug.group_id=$1 AND ug.user_id=u.user_id AND u.status=$2',
 								    array ($this->getID(),
 									   'A'));
@@ -2971,11 +2971,11 @@
 					$this->setError(_('Error: Enable to get users from group'). ' ' . $this->getID() . ' ' .db_error());
 					return false;
 				}
-				
+
 				for ($i=0; $i<db_numrows($users_group_res); $i++) {
 					$this->membersArr[$i] = new GFUser(db_result($users_group_res,$i,'user_id'),false);
 				}
-				
+
 			}
 		}
 		return $this->membersArr;
@@ -2986,7 +2986,7 @@
 		/* if we activate search engine, we probably want to reindex */
 		$res = db_query_params('UPDATE groups SET use_docman_create_online=$1 WHERE group_id=$2',
 					array($status, $this->getID()));
-	
+
 		if (!$res) {
 			$this->setError(sprintf(_('ERROR - Could Not Update Group DocmanCreateOnline Status: %s'),db_error()));
 			db_rollback();
@@ -3004,7 +3004,7 @@
 		$res = db_query_params('UPDATE groups SET use_webdav=$1 WHERE group_id=$2',
 					array($status,
 					       $this->getID()));
-	
+
 		if (!$res) {
 			$this->setError(sprintf(_('ERROR - Could Not Update Group UseWebdab Status: %s'),db_error()));
 			db_rollback();
@@ -3022,7 +3022,7 @@
 		$res = db_query_params('UPDATE groups SET use_docman_search=$1, force_docman_reindex=$1 WHERE group_id=$2',
 					array($status,
 					       $this->getID()));
-	
+
 		if (!$res) {
 			$this->setError(sprintf(_('ERROR - Could Not Update Group UseDocmanSearch Status: %s'),db_error()));
 			db_rollback();
@@ -3040,7 +3040,7 @@
 		$res = db_query_params('UPDATE groups SET force_docman_reindex=$1 WHERE group_id=$2',
 					array($status,
 					       $this->getID()));
-	
+
 		if (!$res) {
 			$this->setError(sprintf(_('ERROR - Could Not Update Group force_docman_reindex %s'),db_error()));
 			db_rollback();

Modified: trunk/src/common/include/GroupJoinRequest.class.php
===================================================================
--- trunk/src/common/include/GroupJoinRequest.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/GroupJoinRequest.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -58,7 +58,7 @@
 	 *  @return boolean success.
 	 */
 	function GroupJoinRequest($Group=false, $user_id=false, $arr=false) {
-		$this->error(); 
+		$this->error();
 
 		if (!$Group || !is_object($Group)) {
 			$this->setError('GroupJoinRequest:: No Valid Group Object');
@@ -83,7 +83,7 @@
 					$this->setError('group_id in db result does not match Group Object');
 					return false;
 				}
-			} 
+			}
 		}
 		return true;
 	}
@@ -136,7 +136,7 @@
 			db_rollback();
 			return false;
 		}
-		
+
 		if (!$this->fetchData($this->Group->getID(),$user_id)) {
 			db_rollback();
 			return false;
@@ -214,7 +214,7 @@
 	}
 
 	/**
-	 *	sendJoinNotice() - 
+	 *	sendJoinNotice() -
 	 *
 	 *	@return boolean	true/false.
 	 */
@@ -223,12 +223,12 @@
 		$admins =& $this->Group->getAdmins();
 		for ($i=0; $i<count($admins); $i++) {
 			setup_gettext_for_user ($admins[$i]) ;
-		  
+
 			$email=$admins[$i]->getEmail();
 			$subject = sprintf(_('Request to Join Project %1$s'), $this->Group->getPublicName());
 			$comments = util_unconvert_htmlspecialchars($this->data_array["comments"]);
-			$body = sprintf(_('%1$s has requested to join your project. 
-You can approve this request here: %2$s 
+			$body = sprintf(_('%1$s has requested to join your project.
+You can approve this request here: %2$s
 
 Comments by the user:
 %3$s'),

Modified: trunk/src/common/include/HTTPRequest.class.php
===================================================================
--- trunk/src/common/include/HTTPRequest.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/HTTPRequest.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,8 +33,8 @@
     function HTTPRequest() {
         parent::Codendi_Request($_REQUEST);
     }
-    
 
+
     /**
      * Get the value of $variable in $this->params (server side values).
      *

Modified: trunk/src/common/include/Jabber.class.php
===================================================================
--- trunk/src/common/include/Jabber.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Jabber.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -8,7 +8,7 @@
 
 	The FULL documentation and examples for this software can be found at
 	http://phpjabber.g-blog.net (not many doc comments in here, sorry)
-	
+
 	last modified: 2002-10-09 21:57:20
 
 	NOTE:
@@ -23,86 +23,86 @@
  * you distribute of the Licensed Product or any Modifications thereto.
  * Contributors to any Modifications may add their own copyright notices to
  * identify their own contributions.
- * 
+ *
  * License
- * 
+ *
  * The contents of this file are subject to the Jabber Open Source License
  * Version 1.0 (the "License").  You may not copy or use this file, in either
  * source code or executable form, except in compliance with the License.  You
  * may obtain a copy of the License at http://www.jabber.com/license/ or at
- * http://www.opensource.org/.  
- * 
+ * http://www.opensource.org/.
+ *
  * Software distributed under the License is distributed on an "AS IS" basis,
  * WITHOUT WARRANTY OF ANY KIND, either express or implied.  See the License
  * for the specific language governing rights and limitations under the
  * License.
- * 
+ *
  * Copyrights
- * 
- * Portions created by or assigned to Jabber.com, Inc. are 
+ *
+ * Portions created by or assigned to Jabber.com, Inc. are
  * Copyright (c) 2000 Jabber.com, Inc.  All Rights Reserved.  Contact
  * information for Jabber.com, Inc. is available at http://www.jabber.com/.
- * 
+ *
  * Portions Copyright (c) 2002-present Carlo Zottmann,
  * http://phpjabber.g-blog.net
- *  
+ *
  * Other portions copyright their respective owners.
- * 
+ *
  * Acknowledgements
- * 
+ *
  * Special thanks to the Jabber Open Source Contributors for their
  * suggestions and support of Jabber.
- * 
+ *
  ***************************************************************************/
 
 /*
-	Jabber::Connect() 
-	Jabber::Disconnect() 
-	Jabber::SendAuth() 
+	Jabber::Connect()
+	Jabber::Disconnect()
+	Jabber::SendAuth()
 	Jabber::AccountRegistration($reg_email {string}, $reg_name {string})
- 
-	Jabber::Listen() 
+
+	Jabber::Listen()
 	Jabber::SendPacket($xml {string})
- 
-	Jabber::RosterUpdate() 
-	Jabber::RosterAddUser($jid {string}, $id {string}, $name {string}) 
+
+	Jabber::RosterUpdate()
+	Jabber::RosterAddUser($jid {string}, $id {string}, $name {string})
 	Jabber::RosterRemoveUser($jid {string}, $id {string})
- 
-	Jabber::Subscribe($jid {string}) 
+
+	Jabber::Subscribe($jid {string})
 	Jabber::Unsubscribe($jid {string})
- 
-	Jabber::CallHandler($message {array}) 
+
+	Jabber::CallHandler($message {array})
 	Jabber::CruiseControl([$seconds {number}])
- 
-	Jabber::SubscriptionApproveRequest($to {string}) 
+
+	Jabber::SubscriptionApproveRequest($to {string})
 	Jabber::SubscriptionDenyRequest($to {string})
- 
-	Jabber::GetFirstFromQueue() 
+
+	Jabber::GetFirstFromQueue()
 	Jabber::GetFromQueueById($packet_type {string}, $id {string})
- 
+
 	Jabber::SendMessage($to {string}, $id {number}, $type {string}, $content {array}[, $payload {array}])
  	Jabber::SendIq($to {string}, $type {string}, $id {string}, $xmlns {string}[, $payload {string}])
 	Jabber::SendPresence($type {string}[, $to {string}[, $status {string}[, $show {string}[, $priority {number}]]]])
- 
-	Jabber::SendError($to {string}, $id {string}, $error_number {number}[, $error_message {string}]) 
 
-	Jabber::GetInfoFromMessageFrom($message {array}) 
-	Jabber::GetInfoFromMessageType($message {array}) 
-	Jabber::GetInfoFromMessageId($message {array}) 
-	Jabber::GetInfoFromMessageThread($message {array}) 
-	Jabber::GetInfoFromMessageSubject($message {array}) 
-	Jabber::GetInfoFromMessageBody($message {array}) 
+	Jabber::SendError($to {string}, $id {string}, $error_number {number}[, $error_message {string}])
+
+	Jabber::GetInfoFromMessageFrom($message {array})
+	Jabber::GetInfoFromMessageType($message {array})
+	Jabber::GetInfoFromMessageId($message {array})
+	Jabber::GetInfoFromMessageThread($message {array})
+	Jabber::GetInfoFromMessageSubject($message {array})
+	Jabber::GetInfoFromMessageBody($message {array})
 	Jabber::GetInfoFromMessageError($message {array})
- 
-	Jabber::GetInfoFromIqFrom($message {array}) 
-	Jabber::GetInfoFromIqType($message {array}) 
-	Jabber::GetInfoFromIqId($message {array}) 
+
+	Jabber::GetInfoFromIqFrom($message {array})
+	Jabber::GetInfoFromIqType($message {array})
+	Jabber::GetInfoFromIqId($message {array})
 	Jabber::GetInfoFromIqKey($message {array})
- 
-	Jabber::GetInfoFromPresenceFrom($message {array}) 
-	Jabber::GetInfoFromPresenceType($message {array}) 
-	Jabber::GetInfoFromPresenceStatus($message {array}) 
-	Jabber::GetInfoFromPresenceShow($message {array}) 
+
+	Jabber::GetInfoFromPresenceFrom($message {array})
+	Jabber::GetInfoFromPresenceType($message {array})
+	Jabber::GetInfoFromPresenceStatus($message {array})
+	Jabber::GetInfoFromPresenceShow($message {array})
 	Jabber::GetInfoFromPresencePriority($message {array})
 
 
@@ -133,13 +133,13 @@
 
 	var $packet_queue;
 	var $subscription_queue;
-	
+
 	var $iq_version_name;
 	var $iq_version_os;
 	var $iq_version_version;
 
 	var $error_codes;
-	
+
 	var $CONNECTOR;
 
 
@@ -152,7 +152,7 @@
 		$this->username				= forge_get_config('jabber_user');
 		$this->password				= forge_get_config('jabber_password');
 		$this->resource				= 'home';
-		
+
 		$this->enable_logging		= FALSE;
 		$this->logfile				= array();
 
@@ -231,7 +231,7 @@
 	{
 		$this->SendPacket("</stream:stream>");
 		$this->CONNECTOR->CloseSocket($this->connection);
-		
+
 		if ($this->enable_logging) {
 			echo "<h2>logging enabled, logged events below:</h2>\n";
 			echo (count($this->logfile) > 0) ? implode("<br /><br />\n", $this->logfile) : "No logged events.";
@@ -278,28 +278,28 @@
 	function AccountRegistration($reg_email = NULL, $reg_name = NULL)
 	{
 		$packet = $this->SendIq($this->server, "get", "reg_01", "jabber:iq:register");
-		
+
 		if ($packet) {
-	
+
 			$key = $this->GetInfoFromIqKey($packet);	// just in case a key was passed back from the server
 			unset($packet);
-		
+
 			$payload = "<username>" . $this->username . "</username>
 						<password>" . $this->password . "</password>
 						<email>$reg_email</email>
 						<name>$reg_name</name>\n";
 			$payload .= ($key) ? "<key>$key</key>\n" : "";
-		
+
 			$packet = $this->SendIq($this->server, "set", "reg_01", "jabber:iq:register", $payload);
-		
+
 			if ($this->GetInfoFromIqType($packet) == "result") {
-			
+
 				if (isset($packet["iq"]["#"]["query"][0]["#"]["registered"][0]["#"])) {
 					$return_code = 1;
 				} else {
 					$return_code = 2;
 				}
-		
+
 				if ($this->resource) {
 					$this->jid = $this->username . "@" . $this->server . "/" . $this->resource;
 				} else {
@@ -307,18 +307,18 @@
 				}
 
 			} elseif ($this->GetInfoFromIqType($packet) == "error") {
-		
+
 				if (isset($packet["iq"]["#"]["error"][0]["#"])) {
 					$return_code = "Error " . $packet["iq"]["#"]["error"][0]["@"]["code"] . ": " . $packet["iq"]["#"]["error"][0]["#"];
 				}
 			}
-	
+
 			return $return_code;
-	
+
 		} else {
-		
+
 			return 3;
-	
+
 		}
 	}
 
@@ -355,7 +355,7 @@
 		while ($line = $this->CONNECTOR->ReadFromSocket($this->connection, 4096)) {
 			$incoming .= $line;
 		}
-		
+
 		$incoming = trim($incoming);
 
 		if ($this->enable_logging && $incoming != "") {
@@ -386,7 +386,7 @@
 	function SendMessage($to, $type = "normal", $id = NULL, $content = NULL, $payload = NULL)
 	{
 		if ($to && is_array($content)) {
-		
+
 			if (!$id) { $id = $type . "_" . time(); }
 
 			$content = $this->_array_htmlspecialchars($content);
@@ -396,10 +396,10 @@
 			if ($content["thread"]) {
 				$xml .= "<thread>" . $content["thread"] . "</thread>\n";
 			}
-			if ($content['subject']) { 
-				$xml .= "<subject>" . $content['subject'] . "</subject>\n"; 
+			if ($content['subject']) {
+				$xml .= "<subject>" . $content['subject'] . "</subject>\n";
 			}
-			
+
 			$xml .= "<body>" . $content["body"] . "</body>\n";
 			$xml .= $payload;
 			$xml .= "</message>\n";
@@ -419,7 +419,7 @@
 			}
 
 		} else {
-		
+
 			if ($this->enable_logging) {
 				$this->logfile[] = "<strong>Error:</strong> SendMessage() #2";
 			}
@@ -481,7 +481,7 @@
 		$incoming_array = $this->SendIq(NULL, "get", $roster_request_id, "jabber:iq:roster");
 
 		if (is_array($incoming_array)) {
-			
+
 			if ($incoming_array["iq"]["@"]["type"] == "result"
 				&& $incoming_array["iq"]["@"]["id"] == $roster_request_id
 				&& $incoming_array["iq"]["#"]["query"]["0"]["@"]["xmlns"] == "jabber:iq:roster")
@@ -527,7 +527,7 @@
 		$id = ($id) ? $id : "adduser_" . time();
 
 		if ($jid) {
-	
+
 			$payload = "		<item jid='$jid'";
 			$payload .= ($name) ? " name='" . htmlspecialchars($name) . "'" : "";
 			$payload .= "/>\n";
@@ -538,7 +538,7 @@
 
 				$this->RosterUpdate();
 				return TRUE;
-			
+
 			} else {
 
 				if ($this->enable_logging) {
@@ -570,7 +570,7 @@
 
 				$this->RosterUpdate();
 				return TRUE;
-			
+
 			} else {
 
 				if ($this->enable_logging) {
@@ -628,13 +628,13 @@
 		$packet_type	= $this->_get_packet_type($packet);
 
 		if ($packet_type == "message") {
-		
+
 			$type		= $packet["message"]["@"]["type"];
 			$type		= ($type != "") ? $type : "normal";
 			$funcmeth	= "Handler_message_$type";
 
 		} elseif ($packet_type == "iq") {
-		
+
 			$this->TraverseXMLize($packet);
 
 			$namespace	= $packet["iq"]["#"]["query"][0]["@"]["xmlns"];
@@ -686,7 +686,7 @@
 			$count++;
 			sleep(1);
 		}
-		
+
 		return TRUE;
 	}
 
@@ -728,7 +728,7 @@
 			if ($this->enable_logging) {
 				$this->logfile[] = "<strong>Error:</strong> SendIq() #2 - type must be 'get', 'set', 'result' or 'error'";
 			}
-			
+
 			return FALSE;
 
 		} elseif ($id && $xmlns) {
@@ -744,7 +744,7 @@
 			$this->SendPacket($xml);
 			sleep($this->iq_sleep_timer);
 			$this->Listen();
-			
+
 			return (preg_match("/^(get|set)$/", $type)) ? $this->GetFromQueueById("iq", $id) : TRUE;
 
 		} else {
@@ -772,7 +772,7 @@
 		while ($line = $this->CONNECTOR->ReadFromSocket($this->connection, 4096)) {
 			$incoming .= $line;
 		}
-		
+
 		$incoming = trim($incoming);
 
 		if ($this->enable_logging && $incoming != "") {
@@ -787,9 +787,9 @@
 	function _check_connected()
 	{
 		$incoming_array = $this->_listen_incoming();
-		
+
 		if (is_array($incoming_array)) {
-			
+
 			if ($incoming_array["stream:stream"]["@"]["from"] == $this->server
 				&& $incoming_array["stream:stream"]["@"]["xmlns"] == "jabber:client"
 				&& $incoming_array["stream:stream"]["@"]["xmlns:stream"] == "http://etherx.jabber.org/streams")
@@ -860,7 +860,7 @@
 				}
 			}
 		}
-		
+
 		return $array;
 	}
 
@@ -1054,7 +1054,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:autoupdate</strong> from $from";
 	}
@@ -1066,7 +1066,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:agent</strong> from $from";
 	}
@@ -1078,7 +1078,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:agents</strong> from $from";
 	}
@@ -1090,7 +1090,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:auth</strong> from $from";
 	}
@@ -1102,7 +1102,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:oob</strong> from $from";
 	}
@@ -1114,7 +1114,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:private</strong> from $from";
 	}
@@ -1126,7 +1126,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:register</strong> from $from";
 	}
@@ -1138,7 +1138,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:roster</strong> from $from";
 	}
@@ -1150,7 +1150,7 @@
 	{
 		$from	= $this->GetInfoFromIqFrom($packet);
 		$id		= $this->GetInfoFromIqId($packet);
-		
+
 		$this->SendError($from, $id, 501);
 		$this->logfile[] = "<strong>jabber:iq:search</strong> from $from";
 	}
@@ -1170,7 +1170,7 @@
 			$payload = "<utc>" . gmdate("Ydm\TH:i:s") . "</utc>
 						<tz>" . date("T") . "</tz>
 						<display>" . date("Y/d/m h:i:s A") . "</display>";
-	
+
 			$this->SendIq($from, "result", $id, "jabber:iq:time", $payload);
 		}
 
@@ -1301,7 +1301,7 @@
 
 	// xmlize()
 	// (c) Hans Anderson / http://www.hansanderson.com/php/xml/
-	
+
 	function xmlize($data) {
 		$vals = $index = $array = array();
 		$parser = xml_parser_create();
@@ -1309,46 +1309,46 @@
 		xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1);
 		xml_parse_into_struct($parser, $data, $vals, $index);
 		xml_parser_free($parser);
-	
-		$i = 0; 
-	
+
+		$i = 0;
+
 		$tagname = $vals[$i]['tag'];
 		$array[$tagname]["@"] = $vals[$i]["attributes"];
 		$array[$tagname]["#"] = $this->_xml_depth($vals, $i);
-	
+
 		return $array;
 	}
-	
-	
-	
+
+
+
 	// _xml_depth()
 	// (c) Hans Anderson / http://www.hansanderson.com/php/xml/
-	
-	function _xml_depth($vals, &$i) { 
-		$children = array(); 
 
+	function _xml_depth($vals, &$i) {
+		$children = array();
+
 		if ($vals[$i]['value']) {
 			array_push($children, trim($vals[$i]['value']));
 		}
-	
-		while (++$i < count($vals)) { 
-	
-			switch ($vals[$i]['type']) { 
-	
-				case 'cdata': 
-					array_push($children, trim($vals[$i]['value'])); 
-	 				break; 
-	
-				case 'complete': 
+
+		while (++$i < count($vals)) {
+
+			switch ($vals[$i]['type']) {
+
+				case 'cdata':
+					array_push($children, trim($vals[$i]['value']));
+	 				break;
+
+				case 'complete':
 					$tagname = $vals[$i]['tag'];
 					$size = sizeof($children["$tagname"]);
 					$children[$tagname][$size]["#"] = trim($vals[$i]['value']);
 					if ($vals[$i]["attributes"]) {
 						$children[$tagname][$size]["@"] = $vals[$i]["attributes"];
 					}
-					break; 
-	
-				case 'open': 
+					break;
+
+				case 'open':
 					$tagname = $vals[$i]['tag'];
 					$size = sizeof($children["$tagname"]);
 					if ($vals[$i]["attributes"]) {
@@ -1357,28 +1357,28 @@
 					} else {
 						$children["$tagname"][$size]["#"] = $this->_xml_depth($vals, $i);
 					}
-					break; 
-	
+					break;
+
 				case 'close':
-					return $children; 
+					return $children;
 					break;
-			} 
-		} 
-	
+			}
+		}
+
 		return $children;
-	
+
 	}
-	
-	
-	
+
+
+
 	// TraverseXMLize()
 	// (c) acebone at f2s.com, a HUGE help!
-	
+
 	function TraverseXMLize($array, $arrName = "array", $level = 0) {
 		if ($level == 0) {
 			echo "<pre>";
 		}
-	
+
 		while (list($key, $val) = @each($array)) {
 			if (is_array($val)) {
 				$this->TraverseXMLize($val, $arrName . "[" . $key . "]", $level + 1);
@@ -1386,13 +1386,13 @@
 				echo '$' . $arrName . '[' . $key . '] = "' . $val . "\"\n";
 			}
 		}
-	
+
 		if ($level == 0) {
 			echo "</pre>";
 		}
 	}
 
-}	
+}
 
 
 
@@ -1415,7 +1415,7 @@
 		}
 
 		$temp = @explode("/", $string);
-		
+
 		for ($a = 0; $a < count($temp); $a++) {
 			$temp[$a] = preg_replace("/^[@]{1}([a-z0-9_]*)$/i", "[\"@\"][\"\\1\"]", $temp[$a]);
 			$temp[$a] = preg_replace("/^([a-z0-9_]*)\(([0-9]*)\)$/i", "[\"\\1\"][\\2]", $temp[$a]);
@@ -1423,7 +1423,7 @@
 		}
 
 		$node = implode("", $temp);
-		
+
 		// Yeahyeahyeah, I know it's ugly... get over it. ;)
 		echo "\$this->nodes$node = \"" . htmlspecialchars($value) . "\";<br/>";
 		eval("\$this->nodes$node = \"" . htmlspecialchars($value) . "\";");
@@ -1443,7 +1443,7 @@
 			array_multisort($array, SORT_ASC, SORT_STRING);
 
 			foreach ($array as $key => $value) {
-	
+
 				if (is_array($value) && $key == "@") {
 
 					foreach ($value as $subkey => $subvalue) {

Modified: trunk/src/common/include/MailParser.class.php
===================================================================
--- trunk/src/common/include/MailParser.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/MailParser.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -82,7 +82,7 @@
 		if ($header['Content-Type']) {
 			$hdr = strtolower($header['Content-Type']);
 			if (strpos($hdr,'text/plain') !== false) {
-				
+
 			} else {
 				$this->setError('Error - only text/plain supported at this time');
 				return false;

Modified: trunk/src/common/include/PFO-RBAC.interface.php
===================================================================
--- trunk/src/common/include/PFO-RBAC.interface.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/PFO-RBAC.interface.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,11 +33,11 @@
  * Interface for the RBAC engine
  * @author Roland Mas
  *
- * This interface is meant to be implemented with a singleton pattern. 
- * Its methods use the session management to decide what roles are available within the current session (if any), 
- * and to provide the answer to the question “Does the current client have the permission for this action?”. 
- * Other interesting questions that this interface is meant to answer include “does another account have the permission for that action?” 
- * and, more generically, “who is allowed that action?”. 
+ * This interface is meant to be implemented with a singleton pattern.
+ * Its methods use the session management to decide what roles are available within the current session (if any),
+ * and to provide the answer to the question “Does the current client have the permission for this action?”.
+ * Other interesting questions that this interface is meant to answer include “does another account have the permission for that action?”
+ * and, more generically, “who is allowed that action?”.
  */
 interface PFO_RBACEngine {
 	/**
@@ -66,7 +66,7 @@
  * Interfaces for the capabilities
  * @author Roland Mas
  *
- * Abstract interface, not meant to be implemented directly. 
+ * Abstract interface, not meant to be implemented directly.
  */
 interface PFO_Role {
 	public function getName() ;
@@ -77,7 +77,7 @@
 	public function setPublic($flag) ;
 	/**
 	 * TODO: Enter description here ...
-	 * NULL if role is “floating” 
+	 * NULL if role is “floating”
 	 */
 	public function getHomeProject() ;
 	public function getLinkedProjects() ;
@@ -95,7 +95,7 @@
 }
 
 /**
- * Standard, explicit membership role (members are list of usernames). 
+ * Standard, explicit membership role (members are list of usernames).
  * @author Roland Mas
  *
  */
@@ -118,8 +118,8 @@
 
 /**
  * Implicit membership role : always applying
- * 
- * Global scope (public, no home project), always available (even when logged in). hasUser() always returns true. 
+ *
+ * Global scope (public, no home project), always available (even when logged in). hasUser() always returns true.
  * @author Roland Mas
  *
  */
@@ -129,7 +129,7 @@
 
 /**
  * Implicit membership role : the client has opened a session
- * 
+ *
  * Global scope (public, no home project), available whenever a valid session is opened. hasUser() always returns true.
  * @author Roland Mas
  *

Modified: trunk/src/common/include/Plugin.class.php
===================================================================
--- trunk/src/common/include/Plugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Plugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -129,7 +129,7 @@
 					ORDER BY group_plugin.group_id ASC',
 					array($this->name));
 		$rows = db_numrows($res);
-		
+
 		for ($i=0; $i<$rows; $i++) {
 			$group_id = db_result($res,$i,'group_id');
 			$result[] = group_get_object($group_id);
@@ -329,7 +329,7 @@
 		$this->role =& $role;
 		$this->name = $name;
 	}
-	
+
 	function SetAllowedValues($values) {
 		$this->role->role_values = array_replace_recursive($this->role->role_values,
 								   array($this->name => $values));

Modified: trunk/src/common/include/PluginInfo.class.php
===================================================================
--- trunk/src/common/include/PluginInfo.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/PluginInfo.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,34 +22,34 @@
  * PluginInfo
  */
 class PluginInfo {
-    
+
     var $plugin;
     var $pluginDescriptor;
     var $propertyDescriptors;
-    
+
     function PluginInfo($plugin) {
         $this->plugin              = $plugin;
     }
-    
+
     function setPluginDescriptor($descriptor) {
     }
-    
+
     function getPluginDescriptor() {
     }
     function getPropertyDescriptors() {
     }
-    
+
     function _addPropertyDescriptor($descriptor) {
     }
     function _removePropertyDescriptor($descriptor) {
     }
-    
+
     function loadProperties() {
     }
-    
+
     function saveProperties() {
     }
-    
+
     function getPropertyDescriptorForName($name) {
     }
 }

Modified: trunk/src/common/include/PluginManager.class.php
===================================================================
--- trunk/src/common/include/PluginManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/PluginManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -73,7 +73,7 @@
 	 */
 	function GetPluginObject($pluginname) {
 		if (!isset($this->plugins_objects[$pluginname])) {
-			return false; 
+			return false;
 		}
 		return $this->plugins_objects[$pluginname];
 	}

Modified: trunk/src/common/include/PluginPersistence.class.php
===================================================================
--- trunk/src/common/include/PluginPersistence.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/PluginPersistence.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -16,9 +16,9 @@
 class PluginPersistentStore extends Error {
 
 	var $plugin_id;
-	
-	/* 
-	 
+
+	/*
+
 	CREATE TABLE plugins_persistence (
 	plugin_id integer,
 	persisted_key character varying(100),
@@ -27,9 +27,9 @@
 	-- May need an index on (plugin_id, persisted_key)
 	)
 */
-	
+
 	const persistence_table = 'plugins_persistence';
-	
+
 	/**
 	 * Constructor
 	 * @param integer $plugin_id
@@ -37,25 +37,25 @@
 	public function __construct($plugin_id) {
 		$this->plugin_id = $plugin_id;
 	}
-	
+
 	protected function additionalAndClause() {
 		return '';
 	}
 	/**
-	 * Loads persisted objects (saved in serialized form) 
+	 * Loads persisted objects (saved in serialized form)
 	 * @param key $key
 	 * @return array
 	 */
 	public function readObject($key) {
 		$result = array();
 		$res = db_query_params('SELECT persisted_data
-					FROM '.self::persistence_table.' 
+					FROM '.self::persistence_table.'
 					WHERE plugin_id = $1
 					AND persisted_key = $2 '.$self->additionalAndClause(),
 					array($this->plugin_id,
 							$key));
 		$rows = db_numrows($res);
-		
+
 		/*
 		if ($rows > 1) {
 			$this->setError(_('More than one value for the plugin + key'))
@@ -67,13 +67,13 @@
 		}
 		return $result;
 	}
-	
+
 	public function saveObject($object, $key) {
 		$data = serialize($object);
 		$res = db_query_params('INSERT INTO '. self::persistence_table .' (plugin_id, persisted_key, persisted_data) VALUES ($1, $2, $3)',
 				array($this->plugin_id, $key, $data));
 	}
-	
+
 }
 
 /**
@@ -84,35 +84,35 @@
 class PluginGroupPersistentStore {
 	var $group_plugin_id;
 
-	/*	
+	/*
 	CREATE TABLE group_plugin_persistence (
 	group_plugin_id integer,
 	persisted_key character varying(100),
 	persisted_data bytea,
 	CONSTRAINT plugins_persistence_pkey PRIMARY KEY (group_plugin_id, persisted_key)
-	
+
 		*/
 	public function __construct($plugin_id, $group_id) {
 		parent::__construct($plugin_id);
-		
+
 		$res = db_query_params('SELECT group_plugin_id
 						FROM group_plugin
 						WHERE plugin_id=$1
 						AND group_id=$2', array($plugin_id, $group_id));
 		$rows = db_numrows($res);
-		
+
 		if ($rows > 1) {
 			$this->setError(_('More than one value for the plugin + key'));
 		}
 		$this->group_plugin_id = db_result($res,0,'persisted_data');
 	}
-	
+
 	protected function additionalAndClause() {
 		$clause = parent::additionalAndClause();
 		$clause .= 'AND group_plugin_id='.$this->group_plugin_id;
 		return $clause;
 	}
-	
+
 }
 
 /**
@@ -122,15 +122,15 @@
  */
 class PluginUserPersistentStore {
 	var $user_id;
-	
-		/*	
-	
+
+		/*
+
 	CREATE TABLE user_plugin_persistence (
 	user_plugin_id integer,
 	persisted_key character varying(100),
 	persisted_data bytea,
 	CONSTRAINT plugins_persistence_pkey PRIMARY KEY (user_plugin_id, persisted_key)
-	
+
 		*/
-	
-}
\ No newline at end of file
+
+}

Modified: trunk/src/common/include/ProjectManager.class.php
===================================================================
--- trunk/src/common/include/ProjectManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/ProjectManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,22 +23,22 @@
  * Provide access to projects
  */
 class ProjectManager {
-    
+
     /**
-   
-    
+
+
     /**
      * Hold an instance of the class
      */
     private static $_instance;
-    
+
     /**
      * A private constructor; prevents direct creation of object
      */
     private function __construct() {
-    
+
     }
-    
+
     /**
      * ProjectManager is a singleton
      * @return ProjectManager
@@ -50,18 +50,18 @@
         }
         return self::$_instance;
     }
-    
-  
-    
+
+
+
     /**
      * @param $group_id int The id of the project to look for
      * @return Project
      */
     public function & getProject($group_id) {
-      
+
         return  group_get_object($group_id);
     }
-    
- 
+
+
 }
 ?>

Modified: trunk/src/common/include/RBAC.php
===================================================================
--- trunk/src/common/include/RBAC.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/RBAC.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -56,7 +56,7 @@
 
 	// var $perms_array;
 	// var $setting_array;
-	
+
 	public function BaseRole() {
 		if (USE_PFO_RBAC) {
 			// TODO: document these tables
@@ -73,7 +73,7 @@
 				'tracker_admin' => array(0, 1),
 				'pm_admin' => array(0, 1),
 				'forum_admin' => array(0, 1),
-				
+
 				'tracker' => array(0, 1, 3, 5, 7),
 				'pm' => array(0, 1, 3, 5, 7),
 				'forum' => array(0, 1, 2, 3, 4),
@@ -91,9 +91,9 @@
 
 			// Global permissions
 			$this->global_settings = array(
-				'forge_admin', // “God mode”: all actions allowed 
-				'approve_projects', // Ability to approve pending projects 
-				'approve_news', // Ability to approve news bits to the forge front page 
+				'forge_admin', // “God mode”: all actions allowed
+				'approve_projects', // Ability to approve pending projects
+				'approve_news', // Ability to approve news bits to the forge front page
 				'forge_stats'
 				);
 
@@ -168,7 +168,7 @@
 				'pm'		=> array ('-1','0','1','2','3'),
 				'newpm'		=> array ('-1','0','1','2','3'),
 				'webcal'	=> array ('0','1','2'));
-			
+
 			$this->defaults = array(
 				'Admin'		  => array( 'projectadmin'=>'A',
 							    'frs'=>'1',
@@ -502,7 +502,7 @@
 				case 'newforum':
 					$tohandle[] = array ('new_forum', $gid) ;
 					break ;
-					
+
 				default:
 					foreach ($t as $oldreference => $oldvalue) {
 						$tohandle[] = array ($oldsection, $oldreference) ;
@@ -638,12 +638,12 @@
 		}
 		$min = PHP_INT_MAX ;
 		$mask = 0 ;
-		
+
 		switch ($section) {
 		case 'forge_admin':
 			return $value ;
 			break ;
-			
+
 		case 'forge_read':
 		case 'approve_projects':
 		case 'approve_news':
@@ -652,21 +652,21 @@
 			}
 			return $value ;
 			break ;
-		
+
 		case 'forge_stats':
 			if ($this->hasGlobalPermission('forge_admin')) {
 				return 2 ;
 			}
 			return $value ;
 			break ;
-		
+
 		case 'project_admin':
 			if ($this->hasGlobalPermission('forge_admin')) {
 				return 1 ;
 			}
 			return $value ;
 			break ;
-			
+
 		case 'project_read':
 		case 'tracker_admin':
 		case 'pm_admin':
@@ -676,28 +676,28 @@
 			}
 			return $value ;
 			break ;
-		
+
 		case 'scm':
 			if ($this->hasPermission('project_admin', $reference)) {
 				return 2 ;
 			}
 			return $value ;
 			break ;
-			
+
 		case 'docman':
 			if ($this->hasPermission('project_admin', $reference)) {
 				return 4 ;
 			}
 			return $value ;
 			break ;
-			
+
 		case 'frs':
 			if ($this->hasPermission('project_admin', $reference)) {
 				return 3 ;
 			}
 			return $value ;
 			break ;
-			
+
 		case 'forum':
 			if ($this->hasPermission('forum_admin', forum_get_groupid($reference))) {
 				return 4 ;
@@ -710,7 +710,7 @@
 			}
 			return $value ;
 			break ;
-			
+
 		case 'tracker':
 			if ($this->hasPermission('tracker_admin', artifacttype_get_groupid($reference))) {
 				return 5 | $value ;
@@ -798,11 +798,11 @@
 
         function hasPermission($section, $reference, $action = NULL) {
 		$result = false ;
-		
+
 		$value = $this->getSetting ($section, $reference) ;
 		$min = PHP_INT_MAX ;
 		$mask = 0 ;
-		
+
 		switch ($section) {
 		case 'forge_admin':
 		case 'forge_read':
@@ -815,7 +815,7 @@
 		case 'forum_admin':
 			return ($value >= 1) ;
 			break ;
-		
+
 		case 'forge_stats':
 			switch ($action) {
 			case 'read':
@@ -826,7 +826,7 @@
 				break ;
 			}
 			break ;
-			
+
 		case 'scm':
 			switch ($action) {
 			case 'read':
@@ -837,7 +837,7 @@
 				break ;
 			}
 			break ;
-			
+
 		case 'docman':
 			switch ($action) {
 			case 'read':
@@ -854,7 +854,7 @@
 				break ;
 			}
 			break ;
-			
+
 		case 'frs':
 			switch ($action) {
 			case 'read_public':
@@ -868,7 +868,7 @@
 				break ;
 			}
 			break ;
-			
+
 		case 'forum':
 		case 'new_forum':
 			switch ($action) {
@@ -886,7 +886,7 @@
 				break ;
 			}
 			break ;
-			
+
 		case 'tracker':
 		case 'new_tracker':
 			switch ($action) {
@@ -1010,7 +1010,6 @@
 				 array ($this->getID(),
 					'pm',
 					db_int_array_to_any_clause (array_keys ($data['pm'])))) ;
-		
 
 
 
@@ -1020,9 +1019,10 @@
 
 
 
+
 ////$data['section_name']['ref_id']=$val
 		$arr1 = array_keys($data);
-		for ($i=0; $i<count($arr1); $i++) {	
+		for ($i=0; $i<count($arr1); $i++) {
 		//	array_values($Report->adjust_days)
 			$arr2 = array_keys($data[$arr1[$i]]);
 			for ($j=0; $j<count($arr2); $j++) {
@@ -1245,10 +1245,10 @@
 
 		$this->fetchData ($this->getID()) ;
 
-		$projects = $this->getLinkedProjects() ;		
+		$projects = $this->getLinkedProjects() ;
 		$new_sa = array () ;
 		$new_pa = array () ;
-		
+
 		// Add missing settings
 		// ...project-wide settings
 		if (USE_PFO_RBAC) {
@@ -1271,8 +1271,8 @@
 
 		$hook_params = array ();
 		$hook_params['role'] =& $this;
-		$hook_params['new_sa'] =& $new_sa ; 
-		$hook_params['new_pa'] =& $new_pa ; 
+		$hook_params['new_sa'] =& $new_sa ;
+		$hook_params['new_pa'] =& $new_pa ;
 		plugin_hook ("role_normalize", $hook_params);
 
 		// ...tracker-related settings
@@ -1300,7 +1300,7 @@
 				}
 			}
 		}
-		
+
 		// ...forum-related settings
 		$new_sa['forum'] = array () ;
 		$new_pa['forum'] = array () ;
@@ -1326,7 +1326,7 @@
 				}
 			}
 		}
-		
+
 		// ...pm-related settings
 		$new_sa['pm'] = array () ;
 		$new_pa['pm'] = array () ;
@@ -1352,7 +1352,7 @@
 				}
 			}
 		}
-		
+
 		// Save
 		if (USE_PFO_RBAC) {
 			$this->update ($this->getName(), $new_pa, false) ;
@@ -1391,7 +1391,7 @@
 					 array ($id,
 						$this->getID())) ;
 			}
-		}	
+		}
 
 		foreach ($this->getLinkedProjects() as $p) {
 			foreach ($ids as $uid) {
@@ -1470,7 +1470,7 @@
 
 		$c = __CLASS__ ;
 		self::$_instance = new $c ;
-		
+
 		$res = db_query_params ('SELECT r.role_id FROM pfo_role r, pfo_role_class c WHERE r.role_class = c.class_id AND c.class_name = $1',
 					array ('PFO_RoleAnonymous')) ;
 		if (!$res || !db_numrows($res)) {
@@ -1518,7 +1518,7 @@
 
 		$c = __CLASS__ ;
 		self::$_instance = new $c ;
-		
+
 		$res = db_query_params ('SELECT r.role_id FROM pfo_role r, pfo_role_class c WHERE r.role_class = c.class_id AND c.class_name = $1',
 					array ('PFO_RoleLoggedIn')) ;
 		if (!$res || !db_numrows($res)) {
@@ -1627,7 +1627,7 @@
 			$tmp = $projcmp->Compare ($ap, $bp) ;
 			if ($tmp) { /* Different projects, sort accordingly */
 				return $tmp ;
-			} 
+			}
 			return strcoll ($a->getName(), $b->getName()) ;
 		}
 	}

Modified: trunk/src/common/include/RBACEngine.class.php
===================================================================
--- trunk/src/common/include/RBACEngine.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/RBACEngine.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,7 +39,7 @@
 			$c = __CLASS__;
 			self::$_instance = new $c;
 		}
-		
+
 		return self::$_instance;
 	}
 
@@ -54,7 +54,7 @@
 		$this->_cached_available_roles = array () ;
 
 		$this->_cached_available_roles[] = RoleAnonymous::getInstance() ;
-		
+
 		if (session_loggedin()) {
 			$this->_cached_available_roles[] = RoleLoggedIn::getInstance() ;
 			$user = session_get_user() ;
@@ -72,7 +72,7 @@
 				}
 			}
 		}
-		
+
 		$params = array();
 		$params['current_roles'] = $this->_cached_available_roles;
 		$params['new_roles'] = array();
@@ -80,7 +80,7 @@
 		foreach ($params['new_roles'] as $r) {
 			$this->addAvailableRole($r);
 		}
-		
+
 		$params = array();
 		$params['current_roles'] = $this->_cached_available_roles;
 		$params['dropped_roles'] = array();
@@ -88,7 +88,7 @@
 		foreach ($params['dropped_roles'] as $r) {
 			$this->dropAvailableRole($r);
 		}
-		
+
 		return $this->_cached_available_roles ;
 	}
 
@@ -128,7 +128,7 @@
 				$this->_cached_global_roles[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		}
-		
+
 		return $this->_cached_global_roles ;
 	}
 
@@ -146,7 +146,7 @@
 				$this->_cached_public_roles[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		}
-		
+
 		return $this->_cached_public_roles ;
 	}
 
@@ -161,7 +161,7 @@
 
 		$result[] = RoleAnonymous::getInstance() ;
 		$result[] = RoleLoggedIn::getInstance() ;
-		
+
 		if (USE_PFO_RBAC) {
 			$res = db_query_params ('SELECT role_id FROM pfo_user_role WHERE user_id=$1',
 						array ($user->getID()));
@@ -175,7 +175,7 @@
 				$result[] = $this->getRoleById ($arr['role_id']) ;
 			}
 		}
-		
+
 		return $result ;
 	}
 
@@ -220,7 +220,7 @@
 			if (!$res || !db_numrows($res)) {
 				return NULL ;
 			}
-			
+
 			$class_id = db_result ($res, 0, 'class_name') ;
 			switch ($class_id) {
 			case 'PFO_RoleExplicit':
@@ -437,31 +437,31 @@
 				$t = artifactType_get_object ($reference) ;
 				$result = array_merge ($result, $this->_getRolesIdByAllowedAction ('tracker_admin', $t->Group->getID())) ;
 			}
-			break ;			
+			break ;
 		case 'pm':
 			if ($action != 'tech') {
 				$t = projectgroup_get_object ($reference) ;
 				$result = array_merge ($result, $this->_getRolesIdByAllowedAction ('pm_admin', $t->Group->getID())) ;
 			}
-			break ;			
+			break ;
 		case 'forum':
 			$t = forum_get_object ($reference) ;
 			$result = array_merge ($result, $this->_getRolesIdByAllowedAction ('forum_admin', $t->Group->getID())) ;
-			break ;			
+			break ;
 		case 'new_tracker':
 			if ($action != 'tech') {
 				$result = array_merge ($result, $this->_getRolesIdByAllowedAction ('tracker_admin', $reference)) ;
 			}
-			break ;			
+			break ;
 		case 'new_pm':
 			if ($action != 'tech') {
 				$result = array_merge ($result, $this->_getRolesIdByAllowedAction ('pm_admin', $reference)) ;
 			}
-			break ;			
+			break ;
 		case 'new_forum':
 			$t = forum_get_object ($reference) ;
 			$result = array_merge ($result, $this->_getRolesIdByAllowedAction ('forum_admin', $reference)) ;
-			break ;			
+			break ;
 		}
 
 		return array_unique ($result) ;

Modified: trunk/src/common/include/Role.class.php
===================================================================
--- trunk/src/common/include/Role.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Role.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -68,7 +68,7 @@
 				}
 			}
 		}
-		
+
 		if (!$role_id) {
 			//setting up an empty object
 			//probably going to call create()
@@ -124,7 +124,7 @@
 					$this->setError('Cannot create a role with this name (already used)');
 					return false;
 				}
-				
+
 				$res = db_query_params('UPDATE role SET role_name=$1 WHERE group_id=$2 AND role_id=$3',
 							array(htmlspecialchars($role_name),
 							       $this->Group->getID(),
@@ -192,12 +192,12 @@
 			} elseif (!forge_check_perm ('project_admin', $this->Group->getID())) {
 				$this->setPermissionDeniedError();
 				return false;
-			}			
+			}
 			if ($role_name == '') {
 				$this->setError('Cannot create a role with an empty name');
 				return false;
 			}
-			
+
 			db_begin();
 			if ($this->Group == NULL) {
 				$res = db_query_params('SELECT role_name FROM pfo_role WHERE home_group_id IS NULL AND role_name=$1',
@@ -216,7 +216,7 @@
 					return false;
 				}
 			}
-				
+
 			if ($this->Group == NULL) {
 				$res = db_query_params ('INSERT INTO pfo_role (role_name) VALUES ($1)',
 				array (htmlspecialchars($role_name))) ;
@@ -240,11 +240,11 @@
 			$this->data_array['role_name'] = $role_name ;
 
 			$this->update ($role_name, $data) ;
-				
+
 			$this->normalizeData () ;
-			
+
 		} else { // not USE_PFO_RBAC
-			
+
 			$perm =& $this->Group->getPermission ();
 			if (!$perm || !is_object($perm) || $perm->isError() || !$perm->isAdmin()) {
 				$this->setPermissionDeniedError();
@@ -276,7 +276,7 @@
 			}
 
 			$arr1 = array_keys($data);
-			for ($i=0; $i<count($arr1); $i++) {	
+			for ($i=0; $i<count($arr1); $i++) {
 			//	array_values($Report->adjust_days)
 				$arr2 = array_keys($data[$arr1[$i]]);
 				for ($j=0; $j<count($arr2); $j++) {
@@ -302,7 +302,7 @@
 				}
 			}
 		}
-		
+
 		if (!$this->fetchData($role_id)) {
 			db_rollback();
 			return false;
@@ -320,7 +320,7 @@
 		if ($this->Group == NULL) {
 			return $this->create($name,array(),true);
 		}
-		
+
 		if (array_key_exists ($name, $this->defaults)) {
 			$arr =& $this->defaults[$name];
 		} else {
@@ -366,7 +366,7 @@
 
 		return $this->create($name,$data,false);
 	}
-	
+
 	/**
 	 * delete - delete a role in the database.
 	 *
@@ -383,7 +383,7 @@
 				$this->setPermissionDeniedError();
 				return false;
 			}
-			
+
 			$res=db_query_params('SELECT user_id FROM pfo_user_role WHERE role_id=$1',
 					     array($this->getID()));
 			assert($res);
@@ -399,7 +399,7 @@
 				db_rollback();
 				return false;
 			}
-			
+
 			$res=db_query_params('DELETE FROM role_project_refs WHERE role_id=$1',
 					     array($this->getID()));
 			if (!$res || db_affected_rows($res) < 1) {
@@ -407,7 +407,7 @@
 				db_rollback();
 				return false;
 			}
-			
+
 			$res=db_query_params('DELETE FROM pfo_role_setting WHERE role_id=$1',
 					     array($this->getID()));
 			if (!$res || db_affected_rows($res) < 1) {
@@ -415,7 +415,7 @@
 				db_rollback();
 				return false;
 			}
-			
+
 			$res=db_query_params('DELETE FROM pfo_role WHERE role_id=$1',
 					     array($this->getID()));
 			if (!$res || db_affected_rows($res) < 1) {
@@ -423,14 +423,14 @@
 				db_rollback();
 				return false;
 			}
-			
+
 		} else { // not USE_PFO_RBAC
-			
+
 			if (!is_numeric($this->getID())) {
 				$this->setError('Role::delete() role_id is not an integer');
 				return false;
 			}
-			
+
 			//	Cannot delete role_id=1
 			if ($this->getID() == 1) {
 				$this->setError(_('Cannot Delete Default Role.'));
@@ -441,7 +441,7 @@
 				$this->setPermissionDeniedError();
 				return false;
 			}
-			
+
 			$res=db_query_params('SELECT user_id FROM user_group WHERE role_id=$1',
 					     array($this->getID()));
 			assert($res);
@@ -449,9 +449,9 @@
 				$this->setError(_('Cannot remove a non empty role.'));
 				return false;
 			}
-		
+
 			db_begin();
-			
+
 			$res=db_query_params('DELETE FROM role WHERE group_id=$1 AND role_id=$2',
 			array($this->Group->getID(), $this->getID()));
 			if (!$res || db_affected_rows($res) < 1) {
@@ -459,9 +459,9 @@
 				db_rollback();
 				return false;
 			}
-				
+
 			db_commit();
-				
+
 			return true;
 		}
 	}
@@ -474,9 +474,9 @@
 	 */
 	function setUser($user_id) {
 		global $SYS;
-		
+
 		if (USE_PFO_RBAC) {
-			
+
 			if ($this->Group == NULL) {
 				if (!forge_check_global_perm ('forge_admin')) {
 					$this->setPermissionDeniedError();
@@ -486,11 +486,11 @@
 				$this->setPermissionDeniedError();
 				return false;
 			}
-				
+
 			return $this->addUser (user_get_object($user_id)) ;
-				
+
 		} else { // not USE_PFO_RBAC
-				
+
 			$perm =& $this->Group->getPermission ();
 			if (!$perm || !is_object($perm) || $perm->isError() || !$perm->isAdmin()) {
 				$this->setPermissionDeniedError();

Modified: trunk/src/common/include/RoleObserver.class.php
===================================================================
--- trunk/src/common/include/RoleObserver.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/RoleObserver.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -189,7 +189,7 @@
 
 ////$data['section_name']['ref_id']=$val
 		$arr1 = array_keys($data);
-		for ($i=0; $i<count($arr1); $i++) {	
+		for ($i=0; $i<count($arr1); $i++) {
 			$arr2 = array_keys($data[$arr1[$i]]);
 			for ($j=0; $j<count($arr2); $j++) {
 				$usection_name=$arr1[$i];
@@ -205,7 +205,7 @@
 				//	See if this setting changed. If so, then update it
 				//
 				if ($this->getVal($usection_name,$uref_id) != $uvalue) {
-					if ($usection_name == 'scmpublic' || 
+					if ($usection_name == 'scmpublic' ||
 						$usection_name == 'projectpublic') {
 						if (!$data['scmpublic'][0]) {
 							$data['scmpublic'][0]=0;
@@ -213,7 +213,7 @@
 						if (!$data['projectpublic'][0]) {
 							$data['projectpublic'][0]=0;
 							// Groups cannot be private and have public SCM
-							// so we should always ensure that the scm is 
+							// so we should always ensure that the scm is
 							// private if we change a group to private.
 							$data['scmpublic'][0]=0;
 						}

Modified: trunk/src/common/include/Stats.class.php
===================================================================
--- trunk/src/common/include/Stats.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Stats.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php   
+<?php
 /**
  * FusionForge statistics
  *
@@ -89,11 +89,11 @@
 	* @return a resultset of group_name, unix_group_name, items
 	*/
 	function getTopPageViews() {
-		return db_query_params ('SELECT g.group_name, g.unix_group_name, SUM(s.page_views) AS items FROM stats_project_months s, groups g WHERE s.group_id=g.group_id AND g.status=$1 GROUP BY g.group_name, g.unix_group_name ORDER BY items DESC', 
+		return db_query_params ('SELECT g.group_name, g.unix_group_name, SUM(s.page_views) AS items FROM stats_project_months s, groups g WHERE s.group_id=g.group_id AND g.status=$1 GROUP BY g.group_name, g.unix_group_name ORDER BY items DESC',
 					array ('A'),
 					100) ;
 	}
-	
+
 	/**
 	* Returns a resultset containing group_name, unix_group_name, and items - the count of
 	* the downloads for that group

Modified: trunk/src/common/include/System.class.php
===================================================================
--- trunk/src/common/include/System.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/System.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -49,7 +49,7 @@
 
 	/**
  	* sysCheckUser() - Check for the existence of a user
- 	* 
+ 	*
  	* @param		int		The user ID of the user to check
  	* @returns true on success/false on error
  	*
@@ -115,7 +115,7 @@
 	/**
  	* sysUserSetAttribute() - Set an attribute for a user
  	*
- 	* @param		int		The user ID 
+ 	* @param		int		The user ID
  	* @param		string	The attribute to set
  	* @param		string	The new value of the attribute
  	* @returns true on success/false on error
@@ -128,10 +128,10 @@
 	/*
  	* Group management functions
  	*/
-	
+
 	/**
  	* sysCheckGroup() - Check for the existence of a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to check
  	* @returns true on success/false on error
  	*
@@ -142,7 +142,7 @@
 
 	/**
  	* sysCreateGroup() - Create a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to create
  	* @returns true on success/false on error
  	*
@@ -153,7 +153,7 @@
 
 	/**
  	* sysRemoveGroup() - Remove a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to remove
  	* @returns true on success/false on error
  	*

Modified: trunk/src/common/include/User.class.php
===================================================================
--- trunk/src/common/include/User.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/User.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,7 +28,7 @@
 /**
  * user_get_object_by_name() - Get User object by username.
  * user_get_object is useful so you can pool user objects/save database queries
- * You should always use this instead of instantiating the object directly 
+ * You should always use this instead of instantiating the object directly
  *
  * @param	string	The unix username - required
  * @param	int	The result set handle ("SELECT * FROM USERS WHERE user_id=xx")
@@ -67,7 +67,7 @@
 /**
  * user_get_object() - Get User object by user ID.
  * user_get_object is useful so you can pool user objects/save database queries
- * You should always use this instead of instantiating the object directly 
+ * You should always use this instead of instantiating the object directly
  *
  * @param	int	The ID of the user - required
  * @param	int	The result set handle ("SELECT * FROM USERS WHERE user_id=xx")
@@ -76,10 +76,10 @@
 function &user_get_object($user_id, $res = false) {
 	//create a common set of group objects
 	//saves a little wear on the database
-	
-	//automatically checks group_type and 
+
+	//automatically checks group_type and
 	//returns appropriate object
-	
+
 	global $USER_OBJ;
 	if (!isset($USER_OBJ["_".$user_id."_"])) {
 		if ($res) {
@@ -144,13 +144,13 @@
 }
 
 class GFUser extends Error {
-	/** 
+	/**
 	 * Associative array of data from db.
 	 *
 	 * @var	array	$data_array.
 	 */
 	var $data_array;
-	
+
 	/**
 	 * Is this person a site super-admin?
 	 *
@@ -209,7 +209,7 @@
 		$this->is_logged_in=false;
 		return true;
 	}
-	
+
 	/**
 	 * create() - Create a new user.
 	 *
@@ -402,7 +402,7 @@
 			$hook_params['user_name'] = $unix_name;
 			$hook_params['user_password'] = $password1;
 			plugin_hook("user_create", $hook_params);
-			
+
 			if ($send_mail) {
 				setup_gettext_from_lang_id($language_id);
 				$this->sendRegistrationEmail();
@@ -422,7 +422,7 @@
 	function sendRegistrationEmail() {
 		$message=stripcslashes(sprintf(_('Thank you for registering on the %3$s web site. You have
 account with username %1$s created for you. In order
-to complete your registration, visit the following url: 
+to complete your registration, visit the following url:
 
 <%2$s>
 
@@ -615,12 +615,12 @@
 			db_rollback();
 			return false;
 		}
-		
+
 		$hook_params = array ();
 		$hook_params['user'] = $this;
 		$hook_params['user_id'] = $this->getID();
 		plugin_hook ("user_update", $hook_params);
-		
+
 		db_commit();
 		return true;
 	}
@@ -643,7 +643,7 @@
 		$this->data_array = db_fetch_array($res);
 		return true;
 	}
-	
+
 	/**
 	 * getID - Simply return the user_id for this object.
 	 *
@@ -705,9 +705,9 @@
 			$hook_params['user_id'] = $this->getID();
 			$hook_params['status'] = $status;
 			plugin_hook ("user_setstatus", $hook_params);
-			
+
 			db_commit();
-			
+
 			return true;
 		}
 	}
@@ -773,7 +773,7 @@
 					}
 				}
 			}
-			
+
 			$this->data_array['unix_status']=$status;
 			db_commit();
 			return true;
@@ -815,7 +815,7 @@
 	function getMD5Passwd() {
 		return $this->data_array['user_pw'];
 	}
-	
+
 	//Added to be compatible with codendi getUserPw function
 	function getUserPw() {
 		return $this->data_array['user_pw'];
@@ -838,10 +838,10 @@
 	function getEmail() {
 		return str_replace("\n", "", $this->data_array['email']);
 	}
-	
+
 	/**
 	 * getSha1Email - a SHA1 encoded hash of the email URI (including mailto: prefix)
-	 * 
+	 *
 	 * @return string The SHA1 encoded value for the email
 	 */
 	function getSha1Email() {
@@ -901,7 +901,7 @@
 			$hook_params['user_id'] = $this->getID();
 			$hook_params['user_email'] = $email;
 			plugin_hook("user_setemail", $hook_params);
-			
+
 			if (!$this->fetchData($this->getId())) {
 				db_rollback();
 				return false;
@@ -1385,12 +1385,12 @@
 			$res = db_query_params('UPDATE users SET user_pw=$1 WHERE user_id=$2',
 						array($md5_pw,
 						       $this->getID()));
-			
+
 			if (!$res || db_affected_rows($res) < 1) {
 				$this->setError(_('ERROR - Could Not Change User Password:') . ' ' .db_error());
 				db_rollback();
 				return false;
-			} 
+			}
 		}
 		db_commit();
 		return true;
@@ -1411,13 +1411,13 @@
 			$res = db_query_params('UPDATE users SET unix_pw=$1 WHERE user_id=$1',
 						array ($unix_pw,
 						       $this->getID()));
-			
+
 			if (!$res || db_affected_rows($res) < 1) {
 				$this->setError(_('ERROR - Could Not Change User Password:') . ' ' .db_error());
 				db_rollback();
 				return false;
-			} 
-			
+			}
+
 			// Now change system password, but only if corresponding
 			// entry exists (i.e. if user have shell access)
 			if ($SYS->sysCheckUser($this->getID())) {
@@ -1474,7 +1474,7 @@
 	}
 
 	/**
-	 * usesPlugin - returns true if the user uses a particular plugin 
+	 * usesPlugin - returns true if the user uses a particular plugin
 	 *
 	 * @param	string	name of the plugin
 	 * @return	boolean	whether plugin is being used or not
@@ -1643,11 +1643,11 @@
 		case 'P2':
 			//pm admin
 			return forge_check_perm_for_user($this, 'pm_admin', $group_id);
-			break; 
+			break;
 		case 'F2':
 			//forum admin
 			return forge_check_perm_for_user($this, 'forum_admin', $group_id);
-			break; 
+			break;
 		case 'A':
 			//admin for this group
 			return forge_check_perm_for_user($this, 'project_admin', $group_id);
@@ -1678,7 +1678,7 @@
 
 /**
  * user_ismember() - DEPRECATED; DO NOT USE! (TODO: document what should be used instead)
- *  May need to be replaced by forge_check_perm ('project_admin', $group_id) if checking for project admin 
+ *  May need to be replaced by forge_check_perm ('project_admin', $group_id) if checking for project admin
  * @param		int		The Group ID
  * @param		int		The Type
  * @deprecated

Modified: trunk/src/common/include/UserManager.class.php
===================================================================
--- trunk/src/common/include/UserManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/UserManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,11 +22,11 @@
 
 
 class UserManager {
-   
-    
+
+
     protected function __construct() {
     }
-    
+
     protected static $_instance;
     public static function instance() {
         if (!isset(self::$_instance)) {
@@ -35,11 +35,11 @@
         }
         return self::$_instance;
     }
-    
-    
+
+
     /**
-     * @param $session_hash string Optional parameter. If given, this will force 
-     *                             the load of the user with the given session_hash. 
+     * @param $session_hash string Optional parameter. If given, this will force
+     *                             the load of the user with the given session_hash.
      *                             else it will check from the user cookies & ip
      * @return User the user currently logged in (who made the request)
      */
@@ -49,11 +49,11 @@
     	}
     	return session_get_user();
     }
-    
+
     function getUserById($user_id) {
     	return user_get_object($user_id);
     }
-   
+
     function getUserByEmail($user_id) {
 	    return user_get_object_by_email($user_id);
     }

Modified: trunk/src/common/include/Validator.class.php
===================================================================
--- trunk/src/common/include/Validator.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/Validator.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
 
 /**
 * This class is a simple utility to validate fields
-* 
+*
 * Sample usage:
 *
 * $v = new Validator();
@@ -56,7 +56,7 @@
 	function isClean() {
 		return count($this->badfields) == 0;
 	}
-	
+
 	/**
 	* Returns an error message which contains the null field names which have been checked
 	*

Modified: trunk/src/common/include/account.php
===================================================================
--- trunk/src/common/include/account.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/account.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -89,7 +89,7 @@
 		$GLOBALS['register_error'] = _('Name is reserved for CVS.');
 		return 0;
 	}
-		
+
 	return 1;
 }
 
@@ -102,7 +102,7 @@
  */
 function account_groupnamevalid($name) {
 	if (!account_namevalid($name)) return 0;
-	
+
 	// illegal names
 	$regExpReservedGroupNames = "^(www[0-9]?|cvs[0-9]?|shell[0-9]?|ftp[0-9]?|"
 		. "irc[0-9]?|news[0-9]?|mail[0-9]?|ns[0-9]?|download[0-9]?|pub|users|"
@@ -123,19 +123,19 @@
 
 /**
  * genchr() - Generate a random character
- * 
+ *
  * This is a local function used for account_salt()
  *
  * @return int $num A random character
  *
  */
 function genchr(){
-	do {	  
+	do {
 		$num = util_randnum(46, 122);
-	} while ( ( $num > 57 && $num < 65 ) || ( $num > 90 && $num < 97 ) );	  
-	$char = chr($num);	  
-	return $char;	  
-}	   
+	} while ( ( $num > 57 && $num < 65 ) || ( $num > 90 && $num < 97 ) );
+	$char = chr($num);
+	return $char;
+}
 
 /**
  * account_gensalt() - A random salt generator
@@ -148,15 +148,15 @@
 	// ncommander: modified for cipher selection
 	// crypt() selects the cipher based on
 	// the salt, so ...
-	
-	$a = genchr(); 
+
+	$a = genchr();
 	$b = genchr();
 	switch(forge_get_config('unix_cipher')) {
 		case 'DES':
 			$salt = "$a$b";
 			break;
 		default:
-		case 'MD5':	
+		case 'MD5':
 			$salt = "$1$" . "$a$b";
 			break;
 		case 'Blowfish':
@@ -168,7 +168,7 @@
 			return "$2a$".$salt;
 			break;
 	}
-	return $salt;	
+	return $salt;
 }
 
 /**

Modified: trunk/src/common/include/config-vars.php
===================================================================
--- trunk/src/common/include/config-vars.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/config-vars.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -151,7 +151,7 @@
 // Arch plugin
 if (file_exists ($gfconfig.'plugins/scmarch/config.php')) {
 	require_once $gfconfig.'plugins/scmarch/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmarch', $default_arch_server) ;
 	if (isset ($arch_root)) {
 		forge_define_config_item ('repos_path', 'scmarch', $arch_root) ;
@@ -164,7 +164,7 @@
 // Bazaar plugin
 if (file_exists ($gfconfig.'plugins/scmbzr/config.php')) {
 	require_once $gfconfig.'plugins/scmbzr/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmbzr', $default_bzr_server) ;
 	if (isset ($bzr_root)) {
 		forge_define_config_item ('repos_path', 'scmbzr', $bzr_root) ;
@@ -185,7 +185,7 @@
 // CVS plugin
 if (file_exists ($gfconfig.'plugins/scmcvs/config.php')) {
 	require_once $gfconfig.'plugins/scmcvs/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmcvs', $default_cvs_server) ;
 	if (isset ($cvs_root)) {
 		forge_define_config_item ('repos_path', 'scmcvs', $cvs_root) ;
@@ -200,7 +200,7 @@
 // Darcs plugin
 if (file_exists ($gfconfig.'plugins/scmdarcs/config.php')) {
 	require_once $gfconfig.'plugins/scmdarcs/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmdarcs', $default_darcs_server) ;
 	if (isset ($darcs_root)) {
 		forge_define_config_item ('repos_path', 'scmdarcs', $darcs_root) ;
@@ -213,7 +213,7 @@
 // Git plugin
 if (file_exists ($gfconfig.'plugins/scmgit/config.php')) {
 	require_once $gfconfig.'plugins/scmgit/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmgit', $default_git_server) ;
 	if (isset ($git_root)) {
 		forge_define_config_item ('repos_path', 'scmgit', $git_root) ;
@@ -226,7 +226,7 @@
 // Mercurial plugin
 if (file_exists ($gfconfig.'plugins/scmhg/config.php')) {
 	require_once $gfconfig.'plugins/scmhg/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmhg', $default_hg_server) ;
 	if (isset ($hg_root)) {
 		forge_define_config_item ('repos_path', 'scmhg', $hg_root) ;
@@ -239,7 +239,7 @@
 // Subversion plugin
 if (file_exists ($gfconfig.'plugins/scmsvn/config.php')) {
 	require_once $gfconfig.'plugins/scmsvn/config.php' ;
-	
+
 	forge_define_config_item ('default_server', 'scmsvn', $default_svn_server) ;
 	if (isset ($svn_root)) {
 		forge_define_config_item ('repos_path', 'scmsvn', $svn_root) ;
@@ -265,7 +265,7 @@
 // Mantis plugin
 if (file_exists ($gfconfig.'plugins/mantis/config.php')) {
 	require_once $gfconfig.'plugins/mantis/config.php' ;
-	
+
 	forge_define_config_item ('server', 'mantis', $serveur_mantis) ;
 	forge_define_config_item ('db_host', 'mantis', $mantis_db_host) ;
 	forge_define_config_item ('db_user', 'mantis', $mantis_db_user) ;

Modified: trunk/src/common/include/config.php
===================================================================
--- trunk/src/common/include/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 // See docs in http://fusionforge.org/plugins/mediawiki/wiki/fusionforge/index.php/Configuration
 
 /**
- * 
+ *
  * Singleton FusionForge configuration database manager TODO : Enter better description here ...
  *
  */
@@ -31,7 +31,7 @@
 	static protected $instance = NULL ;
 	private $settings ;
 	private $bools = array () ;
-    
+
 	/**
 	 * Singleton accessor to the configuration database
 	 * @return FusionForgeConfig instance
@@ -42,9 +42,9 @@
 		}
 		return self::$instance ;
 	}
-  
+
 	// TODO: add a constructor that initializes self::$instance to self ?
-	
+
 	public function get_sections () {
 		return array_keys ($this->settings) ;
 	}
@@ -67,7 +67,7 @@
 
 		foreach ($matches[0] as $m) {
 			$c = explode ('/', substr($m,1)) ;
-			
+
 			if (isset ($this->settings[$c[0]][$c[1]])) {
 				$tmp = str_replace ($m, $this->get_value($c[0],$c[1]), $tmp) ;
 			}
@@ -142,7 +142,7 @@
 		case '1':
 			return true ;
 		}
-		
+
 		return false ;
 	}
 
@@ -247,13 +247,13 @@
  */
 function forge_read_config_dir ($path) {
 	$c = FusionForgeConfig::get_instance () ;
-	
+
 	$files = array () ;
-	
+
 	if (is_dir($path)){
 		if ($handle = opendir($path)) {
 			while (false !== ($file = readdir($handle))) {
-				if ($file != "." 
+				if ($file != "."
 			    	&& $file != ".."
 			    	// Avoid .bak, .old, .dpkg-old and so on, but keep .ini
 			    	&& preg_match ('/^[0-9a-zA-Z_-]+(.ini)?$/', $file)) {

Modified: trunk/src/common/include/cron_utils.php
===================================================================
--- trunk/src/common/include/cron_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/cron_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -60,7 +60,7 @@
 $cron_arr[902]='mailing_lists_index.php';
 
 function cron_entry($job,$output) {
-	$sql='INSERT INTO cron_history (rundate,job,output) 
+	$sql='INSERT INTO cron_history (rundate,job,output)
 		values ($1, $2, $3)' ;
 	return db_query_params ($sql,
 				array (time(), $job, $output));

Modified: trunk/src/common/include/env.inc.php
===================================================================
--- trunk/src/common/include/env.inc.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/env.inc.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -4,13 +4,13 @@
  *
  * Some of the settings made here can be overwrite in the
  * configuration file if needed.
- * 
+ *
  */
 
 // Attempt to set up the include path, to fix problems with relative includes
 $fusionforge_basedir = dirname(dirname(dirname( __FILE__ ))) ;
-$include_path = join(PATH_SEPARATOR, 
-	array("/etc/gforge/custom", "/etc/gforge", ".", 
+$include_path = join(PATH_SEPARATOR,
+	array("/etc/gforge/custom", "/etc/gforge", ".",
 		"$fusionforge_basedir/common", "$fusionforge_basedir/www",
 		"$fusionforge_basedir/plugins", "$fusionforge_basedir",
 		"$fusionforge_basedir/www/include",
@@ -31,7 +31,7 @@
 if (getenv('sys_localinc')) {
 	$gfcgfile = getenv('sys_localinc');
 	$gfconfig = dirname($gfcgfile).'/';
-} elseif (isset($_SERVER['SERVER_NAME']) && 
+} elseif (isset($_SERVER['SERVER_NAME']) &&
 	file_exists($fusionforge_basedir.'/config/'.$_SERVER['SERVER_NAME'].'/local.inc.php')) {
 	$gfcgfile = $fusionforge_basedir.'/config/'.$_SERVER['SERVER_NAME'].'/local.inc.php';
 	$gfconfig = $fusionforge_basedir.'/config/'.$_SERVER['SERVER_NAME'].'/';

Modified: trunk/src/common/include/escapingUtils.php
===================================================================
--- trunk/src/common/include/escapingUtils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/escapingUtils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -304,7 +304,7 @@
 function inputSpecialchars($string) {
 	return str_replace('"', '"', $string);
 }
-	
+
 /**
 * unInputSpecialchars - clean a string escaped with inputSpecialchars
 *

Modified: trunk/src/common/include/forms.php
===================================================================
--- trunk/src/common/include/forms.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/forms.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,18 +24,18 @@
 /**
  *  form_generate_key() - Returns a new key, and registers it in the db.
  *
- *  @return	int	A new identifier. 
+ *  @return	int	A new identifier.
  *
  */
 function form_generate_key() {
 	$is_new=false;
 	db_begin();
-	// there's about 99.999999999% probability this loop will run only once :) 
+	// there's about 99.999999999% probability this loop will run only once :)
 	while(!$is_new) {
 		$key = md5(microtime() + util_randbytes() + $_SERVER["REMOTE_ADDR"]);
 		$res = db_query_params ('SELECT * FROM form_keys WHERE key=$1', array ($key));
 		if (!db_numrows($res)) {
-			$is_new=true;	
+			$is_new=true;
 		}
 	}
 	$res = db_query_params('INSERT INTO form_keys (key,is_used,creation_date) VALUES ($1, 0, $2)', array ($key,time()));
@@ -44,15 +44,15 @@
 		return false;
 	}
 	db_commit();
-	return $key;	
-}	
+	return $key;
+}
 
 /**
  *  form_key_is_valid() - Checks the db to see if the given key is already used. In case it's not already used
  * 	it updates the db.
  *
- *	@param	int	The key.			
- *  @return	boolean	True if the given key is already used. False if not. 
+ *	@param	int	The key.
+ *  @return	boolean	True if the given key is already used. False if not.
  *
  */
 function form_key_is_valid($key) {
@@ -80,8 +80,8 @@
 /**
  *  form_release_key() - Releases the given key if it is already used. If the given key it's not in the db, it returns false.
  *
- *	@param	int	The key.			
- *  @return	boolean	True if the given key is successfully released. False if not. 
+ *	@param	int	The key.
+ *  @return	boolean	True if the given key is successfully released. False if not.
  *
  */
 function form_release_key($key) {

Modified: trunk/src/common/include/gettext.php
===================================================================
--- trunk/src/common/include/gettext.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/gettext.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,7 +24,7 @@
 
 /**
  * choose_language_from_context - find the most appropriate language
- * 
+ *
  * @return string the language class name.
  */
 function choose_language_from_context () {
@@ -67,7 +67,7 @@
 	if ($lcount > 0) {
 		$delta = 0.009/$lcount ;
 		$i = 0 ;
-		
+
 		foreach ($ranges as $p) {
 			if (preg_match ('/(.*);q=(.*)/', $p, $matches)) {
 				$l = $matches[1] ;
@@ -80,7 +80,7 @@
 		}
 		arsort($languages, SORT_NUMERIC);
 		$languages = array_keys($languages);
-		
+
 		for( $i=0, $max = sizeof($languages); $i < $max; $i++){
 			$languageCode = $languages[$i];
 			$res = db_query_params ('select classname from supported_languages where language_code=$1', array ($languageCode)) ;
@@ -103,7 +103,7 @@
 	if (forge_get_config('default_language')) {
 		return forge_get_config('default_language') ;
 	}
-	
+
 	// Still no match?  Really?
 	return "English";
 }
@@ -216,7 +216,7 @@
  */
 function setup_gettext_from_locale ($locale) {
 	setlocale(LC_ALL, $locale);
-	
+
 	if (isset($GLOBALS['sys_gettext_path'])) {
 		bindtextdomain('fusionforge', $GLOBALS['sys_gettext_path']);
 	} else {

Modified: trunk/src/common/include/plugins_utils.php
===================================================================
--- trunk/src/common/include/plugins_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/plugins_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,10 +24,10 @@
 $GLOBALS['forumml_arch'] = '/var/lib/mailman/archives';
 $GLOBALS['forumml_tmp'] = '/var/spool/forumml';
 $GLOBALS['forumml_dir'] = '/var/lib/gforge/forumml';
-$GLOBALS['sys_lf'] = "\n"; 
+$GLOBALS['sys_lf'] = "\n";
 
 function isLogged(){
-        
+
         return session_loggedin();
 }
 
@@ -43,13 +43,13 @@
         }
         echo ('<iframe src= "'.$url.'" id="'.$id.'" width=100% height=500px></iframe>');
 }
-    
+
 function helpButton($help) {
 
 }
 function getIcon($url,$w=16,$h=16,$args=array()) {
-        echo html_image($url,$w,$h,$args); 
-}   
+        echo html_image($url,$w,$h,$args);
+}
 function getImage($img) {
         echo util_make_url($GLOBALS['HTML']->imgroot.$img);
 

Modified: trunk/src/common/include/pre.php
===================================================================
--- trunk/src/common/include/pre.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/pre.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -260,7 +260,7 @@
 		     empty($_FILES) && $_SERVER['CONTENT_LENGTH'] > 0 )
 		{
 			$displayMaxSize = ini_get('post_max_size');
-			
+
 			switch ( substr($displayMaxSize,-1) )
 			{
 			case 'G':

Modified: trunk/src/common/include/preplugins.php
===================================================================
--- trunk/src/common/include/preplugins.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/preplugins.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -3,7 +3,7 @@
 require_once 'common/include/HTTPRequest.class.php';
 //Codendi class for hmlPurifier
 require_once 'common/include/Codendi_HTMLPurifier.class.php';
-//Codendi class for Validator 
+//Codendi class for Validator
 require_once 'common/valid/ValidFactory.class.php';
 
 //Manager from Codendi

Modified: trunk/src/common/include/rbac_texts.php
===================================================================
--- trunk/src/common/include/rbac_texts.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/rbac_texts.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -32,7 +32,7 @@
  */
 function setup_rbac_strings () {
 	global $rbac_permission_names, $rbac_edit_section_names ;
-	
+
 	if (!isset ($rbac_permission_names)) {
 		$rbac_permission_names = array () ;
 	}
@@ -41,7 +41,7 @@
 	}
 
 	if (USE_PFO_RBAC) {
-		$rbac_permission_names = array_replace_recursive ($rbac_permission_names, 
+		$rbac_permission_names = array_replace_recursive ($rbac_permission_names,
 								  array (
 									  'forge_admin0' => _('No administrative access'),
 									  'forge_admin1' => _('Forge administration'),
@@ -64,7 +64,7 @@
 									  'pm_admin1' => _('Task managers administration'),
 									  'forum_admin0' => _('No administrative access'),
 									  'forum_admin1' => _('Forums administration'),
-				
+
 									  'tracker0' => _('No access'),
 									  'tracker1' => _('Read only'),
 									  'tracker2' => _('Technician (no read access)'),
@@ -141,7 +141,7 @@
 									    'tracker_admin' => _('Trackers administration'),
 									    'pm_admin' => _('Task managers administration'),
 									    'forum_admin' => _('Forums administration'),
-				
+
 									    'tracker' => _('Tracker'),
 									    'pm' => _('Tasks'),
 									    'forum' => _('Forum'),
@@ -158,7 +158,7 @@
 									    )
 			) ;
 	} else { // Not USE_PFO_RBAC
-		$rbac_permission_names = array_replace_recursive ($rbac_permission_names, 
+		$rbac_permission_names = array_replace_recursive ($rbac_permission_names,
 								  array (
 									  'frspackage0' => _('Private'),
 									  'frspackage1' => _('Public'),

Modified: trunk/src/common/include/system/LDAP.class.php
===================================================================
--- trunk/src/common/include/system/LDAP.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/system/LDAP.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -37,7 +37,7 @@
 	/*
  	* Auxilary functions
  	*/
-	
+
 	/**
  	*	asciize() - Replace non-ascii characters with question marks
  	*
@@ -53,7 +53,7 @@
 			// LDAP don't allow empty strings for some attributes
 			return '?';
 		}
-	
+
 		return preg_replace("/[\x80-\xff]/","?",$str);
 	}
 
@@ -88,7 +88,7 @@
 
 	/**
 	 * gfLdapAdd() - Wrapper for ldap_add()
-	 * 
+	 *
 	 * @param		string	dn
 	 * @param		string	entry
 	 *
@@ -120,7 +120,7 @@
 		global $ldap_conn;
 		return @ldap_modify($ldap_conn,$dn,$entry);
 	}
-	
+
 	/**
 	 * gfLdapModifyIfExists() - Wrapper for ldap_modify()
 	 * works like gfLdapModify, but returns true if the LDAP entry does not exist
@@ -154,7 +154,7 @@
 		global $ldap_conn;
 		return @ldap_mod_add($ldap_conn,$dn,$entry);
 	}
-	
+
 	/**
 	 * gfLdapModDel() - Wrapper for ldap_mod_del()
 	 *
@@ -166,7 +166,7 @@
 		global $ldap_conn;
 		return @ldap_mod_del($ldap_conn,$dn,$entry);
 	}
-	
+
 	/**
 	 * gfLdapRead() - Wrapper for ldap_read()
 	 *
@@ -179,7 +179,7 @@
 		global $ldap_conn;
 		return @ldap_read($ldap_conn,$dn,$filter,$attrs);
 	}
-	
+
 	/**
 	 * gfLdapError() - Wrapper for ldap_error()
 	 *
@@ -190,7 +190,7 @@
 		global $ldap_conn;
 		return ldap_error($ldap_conn);
 	}
-	
+
 	/**
 	 * gfLdapErrno() - Wrapper for ldap_errno()
 	 *
@@ -201,7 +201,7 @@
 		global $ldap_conn;
 		return ldap_errno($ldap_conn);
 	}
-	
+
 	/**
 	 * gfLdapAlreadyExists()
 	 */
@@ -209,7 +209,7 @@
 		global $ldap_conn;
 		return ldap_errno($ldap_conn)==20;
 	}
-	
+
 	/**
 	 * gfLdapDoesNotExist()
 	 */
@@ -217,14 +217,14 @@
 		global $ldap_conn;
 		return ldap_errno($ldap_conn)==16;
 	}
-	
+
 	/*
 	 * User management functions
 	 */
-	
+
 	/**
 	 * sysCheckUser() - Check for the existence of a user
-	 * 
+	 *
 	 * @param		int		The user ID of the user to check
 	 * @returns true on success/false on error
 	 *
@@ -236,32 +236,32 @@
 		}
 		return $this->gfLdapcheck_user_by_name($user->getUnixName());
 	}
-	
+
 	/**
 	 * gfLdapcheck_user_by_name() - Check for a user by the username
 	 *
-	 * @param		string	The username 
+	 * @param		string	The username
 	 * @returns true on success/false on error
 	 *
 	 */
 	function gfLdapcheck_user_by_name($user_name) {
 		global $ldap_conn;
 
-	
+
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
-	
+
 		$dn = 'uid='.$user_name.',ou=People,'.forge_get_config('ldap_base_dn');
 		$res = $this->gfLdapRead($dn,"objectClass=*",array("uid"));
 		if ($res) {
 			ldap_free_result($res);
 			return true;
 		}
-	
+
 		return false;
 	}
-	
+
 	/**
 	 * sysCreateUser() - Create a user
 	 *
@@ -278,7 +278,7 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * sysCheckCreateUser() - Check that a user has been created
 	 *
@@ -293,7 +293,7 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * gfLdapcreate_user_from_object() - Create a user from information contained within an object
 	 *
@@ -325,7 +325,7 @@
 		$entry['shadowLastChange']=1; // We don't have expiration, so any non-0
 		$entry['shadowMax']=99999;
 		$entry['shadowWarning']=7;
-	
+
 		if (!$this->gfLdapAdd($dn,$entry)) {
 			$this->setError("ERROR: cannot add LDAP user entry '".
 				 $user->getUnixName()."': ".$this->gfLdapError()."<br />");
@@ -333,11 +333,11 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * gfLdapCreateUserFromProps() - Creates an LDAP user from
 	 *
-	 * @param		string	The username 
+	 * @param		string	The username
 	 * @param		string	????
 	 * @param		string	The encrypted password
 	 * @returns true on success/false on error
@@ -361,14 +361,14 @@
 		$entry['userPassword']='{crypt}'.$crypt_pw;
 		$entry['homeDirectory'] = account_user_homedir($username);
 		$entry['loginShell']=$shell;
-		$entry['debGforgeCvsShell']=$cvsshell; 
+		$entry['debGforgeCvsShell']=$cvsshell;
 		$entry['debGforgeForwardEmail']=$email;
 		$entry['uidNumber']=$uid;
 		$entry['gidNumber']=$gid;
 		$entry['shadowLastChange']=1;
 		$entry['shadowMax']=99999;
 		$entry['shadowWarning']=7;
-	
+
 		if (!$this->gfLdapAdd($dn,$entry)) {
 			$this->setError("ERROR: cannot add LDAP user entry '".
 				 $username."': ".$this->gfLdapError()."<br />");
@@ -376,7 +376,7 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * sysRemoveUser() - Remove an LDAP user
 	 *
@@ -386,13 +386,13 @@
 	 */
 	function sysRemoveUser($user_id) {
 
-	
+
 		$user = &user_get_object($user_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
 		$dn = 'uid='.$user->getUnixName().',ou=People,'.forge_get_config('ldap_base_dn');
-	
+
 		if (!$this->gfLdapDelete($dn)) {
 		    $this->setError("ERROR: cannot delete LDAP user entry '".
 				 $user->getUnixName()."': ".$this->gfLdapError()."<br />");
@@ -400,11 +400,11 @@
 		}
 		return true;
 	}
-	
+
 	/**
 	 * sysUserSetAttribute() - Set an attribute for a user
 	 *
-	 * @param		int		The user ID 
+	 * @param		int		The user ID
 	 * @param		string	The attribute to set
 	 * @param		string	The new value of the attribute
 	 * @returns true on success/false on error
@@ -412,14 +412,14 @@
 	 */
 	function sysUserSetAttribute($user_id,$attr,$value) {
 
-	
+
 		$user = &user_get_object($user_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
 		$dn = 'uid='.$user->getUnixName().',ou=People,'.forge_get_config('ldap_base_dn');
 		$entry[$attr]=$value;
-	
+
 		if (!$this->gfLdapModifyIfExists($dn, $entry)) {
 		    $this->setError("ERROR: cannot change LDAP attribute '$attr' for user '".
 				 $user->getUnixName()."': ".$this->gfLdapError()."<br />");
@@ -427,14 +427,14 @@
 		}
 		return true;
 	}
-	
+
 	/*
 	 * Group management functions
 	 */
-	
+
 	/**
 	 * sysCheckGroup() - Check for the existence of a group
-	 * 
+	 *
 	 * @param		int		The ID of the group to check
 	 * @returns true on success/false on error
 	 *
@@ -442,7 +442,7 @@
 	function sysCheckGroup($group_id) {
 		global $ldap_conn;
 
-	
+
 		$group = &group_get_object($group_id);
 		if (!$group) {
 			$this->setError("ERROR: Cannot find group [$group_id]<br />");
@@ -459,17 +459,17 @@
 		}
 		return false;
 	}
-	
+
 	/**
 	 * sysCreateGroup() - Create a group
-	 * 
+	 *
 	 * @param		int		The ID of the group to create
 	 * @returns true on success/false on error
 	 *
 	 */
 	function sysCreateGroup($group_id) {
 
-	
+
 		$group = &group_get_object($group_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
@@ -480,43 +480,43 @@
 		$entry['cn']=$group->getUnixName();
 		$entry['userPassword']='{crypt}x';
 		$entry['gidNumber']=$this->getUnixGID();
-	
+
 		$i=0; $i_cvs=0;
-	
+
 		$ret_val=true;
-		
+
 		if (!$this->gfLdapAdd($dn,$entry)) {
 		    $this->setError("ERROR: cannot add LDAP group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."<br />");
 		    // If there's error, that's bad. But don't stop.
 		    $ret_val=false;
 		}
-	
+
 		//
 		//	Now create CVS group
 		//
-	
+
 		// Add virtual anoncvs user to CVS group
 		$cvs_member_list[$i_cvs++] = 'anoncvs_'.$group->getUnixName();
-	
+
 		$dn = 'cn='.$group->getUnixName().',ou=cvsGroup,'.forge_get_config('ldap_base_dn');
-	
+
 		if ($cvs_member_list) {
 			$entry['memberUid']=$cvs_member_list;
 		} else {
 			unset($entry['memberUid']);
 		}
-	
+
 		if (!$this->gfLdapAdd($dn,$entry)) {
 			$this->setError("ERROR: cannot add LDAP CVS group entry '"
 				 .$group->getUnixName()."': ".$this->gfLdapError()."<br />");
 			$ret_val=false;
 		}
-	
+
 		//
 		// Finally, setup AnonCVS virtual user
 		//
-	
+
 	        if (!$this->gfLdapcheck_user_by_name('anoncvs_'.$group->getUnixName())
 		    && !$this->gfLdapCreateUserFromProps('scm_'.$group->getUnixName(),
 							'anoncvs', 'x',
@@ -527,71 +527,71 @@
 				 .$group->getUnixName()."': ".$this->gfLdapError()."<br />");
 			$ret_val=false;
 		}
-	
+
 		return $ret_val;
 	}
-	
+
 	/**
 	 * sysRemoveGroup() - Remove a group
-	 * 
+	 *
 	 * @param		int		The ID of the group to remove
 	 * @returns true on success/false on error
 	 *
 	 */
 	function sysRemoveGroup($group_id) {
 
-	
+
 		$group = &group_get_object($group_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
-	
+
 		//
 		//	Remove shell LDAP group
 		//
 		$ret_val=true;
-		
+
 		$dn = 'cn='.$group->getUnixName().',ou=Group,'.forge_get_config('ldap_base_dn');
-	
+
 		if (!$this->gfLdapDelete($dn)) {
 		    $this->setError("ERROR: cannot delete LDAP group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."<br />");
 		    $ret_val = false;
 		}
-	
+
 		//
 		//	Remove CVS LDAP group
 		//
-	
+
 		$dn = 'cn='.$group->getUnixName().',ou=cvsGroup,'.forge_get_config('ldap_base_dn');
-	
+
 		if (!$this->gfLdapDelete($dn)) {
 		    $this->setError("ERROR: cannot delete LDAP CVS group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."<br />");
 		    $ret_val = false;
 		}
-	
+
 		//
 		//	Remove AnonCVS virtual user
 		//
-	
+
 		$dn = 'uid=anoncvs_'.$group->getUnixName().',ou=People,'.forge_get_config('ldap_base_dn');
 		if (!$this->gfLdapDelete($dn)) {
 		    $this->setError("ERROR: cannot delete LDAP AnonCVS user entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."<br />");
 		    $ret_val = false;
 		}
-	
+
 		return $ret_val;
 	}
-	
+
 	function sysGroupCheckUser($group_id,$user_id) {
 		db_begin () ;
 		if (! $this->sysGroupRemoveUser($group_id,$user_id)) {
 			db_rollback () ;
 			return false;
 		}
-		
+
 		$u = user_get_object($user_id) ;
 		$p = group_get_object($group_id) ;
 		if (forge_check_perm_for_user($u,'scm',$group_id,'write')) {
@@ -623,7 +623,7 @@
 	function sysGroupAddUser($group_id,$user_id,$cvs_only=0) {
 		global $ldap_conn;
 
-	
+
 		$group = &group_get_object($group_id);
 		$user  = &user_get_object($user_id);
 		if (!$this->gfLdapConnect()) {
@@ -632,11 +632,11 @@
 		$dn = 'cn='.$group->getUnixName().',ou=Group,'.forge_get_config('ldap_base_dn');
 		$cvs_dn = 'cn='.$group->getUnixName().',ou=cvsGroup,'.forge_get_config('ldap_base_dn');
 		$entry['memberUid'] = $user->getUnixName();
-		
+
 		//
 		//	Check if user already a member of CVS group
 		//
-	
+
 		$res=$this->gfLdapRead($cvs_dn,"memberUid=".$user->getUnixName(),array("cn"));
 		if ($res && ldap_count_entries($ldap_conn,$res)>0) {
 			//echo "already a member of CVS<br />";
@@ -644,44 +644,44 @@
 			//
 			//	No, add one
 			//
-	
+
 			if (!$this->gfLdapModAdd($cvs_dn,$entry)) {
 				$this->setError("ERROR: cannot add member to LDAP CVS group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."<br />");
 				return false;
 			}
 		}
-	
+
 		ldap_free_result($res);
-		
+
 		if ($cvs_only) {
 			return true;
 		}
-		
+
 		//
 		//	Check if user already a member of shell group
 		//
 		$res = $this->gfLdapRead($dn, "memberUid=".$user->getUnixName(), array("cn"));
-	
+
 		if ($res && ldap_count_entries($ldap_conn,$res)>0) {
 			//echo "already a member<br />";
 		} else {
 			//
 			//	No, add one
 			//
-	
+
 			if (!$this->gfLdapModAdd($dn,$entry)) {
 				$this->setError("ERROR: cannot add member to LDAP group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."<br />");
 				return false;
 			}
 		}
-	
+
 		ldap_free_result($res);
-	
+
 		return true;
 	}
-	
+
 	/**
 	 * sysGroupRemoveUser() - Remove a user from an LDAP group
 	 *
@@ -693,35 +693,35 @@
 	 */
 	function sysGroupRemoveUser($group_id,$user_id,$cvs_only=0) {
 
-	
+
 		$group = &group_get_object($group_id);
 		$user  = &user_get_object($user_id);
 		if (!$this->gfLdapConnect()) {
 			return false;
 		}
-	
+
 		$dn = 'cn='.$group->getUnixName().',ou=Group,'.forge_get_config('ldap_base_dn');
 		$cvs_dn = 'cn='.$group->getUnixName().',ou=cvsGroup,'.forge_get_config('ldap_base_dn');
 		$entry['memberUid'] = $user->getUnixName();
-	
+
 		$ret_val=true;
-	
+
 		if (!$this->gfLdapModDel($cvs_dn,$entry) && !$this->gfLdapDoesNotExist()) {
 			$this->setError("ERROR: cannot remove member from LDAP CVS group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."(".$this->gfLdapErrno().")"."<br />");
 			$ret_val=false;
 		}
-		
+
 		if ($cvs_only) {
 			return $ret_val;
 		}
-	
+
 		if (!$this->gfLdapModDel($dn,$entry) && !$this->gfLdapDoesNotExist()) {
 			$this->setError("ERROR: cannot remove member from LDAP group entry '".
 				 $group->getUnixName()."': ".$this->gfLdapError()."(".$this->gfLdapErrno().")"."<br />");
 			$ret_val=false;
 		}
-		
+
 		return $ret_val;
 	}
 }

Modified: trunk/src/common/include/system/NSSPGSQL.class.php
===================================================================
--- trunk/src/common/include/system/NSSPGSQL.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/system/NSSPGSQL.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -63,10 +63,10 @@
 	/*
  	* Group management functions
  	*/
-	
+
 	/**
  	* sysCheckGroup() - Check for the existence of a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to check
  	* @returns true on success/false on error
  	*
@@ -81,7 +81,7 @@
 
 	/**
  	* sysCreateGroup() - Create a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to create
  	* @returns true on success/false on error
  	*

Modified: trunk/src/common/include/system/UNIX.class.php
===================================================================
--- trunk/src/common/include/system/UNIX.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/system/UNIX.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -88,10 +88,10 @@
 	/*
  	* Group management functions
  	*/
-	
+
 	/**
  	* sysCheckGroup() - Check for the existence of a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to check
  	* @returns true on success/false on error
  	*
@@ -106,7 +106,7 @@
 
 	/**
  	* sysCreateGroup() - Create a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to create
  	* @returns true on success/false on error
  	*

Modified: trunk/src/common/include/system/pgsql.class.php
===================================================================
--- trunk/src/common/include/system/pgsql.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/system/pgsql.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -27,21 +27,21 @@
 	/*
  	* Constants
  	*/
-	
+
 	/**
  	* Value to add to unix_uid to get unix uid
- 	* 
+ 	*
  	* @var	constant	$UID_ADD
  	*/
 	var $UID_ADD = 20000;
-		
+
 	/**
  	* Value to add to group_id to get unix gid
  	*
  	* @var	constant	$GID_ADD
  	*/
 	var $GID_ADD = 10000;
-		
+
 	/**
  	* Value to add to unix gid to get unix uid of anoncvs special user
  	*
@@ -81,7 +81,7 @@
 
 	/**
  	* sysCheckUser() - Check for the existence of a user
- 	* 
+ 	*
  	* @param	int	The user ID of the user to check
  	* @return	boolean	true on success/false on error
  	*
@@ -142,7 +142,7 @@
 				$this->setError('ERROR - Could Not Update Group GID: '.db_error());
 				return false;
 			}
-			
+
 			$pids = array () ;
 			foreach ($user->getGroups() as $p) {
 				$pids[] = $p->getID() ;
@@ -219,7 +219,7 @@
 	/**
  	* sysUserSetAttribute() - Set an attribute for a user
  	*
- 	* @param	int	The user ID 
+ 	* @param	int	The user ID
  	* @param	string	The attribute to set
  	* @param	string	The new value of the attribute
  	* @return	boolean	true on success/false on error
@@ -232,10 +232,10 @@
 	/*
  	* Group management functions
  	*/
-	
+
 	/**
  	* sysCheckGroup() - Check for the existence of a group
- 	* 
+ 	*
  	* @param	int	The ID of the group to check
  	* @return	boolean	true on success/false on error
  	*
@@ -257,7 +257,7 @@
 
 	/**
  	* sysCreateGroup() - Create a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to create
  	* @returns true on success/false on error
  	*
@@ -299,12 +299,12 @@
 					 array ('scm_',
 						$this->SCM_UID_ADD,
 						$group_id)) ;
-		
+
 		if (!$res5) {
 			$this->setError('ERROR - Could Not Insert SCM Group GID: '.db_error());
 			return false;
 		}
-		
+
 		foreach ($group->getUsers() as $u) {
 			$this->sysGroupAddUser ($group_id, $u->getID()) ;
 		}
@@ -314,7 +314,7 @@
 
 	/**
  	* sysRemoveGroup() - Remove a group
- 	* 
+ 	*
  	* @param		int		The ID of the group to remove
  	* @returns true on success/false on error
  	*
@@ -413,7 +413,7 @@
 				return false;
 			}
 		}
-		
+
 		db_commit () ;
 		return true;
 	}

Modified: trunk/src/common/include/tag_cloud.php
===================================================================
--- trunk/src/common/include/tag_cloud.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/tag_cloud.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -67,7 +67,7 @@
  * 				 B = 1 - A * Cmin
  * 				 F(count) = size = A * count + 1 - A * Cmin
  * 				 => size = 1 + (count  - Cmin) * A
- * 
+ *
  * @param		array	selected tag, max tag displayed, number of sizes available,
  * 						class prefix for css class, style for selected tag
  */

Modified: trunk/src/common/include/testjson.php
===================================================================
--- trunk/src/common/include/testjson.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/testjson.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -111,8 +111,8 @@
 
     [4] => -42
     [5] => 1
-    [6] => 
-    [7] => 
+    [6] =>
+    [7] =>
     [8] => Array
         (
             [integer] => 1234567890
@@ -122,12 +122,11 @@
             [] => 2.3456789012E+76
             [zero] => 0
             [one] => 1
-            [space] =>  
+            [space] =>
             [quote] => "
             [backslash] => \\
             [controls] => 
-
-	
+
             [slash] => / & /
             [alpha] => abcdefghijklmnopqrstuvwyz
             [ALPHA] => ABCDEFGHIJKLMNOPQRSTUVWYZ
@@ -136,8 +135,8 @@
             [special] => `1~!@#$%^&*()_+-={\':[,]}|;.</>?
             [hex] => ģ䕧覫췯ꯍ
             [true] => 1
-            [false] => 
-            [null] => 
+            [false] =>
+            [null] =>
             [array] => Array
                 (
                 )
@@ -149,7 +148,7 @@
             [address] => 50 St. James Street
             [url] => http://www.JSON.org/
             [comment] => // /* <!-- --
-            [# -- --> */] =>  
+            [# -- --> */] =>
             [ s p a c e d ] => Array
                 (
                     [0] => 1
@@ -215,8 +214,8 @@
 
     [4] => -42
     [5] => 1
-    [6] => 
-    [7] => 
+    [6] =>
+    [7] =>
     [8] => Array
         (
             [integer] => 1234567890
@@ -226,12 +225,11 @@
             [] => 2.3456789012E+76
             [zero] => 0
             [one] => 1
-            [space] =>  
+            [space] =>
             [quote] => "
             [backslash] => \\
             [controls] => 
-
-	
+
             [slash] => / & /
             [alpha] => abcdefghijklmnopqrstuvwyz
             [ALPHA] => ABCDEFGHIJKLMNOPQRSTUVWYZ
@@ -240,7 +238,7 @@
             [special] => `1~!@#$%^&*()_+-={\':[,]}|;.</>?
             [hex] => ģ䕧覫췯ꯍ
             [true] => 1
-            [false] => 
+            [false] =>
             [array] => Array
                 (
                 )
@@ -252,7 +250,7 @@
             [address] => 50 St. James Street
             [url] => http://www.JSON.org/
             [comment] => // /* <!-- --
-            [# -- --> */] =>  
+            [# -- --> */] =>
             [ s p a c e d ] => Array
                 (
                     [0] => 1

Modified: trunk/src/common/include/utils_crossref.php
===================================================================
--- trunk/src/common/include/utils_crossref.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/include/utils_crossref.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,22 +28,22 @@
 
 	// Some important information.
 	$prj = group_getunixname ($group_id);
-	
+
 	// Handle URL in links, replace them with hyperlinks.
 	$text = util_make_links($text);
-	
+
 	// Handle gforge [#nnn] Syntax => links to tracker.
 	$text = preg_replace('/\[\#(\d+)\]/e', "_artifactid2url('\\1')", $text);
-	
+
 	// Handle gforge [Tnnn] Syntax => links to task.
 	$text = preg_replace('/\[\T(\d+)\]/e', "_taskid2url('\\1')", $text);
-	
+
 	// Handle [wiki:<pagename>] syntax
 	$text = preg_replace('/\[wiki:(\S+)\]/', "<a href=\"/wiki/g/$prj/\\1\">\\1</a>", $text);
-	
+
 	// Handle [forum:<thread_id>] Syntax => links to forum.
 	$text = preg_replace('/\[forum:(\d+)\]/e', "_forumid2url('\\1')", $text);
-	
+
 	return $text;
 }
 
@@ -59,7 +59,7 @@
 		$url = '/tracker/?func=detail&aid='.$id.'&group_id='.$row['group_id'].'&atid='.$row['group_artifact_id'];
 		$arg = 'title="'.util_html_secure($row['summary']).'"' ;
 		if ($row['status_id'] == 2) {
-			$arg .= 'class="artifact_closed"'; 
+			$arg .= 'class="artifact_closed"';
 		}
 		if ($mode == 'title') {
 			return '<a href="'.$url.'" '.$arg.'>'.$text.'</a> <a href="'.$url.'">'.$row['summary'].'</a><br />';
@@ -82,7 +82,7 @@
 		$url = '/pm/task.php?func=detailtask&project_task_id='.$id.'&group_id='.$row['group_id'].'&group_project_id='.$row['group_project_id'];
 		$arg = 'title="'.$row['summary'].'"' ;
 		if ($row['status_id'] == 2) {
-			$arg .= 'class="task_closed"'; 
+			$arg .= 'class="task_closed"';
 		}
 		return '<a href="'.$url.'" '.$arg.'>'.$text.'</a>';
 	}

Modified: trunk/src/common/mail/Mail.class.php
===================================================================
--- trunk/src/common/mail/Mail.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/mail/Mail.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,10 +1,10 @@
 <?php
 /*
- * 
+ *
  */
 
 class Mail {
-    
+
     function Mail() {
         $this->setHeaderCharset('UTF-8');
         $this->setBodyCharset('UTF-8');
@@ -15,23 +15,23 @@
         $this->setBody('', true);
         $this->clearAdditionalHeaders();
     }
-    
+
     var $_headerCharset;
-    function setHeaderCharset($charset) { 
-        $this->_headerCharset = $charset; 
+    function setHeaderCharset($charset) {
+        $this->_headerCharset = $charset;
     }
-    function getHeaderCharset() { 
-        return $this->_headerCharset; 
+    function getHeaderCharset() {
+        return $this->_headerCharset;
     }
-    
+
     var $_bodyCharset;
-    function setBodyCharset($charset) { 
-        $this->_bodyCharset = $charset; 
+    function setBodyCharset($charset) {
+        $this->_bodyCharset = $charset;
     }
-    function getBodyCharset() { 
-        return $this->_bodyCharset; 
+    function getBodyCharset() {
+        return $this->_bodyCharset;
     }
-    
+
     var $_subject;
     function setSubject($subject) {
         $this->_subject = $subject;
@@ -42,14 +42,14 @@
     function getEncodedSubject() {
         return $this->_encodeHeader($this->_subject, $this->getHeaderCharset());
     }
-    
+
     /**
      * Function to encode a header if necessary
      * according to RFC2047
      * Filename.......: class.html.mime.mail.inc
      * Project........: HTML Mime mail class
-     * Last Modified..: Date: 2002/07/24 13:14:10 
-     * CVS Revision...: Revision: 1.4 
+     * Last Modified..: Date: 2002/07/24 13:14:10
+     * CVS Revision...: Revision: 1.4
      * Copyright......: 2001, 2002 Richard Heyes
      */
     function _encodeHeader($input, $charset) {
@@ -58,10 +58,10 @@
 			$replacement = preg_replace('/([\x80-\xFF])/e', '"=" . strtoupper(dechex(ord("\1")))', $value);
 			$input = str_replace($value, '=?' . $charset . '?Q?' . $replacement . '?=', $input);
 		}
-		
+
 		return $input;
 	}
-    
+
     /**
      * Given a header, this function will decode it
      * according to RFC2047. Probably not *exactly*
@@ -102,8 +102,8 @@
         }
 
         return $input;
-    }    
-    
+    }
+
     var $_body;
     function setBody($body) {
         $this->_body = $body;
@@ -111,7 +111,7 @@
     function getBody() {
         return $this->_body;
     }
-    
+
     var $_from;
     function setFrom($from) {
         $this->_from = $this->_validateRecipient($from);
@@ -210,13 +210,13 @@
 
     /**
      * @returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise.
-     *          It is important to note that just because the mail was accepted for delivery, 
-     *          it does NOT mean the mail will actually reach the intended destination. 
+     *          It is important to note that just because the mail was accepted for delivery,
+     *          it does NOT mean the mail will actually reach the intended destination.
      **/
     function send() {
 	$sys_lf="\n";
 	    if($this->getTo() === ''
-			    && $this->getCc() === '' 
+			    && $this->getCc() === ''
 			    && $this->getBcc() === '') {
 		    return false;
 	    }
@@ -246,7 +246,7 @@
 			    'header' => $header);
 	    //$em =& EventManager::instance();
 	    //$em->processEvent('mail_sendmail', $params);
-	    
+
 	    return mail($this->getTo(),
 			    $this->getEncodedSubject(),
 			    $this->getBody(),

Modified: trunk/src/common/mail/MailingList.class.php
===================================================================
--- trunk/src/common/mail/MailingList.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/mail/MailingList.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,7 +39,7 @@
 	 * @var	 object  $Group.
 	 */
 	var $Group;
-	
+
 	/**
 	 * The mailing list id
 	 *
@@ -115,14 +115,14 @@
 				return false;
 			}
 		}
-		
+
 		if(!$listName || strlen($listName) < MAIL__MAILING_LIST_NAME_MIN_LENGTH) {
 			$this->setError(_('Must Provide List Name That Is 4 or More Characters Long'));
 			return false;
 		}
-		
+
 		$realListName = strtolower($this->Group->getUnixName().'-'.$listName);
-		
+
 		// '|' or '/' are valid chars in emails but are not allowed by mailman.
 		if( preg_match('/[|\/]/', $realListName) ||
 			!validate_email($realListName.'@'.forge_get_config('lists_host'))) {
@@ -149,7 +149,7 @@
 		}
 
 		$listPassword = substr(md5(time() . util_randbytes()), 0, 16);
-		
+
 		db_begin();
 		$result = db_query_params ('INSERT INTO mail_group_list (group_id,list_name,is_public,password,list_admin,status,description) VALUES ($1,$2,$3,$4,$5,$6,$7)',
 					   array ($this->Group->getID(),
@@ -159,16 +159,16 @@
 						  $creator_id,
 						  MAIL__MAILING_LIST_IS_REQUESTED,
 						  $description)) ;
-		
+
 		if (!$result) {
 			$this->setError(_('Error Creating mailing list: ').db_error());
 			db_rollback();
 			return false;
 		}
-			
+
 		$this->groupMailingListId = db_insertid($result, 'mail_group_list', 'group_list_id');
 		$this->fetchData($this->groupMailingListId);
-		
+
 		$user = &user_get_object($creator_id);
 		$userEmail = $user ? $user->getEmail() : "";
 		if(empty($userEmail) || !validate_email($userEmail)) {
@@ -176,7 +176,7 @@
 			db_rollback();
 			return false;
 		} else {
-			$mailBody = sprintf(_('A mailing list will be created on %1$s in 6-24 hours 
+			$mailBody = sprintf(_('A mailing list will be created on %1$s in 6-24 hours
 and you are the list administrator.
 
 This list is: %3$s@%2$s .
@@ -195,10 +195,10 @@
 -- the %1$s staff
 '), forge_get_config ('forge_name'), forge_get_config('lists_host'), $realListName, $this->getExternalInfoUrl(), $this->getExternalAdminUrl(), $listPassword);
 			$mailSubject = sprintf(_('%1$s New Mailing List'), forge_get_config ('forge_name'));
-			
+
 			util_send_message($userEmail, $mailSubject, $mailBody, 'admin@'.forge_get_config('web_host'));
 		}
-		
+
 		db_commit();
 		return true;
 	}
@@ -238,7 +238,7 @@
 		if ($status == 'xyzzy') {
 			$status = $this->getStatus();
 		}
-		
+
 		$res = db_query_params ('UPDATE mail_group_list SET is_public=$1, description=$2, status=$3
 			                 WHERE group_list_id=$4 AND group_id=$5',
 					array ($isPublic,
@@ -246,7 +246,7 @@
 					       $status,
 					       $this->groupMailingListId,
 					       $this->Group->getID())) ;
-		
+
 		if (!$res || db_affected_rows($res) < 1) {
 			$this->setError(_('Error On Update:').db_error());
 			return false;
@@ -300,7 +300,7 @@
 	function getDescription() {
 		return $this->dataArray['description'];
 	}
-	
+
 	/**
 	 * getPassword - get the password to administrate the mailing list
 	 *
@@ -309,7 +309,7 @@
 	function getPassword() {
 		return $this->dataArray['password'];
 	}
-	
+
 	/**
 	 * getListAdmin - get the user who is the admin of this mailing list
 	 *
@@ -318,7 +318,7 @@
 	function getListAdmin() {
 		return user_get_object($this->dataArray['list_admin']);
 	}
-	
+
 	/**
 	 * getStatus - get the status of this mailing list
 	 *
@@ -327,7 +327,7 @@
 	function getStatus() {
 		return $this->dataArray['status'];
 	}
-	
+
 	/**
 	 * getArchivesUrl - get the url to see the archives of the list
 	 *
@@ -340,7 +340,7 @@
 			return 'http://'.forge_get_config('lists_host').'/mailman/private/'.$this->getName().'/';
 		}
 	}
-	
+
 	/**
 	 * getExternalInfoUrl - get the url to subscribe/unsubscribe
 	 *
@@ -354,7 +354,7 @@
 		}
 		return "$proto://".forge_get_config('lists_host').'/mailman/listinfo/'.$this->getName();
 	}
-	
+
 	/**
 	 * getExternalAdminUrl - get the url to admin the list with the external tools used
 	 *
@@ -401,7 +401,7 @@
 			return false;
 		}
 		return true;
-		
+
 	}
 }
 

Modified: trunk/src/common/mail/MailingListFactory.class.php
===================================================================
--- trunk/src/common/mail/MailingListFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/mail/MailingListFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -49,7 +49,7 @@
 	 */
 	function MailingListFactory(& $Group) {
 		$this->Error();
-		
+
 		if (!$Group || !is_object($Group)) {
 			$this->setError(sprintf(_('%1$s:: No Valid Group Object'), 'MailingListFactory'));
 			return false;
@@ -82,9 +82,9 @@
 		if (isset($this->mailingLists) && is_array($this->mailingLists)) {
 			return $this->mailingLists;
 		}
-		
+
 		$public_flag = MAIL__MAILING_LIST_IS_PUBLIC;
-		
+
 		$perm = & $this->Group->getPermission ();
 		if ($perm && is_object($perm) && $perm->isMember()) {
 			$public_flag = MAIL__MAILING_LIST_IS_PRIVATE.', '.MAIL__MAILING_LIST_IS_PUBLIC;

Modified: trunk/src/common/mvc/Actions.class.php
===================================================================
--- trunk/src/common/mvc/Actions.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/mvc/Actions.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,5 +1,5 @@
 <?php
-/* 
+/*
  * Copyright 2005, STMicroelectronics
  *
  * Originally written by Manuel Vacelet
@@ -31,16 +31,16 @@
  * @license   http://opensource.org/licenses/gpl-license.php GPL
  */
 class Actions {
-    
+
     var $_controler;
     function Actions(&$controler) {
         $this->_controler =& $controler;
     }
-    
+
     function getControler() {
         return $this->_controler;
     }
-    
+
   function check() {
     return true;
   }
@@ -51,4 +51,4 @@
     }
   }
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/common/mvc/Controler.class.php
===================================================================
--- trunk/src/common/mvc/Controler.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/mvc/Controler.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,5 +1,5 @@
 <?php
-/* 
+/*
  * Copyright 2005, STMicroelectronics
  *
  * Originally written by Manuel Vacelet
@@ -57,10 +57,10 @@
 
     if($this->action)
       $this->actionsManagement();
-    
+
     return $this->viewsManagement();
   }
 
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/common/mvc/Views.class.php
===================================================================
--- trunk/src/common/mvc/Views.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/mvc/Views.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,5 +1,5 @@
 <?php
-/* 
+/*
  * Copyright 2005, STMicroelectronics
  *
  * Originally written by Manuel Vacelet
@@ -31,21 +31,21 @@
  * @license   http://opensource.org/licenses/gpl-license.php GPL
  */
 class Views {
-  /* protected array */  var $html_params; 
-  /* protected string */ var $view; 
+  /* protected array */  var $html_params;
+  /* protected string */ var $view;
   /* protected Controler */ var $_controler;
-  
+
   function View(&$controler, $view = null, $params = array()) {
       $this->_controler =& $controler;
       $this->view=$view;
       $this->html_params = $params;
   }
-  
+
     function getControler() {
         return $this->_controler;
     }
-    
 
+
   function header() {
     site_project_header($this->html_params);
   }
@@ -55,9 +55,9 @@
   }
 
   function main() {
-    
-  }  
 
+  }
+
   function display($view='') {
     $this->header();
     if(!empty($view)) $this->$view();

Modified: trunk/src/common/pm/ProjectCategory.class.php
===================================================================
--- trunk/src/common/pm/ProjectCategory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/ProjectCategory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -26,7 +26,7 @@
 
 class ProjectCategory extends Error {
 
-	/** 
+	/**
 	 * The ProjectGroup object.
 	 *
 	 * @var		object	$ProjectGroup.
@@ -48,7 +48,7 @@
 	 *  @return	boolean	success.
 	 */
 	function ProjectCategory(&$ProjectGroup, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was ProjectGroup legit?
 		if (!$ProjectGroup || !is_object($ProjectGroup)) {
@@ -146,7 +146,7 @@
 	function &getProjectGroup() {
 		return $this->ProjectGroup;
 	}
-	
+
 	/**
 	 *	getID - get this ProjectCategory's ID.
 	 *
@@ -179,7 +179,7 @@
 		if (!$name) {
 			$this->setMissingParamsError();
 			return false;
-		}   
+		}
 		$result = db_query_params ('UPDATE project_category SET category_name=$1
 			WHERE category_id=$2 AND group_project_id=$3',
 					   array (htmlspecialchars($name),

Modified: trunk/src/common/pm/ProjectGroup.class.php
===================================================================
--- trunk/src/common/pm/ProjectGroup.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/ProjectGroup.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -27,7 +27,7 @@
 	/**
 	* Fetches a ProjectGroup object from the database
 	*
-	* @param	int	the projectgroup id  
+	* @param	int	the projectgroup id
 	* @param	array	whether or not the db result handle is passed in
 	* @return	object	the ProjectGroup object
 	*/
@@ -154,7 +154,7 @@
 				return false;
 			}
 		}
-		
+
 		if (!forge_check_perm ('pm_admin', $this->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;

Modified: trunk/src/common/pm/ProjectTask.class.php
===================================================================
--- trunk/src/common/pm/ProjectTask.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/ProjectTask.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -161,16 +161,16 @@
 		}
 
 		db_begin();
-		$res = db_query_params ('SELECT nextval($1) AS id', 
+		$res = db_query_params ('SELECT nextval($1) AS id',
 					array ('project_task_pk_seq'));
 		if (!$project_task_id=db_result($res,0,'id')) {
 			$this->setError( 'Could Not Get Next Project Task ID' );
 			db_rollback();
 			return false;
 		}
-		
+
 		$this->data_array['project_task_id']=$project_task_id;
-		
+
 		$result = db_query_params ('INSERT INTO project_task (project_task_id,group_project_id,created_by,summary,details,start_date,end_date,status_id,category_id,priority,percent_complete,hours,duration,parent_id) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14)',
 					   array ($project_task_id,
 						  $this->ProjectGroup->getID(),
@@ -186,7 +186,7 @@
 						  $hours,
 						  $duration,
 						  $parent_id)) ;
-		
+
 		if (!$result || db_affected_rows($result) < 1) {
 			$this->setError('ProjectTask::create() Posting Failed '.db_error());
 			db_rollback();
@@ -257,7 +257,7 @@
 	function getSubmittedRealName() {
 		return $this->data_array['realname'];
 	}
-	
+
 	/**
 	 *	getDuration - the duration of the task.
 	 *
@@ -266,7 +266,7 @@
 	function getDuration() {
 		return $this->data_array['duration'];
 	}
-	
+
 	/**
 	 *	getParentID - the task_id of the parent task, if any.
 	 *
@@ -275,7 +275,7 @@
 	function getParentID() {
 		return $this->data_array['parent_id'];
 	}
-	
+
 	/**
 	 *	getSubmittedUnixName - get the unix name of the person who created this task.
 	 *
@@ -392,9 +392,9 @@
 	function getLastModifiedDate() {
 		return $this->data_array['last_modified_date'];
 	}
-	
+
 	/**
-	 *	setExternalID - set a row in project_task_external_order which stores 
+	 *	setExternalID - set a row in project_task_external_order which stores
 	 *	an id, for example an ID generated by MS Project, which needs to be restored later
 	 */
 	function setExternalID($id) {
@@ -403,7 +403,7 @@
 					array ($id,
 					       $this->getID())) ;
 		if (db_affected_rows($res) < 1) {
-			$res = db_query_params ('INSERT INTO project_task_external_order (project_task_id,external_id) VALUES ($1, $2)', 
+			$res = db_query_params ('INSERT INTO project_task_external_order (project_task_id,external_id) VALUES ($1, $2)',
 						array ($this->getID(),
 						       $id)) ;
 		}
@@ -430,7 +430,7 @@
 			FROM artifact_group_list agl, artifact a, artifact_status ast
 			WHERE a.group_artifact_id=agl.group_artifact_id
                         AND ast.id=a.status_id
-			AND EXISTS (SELECT artifact_id FROM project_task_artifact 
+			AND EXISTS (SELECT artifact_id FROM project_task_artifact
 				WHERE artifact_id=a.artifact_id
 				AND project_task_id=$1)',
 						 array ($this->getID())) ;
@@ -458,7 +458,7 @@
 			if ($art_array[$i] < 1) {
 				continue;
 			}
-			$res = db_query_params ('INSERT INTO project_task_artifact (project_task_id,artifact_id) VALUES ($1,$2)', 
+			$res = db_query_params ('INSERT INTO project_task_artifact (project_task_id,artifact_id) VALUES ($1,$2)',
 						array ($this->getID(),
 						       $art_array[$i])) ;
 			if (!$res) {
@@ -577,16 +577,16 @@
 		//	May not yet have an ID, if we are creating a NEW task
 		//
 		if ($this->getID()) {
-			return db_query_params ('SELECT project_task_id,summary 
-		FROM project_task 
+			return db_query_params ('SELECT project_task_id,summary
+		FROM project_task
 		WHERE group_project_id=$1
 		AND project_task_id <> $2
                 ORDER BY project_task_id DESC',
 						array ($this->ProjectGroup->getID(),
 						       $this->getID())) ;
 		} else {
-			return db_query_params ('SELECT project_task_id,summary 
-		FROM project_task 
+			return db_query_params ('SELECT project_task_id,summary
+		FROM project_task
 		WHERE group_project_id=$1
 		ORDER BY project_task_id DESC',
 						array ($this->ProjectGroup->getID())) ;
@@ -599,8 +599,8 @@
 	 *  @return database result set.
 	 */
 	function getHistory() {
-		return db_query_params ('SELECT * 
-		FROM project_history_user_vw 
+		return db_query_params ('SELECT *
+		FROM project_history_user_vw
 		WHERE project_task_id=$1
 		ORDER BY mod_date DESC',
 					array ($this->getID())) ;
@@ -612,8 +612,8 @@
 	 *  @return database result set.
 	 */
 	function getMessages($asc=false) {
-		return db_query_params ('SELECT * 
-		FROM project_message_user_vw 
+		return db_query_params ('SELECT *
+		FROM project_message_user_vw
 		WHERE project_task_id=$1
 		ORDER BY postdate ' . ($asc ? 'ASC' : 'DESC'),
 					array ($this->getID())) ;
@@ -630,7 +630,7 @@
 		if ($this->getDetails() == htmlspecialchars($message)) {
 			return true;
 		}
-		$res = db_query_params ('SELECT * FROM project_messages 
+		$res = db_query_params ('SELECT * FROM project_messages
 			WHERE project_task_id=$1
 			AND body=$2',
 					array ($this->getID(),
@@ -690,8 +690,8 @@
 	 		return false;
 		}
 
-		$res = db_query_params ('SELECT is_dependent_on_task_id AS id 
-			FROM project_dependencies 
+		$res = db_query_params ('SELECT is_dependent_on_task_id AS id
+			FROM project_dependencies
 			WHERE project_task_id=$1',
 					array ($depend_on_id)) ;
 		$rows=db_numrows($res);
@@ -713,7 +713,7 @@
 	function setDependentOn(&$arr_) {
 //printr($arr_,'setDependentOn entry');
 //
-//	IMPORTANT - MUST VERIFY NO CIRCULAR DEPENDENCY!! 
+//	IMPORTANT - MUST VERIFY NO CIRCULAR DEPENDENCY!!
 //
 		if (!$arr_ || empty($arr_)) {
 			$arr_=array('100'=>PM_LINK_DEFAULT);
@@ -728,7 +728,7 @@
 			$del_arr = array_values (array_diff ($arr2, $arr));
 //echo "del arr: ".print_r($del_arr);
 			for ($i=0; $i<count($del_arr); $i++) {
-				db_query_params ('DELETE FROM project_dependencies 
+				db_query_params ('DELETE FROM project_dependencies
 					WHERE project_task_id=$1
 					AND is_dependent_on_task_id=$2',
 						 array ($this->getID(),
@@ -765,8 +765,8 @@
 	}
 
 	/**
-	 *	convertDependentOn - converts a regular array of dependencies, such 
-	 *	as from a multiple-select-box to an associative array with default 
+	 *	convertDependentOn - converts a regular array of dependencies, such
+	 *	as from a multiple-select-box to an associative array with default
 	 *	link types. Should be called from web code as part of the create/update calls.
 	 *  Here we are converting an array like array(1,5,9,77) to array(1=>SS,5=>SF,9=>FS,77=>SS)
 	 */
@@ -779,7 +779,7 @@
 			} else {
 				//else create with default link type
 				$new[$arr[$i]]=PM_LINK_DEFAULT;
-			}	
+			}
 		}
 		return $new;
 	}
@@ -787,7 +787,7 @@
 	/**
 	 *	getDependentOn - get an array of project_task_id's that you are dependent on.
 	 *
-	 *	@return	array	The array of project_task_id's in this format: 
+	 *	@return	array	The array of project_task_id's in this format:
 	 *  array($id=>$link_type,id2=>link_type2).
 	 */
 	function getDependentOn() {
@@ -892,11 +892,11 @@
 		$status_id,$category_id,$percent_complete,&$assigned_arr,&$depend_arr,
 		$new_group_project_id,$duration=0,$parent_id=0) {
 		$has_changes = false; // if any of the values passed is different from
-		
+
 		$arrChangedAndInNotice = array("details"=>"","summary"=>"",
-		"complete"=>"","status"=>"","subproject"=>""); /* includes only 
+		"complete"=>"","status"=>"","subproject"=>""); /* includes only
 		entries that changed and will be sended by E-Mail (sendNotice()) */
-		
+
 		$v = new Validator();
 		$v->check($summary, "summary");
 		$v->check($priority, "priority");
@@ -932,11 +932,11 @@
 			 ($this->getStartDate() != $start_date) || ($this->getEndDate() != $end_date) ||
 			 ($this->getStatusID() != $status_id) || ($this->getCategoryID() != $category_id) ||
 			 ($this->getPercentComplete() != $percent_complete) ) {
-			 
+
 			 $has_changes = true;
 		}*/
-		
-		
+
+
 		db_begin();
 
 		//
@@ -979,7 +979,7 @@
 				return false;
 			}
 		}
-		if ($this->getStatusID() != $status_id) { 
+		if ($this->getStatusID() != $status_id) {
 			$this->addHistory ('status_id',$this->getStatusID());
 			$has_changes = true;
 			$arrChangedAndInNotice['status'] = ">";
@@ -1024,21 +1024,21 @@
 
 		$old_assigned = $this->getAssignedTo();
 		$diff_assigned_array=array_diff($old_assigned, $assigned_arr);
-		if (count($diff_assigned_array)>0) { 
+		if (count($diff_assigned_array)>0) {
 				for ($tmp=0;$tmp<count($old_assigned);$tmp++) {
 					$this->addHistory('assigned_to_id',$old_assigned[$tmp]);
 				}
 				$has_changes = true;
 		}
-		$old_array = array_keys($this->getDependentOn());			
+		$old_array = array_keys($this->getDependentOn());
 		$diff_array=array_diff($old_array,array_keys($depend_arr));
-		if (count($diff_array)>0) { 
+		if (count($diff_array)>0) {
 			for ($tmp=0;$tmp<count($old_array);$tmp++) {
-				$this->addHistory('dependent_on_id', $old_array[$tmp]);	
+				$this->addHistory('dependent_on_id', $old_array[$tmp]);
 			}
 			$has_changes = true;
 		}
-		
+
 		if (!$this->setDependentOn($depend_arr)) {
 			db_rollback();
 			return false;
@@ -1115,7 +1115,7 @@
 		}
 
 		$body = "Task #". $this->getID() ." has been updated. ".
-			"\n\nProject: ". $this->ProjectGroup->Group->getPublicName(); 
+			"\n\nProject: ". $this->ProjectGroup->Group->getPublicName();
 			if (isset($arrChangedAndInNotice['subproject']))
 				$body .= "\n". $arrChangedAndInNotice['subproject']."Subproject: ". $this->ProjectGroup->getName();
 

Modified: trunk/src/common/pm/ProjectTaskFactory.class.php
===================================================================
--- trunk/src/common/pm/ProjectTaskFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/ProjectTaskFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -143,7 +143,7 @@
 		}
 		$this->max_rows=$max_rows;
 	}
-	
+
 	/**
 	 *	getTasks - get an array of ProjectTask objects.
 	 *
@@ -162,12 +162,12 @@
 
 		if ($this->assigned_to) {
 			$tat = $this->assigned_to ;
-			if (! is_array ($tat)) 
+			if (! is_array ($tat))
 				$tat = array ($tat) ;
-			
+
 			$result = db_query_params ('SELECT project_task_vw.*, project_task_external_order.external_id
 			FROM project_task_vw natural left join project_task_external_order, project_assigned_to
-			WHERE project_task_vw.project_task_id=project_assigned_to.project_task_id 
+			WHERE project_task_vw.project_task_id=project_assigned_to.project_task_id
                           AND project_task_vw.group_project_id = $1
                           AND project_assigned_to.assigned_to_id = ANY ($2)' . $order,
 						   array ($this->ProjectGroup->getID(),
@@ -206,7 +206,7 @@
 				if ($arr['category_id'] != $this->category)
 					continue ;
 			}
-					
+
 			$this->project_tasks[] = new ProjectTask($this->ProjectGroup, $arr['project_task_id'], $arr);
 		}
 		return $this->project_tasks;

Modified: trunk/src/common/pm/ProjectTaskSqlQueries.php
===================================================================
--- trunk/src/common/pm/ProjectTaskSqlQueries.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/ProjectTaskSqlQueries.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -45,12 +45,12 @@
 function isProjectTaskInfoPublic($project_task_id) {
 	$res = db_query_params('SELECT group_project_id FROM project_task WHERE project_task_id=$1',
 			       array ($project_task_id)) ;
-	
+
 	if (!$res || db_numrows($res) < 1) {
 		return false;
 	}
-	
-	return RoleAnonymous::getInstance()->hasPermission('pm', 
+
+	return RoleAnonymous::getInstance()->hasPermission('pm',
 							   db_result ($res, 0, 'group_project_id'),
 							   'read') ;
 }
@@ -67,12 +67,12 @@
 function isUserAndTaskinSameGroup($project_task_id, $user_name) {
 	$res = db_query_params('SELECT group_project_id FROM project_task WHERE project_task_id=$1',
 			       array ($project_task_id)) ;
-	
+
 	if (!$res || db_numrows($res) < 1) {
 		return false;
 	}
 	$arr = db_fetch_array($res) ;
-	
+
 	return forge_check_perm_for_user(user_get_object_by_name ($user_name), 'pm', $arr['group_project_id'], 'read') ;
 }
 

Modified: trunk/src/common/pm/ProjectTasksForUser.class.php
===================================================================
--- trunk/src/common/pm/ProjectTasksForUser.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/ProjectTasksForUser.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -72,7 +72,7 @@
 	* @return an array of ProjectTask objects
 	*/
 	function &getTasksByGroupProjectName () {
-		return $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name 
+		return $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name
 			FROM project_task_vw ptv,
 				project_assigned_to pat,
 				groups g,
@@ -85,9 +85,9 @@
 			ORDER BY group_name,project_name',
 							 array ($this->User->getID())) ;
 	}
-	
+
 	function &getOpenTasksForDate($date) {
-		return $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name 
+		return $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name
 			FROM project_task_vw ptv,
 				project_assigned_to pat,
 				groups g,

Modified: trunk/src/common/pm/Validator.class.php
===================================================================
--- trunk/src/common/pm/Validator.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/Validator.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,7 +24,7 @@
 
 /**
 * This class is a simple utility to validate fields
-* 
+*
 * Sample usage:
 *
 * $v = new Validator();
@@ -58,7 +58,7 @@
 	function isClean() {
 		return count($this->badfields) == 0;
 	}
-	
+
 	/**
 	* Returns an error message which contains the null field names which have been checked
 	*

Modified: trunk/src/common/pm/import_utils.php
===================================================================
--- trunk/src/common/pm/import_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/pm/import_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -299,7 +299,7 @@
 				//iterate the tasks
 				for ($i=0; $i<$count; $i++) {
 					$darr=$tasks[$i]['dependenton'];
-				
+
 					$deps=array();
 					//iterate each dependency in a task
 					for ($dcount=0; $dcount<count($darr); $dcount++) {

Modified: trunk/src/common/reporting/Report.class.php
===================================================================
--- trunk/src/common/reporting/Report.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/Report.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -115,7 +115,7 @@
 	} else {
 	    $format = 'M d';
 	}
-	
+
 	for ($i=0; $i<count($arr); $i++) {
 		$this->labels[$i] = date($format,$arr[$i]);
 	}

Modified: trunk/src/common/reporting/ReportProjectTime.class.php
===================================================================
--- trunk/src/common/reporting/ReportProjectTime.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/ReportProjectTime.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -46,7 +46,7 @@
 	//	Task report
 	//
 	if (!$type || $type=='tasks') {
-		$res = db_query_params ('SELECT pt.summary,sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT pt.summary,sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, project_task pt, project_group_list pgl
 			WHERE pgl.group_project_id=pt.group_project_id
 			AND pgl.group_id=$1
@@ -62,7 +62,7 @@
 	//
 	} elseif ($type=='category') {
 
-		$res = db_query_params ('SELECT rtc.category_name, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT rtc.category_name, sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, rep_time_category rtc, project_task pt, project_group_list pgl
 			WHERE pgl.group_id=$1
 			AND pgl.group_project_id=pt.group_project_id
@@ -79,7 +79,7 @@
 	//
 	} elseif ($type=='subproject') {
 
-		$res = db_query_params ('SELECT pgl.project_name, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT pgl.project_name, sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, project_task pt, project_group_list pgl
 			WHERE pgl.group_id=$1
 			AND rtt.report_date BETWEEN $2 AND $3
@@ -95,7 +95,7 @@
 	//
 	//	Biggest Users
 	//
-		$res = db_query_params ('SELECT u.realname, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT u.realname, sum(rtt.hours) AS hours
 			FROM users u, rep_time_tracking rtt, project_task pt, project_group_list pgl
 			WHERE pgl.group_id=$1
 			AND rtt.report_date BETWEEN $2 AND $3

Modified: trunk/src/common/reporting/ReportSetup.class.php
===================================================================
--- trunk/src/common/reporting/ReportSetup.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/ReportSetup.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -54,9 +54,9 @@
 		time_code int not null CONSTRAINT reptimetrk_timecode REFERENCES rep_time_category(time_code),
                 hours float not null);";
 	$sql[]=$sql1;
-//	$sql[]="CREATE UNIQUE INDEX reptimetrk_weekusrtskcde ON 
+//	$sql[]="CREATE UNIQUE INDEX reptimetrk_weekusrtskcde ON
 //		rep_time_tracking (week,user_id,project_task_id,time_code);";
-	$sql[]="CREATE INDEX reptimetracking_userdate ON 
+	$sql[]="CREATE INDEX reptimetracking_userdate ON
 		rep_time_tracking (user_id,week);";
 
 	$sql[]="INSERT INTO rep_time_category VALUES ('1','Coding');";
@@ -173,11 +173,11 @@
 	SELECT user_id,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
-	sum(forum) AS forum, 
-	sum(docs) AS docs, 
+	sum(forum) AS forum,
+	sum(docs) AS docs,
 	sum(cvs_commits) AS cvs_commits,
 	sum(tasks_opened) AS tasks_opened,
-	sum(tasks_closed) AS tasks_closed 
+	sum(tasks_closed) AS tasks_closed
 	FROM rep_user_act_monthly
 	GROUP BY user_id;";
 
@@ -249,7 +249,7 @@
 
 //overall activity
 	$sql[]="DROP VIEW rep_site_act_daily_vw";
-	$sql[]="CREATE VIEW rep_site_act_daily_vw AS 
+	$sql[]="CREATE VIEW rep_site_act_daily_vw AS
 	SELECT day,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
@@ -263,7 +263,7 @@
 	GROUP BY day;";
 
 	$sql[]="DROP VIEW rep_site_act_weekly_vw";
-	$sql[]="CREATE VIEW rep_site_act_weekly_vw AS 
+	$sql[]="CREATE VIEW rep_site_act_weekly_vw AS
 	SELECT week,
 	sum(tracker_opened) AS tracker_opened,
 	sum(tracker_closed) AS tracker_closed,
@@ -419,8 +419,8 @@
 			array($day)) ;
 
 
-	return db_query_params ('INSERT INTO rep_users_added_daily (day,added) 
-		VALUES ($1,(SELECT count(*) FROM users WHERE status=$2 AND add_date 
+	return db_query_params ('INSERT INTO rep_users_added_daily (day,added)
+		VALUES ($1,(SELECT count(*) FROM users WHERE status=$2 AND add_date
 		BETWEEN $3 AND $4 ))',
 			array($day,
 				'A',
@@ -468,8 +468,8 @@
 			array($day)) ;
 
 
-	return db_query_params ('INSERT INTO rep_groups_added_daily (day,added) 
-		VALUES ($1,(SELECT count(*) FROM groups WHERE status=$2 AND register_time 
+	return db_query_params ('INSERT INTO rep_groups_added_daily (day,added)
+		VALUES ($1,(SELECT count(*) FROM groups WHERE status=$2 AND register_time
 		BETWEEN $3 AND $4 ))',
 			array($day,
 				'A',
@@ -689,8 +689,8 @@
 			array($day)) ;
 
 
-	return db_query_params ('INSERT INTO rep_users_cum_daily (day,total) 
-		VALUES ($1,(SELECT count(*) FROM users WHERE status=$2 AND add_date 
+	return db_query_params ('INSERT INTO rep_users_cum_daily (day,total)
+		VALUES ($1,(SELECT count(*) FROM users WHERE status=$2 AND add_date
 		BETWEEN 0 AND $3))',
 				array($day,
 				      'A',
@@ -737,8 +737,8 @@
 			array($day)) ;
 
 
-	return db_query_params ('INSERT INTO rep_groups_cum_daily (day,total) 
-		VALUES ($1,(SELECT count(*) FROM groups WHERE status=$2 AND register_time 
+	return db_query_params ('INSERT INTO rep_groups_cum_daily (day,total)
+		VALUES ($1,(SELECT count(*) FROM groups WHERE status=$2 AND register_time
 		BETWEEN 0 AND $3))',
 				array($day,
 				      'A',

Modified: trunk/src/common/reporting/ReportSiteTime.class.php
===================================================================
--- trunk/src/common/reporting/ReportSiteTime.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/ReportSiteTime.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -41,7 +41,7 @@
 	//	Task report
 	//
 	if (!$type || $type=='tasks') {
-		$res = db_query_params ('SELECT pt.summary,sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT pt.summary,sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, project_task pt, project_group_list pgl
 			WHERE pgl.group_project_id=pt.group_project_id
 			AND rtt.report_date BETWEEN $1 AND $2
@@ -54,7 +54,7 @@
 	//	Category report
 	//
 	} elseif ($type=='category') {
-		$res = db_query_params ('SELECT rtc.category_name, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT rtc.category_name, sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, rep_time_category rtc
 			WHERE rtt.report_date BETWEEN $1 AND $2
 			AND rtt.time_code=rtc.time_code
@@ -67,7 +67,7 @@
 	//
 	} elseif ($type=='subproject') {
 
-		$res = db_query_params ('SELECT pgl.project_name, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT pgl.project_name, sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, project_task pt, project_group_list pgl
 			WHERE rtt.report_date BETWEEN $1 AND $2
 			AND rtt.project_task_id=pt.project_task_id
@@ -78,7 +78,7 @@
 					       $end)) ;
 	} else {
 
-		$res = db_query_params ('SELECT u.realname, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT u.realname, sum(rtt.hours) AS hours
 			FROM users u, rep_time_tracking rtt, project_task pt, project_group_list pgl
 			WHERE rtt.report_date BETWEEN $1 AND $2
 			AND u.user_id=rtt.user_id

Modified: trunk/src/common/reporting/ReportTrackerAct.class.php
===================================================================
--- trunk/src/common/reporting/ReportTrackerAct.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/ReportTrackerAct.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -118,7 +118,7 @@
 function getOpenCount($atid,$start,$end) {
 	$res = db_query_params ('SELECT count(*)
 		FROM artifact
-		WHERE 
+		WHERE
 		group_artifact_id=$1
 		AND open_date BETWEEN $2 AND $3',
 				array ($atid,
@@ -130,7 +130,7 @@
 function getStillOpenCount($atid,$start,$end) {
 	$res = db_query_params ('SELECT count(*)
 		FROM artifact
-		WHERE 
+		WHERE
 		group_artifact_id=$1
 		AND open_date <= $2
 		AND (close_date >= $3 OR close_date < 1 OR close_date is null)',

Modified: trunk/src/common/reporting/ReportUserTime.class.php
===================================================================
--- trunk/src/common/reporting/ReportUserTime.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/ReportUserTime.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -46,9 +46,9 @@
 	//	Task report
 	//
 	if (!$type || $type=='tasks') {
-		$res = db_query_params ('SELECT pt.summary,sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT pt.summary,sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, project_task pt
-			WHERE rtt.user_id=$1 
+			WHERE rtt.user_id=$1
 			AND rtt.report_date BETWEEN $2 AND $3
 			AND rtt.project_task_id=pt.project_task_id
 			GROUP BY pt.summary
@@ -60,9 +60,9 @@
 	//	Category report
 	//
 	} elseif ($type=='category') {
-		$res = db_query_params ('SELECT rtc.category_name, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT rtc.category_name, sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, rep_time_category rtc
-			WHERE rtt.user_id=$1 
+			WHERE rtt.user_id=$1
 			AND rtt.report_date BETWEEN $2 AND $3
 			AND rtt.time_code=rtc.time_code
 			GROUP BY rtc.category_name
@@ -74,9 +74,9 @@
 	//	Percentage this user spent on a specific subproject
 	//
 	} elseif ($type=='subproject') {
-		$res = db_query_params ('SELECT pgl.project_name, sum(rtt.hours) AS hours 
+		$res = db_query_params ('SELECT pgl.project_name, sum(rtt.hours) AS hours
 			FROM rep_time_tracking rtt, project_task pt, project_group_list pgl
-			WHERE rtt.user_id=$1 
+			WHERE rtt.user_id=$1
 			AND rtt.report_date BETWEEN $2 AND $3
 			AND rtt.project_task_id=pt.project_task_id
 			AND pt.group_project_id=pgl.group_project_id

Modified: trunk/src/common/reporting/TimeEntry.class.php
===================================================================
--- trunk/src/common/reporting/TimeEntry.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/TimeEntry.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -48,7 +48,7 @@
      * @access public
      *
      */
-    function TimeEntry() 
+    function TimeEntry()
     {
     }
 
@@ -71,7 +71,7 @@
      * @todo I'm quite concerned that none of the form data is being sanitized for things like
      * unwanted HTML, JavaSript and SQL Injection.  Might be worth adding that sort of filtering
      * as provided by the KSES Filter (search Google).
-     * @todo The check that looks to see if this method works is not language independent.  
+     * @todo The check that looks to see if this method works is not language independent.
      * someone that better understands how that all works will want to remove the hardcoded
      * 'successfully added'.
      *
@@ -92,12 +92,12 @@
             $feedback.=_('Successfully Added');
         }
 	return db_affected_rows($res);
-    }  
+    }
 
     /**
      * Updates a timeEntry record.
      *
-     * This isn't supported by the current timeadd.php code so I'm assuming that all 
+     * This isn't supported by the current timeadd.php code so I'm assuming that all
      * that is expected is that instead of changing something you'd simply delete it
      * and readd it.  Messy, IMHO, but I am still including this method here to let
      * know I purposely left this unimplemented.
@@ -111,7 +111,7 @@
     {
         // Not supported in timeadd.php
         return false;
-    } 
+    }
 
     /**
      * Deletes an existing timeEntry record
@@ -147,8 +147,8 @@
         $tmpOutput = ob_get_contents();
 
         // Now discard any output.
-        ob_clean();        
-        
+        ob_clean();
+
         if (!stristr($tmpOutput, 'successfully deleted')) return false;
         return true;
     }

Modified: trunk/src/common/reporting/report_utils.php
===================================================================
--- trunk/src/common/reporting/report_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/reporting/report_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -233,7 +233,7 @@
 		$pie_labels[]=_('Other')." (". number_format($rem,$format) .") ";
 		$pie_vals[]=$rem;
 	}
-	
+
 }
 
 function report_package_box($group_id, $name='dev_id', $selected='') {

Modified: trunk/src/common/rss/RSS.class.php
===================================================================
--- trunk/src/common/rss/RSS.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/rss/RSS.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,7 +18,7 @@
  * You should have received a copy of the GNU General Public License
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  *
- * 
+ *
  */
 
 class RSS {
@@ -28,11 +28,11 @@
         $this->channel = $channel;
         $this->items   = array();
     }
-    
+
     function addItem($item) {
         $this->items[] = $item;
     }
-    
+
     function display() {
         $channel_elements   = array('title', 'description', 'link', 'language', 'rating', 'image', 'textinput', 'copyright', 'pubDate', 'lastBuildDate', 'docs', 'managingEditor', 'webMaster', 'skipHours', 'skipDays');
         $image_elements     = array('title', 'description', 'link', 'url', 'width', 'height');

Modified: trunk/src/common/search/ArtifactSearchQuery.class.php
===================================================================
--- trunk/src/common/search/ArtifactSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/ArtifactSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,21 +24,21 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class ArtifactSearchQuery extends SearchQuery {
-	
+
 	/**
 	 * group id
 	 *
 	 * @var int $groupId
 	 */
 	var $groupId;
-	
+
 	/**
 	 * artifact id
 	 *
 	 * @var int $artifactId
 	 */
 	var $artifactId;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -52,7 +52,7 @@
 		//TODO: Why is groupId an arg and var since it isn't used anywhere?
 		$this->groupId = $groupId;
 		$this->artifactId = $artifactId;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
 	}
 
@@ -135,7 +135,7 @@
 			$qpa = db_construct_qpa ($qpa,
 						 'FROM artifact a LEFT OUTER JOIN artifact_message am USING (artifact_id), users WHERE a.group_artifact_id=$1 AND users.user_id=a.submitted_by AND ((',
 						 array ($this->artifactId)) ;
-			
+
 			$qpa = $this->addIlikeCondition ($qpa, 'a.details') ;
 			$qpa = db_construct_qpa ($qpa,
 						 ') OR (') ;
@@ -153,7 +153,7 @@
 	 * getSearchByIdQuery - get the query built to get the search results when we are looking for an int
 	 *
 	 * @return array query+params array
-	 */	
+	 */
 	function getSearchByIdQuery() {
 		$qpa = db_construct_qpa () ;
 

Modified: trunk/src/common/search/ExportProjectSearchQuery.class.php
===================================================================
--- trunk/src/common/search/ExportProjectSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/ExportProjectSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -32,7 +32,7 @@
 	 * @param int $offset offset
 	 * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
 	 */
-	function ExportProjectSearchQuery($words, $offset, $isExact) {	
+	function ExportProjectSearchQuery($words, $offset, $isExact) {
 		$this->SearchQuery($words, $offset, $isExact, 200);
 	}
 

Modified: trunk/src/common/search/ForumSearchQuery.class.php
===================================================================
--- trunk/src/common/search/ForumSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/ForumSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,21 +24,21 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class ForumSearchQuery extends SearchQuery {
-	
+
 	/**
 	 * group id
 	 *
 	 * @var int $groupId
 	 */
 	var $groupId;
-	
+
 	/**
 	 * forum id
 	 *
 	 * @var int $groupId
 	 */
 	var $forumId;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -51,7 +51,7 @@
 	function ForumSearchQuery($words, $offset, $isExact, $groupId, $forumId) {
 		$this->groupId = $groupId;
 		$this->forumId = $forumId;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
 	}
 
@@ -67,8 +67,8 @@
 
 		if (forge_get_config('use_fti')) {
 			$words = $this->getFormattedWords();
-			
 
+
 			if(count($this->words)) {
 				$qpa = db_construct_qpa ($qpa,
 							 'SELECT forum.msg_id, headline(forum.subject, q) AS subject, forum.post_date, users.realname FROM forum, users, to_tsquery($1) AS q, forum_idx as fi WHERE forum.group_forum_id = $2 AND forum.posted_by = users.user_id AND fi.msg_id = forum.msg_id AND vectors @@ q ',
@@ -111,12 +111,12 @@
 		}
 		return $qpa ;
 	}
-	
+
 	/**
 	 * getSearchByIdQuery - get the sql query built to get the search results when we are looking for an int
 	 *
 	 * @return array query+params array
-	 */	
+	 */
 	function getSearchByIdQuery() {
 		$qpa = db_construct_qpa () ;
 		$qpa = db_construct_qpa ($qpa,

Modified: trunk/src/common/search/ForumsSearchQuery.class.php
===================================================================
--- trunk/src/common/search/ForumsSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/ForumsSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,25 +21,25 @@
  * with FusionForge; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
- 
+
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class ForumsSearchQuery extends SearchQuery {
-	
+
 	/**
 	* group id
 	*
 	* @var int $groupId
 	*/
 	var $groupId;
-	
+
 	/**
 	* flag if non public items are returned
 	*
 	* @var boolean $showNonPublic
-	*/	
+	*/
 	var $showNonPublic;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -53,9 +53,9 @@
 	function ForumsSearchQuery($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {
 		$this->groupId = $groupId;
 		$this->showNonPublic = $showNonPublic;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
-		
+
 		$this->setSections($sections);
 	}
 
@@ -125,7 +125,7 @@
 	 * getSearchByIdQuery - get the sql query built to get the search results when we are looking for an int
 	 *
 	 * @return array query+params array
-	 */	
+	 */
 	function getSearchByIdQuery() {
 		$qpa = db_construct_qpa () ;
 		$qpa = db_construct_qpa ($qpa,
@@ -139,7 +139,7 @@
 
 		return $qpa;
 	}
-	
+
 	/**
 	 * getSections - returns the list of available forums
 	 *
@@ -152,7 +152,7 @@
 			$sql .= ' AND is_public = 1';
 		}
 		$sql .= ' ORDER BY forum_name';
-		
+
 		$sections = array();
 		$res = db_query_params ($sql,
 					array ($groupId));

Modified: trunk/src/common/search/FrsSearchQuery.class.php
===================================================================
--- trunk/src/common/search/FrsSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/FrsSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,21 +25,21 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class FrsSearchQuery extends SearchQuery {
-	
+
 	/**
 	* group id
 	*
 	* @var int $groupId
 	*/
 	var $groupId;
-	
+
 	/**
 	* flag if non public items are returned
 	*
 	* @var boolean $showNonPublic
-	*/	
+	*/
 	var $showNonPublic;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -49,15 +49,15 @@
 	 * @param int $groupId group id
 	 * @param array $sections sections to search in
 	 */
-	function FrsSearchQuery($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {	
+	function FrsSearchQuery($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {
 		$this->groupId = $groupId;
 		$this->showNonPublic = $showNonPublic;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
-		
+
 		$this->setSections($sections);
 	}
-	
+
 	/**
 	 * getQuery - get the query built to get the search results
 	 *
@@ -109,7 +109,7 @@
 				$qpa = db_construct_qpa ($qpa,
 							 ')) ') ;
 			}
-			
+
 			$qpa = db_construct_qpa ($qpa,
 						 ' ORDER BY frs_package.name, frs_release.name') ;
 
@@ -143,7 +143,7 @@
 		}
 		return $qpa ;
 	}
-	
+
 	/**
 	 * getSections - returns the list of available forums
 	 *
@@ -156,7 +156,7 @@
 			$sql .= ' AND is_public=1';
 		}
 		$sql .= ' ORDER BY name';
-		
+
 		$sections = array();
 		$res = db_query_params ($sql,
 					array ($groupId));

Modified: trunk/src/common/search/NewsSearchQuery.class.php
===================================================================
--- trunk/src/common/search/NewsSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/NewsSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,14 +24,14 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class NewsSearchQuery extends SearchQuery {
-	
+
 	/**
 	* group id
 	*
 	* @var int $groupId
 	*/
 	var $groupId;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -40,9 +40,9 @@
 	 * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
 	 * @param int $groupId group id
 	 */
-	function NewsSearchQuery($words, $offset, $isExact, $groupId) {	
+	function NewsSearchQuery($words, $offset, $isExact, $groupId) {
 		$this->groupId = $groupId;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
 	}
 
@@ -53,7 +53,7 @@
 	 */
 	function getQuery() {
 
-		
+
 		$qpa = db_construct_qpa () ;
 
 		if (forge_get_config('use_fti')) {

Modified: trunk/src/common/search/PeopleSearchQuery.class.php
===================================================================
--- trunk/src/common/search/PeopleSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/PeopleSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,7 +33,7 @@
 	 * @param int $offset offset
 	 * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
 	 */
-	function PeopleSearchQuery($words, $offset, $isExact) {	
+	function PeopleSearchQuery($words, $offset, $isExact) {
 		$this->SearchQuery($words, $offset, $isExact);
 	}
 
@@ -44,7 +44,7 @@
 	 */
 	function getQuery() {
 
-		
+
 		$qpa = db_construct_qpa () ;
 
 		if (forge_get_config('use_fti')) {

Modified: trunk/src/common/search/ProjectSearchQuery.class.php
===================================================================
--- trunk/src/common/search/ProjectSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/ProjectSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -34,7 +34,7 @@
 	 * @param int $offset offset
 	 * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
 	 */
-	function ProjectSearchQuery($words, $offset, $isExact) {	
+	function ProjectSearchQuery($words, $offset, $isExact) {
 		$this->SearchQuery($words, $offset, $isExact);
 	}
 
@@ -87,7 +87,7 @@
 							 'ORDER BY group_name') ;
 			}
 		} else {
-			$qpa = db_construct_qpa ($qpa, 
+			$qpa = db_construct_qpa ($qpa,
 						 'SELECT g.group_name AS group_name, g.unix_group_name AS unix_group_name, g.type_id AS type_id, g.group_id AS group_id, g.short_description AS short_description FROM groups g WHERE g.status IN ($1, $2) AND ((',
 						 array ('A', 'H')) ;
 			$qpa = $this->addIlikeCondition ($qpa, 'g.group_name') ;
@@ -102,7 +102,7 @@
 		}
 		return $qpa ;
 	}
-	
+
 }
 
 // Local Variables:

Modified: trunk/src/common/search/SkillSearchQuery.class.php
===================================================================
--- trunk/src/common/search/SkillSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/SkillSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,8 +33,8 @@
 	 * @param int $offset offset
 	 * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
 	 */
-	function SkillSearchQuery($words, $offset, $isExact) {	
-		$this->SearchQuery($words, $offset, $isExact);	
+	function SkillSearchQuery($words, $offset, $isExact) {
+		$this->SearchQuery($words, $offset, $isExact);
 	}
 
 	/**

Modified: trunk/src/common/search/TasksSearchQuery.class.php
===================================================================
--- trunk/src/common/search/TasksSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/TasksSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,21 +25,21 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class TasksSearchQuery extends SearchQuery {
-	
+
 	/**
 	* group id
 	*
 	* @var int $groupId
 	*/
 	var $groupId;
-	
+
 	/**
 	* flag if non public items are returned
 	*
 	* @var boolean $showNonPublic
-	*/	
+	*/
 	var $showNonPublic;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -50,12 +50,12 @@
 	 * @param array $sections sections to search in
 	 * @param boolean $showNonPublic flag if private sections are searched too
 	 */
-	function TasksSearchQuery($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {	
+	function TasksSearchQuery($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {
 		$this->groupId = $groupId;
 		$this->showNonPublic = $showNonPublic;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
-				
+
 		$this->setSections($sections);
 	}
 
@@ -68,7 +68,7 @@
 
 
 		$qpa = db_construct_qpa () ;
-		
+
 		if (forge_get_config('use_fti')) {
 			if (count ($this->words)) {
 				$words = $this->getFormattedWords();
@@ -140,7 +140,7 @@
 		}
 		return $qpa ;
 	}
-	
+
 	/**
 	 * getSections - returns the list of available subprojects
 	 *
@@ -153,7 +153,7 @@
 			$sql .= ' AND is_public = 1';
 		}
 		$sql .= ' ORDER BY project_name';
-		
+
 		$sections = array();
 		$res = db_query_params ($sql,
 					array ($groupId));

Modified: trunk/src/common/search/TrackersSearchQuery.class.php
===================================================================
--- trunk/src/common/search/TrackersSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/search/TrackersSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,21 +25,21 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class TrackersSearchQuery extends SearchQuery {
-	
+
 	/**
 	* group id
 	*
 	* @var int $groupId
 	*/
 	var $groupId;
-	
+
 	/**
 	* flag if non public items are returned
 	*
 	* @var boolean $showNonPublic
-	*/	
+	*/
 	var $showNonPublic;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -53,7 +53,7 @@
 	function TrackersSearchQuery($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {
 		$this->groupId = $groupId;
 		$this->showNonPublic = $showNonPublic;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
 
 		$this->setSections($sections);
@@ -66,14 +66,14 @@
 	 */
 	function getQuery() {
 
-		
+
 		$qpa = db_construct_qpa () ;
 
 		if (forge_get_config('use_fti')) {
 			if (count ($this->words)) {
 				$qpa = db_construct_qpa ($qpa,
 							 'SELECT DISTINCT x.* FROM (SELECT artifact.artifact_id, artifact.group_artifact_id, artifact.summary, artifact.open_date, users.realname, artifact_group_list.name, (rank(artifact_idx.vectors, q)+rank(artifact_message_idx.vectors, q)) AS rank FROM artifact LEFT OUTER JOIN artifact_message USING (artifact_id), users, artifact_group_list, to_tsquery($1) q, artifact_idx, artifact_message_idx WHERE users.user_id = artifact.submitted_by AND artifact_idx.artifact_id = artifact.artifact_id AND artifact_message_idx.id = artifact_message.id AND artifact_message_idx.artifact_id = artifact_message_idx.artifact_id AND artifact_group_list.group_artifact_id = artifact.group_artifact_id AND artifact_group_list.group_id = $2 ',
-							 
+
 							 array ($this->getFormattedWords(),
 								$this->groupId)) ;
 				$tsmatch = "(artifact_idx.vectors @@ q OR artifact_message_idx.vectors @@ q)";
@@ -145,7 +145,7 @@
 		}
 		return $qpa ;
 	}
-	
+
 	/**
 	 * getSections - returns the list of available trackers
 	 *
@@ -158,7 +158,7 @@
 			$sql .= ' AND artifact_group_list.is_public = 1';
 		}
 		$sql .= ' ORDER BY name';
-		
+
 		$res = db_query_params ($sql,
 					array ($groupId));
 		$sections = array();
@@ -167,7 +167,7 @@
 		}
 		return $sections;
 	}
-	
+
 	function getSearchByIdQuery() {
 		$qpa = db_construct_qpa () ;
 		$qpa = db_construct_qpa ($qpa,

Modified: trunk/src/common/survey/Survey.class.php
===================================================================
--- trunk/src/common/survey/Survey.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/survey/Survey.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -46,7 +46,7 @@
 	 *
 	 * @var	object	$Group.
 	 */
-	var $Group; 
+	var $Group;
 
 	/**
 	 * Constructor.
@@ -86,7 +86,7 @@
 	}
 
 	/**
-	 * create - use this function to create a survey 
+	 * create - use this function to create a survey
 	 *
 	 * @param	string	          The survey title
 	 * @param	int array         The question numbers to be added
@@ -131,7 +131,7 @@
 
 
 	/**
-	 * update - use this function to update a survey 
+	 * update - use this function to update a survey
 	 *
 	 * @param	string	          The survey title
 	 * @param	int array         The question numbers to be added
@@ -194,7 +194,7 @@
 		/* Decide delta */
 		if ($is_up) {
 			$delta = -1;
-		} else { 
+		} else {
 			$delta = 1;
 		}
 
@@ -208,7 +208,7 @@
 			$this->setError(_('UPDATE FAILED').db_error());
 			return false;
 		}
-		
+
 		/* Update internal data */
 		return $this->fetchData($survey_id);
 	}
@@ -244,7 +244,7 @@
 	 */
 	function fetchData($survey_id) {
 		$group_id = $this->Group->GetID();
-		
+
 		$res = db_query_params('SELECT * FROM surveys where survey_id=$1 AND group_id=$2',
 					array($survey_id, $group_id)) ;
 
@@ -319,16 +319,16 @@
 	function getNumberOfVotes() {
 		$group_id = $this->Group->GetID();
 		$survey_id = $this->getID();
-		
+
 		$res = db_query_params ('SELECT 1 FROM survey_responses WHERE survey_id=$1 AND group_id=$2 GROUP BY user_id',
 					array ($survey_id,
 					       $group_id)) ;
 		$ret = db_numrows($res);
-		db_free_result($res);		
-		
+		db_free_result($res);
+
 		return $ret;
 	}
-	
+
 	/**
 	 *	isUserVote - Figure out the user voted or not
 	 *
@@ -344,11 +344,11 @@
 					       $group_id,
 					       $user_id)) ;
 		$ret = db_numrows($res);
-		db_free_result($res);		
-		
+		db_free_result($res);
+
 		return $ret;
 	}
-	
+
 	/**
 	 *	getQuestionArray - Get the question string numbers in array
 	 *
@@ -363,13 +363,13 @@
 
 		$arr_from_str = explode(',', $questions);
 
-		/* Remove non existed questions */ 
+		/* Remove non existed questions */
 		for ($i=0; $i<count($arr_from_str); $i++) {
 			if ($this->_isValidQuestionID($arr_from_str[$i])) {
 				$ret_arr[] = $arr_from_str[$i];
 			}
 		}
-		
+
 		return $ret_arr;
 	}
 
@@ -416,7 +416,7 @@
 		if ($arr) {
 			/* Copy questions only if it is not in question string */
 			for ($i=0; $i<count($this->all_question_array); $i++) {
-				if (array_search($this->all_question_array[$i]->getID(), $arr) == false && 
+				if (array_search($this->all_question_array[$i]->getID(), $arr) == false &&
 					$this->all_question_array[$i]->getID()!=$arr[0]) {
 					$ret[] = $this->all_question_array[$i];
 				}
@@ -430,7 +430,7 @@
 
 	/***************************************************************
 	 * private question string deal methods
-	 * TODO: Add a joint table for surveys and survey_questions. 
+	 * TODO: Add a joint table for surveys and survey_questions.
 	 *       Deal with DBMS not comma separated string
          ***************************************************************/
 
@@ -444,18 +444,18 @@
 		$this->all_question_array = & $sqf->getSurveyQuestions();
 	}
 
-	
+
 	/**
 	 * _isValidQuestionID - Check it is correct question id
 	 *
-	 * @param	int	questioin id 
+	 * @param	int	questioin id
 	 * @return	boolean	true if it is valid question id
 	 */
 	function _isValidQuestionID($question_id) {
 		if (!$this->all_question_array || !is_array($this->all_question_array)) {
 			$this->_fillSurveyQuestions();
 		}
-		
+
 		for ($i=0; $i<count($this->all_question_array); $i++) {
 			if ($question_id == $this->all_question_array[$i]->getID()) {
 				return true;
@@ -504,7 +504,7 @@
 				}
 			}
 		}
-		
+
 		/* questions to delete */
 		if ($arr_to_del && is_array($arr_to_del) && count($arr_to_del)>0) {
 			$new_arr = array();
@@ -540,8 +540,8 @@
 
 		$index = array_search($question_number, $arr);
 
-		/* The question number is not in the array 
-		 * We have nothing to change 
+		/* The question number is not in the array
+		 * We have nothing to change
 		 */
 		if ($index==false && $question_number!=$arr[0]) {
 			return $this->getQuestionString();

Modified: trunk/src/common/survey/SurveyFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/survey/SurveyFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -72,7 +72,7 @@
 	}
 
 	/**
-	 * getSurveyQuestion - get an array of Survey Question objects 
+	 * getSurveyQuestion - get an array of Survey Question objects
 	 * for this Group and Survey id if survey_id is given.
 	 *
  	 * @return	array	The array of Survey Question objects.

Modified: trunk/src/common/survey/SurveyQuestion.class.php
===================================================================
--- trunk/src/common/survey/SurveyQuestion.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/survey/SurveyQuestion.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -107,7 +107,7 @@
 		if (!$res) {
 			$this->setError(_('Question Added').db_error());
 			return false;
-		} 
+		}
 
 		/* Load question to data array */
 		$question_id = db_insertid($res,'survey_questions','question_id');
@@ -182,10 +182,10 @@
 	 */
 	function fetchData($question_id) {
 		$group_id = $this->Group->GetID();
-		
-		$res = db_query_params('SELECT survey_questions.*, survey_question_types.type 
-		      FROM survey_questions ,survey_question_types 
-		      WHERE survey_question_types.id=survey_questions.question_type 
+
+		$res = db_query_params('SELECT survey_questions.*, survey_question_types.type
+		      FROM survey_questions ,survey_question_types
+		      WHERE survey_question_types.id=survey_questions.question_type
 		      AND survey_questions.question_id=$1
 		      AND survey_questions.group_id=$2',
 					array($question_id,

Modified: trunk/src/common/survey/SurveyQuestionFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyQuestionFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/survey/SurveyQuestionFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -41,12 +41,12 @@
 	var $questions;
 
 	/**
-	 *  Constructor. 
+	 *  Constructor.
 	 *
 	 *	@param	object	The Group object to which this survey question is associated.
          *      @param  int     The survey_id
 	 */
-	function SurveyQuestionFactory(&$Group) { 
+	function SurveyQuestionFactory(&$Group) {
 		$this->Error();
 		if (!$Group || !is_object($Group)) {
 			$this->setError(_('No valid Group Object'));
@@ -71,7 +71,7 @@
 	}
 
 	/**
-	 *	getSurveyQuestion - get an array of Survey Question objects 
+	 *	getSurveyQuestion - get an array of Survey Question objects
          *                          for this Group and Survey id if survey_id is given.
 	 *
  	 *	@return	array	The array of Survey Question objects.
@@ -82,10 +82,10 @@
 			return $this->questions;
 		}
 
-		$group_id = $this->Group->GetID();		
-		$result = db_query_params ('SELECT survey_questions.*,survey_question_types.type 
-			FROM survey_questions,survey_question_types 
-			WHERE survey_question_types.id=survey_questions.question_type 
+		$group_id = $this->Group->GetID();
+		$result = db_query_params ('SELECT survey_questions.*,survey_question_types.type
+			FROM survey_questions,survey_question_types
+			WHERE survey_question_types.id=survey_questions.question_type
                         AND survey_questions.group_id=$1
 			ORDER BY survey_questions.question_id ASC',
 					   array ($group_id));

Modified: trunk/src/common/survey/SurveyResponse.class.php
===================================================================
--- trunk/src/common/survey/SurveyResponse.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/survey/SurveyResponse.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -88,7 +88,7 @@
 		if (!$res) {
 			$this->setError(_('Error').db_error());
 			return false;
-		} 
+		}
 		return true;
 	}
 

Modified: trunk/src/common/survey/SurveyResponseFactory.class.php
===================================================================
--- trunk/src/common/survey/SurveyResponseFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/survey/SurveyResponseFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -55,13 +55,13 @@
 	var $Result;
 
 	/**
-	 *  Constructor. 
+	 *  Constructor.
 	 *
-	 *	@param	object	The Survey object 
+	 *	@param	object	The Survey object
 	 *	@param	object	The Question object to which this survey Response is associated.
          *      @param  int     The survey_id
 	 */
-	function SurveyResponseFactory(&$Survey, &$Question ) { 
+	function SurveyResponseFactory(&$Survey, &$Question ) {
 		$this->Error();
 
 		if (!$Survey || !is_object($Survey)) {
@@ -116,7 +116,7 @@
 	}
 
 	/**
-	 *	getSurveyResponses - get an array of Survey Response objects 
+	 *	getSurveyResponses - get an array of Survey Response objects
          *                           for the Survey and Question
 	 *
  	 *	@return	array	The array of Survey Response objects.
@@ -133,7 +133,7 @@
 		$survey_id = $survey->GetID();
 		$question = $this->getQuestion();
 		$question_id = $question->GetID();
-		
+
 		$result = db_query_params ('SELECT * FROM survey_responses WHERE survey_id=$1 AND question_id=$2 AND group_id=$3 ORDER BY post_date DESC',
 					   array ($survey_id,
 						  $question_id,
@@ -153,7 +153,7 @@
 
 	/**
 	 *	getNumberOfSurveyResponses - get the number of Survey Responses
-         *                       
+         *
  	 *	@return	int      the number of survey responses
 	 */
 	function getNumberOfSurveyResponses() {
@@ -167,7 +167,7 @@
 
 	/**
 	 *	getResults - get the array of result for yes/no and 1-5 question
-         *                       
+         *
  	 *	@return	int      the array of result
          *              for the yes/no question, it returns counts in arr[1] and arr[5];
          *              for the 1-5 question, it returns counts in arr[1], arr[1], ..., arr[5];
@@ -182,10 +182,10 @@
 		if (!$arr || !is_array($arr)) {
 			return false;
 		}
-		$count = count($arr); 
-		
+		$count = count($arr);
+
 		$question = $this->getQuestion();
-		if ($question->getQuestionType()=='1' || 
+		if ($question->getQuestionType()=='1' ||
 		    $question->getQuestionType()=='3') {
 			/* This is a radio-button question. Values 1-5 or yes(1) no (5)question  */
 			$is_radio = true;
@@ -193,15 +193,15 @@
 		} else {
 			$is_radio=false;
 		}
-		
+
 		for($i=0; $i<$count; $i++) {
 			if ($arr[$i]->isError()) {
 				echo $arr[$i]->getErrorMessage();
 				continue;
 			}
-			
+
 			$response = $arr[$i]->getResponse();
-			
+
 			if($is_radio) {
 				/* We only counts */
 				$this->Result[$response]++;

Modified: trunk/src/common/system_event/SystemEvent.class.php
===================================================================
--- trunk/src/common/system_event/SystemEvent.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/system_event/SystemEvent.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU General Public License
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  *
- * 
+ *
  */
 
 
@@ -28,10 +28,10 @@
  */
 abstract class SystemEvent {
 
-  const PRIORITY_MEDIUM = 2; 
-  const STATUS_NEW= 1; 
-  const STATUS_RUNNING= 2; 
-  const STATUS_DONE= 3; 
+  const PRIORITY_MEDIUM = 2;
+  const STATUS_NEW= 1;
+  const STATUS_RUNNING= 2;
+  const STATUS_DONE= 3;
 }
 
 ?>

Modified: trunk/src/common/system_event/SystemEventManager.class.php
===================================================================
--- trunk/src/common/system_event/SystemEventManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/system_event/SystemEventManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU General Public License
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  *
- * 
+ *
  */
 
 /**
@@ -26,12 +26,12 @@
 * Base class to manage system events
 */
 class SystemEventManager {
-    
-   
 
+
+
     // Constructor
     function SystemEventManager() {
-       
+
     }
 
     protected static $_instance;
@@ -45,7 +45,7 @@
         }
         return self::$_instance;
     }
- 
+
     /**
      * Create a new event, store it in the db and send notifications
      */
@@ -57,10 +57,10 @@
 				'NEW')
 		);
         }
-    
+
    /**
      * Table to display the status of the last n events
-     * 
+     *
      * @param int     $offset        the offset of the pagination
      * @param int     $limit         the number of event to includ in the table
      * @param boolean $full          display a full table or only a summary

Modified: trunk/src/common/tracker/Artifact.class.php
===================================================================
--- trunk/src/common/tracker/Artifact.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/Artifact.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -51,11 +51,11 @@
 
 // This string is used when sending the notification mail for identifying the
 // user response
-define('ARTIFACT_MAIL_MARKER', '#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+');	
+define('ARTIFACT_MAIL_MARKER', '#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+');
 
 	/**
 	*	Factory method which creates an Artifact from an artifact ID
-	*	
+	*
 	*	@param int	The artifact ID
 	*	@param array	The result array, if it's passed in
 	*	@return	object	Artifact object
@@ -78,7 +78,7 @@
 			$ARTIFACT_OBJ["_".$artifact_id."_"]= new Artifact($ArtifactType,$data);
 		}
 		return $ARTIFACT_OBJ["_".$artifact_id."_"];
-	}	
+	}
 
 class Artifact extends Error {
 
@@ -94,7 +94,7 @@
 	 *
 	 * @var		object	$ArtifactType.
 	 */
-	var $ArtifactType; 
+	var $ArtifactType;
 
 	/**
 	 * Array of artifact data.
@@ -115,7 +115,7 @@
 	 *
 	 * @var		array	$files
 	 */
-	var $files; 
+	var $files;
 
 	/**
 	 * Database result set of related tasks
@@ -123,17 +123,17 @@
 	 * @var     result $relatedtasks
 	 */
 	var $relatedtasks;
-    
+
 	/**
 	 *  Artifact - constructor.
 	 *
 	 *	@param	object	The ArtifactType object.
-	 *  @param	integer	(primary key from database OR complete assoc array) 
+	 *  @param	integer	(primary key from database OR complete assoc array)
 	 *		ONLY OPTIONAL WHEN YOU PLAN TO IMMEDIATELY CALL ->create()
 	 *  @return	boolean	success.
 	 */
 	function Artifact(&$ArtifactType, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		$this->ArtifactType =& $ArtifactType;
 
@@ -176,7 +176,7 @@
 			}
 		}
 	}
-	
+
 	/**
 	 *	create - construct a new Artifact in the database.
 	 *
@@ -185,14 +185,14 @@
 	 *	@param	int		The ID of the user to which this artifact is to be assigned.
 	 *	@param	int		The artifacts priority.
 	 *	@param	array	Array of extra fields like: array(15=>'foobar',22=>'1');
-	 *	@param	array	Array of data to change submitter and time of submit like: array('user' => 127, 'time' => 1234556789)	
+	 *	@param	array	Array of data to change submitter and time of submit like: array('user' => 127, 'time' => 1234556789)
 	 *  @return id on success / false on failure.
 	 */
 	function create( $summary, $details, $assigned_to=100, $priority=3, $extra_fields=array(), $importData = array()) {
 		//
 		//	make sure this person has permission to add artifacts
 		//
-		
+
 		if (!$this->ArtifactType->isPublic()) {
 			//
 			//	Only admins can post/modify private artifacts
@@ -209,7 +209,7 @@
 		//
 		//	get the user_id
 		//
-		
+
 		if(array_key_exists('user', $importData)){
 				$user = $importData['user'];
 		} else {
@@ -223,9 +223,9 @@
 					return false;
 				}
 			}
-		}	
-			
+		}
 
+
 		//
 		//	data validation
 		//
@@ -263,9 +263,9 @@
 		} else {
 			$time = time();
 		}
-		$res = db_query_params ('INSERT INTO artifact 
+		$res = db_query_params ('INSERT INTO artifact
 			(group_artifact_id,status_id,priority,
-			submitted_by,assigned_to,open_date,summary,details) 
+			submitted_by,assigned_to,open_date,summary,details)
 			VALUES ($1,$2,$3,$4,$5,$6,$7,$8)',
 					array ($this->ArtifactType->getID(),
 					       $status_id,
@@ -280,7 +280,7 @@
 			db_rollback();
 			return false;
 		}
-		
+
 		$artifact_id=db_insertid($res,'artifact','artifact_id');
 
 		if (!$res || !$artifact_id) {
@@ -312,7 +312,7 @@
 			return $artifact_id;
 		}
 	}
-	
+
 	/**
 	 *	fetchData - re-fetch the data for this Artifact from the database.
 	 *
@@ -340,7 +340,7 @@
 	function &getArtifactType() {
 		return $this->ArtifactType;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactID.
 	 *
@@ -552,7 +552,7 @@
 			db_rollback();
 			return false;
 		}
-		
+
 		if ($this->getStatusID() == 1) {
 			$res = db_query_params ('UPDATE artifact_counts_agg SET count=count-1,open_count=open_count-1
 				WHERE group_artifact_id=$1',
@@ -618,7 +618,7 @@
 			}
 		} else {
 			//already monitoring - remove their monitor
-			db_query_params ('DELETE FROM artifact_monitor 
+			db_query_params ('DELETE FROM artifact_monitor
 				WHERE artifact_id=$1
 				AND user_id=$2',
 					 array ($this->getID(),
@@ -748,7 +748,7 @@
 				$this->setError('ERROR - Logged In User Bug Could Not Get User Object');
 				return false;
 			}
-			//	we'll store this email even though it will likely never be used - 
+			//	we'll store this email even though it will likely never be used -
 			//	since we have their correct user_id, we can join the USERS table to get email
 			$by=$user->getEmail();
 		} elseif (!$this->ArtifactType->allowsAnon()) {
@@ -840,8 +840,8 @@
 				return false;
 			}
 		}
-               
-               
+
+
 		//commiting changes
 		db_commit();
 		return true;
@@ -890,10 +890,10 @@
 		if (count($extra_fields) > 0) {
 			$status_id=$this->ArtifactType->remapStatus($status_id,$extra_fields);
 		}
-		if (!$this->getID() 
-			|| !$assigned_to 
-			|| !$status_id 
-			|| !$canned_response 
+		if (!$this->getID()
+			|| !$assigned_to
+			|| !$status_id
+			|| !$canned_response
 			|| !$new_artifact_type_id) {
 			$this->setMissingParamsError();
 			return false;
@@ -911,7 +911,7 @@
 		// Array to record which properties were changed
 		$changes = array();
 		$update  = false;
-		
+
 		db_begin();
 
 		//
@@ -937,7 +937,7 @@
 				db_rollback();
 				return false;
 			}
-			
+
 			// Add a message to explain that the tracker was moved.
 			$message = 'Moved from '.$this->ArtifactType->getName().' to '.$newArtifactType->getName();
 			$this->addHistory('type', $this->ArtifactType->getName());
@@ -995,7 +995,7 @@
 					}
 				}
 			}
-			
+
 			// Special case if moving to a tracker with custom status (previous has not).
 			$custom_status_id = $newArtifactType->getCustomStatusField();
 			if ($custom_status_id && !$new_extra_fields[$custom_status_id]) {
@@ -1108,7 +1108,7 @@
 			db_rollback();
 			return false;
 		}
-		
+
 		/*
 			handle canned responses
 
@@ -1150,7 +1150,7 @@
 			db_rollback();
 			return false;
 		}
-	
+
 	}
 
 	/**
@@ -1174,7 +1174,7 @@
 			$this->setPermissionDeniedError();
 			return false;
 		}
-		
+
 		$user_id = user_getid();
 		$res = db_query_params ('UPDATE artifact SET assigned_to=$1 WHERE artifact_id=$2',
 								array ($user_id, $this->getID())) ;
@@ -1183,7 +1183,7 @@
 			return false;
 		}
 		$this->fetchData($this->getID());
-		
+
 		return true;
 	}
 
@@ -1198,14 +1198,14 @@
 	function updateExtraFields($extra_fields,&$changes){
 /*
 	This is extremely complex code - we have take the passed array
-	and see if we need to insert it into the db, and may have to 
+	and see if we need to insert it into the db, and may have to
 	add history rows for the audit trail
 
 	start by getting all the available extra fields from ArtifactType
-		For each field from ArtifacType, check the passed array - 
+		For each field from ArtifacType, check the passed array -
 			This prevents someone from passing bogus extra field entries - they will be ignored
 			if the passed entry is blank, may have to force a default value
-			if the passed array is different from the existing data in db, 
+			if the passed array is different from the existing data in db,
 				delete old entry and insert new entries, along with possible audit trail
 			else
 				skip it and continue to next item
@@ -1241,7 +1241,7 @@
 				}
 			}
 		}
-		
+
 		//now we'll update this artifact for each extra field
 		for ($i=0; $i<count($efk); $i++) {
 			$efid=$efk[$i];
@@ -1312,16 +1312,16 @@
 				//
 				//	Compare for history purposes
 				//
-				
+
 				// these types have arrays associated to them, so they need
 				// special handling to check for differences
 				if ($type == ARTIFACT_EXTRAFIELDTYPE_MULTISELECT || $type == ARTIFACT_EXTRAFIELDTYPE_CHECKBOX) {
 					// check the differences between the old values and the new values
 					$old_values = util_result_column_to_array($resd,"field_data");
-					
+
 					$added_values = array_diff($extra_fields[$efid], $old_values);
 					$deleted_values = array_diff($old_values, $extra_fields[$efid]);
-					
+
 					if (!empty($added_values) || !empty($deleted_values))	{	// there are differences...
 						$field_name = $ef[$efid]['field_name'];
 						if (!preg_match('/^@/', $ef[$efid]['alias'])) {
@@ -1494,7 +1494,7 @@
 		} else {
 			return '';
 		}
-	}				
+	}
 
 	/**
 	 *	mailFollowupEx - send out an email update for this artifact.
@@ -1513,7 +1513,7 @@
 		if (!$changes) {
 			$changes=array();
 		}
-		
+
 		$sess = session_get_user() ;
 		if ($type == 1) { // Initial opening
 			if ($sess) {
@@ -1535,8 +1535,8 @@
 				    date(_('Y-m-d H:i'), $tm);
 			}
 		}
-			      
 
+
 		$body .= "\nYou can respond by visiting: ".
 			"\n".util_make_url ('/tracker/?func=detail&atid='. $this->ArtifactType->getID() .
 					    "&aid=". $this->getID() .
@@ -1557,14 +1557,14 @@
 			 " (". $this->getAssignedUnixName(). ")"."\n".
 			$this->marker('summary',$changes).
 			 "Summary: ". util_unconvert_htmlspecialchars( $this->getSummary() )." \n";
-			 
+
 		// Now display the extra fields
 		$efd = $this->getExtraFieldDataText();
 		foreach ($efd as $efid => $ef) {
 			$body .= $this->marker('extra_fields', $changes, $efid);
 			$body .= $ef["name"].": ".$ef["value"]."\n";
 		}
-			
+
 		$subject='['. $this->ArtifactType->Group->getUnixName() . '-' . $this->ArtifactType->getName() . '][' . $this->getID() .'] '. util_unconvert_htmlspecialchars( $this->getSummary() );
 
 		if ($type > 1) {
@@ -1611,11 +1611,11 @@
 			$result2=$this->getMessages();
 
 			$rows=db_numrows($result2);
-		
+
 			if ($result2 && $rows > 0) {
 				for ($i=0; $i<$rows; $i++) {
 					//
-					//	for messages posted by non-logged-in users, 
+					//	for messages posted by non-logged-in users,
 					//	we grab the email they gave us
 					//
 					//	otherwise we use the confirmed one from the users table
@@ -1636,7 +1636,7 @@
 					"\n\nMessage:".
 					"\n".util_unconvert_htmlspecialchars( db_result($result2,$i,'body') ).
 					"\n\n----------------------------------------------------------------------";
-				}	   
+				}
 			}
 
 		}
@@ -1656,10 +1656,10 @@
 		} else {
 			$monitor_ids=array_unique($monitor_ids);
 		}
-		
+
 		$from = $this->ArtifactType->getReturnEmailAddress();
 		$extra_headers = 'Reply-to: '.$from;
-		
+
 		// load the e-mail addresses of the users
 		$users =& user_get_objects($monitor_ids);
 		if (count($users) > 0) {
@@ -1669,21 +1669,21 @@
 				}
 			}
 		}
-		
+
 		//now remove all duplicates from the email list
 		if (count($emails) > 0) {
 			$BCC=implode(',',array_unique($emails));
-			util_send_message('',$subject,$body,$from,$BCC,'',$extra_headers);			
+			util_send_message('',$subject,$body,$from,$BCC,'',$extra_headers);
 		}
-		
+
 		$this->sendSubjectMsg = $subject;
 		$this->sendBodyMsg = $body;
-		
+
 		//util_handle_message($monitor_ids,$subject,$body,$BCC);
-		
+
 		return true;
 	}
-	
+
 	/**
 	* getExtraFieldDataText - Return the extra fields' data in a human-readable form.
 	*
@@ -1695,16 +1695,16 @@
 		// associated to the fields
 		$efs = $this->ArtifactType->getExtraFields();
 		$efd = $this->getExtraFieldData();
-		
+
 		$return = array();
 
 		foreach ($efs as $efid => $ef) {
 			$name = $ef["field_name"];
 			$type = $ef["field_type"];
-			
+
 			// Get the value according to the type
 			switch ($type) {
-				
+
 				// for these types, the associated value comes straight
 				case ARTIFACT_EXTRAFIELDTYPE_TEXT:
 				case ARTIFACT_EXTRAFIELDTYPE_TEXTAREA:
@@ -1716,7 +1716,7 @@
 						$value = '';
 					}
 					break;
-	
+
 				// the other types have and ID or an array of IDs associated to them
 				default:
 					if (isset($efd[$efid])) {
@@ -1725,10 +1725,10 @@
 						$value = 'None';
 					}
 			}
-			
+
 			$return[$efid] = array("name" => $name, "value" => $value, 'type' => $type);
 		}
-		
+
 		return $return;
 	}
 

Modified: trunk/src/common/tracker/ArtifactBoxOptions.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactBoxOptions.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactBoxOptions.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 class ArtifactBoxOptions extends Error {
 
-	/** 
+	/**
 	 * The artifact type object.
 	 *
 	 * @var		object	$ArtifactType.
@@ -46,8 +46,8 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactBoxOptions(&$ArtifactType,$data=false) {
-		$this->Error(); 
-		
+		$this->Error();
+
 		//was ArtifactType legit?
 		if (!$ArtifactType || !is_object($ArtifactType)) {
 			$this->setError('ArtifactSelectionBox: No Valid ArtifactType');
@@ -74,17 +74,17 @@
 	}
 
 	/**
-	 *	create - create a new row in the table used to store the 
-	 *	choices for selection boxes.  This function is only used for 
+	 *	create - create a new row in the table used to store the
+	 *	choices for selection boxes.  This function is only used for
 	 *	extra fields and boxes configured by the admin
 	 *
 	 *	@param	string		Name of the choice
 	 *	@param	int		Id the box that contains the choice.
 	 *  @return 	true on success / false on failure.
 	 */
-	
+
 	function create($name,$id) {
-//settype($id,"integer");	
+//settype($id,"integer");
 		//
 		//	data validation
 		//
@@ -145,7 +145,7 @@
 	function &getArtifactType() {
 		return $this->ArtifactType;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactSelectionBox ID.
 	 *
@@ -154,7 +154,7 @@
 	function getID() {
 		return $this->data_array['id'];
 	}
-	
+
 	/**
 	 *	getBoxID - get this  artifact box id.
 	 *
@@ -175,12 +175,12 @@
 
 
 	/**
-	 *  update - update rows in the table used to store the choices 
-	 *  for a selection box. This function is used only for extra  
+	 *  update - update rows in the table used to store the choices
+	 *  for a selection box. This function is used only for extra
 	 *  boxes and fields configured by the admin
 	 *
 	 *  @param	string	Name of the choice in a box.
-	 *  @param	int	Id of the box 
+	 *  @param	int	Id of the box
 	 *  @param	int	id of the row
 	 *  @return	boolean	success.
 	 */
@@ -192,8 +192,8 @@
 		if (!$name) {
 			$this->setMissingParamsError();
 			return false;
-		}   
-		$result = db_query_params ('UPDATE artifact_group_selection_box_options 
+		}
+		$result = db_query_params ('UPDATE artifact_group_selection_box_options
 			SET box_options_name=$1
 			WHERE id=$2',
 					   array (htmlspecialchars($name),

Modified: trunk/src/common/tracker/ArtifactCanned.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactCanned.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactCanned.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -26,12 +26,12 @@
 
 class ArtifactCanned extends Error {
 
-	/** 
+	/**
 	 * The artifact type object.
 	 *
 	 * @var		object	$ArtifactType.
 	 */
-	var $ArtifactType; 
+	var $ArtifactType;
 
 	/**
 	 * Array of artifact data.
@@ -48,7 +48,7 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactCanned(&$ArtifactType, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was ArtifactType legit?
 		if (!$ArtifactType || !is_object($ArtifactType)) {
@@ -144,7 +144,7 @@
 	function &getArtifactType() {
 		return $this->ArtifactType;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactCanned message's ID.
 	 *
@@ -183,11 +183,11 @@
 		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
 			return false;
-		}   
+		}
 		if (!$title || !$body) {
 			$this->setMissingParamsError();
 			return false;
-		}   
+		}
 
 		$result = db_query_params ('UPDATE artifact_canned_responses
 			SET title=$1,body=$2

Modified: trunk/src/common/tracker/ArtifactExtraField.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactExtraField.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactExtraField.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -37,7 +37,7 @@
 
 class ArtifactExtraField extends Error {
 
-	/** 
+	/**
 	 * The artifact type object.
 	 *
 	 * @var		object	$ArtifactType.
@@ -59,7 +59,7 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactExtraField(&$ArtifactType, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was ArtifactType legit?
 		if (!$ArtifactType || !is_object($ArtifactType)) {
@@ -89,7 +89,7 @@
 
 	/**
 	 *	create - create a row in the table that stores box names for a
-	 *	a tracker.  This function is only used to create rows for boxes 
+	 *	a tracker.  This function is only used to create rows for boxes
 	 *	configured by the admin.
 	 *
 	 *	@param	string	Name of the extra field.
@@ -110,7 +110,7 @@
 		}
 		if (!$field_type) {
 			$this->setError("Type of custom field not selected");
-			return false;			
+			return false;
 		}
 		if (!forge_check_perm ('tracker_admin', $this->ArtifactType->Group->getID())) {
 			$this->setPermissionDeniedError();
@@ -136,19 +136,19 @@
 				return false;
 			}
 		}
-		
+
 		if ($is_required) {
 			$is_required=1;
 		} else {
 			$is_required=0;
-		}	
-		
+		}
+
 		if (!($alias = $this->generateAlias($alias,$name))) {
 			return false;
 		}
-		
+
 		db_begin();
-		$result = db_query_params ('INSERT INTO artifact_extra_field_list (group_artifact_id,field_name,field_type,attribute1,attribute2,is_required,alias) 
+		$result = db_query_params ('INSERT INTO artifact_extra_field_list (group_artifact_id,field_name,field_type,attribute1,attribute2,is_required,alias)
 			VALUES ($1,$2,$3,$4,$5,$6,$7)',
 					   array ($this->ArtifactType->getID(),
 						  htmlspecialchars($name),
@@ -200,7 +200,7 @@
 //
 //	Must insert some default 100 rows for the data table so None queries will work right
 //
-				$resdefault = db_query_params ('INSERT INTO artifact_extra_field_data(artifact_id,field_data,extra_field_id) 
+				$resdefault = db_query_params ('INSERT INTO artifact_extra_field_data(artifact_id,field_data,extra_field_id)
 					SELECT artifact_id,100,$1 FROM artifact WHERE group_artifact_id=$2',
 							       array ($id,
 								      $this->ArtifactType->getID())) ;
@@ -227,7 +227,7 @@
 		$this->id=$id;
 		$res = db_query_params ('SELECT * FROM artifact_extra_field_list WHERE extra_field_id=$1',
 					array ($id)) ;
-		
+
 		if (!$res || db_numrows($res) < 1) {
 			$this->setError('ArtifactExtraField: Invalid ArtifactExtraField ID');
 			return false;
@@ -245,7 +245,7 @@
 	function &getArtifactType() {
 		return $this->ArtifactType;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactExtraField ID.
 	 *
@@ -328,7 +328,7 @@
 			10=>_('Integer')
 			);
 	}
-	
+
 	/**
 	 *	getAlias - the alias that is used for this field
 	 *
@@ -337,7 +337,7 @@
 	function getAlias() {
 		return $this->data_array['alias'];
 	}
-	
+
 	/**
 	 *	getAvailableValues - Get the list of available values for this extra field
 	 *
@@ -354,7 +354,7 @@
 	}
 
 	/**
-	 *  update - update a row in the table used to store box names 
+	 *  update - update a row in the table used to store box names
 	 *  for a tracker.  This function is only to update rowsf
 	 *  for boxes configured by
 	 *  the admin.
@@ -378,7 +378,7 @@
 			$this->setError(_('a field name is required'));
 			return false;
 		}
-		$res = db_query_params ('SELECT field_name FROM artifact_extra_field_list 
+		$res = db_query_params ('SELECT field_name FROM artifact_extra_field_list
 				WHERE field_name=$1 AND group_artifact_id=$2 AND extra_field_id !=$3',
 			array($name,
 				$this->ArtifactType->getID(),
@@ -392,12 +392,12 @@
 		} else {
 			$is_required=0;
 		}
-		
+
 		if (!($alias = $this->generateAlias($alias,$name))) {
 			return false;
-		}		
+		}
 
-		$result = db_query_params ('UPDATE artifact_extra_field_list 
+		$result = db_query_params ('UPDATE artifact_extra_field_list
 			SET field_name=$1,
 			attribute1=$2,
 			attribute2=$3,
@@ -468,7 +468,7 @@
 		}
 
 	}
-	
+
 	/**
 	 * 	Validate an alias.
 	 *	Note that this function does not check for conflicts.
@@ -499,10 +499,10 @@
 			$this->setError(sprintf(_('\'%1$s\' is a reserved alias. Please provide another name.'), $alias));
 			return false;
 		}
-		
+
 		return true;
 	}
-	
+
 	/**
 	 *	Generate an alias for this field. The alias can be entered by the user or
 	 *	be generated automatically from the name of the field.
@@ -514,7 +514,7 @@
 		$alias = strtolower(trim($alias));
 		if (strlen($alias) == 0) {		// no alias was entered, generate alias from $name
 			$name = strtolower(trim($name));
-			// Convert the original name to a valid alias (i.e., if the extra field is 
+			// Convert the original name to a valid alias (i.e., if the extra field is
 			// called "Quality test", make an alias called "quality_test").
 			// The alias can be seen as a "unix name" for this field
 			$alias = preg_replace("/ /", "_", $name);
@@ -523,11 +523,11 @@
 		} elseif (!$this->validateAlias($alias)) {
 			// alias is invalid...
 			return false;
-		} 
+		}
 		// check if the name conflicts with another alias in the same artifact type
 		// in that case append a serial number to the alias
 		$serial = 1;
-		$conflict = false;	
+		$conflict = false;
 		do {
 			if ($this->data_array['extra_field_id']) {
 				$res = db_query_params ('SELECT * FROM artifact_extra_field_list

Modified: trunk/src/common/tracker/ArtifactExtraFieldElement.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactExtraFieldElement.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactExtraFieldElement.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -49,7 +49,7 @@
 
 class ArtifactExtraFieldElement extends Error {
 
-	/** 
+	/**
 	 * The artifact type object.
 	 *
 	 * @var		object	$ArtifactExtraField.
@@ -70,8 +70,8 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactExtraFieldElement(&$ArtifactExtraField,$data=false) {
-		$this->Error(); 
-		
+		$this->Error();
+
 		//was ArtifactExtraField legit?
 		if (!$ArtifactExtraField || !is_object($ArtifactExtraField)) {
 			$this->setError('ArtifactExtraField: No Valid ArtifactExtraField');
@@ -99,8 +99,8 @@
 	}
 
 	/**
-	 *	create - create a new row in the table used to store the 
-	 *	choices for selection boxes.  This function is only used for 
+	 *	create - create a new row in the table used to store the
+	 *	choices for selection boxes.  This function is only used for
 	 *	extra fields and boxes configured by the admin
 	 *
 	 *	@param	string		Name of the choice
@@ -108,7 +108,7 @@
 	 *  @param  int status_id - optional for status box - maps to either open/closed.
 	 *  @return 	true on success / false on failure.
 	 */
-	
+
 	function create($name,$status_id=0) {
 		//
 		//	data validation
@@ -156,7 +156,7 @@
 					$atw = new ArtifactWorkflow($this->ArtifactExtraField->ArtifactType, $this->ArtifactExtraField->getID());
 					$atw->addNode($id);
 				}
-				
+
 				db_commit();
 				return $id;
 			}
@@ -194,7 +194,7 @@
 	function &getArtifactExtraField() {
 		return $this->ArtifactExtraField;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactExtraField ID.
 	 *
@@ -203,7 +203,7 @@
 	function getID() {
 		return $this->data_array['element_id'];
 	}
-	
+
 	/**
 	 *	getBoxID - get this  artifact box id.
 	 *
@@ -232,8 +232,8 @@
 	}
 
 	/**
-	 *  update - update rows in the table used to store the choices 
-	 *  for a selection box. This function is used only for extra  
+	 *  update - update rows in the table used to store the choices
+	 *  for a selection box. This function is used only for extra
 	 *  boxes and fields configured by the admin
 	 *
 	 *  @param	string	Name of the choice in a box.
@@ -265,7 +265,7 @@
 		} else {
 			$status_id=0;
 		}
-		$result = db_query_params ('UPDATE artifact_extra_field_elements 
+		$result = db_query_params ('UPDATE artifact_extra_field_elements
 			SET element_name=$1, status_id=$2
 			WHERE element_id=$3',
 					   array (htmlspecialchars($name),

Modified: trunk/src/common/tracker/ArtifactFactory.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -58,7 +58,7 @@
 	var $summary;
 	var $description;
 	var $followups;
-	
+
 	var $query_type;		// query, default, custom
 	var $query_id;			// id of the query (when query_type=query)
 
@@ -152,7 +152,7 @@
 			} elseif (isset($_COOKIE["GFTrackerQuery"])) {
 				$gf_tracker = unserialize($_COOKIE["GFTrackerQuery"]);
 				$query_id = (int)$gf_tracker[$this->ArtifactType->getID()];
-				if ($query_id) { 
+				if ($query_id) {
 					$this->query_type = 'query';
 					$this->query_id = $query_id;
 				}
@@ -216,7 +216,7 @@
 			$i=$keys[$k];
 			$allowed_order_col[] = $efarr[$i]['extra_field_id'];
 		}
-		
+
 		$_order_col = util_ensure_value_in_set ($order_col,
 							$allowed_order_col);
 		$_sort_ord = util_ensure_value_in_set ($sort,
@@ -234,7 +234,7 @@
 				if (is_array($_extra_fields)){
 					//print_r($_extra_fields);
 					$keys=array_keys($_extra_fields);
-					
+
 					foreach ($keys as $key) {
 						if ($_extra_fields[$key] != 'Array') {
 							$aux_extra_fields[$key] = $_extra_fields[$key];
@@ -246,7 +246,7 @@
 				if (count($aux_extra_fields)>0) {
 					$extra_pref = '|'.serialize($aux_extra_fields);
 				}
-				
+
 				$pref_=$_assigned_to.'|'.$_status.'|'.$_order_col.'|'.$_sort_ord.'|'.$_changed.$extra_pref;
 				if ($pref_ != $u->getPreference('art_cust'.$this->ArtifactType->getID())) {
 					$u->setPreference('art_cust'.$this->ArtifactType->getID(),$pref_);
@@ -267,7 +267,7 @@
 		$this->setChangedFrom($_changed);
 	}
 
-	
+
 	/**
 	 *	setChangedFrom - sets up changed-from and last-changed before you call getTasks().
 	 *
@@ -281,7 +281,7 @@
 	/**
 	 *	getDefaultQuery - get the default query
 	 *
-	 *	@return	int	
+	 *	@return	int
 	 */
 	function getDefaultQuery() {
 		if ($this->query_type == 'query')
@@ -289,7 +289,7 @@
 		else
 			return '';
 	}
-	
+
 	/**
 	 *	getArtifacts - get an array of Artifact objects.
 	 *
@@ -302,7 +302,7 @@
 
 		$params = array() ;
 		$paramcount = 1 ;
-		
+
 		$selectsql = 'SELECT DISTINCT ON (group_artifact_id, artifact_id) artifact_vw.* FROM artifact_vw';
 
 		$wheresql = ' WHERE group_artifact_id=$'.$paramcount++ ;
@@ -416,7 +416,7 @@
 
 		$sortorder = util_ensure_value_in_set ($this->sort,
 						       array ('ASC', 'DESC')) ;
-		
+
 		$sortcol = util_ensure_value_in_set ($this->order_col,
 						     array ('extra',
 							    'artifact_id',
@@ -432,7 +432,7 @@
 		} else {
 			$ordersql = ''  ;
 		}
-			
+
 		$result = db_query_params ('SELECT * FROM (' . $selectsql . $wheresql . ') AS Artifacts' . $ordersql,
 					   $params) ;
 		$rows = db_numrows($result);

Modified: trunk/src/common/tracker/ArtifactFile.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactFile.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactFile.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -53,7 +53,7 @@
 
 class ArtifactFile extends Error {
 
-	/** 
+	/**
 	 * The artifact object.
 	 *
 	 * @var		object	$Artifact.
@@ -75,7 +75,7 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactFile(&$Artifact, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was Artifact legit?
 		if (!$Artifact || !is_object($Artifact)) {
@@ -145,8 +145,8 @@
 		} else {
 			$time = time();
 		}
-		
 
+
 		// If $filetype is "text/plain", $bin_data convert UTF-8 encoding.
 		if (strcasecmp($filetype,"text/plain") === 0 &&
 		    function_exists('mb_convert_encoding') &&
@@ -167,7 +167,7 @@
 					       $filesize,
 					       $filetype,
 					       $time,
-					       $userid)) ; 
+					       $userid)) ;
 
 		$id=db_insertid($res,'artifact_file','id');
 
@@ -242,7 +242,7 @@
 	function &getArtifact() {
 		return $this->Artifact;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactFile's ID.
 	 *

Modified: trunk/src/common/tracker/ArtifactFromID.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactFromID.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactFromID.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -41,7 +41,7 @@
 			} else {
 				$art_arr = db_fetch_array($res);
 			}
-		} 
+		}
 
 		$at = artifactType_get_object($art_arr['group_artifact_id']);
 		if (!$at || !is_object($at)) {

Modified: trunk/src/common/tracker/ArtifactHistory.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactHistory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactHistory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 class ArtifactHistory extends Error {
 
-	/** 
+	/**
 	 * The artifact object.
 	 *
 	 * @var		object	$Artifact.
@@ -47,7 +47,7 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactHistory(&$Artifact, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was Artifact legit?
 		if (!$Artifact || !is_object($Artifact)) {
@@ -94,7 +94,7 @@
 			$this->setPermissionDeniedError();
 			return false;
 		}
-		$result = db_query_params ('INSERT INTO artifact_category (group_artifact_id,category_name,auto_assign_to) 
+		$result = db_query_params ('INSERT INTO artifact_category (group_artifact_id,category_name,auto_assign_to)
 			VALUES ($1,$2,$3)',
 					   array ($this->Artifact->getID(),
 						  htmlspecialchars($name),
@@ -141,7 +141,7 @@
 	function &getArtifact() {
 		return $this->Artifact;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactHistory's ID.
 	 *

Modified: trunk/src/common/tracker/ArtifactMessage.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactMessage.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactMessage.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 class ArtifactMessage extends Error {
 
-	/** 
+	/**
 	 * The artifact object.
 	 *
 	 * @var		object	$Artifact.
@@ -47,7 +47,7 @@
 	 *  @return	boolean	success.
 	 */
 	function ArtifactMessage(&$Artifact, $data=false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was Artifact legit?
 		if (!$Artifact || !is_object($Artifact)) {
@@ -109,7 +109,7 @@
 			}
 		}
 
-		$res = db_query_params ('INSERT INTO artifact_message (artifact_id,submitted_by,from_email,adddate,body) 
+		$res = db_query_params ('INSERT INTO artifact_message (artifact_id,submitted_by,from_email,adddate,body)
 			VALUES ($1,$2,$3,$4,$5)',
 					array ($this->Artifact->getID(),
 					       $user_id,
@@ -158,7 +158,7 @@
 	function &getArtifact() {
 		return $this->Artifact;
 	}
-	
+
 	/**
 	 *	getID - get this ArtifactMessage's ID.
 	 *

Modified: trunk/src/common/tracker/ArtifactQuery.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -62,7 +62,7 @@
 require_once $gfcommon.'tracker/ArtifactType.class.php';
 
 class ArtifactQuery extends Error {
-	/** 
+	/**
 	 * The artifact type object.
 	 *
 	 * @var		object	$ArtifactType.
@@ -87,11 +87,11 @@
 	 *	ArtifactQuery - Constructer
 	 *
 	 *	@param	object	ArtifactType object.
-	 *	@param 	
+	 *	@param
 	 *  	@return	boolean	success.
 	 */
 	function ArtifactQuery(&$ArtifactType, $data = false) {
-		$this->Error(); 
+		$this->Error();
 
 		//was ArtifactType legit?
 		if (!$ArtifactType || !is_object($ArtifactType)) {
@@ -121,7 +121,7 @@
 
 	/**
 	 *	create - create a row in the table that stores a saved query for
-	 *  a tracker.   
+	 *  a tracker.
 	 *
 	 *	@param	string	Name of the saved query.
 	 *  @return 	true on success / false on failure.
@@ -149,7 +149,7 @@
 			$this->setError( _('You must have tracker admin rights to set or update a project level query.'));
 			return false;
 		}
-		
+
 		// Reset the project default query.
 		if ($query_type==2) {
 			$res = db_query_params ('UPDATE artifact_query SET query_type=1 WHERE query_type=2 AND group_artifact_id=$1',
@@ -159,7 +159,7 @@
 				return false;
 			}
 		}
-		
+
 		db_begin();
 		$result = db_query_params ('INSERT INTO artifact_query (group_artifact_id,query_name,user_id,query_type) VALUES ($1,$2,$3,$4)',
 					   array ($this->ArtifactType->getID(),
@@ -205,7 +205,7 @@
 	function fetchData($id) {
 			$res = db_query_params ('SELECT * FROM artifact_query WHERE artifact_query_id=$1',
 						array ($id)) ;
-		
+
 		if (!$res || db_numrows($res) < 1) {
 			$this->setError('ArtifactQuery: Invalid ArtifactQuery ID'.db_error());
 			return false;
@@ -257,21 +257,21 @@
 			$this->setError('Setting Status: '.db_error());
 			return false;
 		}
-	
+
 		if (is_array($assignee)) {
 				for($e=0; $e<count($assignee); $e++) {
-					$assignee[$e]=intval($assignee[$e]); 
+					$assignee[$e]=intval($assignee[$e]);
 				}
 				$assignee=implode(',',$assignee);
 		} else {
 			$assignee = intval($assignee);
-		}	
-		
+		}
+
 		if (preg_match("/[^[:alnum:]_]/", $sort_col)) {
 			$this->setError('ArtifactQuery: not valid sort_col');
 			return false;
 		}
-		
+
 		if (preg_match("/[^[:alnum:]_]/", $sort_ord)) {
 			$this->setError('ArtifactQuery: not valid sort_ord');
 			return false;
@@ -358,7 +358,7 @@
 			$this->setError('Setting Sort Order: '.db_error());
 			return false;
 		}
-		
+
 		// Saving the summary value.
 		$res=db_query_params ('INSERT INTO artifact_query_fields
 			(artifact_query_id,query_field_type,query_field_id,query_field_values)
@@ -384,7 +384,7 @@
 			$this->setError('Setting Description: '.db_error());
 			return false;
 		}
-		
+
 		// Saving the followups value.
 		$res=db_query_params ('INSERT INTO artifact_query_fields
 			(artifact_query_id,query_field_type,query_field_id,query_field_values)
@@ -401,7 +401,7 @@
 		if (!$extra_fields) {
 			$extra_fields=array();
 		}
-		
+
 		$keys=array_keys($extra_fields);
 		$vals=array_values($extra_fields);
 		for ($i=0; $i<count($keys); $i++) {
@@ -640,8 +640,8 @@
 	}
 
 	/**
-	 *  update - update a row in the table used to query names 
-	 *  for a tracker.  
+	 *  update - update a row in the table used to query names
+	 *  for a tracker.
 	 *
 	 *  @param	int	 Id of the saved query
 	 *	@param	string	The name of the saved query
@@ -665,7 +665,7 @@
 			$this->setError(_('You must have tracker admin rights to set or update a project level query.'));
 			return false;
 		}
-		
+
 		// Reset the project default query.
 		if ($query_type==2) {
 			$res = db_query_params ('UPDATE artifact_query SET query_type=1 WHERE query_type=2 AND group_artifact_id=$1',

Modified: trunk/src/common/tracker/ArtifactQueryFactory.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactQueryFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactQueryFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,7 +20,7 @@
  * with FusionForge; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
- 
+
 require_once $gfcommon.'include/Error.class.php';
 require_once $gfcommon.'tracker/ArtifactQuery.class.php';
 
@@ -60,14 +60,14 @@
 
 		return true;
 	}
-	
+
 	function &getArtifactQueries() {
 		if (!is_null($this->ArtifactQueries)) {
 			return $this->ArtifactQueries;
 		}
-		
+
 		$this->ArtifactQueries = array();
-		
+
 		$res = db_query_params ('SELECT * FROM artifact_query WHERE user_id=$1
 					 AND group_artifact_id=$2',
 					array (user_getid(),
@@ -75,12 +75,12 @@
 		if (!$res) {
 			$this->setError("ArtifactQueryFactory:: Database error");
 		}
-		
+
 		while ($data = db_fetch_array($res)) {
 			$artifactQuery = new ArtifactQuery($this->ArtifactType, $data["artifact_query_id"]);
 			$this->ArtifactQueries[] = $artifactQuery;
 		}
-		
+
 		return $this->ArtifactQueries;
 	}
 }

Modified: trunk/src/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactType.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactType.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,10 +28,10 @@
 
 	/**
 	* Gets an ArtifactType object from the artifact type id
-	* 
+	*
 	* @param artType_id	the ArtifactType id
 	* @param res	the DB handle if passed in (optional)
-	* @return	the ArtifactType object	
+	* @return	the ArtifactType object
 	*/
 	function &artifactType_get_object($artType_id,$res=false) {
 		global $ARTIFACTTYPE_OBJ;
@@ -51,7 +51,7 @@
 			}
 		}
 		return $ARTIFACTTYPE_OBJ["_".$artType_id."_"];
-	}	
+	}
 
 function artifacttype_get_groupid ($artifact_type_id) {
 	global $ARTIFACTTYPE_OBJ;
@@ -90,7 +90,7 @@
 	 * @var		array	extra_field
 	 */
 	var $extra_field;
-	
+
 	/**
 	 * Technicians db resource ID.
 	 *
@@ -204,7 +204,7 @@
 			$this->setError(_('ArtifactType: Name, Description, Due Period, and Status Timeout are required'));
 			return false;
 		}
-		
+
 		if ($email_address) {
 			$invalid_emails = validate_emails($email_address);
 			if (count($invalid_emails) > 0) {
@@ -219,9 +219,9 @@
 		$email_all = ((!$email_all) ? 0 : $email_all);
 
 		db_begin();
-		
-		$res = db_query_params ('INSERT INTO 
-			artifact_group_list 
+
+		$res = db_query_params ('INSERT INTO
+			artifact_group_list
 			(group_id,
 			name,
 			description,
@@ -233,8 +233,8 @@
 			status_timeout,
 			submit_instructions,
 			browse_instructions,
-			datatype) 
-			VALUES 
+			datatype)
+			VALUES
 			($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12)',
 					array ($this->Group->getID(),
 					       htmlspecialchars($name),
@@ -250,7 +250,7 @@
 					       $datatype)) ;
 
 		$id = db_insertid($res,'artifact_group_list','group_artifact_id');
-		
+
 		if (!$res || !$id) {
 			$this->setError('ArtifactType: '.db_error());
 			db_rollback();
@@ -385,7 +385,7 @@
 	function getName() {
 		return $this->data_array['name'];
 	}
-	
+
 	/**
 	 * getFormattedName - formatted name of this ArtifactType
 	 *
@@ -396,7 +396,7 @@
 		$name = strtolower($name);
 		return $name;
 	}
-	
+
 	/**
 	 * getUnixName - returns the name used by email gateway
 	 *
@@ -405,7 +405,7 @@
 	function getUnixName() {
 		return strtolower($this->Group->getUnixName()).'-'.$this->getFormattedName();
 	}
-	
+
 	/**
 	 * getReturnEmailAddress() - return the return email address for notification emails
 	 *
@@ -512,7 +512,7 @@
 				}
 				$status_id=db_result($res,0,'status_id');
 			}
-			
+
 			if ($status_id < 1 || $status_id > 4) {
 				echo "INVALID STATUS REMAP: $status_id FROM SELECTED ELEMENT: $element_id";
 				return false;
@@ -577,7 +577,7 @@
 		if (!session_loggedin()) {
 			return false;
 		}
-		$result = db_query_params ('SELECT count(*) AS count FROM artifact_type_monitor 
+		$result = db_query_params ('SELECT count(*) AS count FROM artifact_type_monitor
 			WHERE user_id=$1 AND group_artifact_id=$2',
 					   array (user_getid(),
 						  $this->getID())) ;
@@ -608,7 +608,7 @@
 			$this->extra_fields["$filter"] = array();
 			if (count($types)) {
 				$res = db_query_params ('SELECT *
-				FROM artifact_extra_field_list 
+				FROM artifact_extra_field_list
 				WHERE group_artifact_id=$1
                                 AND field_type = ANY ($2)
 				ORDER BY field_type ASC',
@@ -616,7 +616,7 @@
 							       db_int_array_to_any_clause ($types))) ;
 			} else {
 				$res = db_query_params ('SELECT *
-				FROM artifact_extra_field_list 
+				FROM artifact_extra_field_list
 				WHERE group_artifact_id=$1
 				ORDER BY field_type ASC',
 							array ($this->getID())) ;
@@ -625,7 +625,7 @@
 				$this->extra_fields["$filter"][$arr['extra_field_id']] = $arr;
 			}
 		}
-			
+
 		return $this->extra_fields["$filter"];
 	}
 
@@ -688,7 +688,7 @@
 	}
 
 	/**
-	 *	getExtraFieldName - Get a box name using the box ID 
+	 *	getExtraFieldName - Get a box name using the box ID
 	 *
 	 *	@param  int 	id of an extra field.
 	 *	@return string	name of extra field.
@@ -699,8 +699,8 @@
 	}
 
 	/**
-	 *	getExtraFieldElements - List of possible admin configured 
-	 *	extra field elements. This function is used to 
+	 *	getExtraFieldElements - List of possible admin configured
+	 *	extra field elements. This function is used to
 	 *	present the boxes and choices on the main Add/Update page.
 	 *
 	 *	@param	int	id of the extra field
@@ -726,7 +726,7 @@
 //				return;
 //			}
 		}
-				
+
 		return $this->extra_field[$id];
 	}
 
@@ -811,13 +811,13 @@
 		}
 		db_begin();
 		db_query_params ('DELETE FROM artifact_extra_field_data
-			WHERE EXISTS (SELECT artifact_id FROM artifact 
+			WHERE EXISTS (SELECT artifact_id FROM artifact
 			WHERE group_artifact_id=$1
 			AND artifact.artifact_id=artifact_extra_field_data.artifact_id)',
 				 array ($this->getID())) ;
 //echo '0.1'.db_error();
 		db_query_params ('DELETE FROM artifact_extra_field_elements
-			WHERE EXISTS (SELECT extra_field_id FROM artifact_extra_field_list 
+			WHERE EXISTS (SELECT extra_field_id FROM artifact_extra_field_list
 			WHERE group_artifact_id=$1
 			AND artifact_extra_field_list.extra_field_id = artifact_extra_field_elements.extra_field_id)',
 				 array ($this->getID())) ;
@@ -826,7 +826,7 @@
 			WHERE group_artifact_id=$1',
 			array ($this->getID())) ;
 //echo '0.3'.db_error();
-		db_query_params ('DELETE FROM artifact_canned_responses 
+		db_query_params ('DELETE FROM artifact_canned_responses
 			WHERE group_artifact_id=$1',
 				 array ($this->getID())) ;
 //echo '1'.db_error();
@@ -835,25 +835,25 @@
 				 array ($this->getID())) ;
 //echo '5'.db_error();
 		db_query_params ('DELETE FROM artifact_file
-			WHERE EXISTS (SELECT artifact_id FROM artifact 
+			WHERE EXISTS (SELECT artifact_id FROM artifact
 			WHERE group_artifact_id=$1
 			AND artifact.artifact_id=artifact_file.artifact_id)',
 				 array ($this->getID())) ;
 //echo '6'.db_error();
 		db_query_params ('DELETE FROM artifact_message
-			WHERE EXISTS (SELECT artifact_id FROM artifact 
+			WHERE EXISTS (SELECT artifact_id FROM artifact
 			WHERE group_artifact_id=$1
 			AND artifact.artifact_id=artifact_message.artifact_id)',
 				 array ($this->getID())) ;
 //echo '7'.db_error();
 		db_query_params ('DELETE FROM artifact_history
-			WHERE EXISTS (SELECT artifact_id FROM artifact 
+			WHERE EXISTS (SELECT artifact_id FROM artifact
 			WHERE group_artifact_id=$1
 			AND artifact.artifact_id=artifact_history.artifact_id)',
 				 array ($this->getID())) ;
 //echo '8'.db_error();
 		db_query_params ('DELETE FROM artifact_monitor
-			WHERE EXISTS (SELECT artifact_id FROM artifact 
+			WHERE EXISTS (SELECT artifact_id FROM artifact
 			WHERE group_artifact_id=$1
 			AND artifact.artifact_id=artifact_monitor.artifact_id)',
 				 array ($this->getID())) ;
@@ -866,7 +866,7 @@
 			WHERE group_artifact_id=$1',
 				 array ($this->getID())) ;
 //echo '11'.db_error();
-		
+
 		db_commit();
 
 		$this->Group->normalizeAllRoles () ;
@@ -882,7 +882,7 @@
 	function getCannedResponses() {
 		if (!isset($this->cannedresponses_res)) {
 			$this->cannedresponses_res = db_query_params ('SELECT id,title
-				FROM artifact_canned_responses 
+				FROM artifact_canned_responses
 				WHERE group_artifact_id=$1',
 								      array ($this->getID()));
 		}
@@ -892,7 +892,7 @@
 	/**
 	 *	getStatuses - returns a result set of statuses.
 	 *
-	 *	These statuses are either the default open/closed or any number of 
+	 *	These statuses are either the default open/closed or any number of
 	 *	custom statuses that are stored in the extra fields. On insert/update
 	 *	to an artifact the status_id is remapped from the extra_field_element_id to
 	 *	the standard open/closed id.
@@ -949,12 +949,12 @@
 			$name=$this->getName();
 			$description=$this->getDescription();
 		}
-		
+
 		if (!$name || !$description || !$due_period || !$status_timeout) {
 			$this->setError(_('ArtifactType: Name, Description, Due Period, and Status Timeout are required'));
 			return false;
 		}
-		
+
 		$result = db_query_params('SELECT count(*) AS count FROM artifact_group_list WHERE group_id=$1 AND name=$2 AND group_artifact_id!=$3',
 								  array ($this->Group->getID(), $name, $this->getID()));
 		if (! $result) {
@@ -965,7 +965,7 @@
 			$this->setError(_('Tracker name already used'));
 			return false;
 		}
-		
+
 		if ($email_address) {
 			$invalid_emails = validate_emails($email_address);
 			if (count($invalid_emails) > 0) {
@@ -974,10 +974,10 @@
 			}
 		}
 
-		$email_all = ((!$email_all) ? 0 : $email_all); 
-		$use_resolution = ((!$use_resolution) ? 0 : $use_resolution); 
+		$email_all = ((!$email_all) ? 0 : $email_all);
+		$use_resolution = ((!$use_resolution) ? 0 : $use_resolution);
 
-		$res = db_query_params  ('UPDATE artifact_group_list SET 
+		$res = db_query_params  ('UPDATE artifact_group_list SET
 			name=$1,
 			description=$2,
 			email_all_updates=$3,
@@ -1015,7 +1015,7 @@
 	 */
 	function getBrowseList() {
 		$list = $this->data_array['browse_list'];
-		
+
 		// remove status_id in the browse list if a custom status exists
 		if (count($this->getExtraFields(array(ARTIFACT_EXTRAFIELDTYPE_STATUS))) > 0) {
       $arr = explode(',', $list);
@@ -1035,7 +1035,7 @@
 	 *	@return	boolean	success.
 	 */
 	function setBrowseList($list) {
-		$res=db_query_params ('UPDATE artifact_group_list 
+		$res=db_query_params ('UPDATE artifact_group_list
 		    SET browse_list=$1
 			WHERE group_artifact_id=$2',
 			array($list,

Modified: trunk/src/common/tracker/ArtifactTypeFactory.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactTypeFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactTypeFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -127,7 +127,7 @@
 	 * getPublicFlag - a utility method to load up the current user's permissions
  	 *
 	 * @return 	string 	The public_flag field to plug into a SQL string
-	 */	
+	 */
 	function &getPublicFlag() {
 		return $public_flag;
 	}

Modified: trunk/src/common/tracker/ArtifactTypes.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactTypes.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactTypes.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,7 +28,7 @@
 
 class ArtifactTypes extends Error {
 
-	/** 
+	/**
 	 * The artifact type object.
 	 *
 	 * @var		object	$ArtifactType.
@@ -70,7 +70,7 @@
 	function createTrackers() {
 
 		// first, check if trackers already exist
-		$res = db_query_params ('SELECT * FROM artifact_group_list 
+		$res = db_query_params ('SELECT * FROM artifact_group_list
 			WHERE group_id=$1 AND datatype > 0',
 					array ($this->Group->getID()));
 		if (db_numrows($res) > 0) {

Modified: trunk/src/common/tracker/ArtifactWorkflow.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactWorkflow.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactWorkflow.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,41 +1,41 @@
 <?php
 /**
  * The ArtifactWorkflow class manages workflow for trackers.
- * 
+ *
  * The workflow is attached to custom status field only.
- * 
+ *
  * Associated tables are:
  * - artifact_workflow_event  : to track allowed events.
  * - artifact_workflow_roles  : to track roles allowed to perform an event.
  * - artifact_workflow_notify : to track notification associated to an event (not implemented).
- * 
+ *
  * An event is a transition from one value to another.
- * 
+ *
  * NOTE: Code should be improved to manage any kind of custom fields not only of type
  * 'Status' but maybe also for the 'select' also.
- * 
+ *
  * 2008 : Alain Peyrat <alain.peyrat at alcatel-lucent.com>
- * 
+ *
  * NOTES:
  * @todo: the getAllowedRoles should be replaced by getRealAllowedRoles code. (to be tested).
  * @todo: Some code could use a db direct to array func instead of the while.
- * 
+ *
  */
 require_once $gfcommon.'include/Error.class.php';
 
 class ArtifactWorkflow extends Error {
-	
+
 	var $ath;
 	var $artifact_id;
 	var $field_id;
-	
+
 	function ArtifactWorkflow($artifact, $field_id) {
 		$this->ath = $artifact;
 		$this->artifact_id = (int)$artifact->getID();
 		$this->field_id = (int)$field_id;
 		return true;
 	}
-	
+
 	// Check if the following event is allowed or not.
 	// return true is allowed, false if not.
 	function checkEvent($from, $to) {
@@ -43,7 +43,7 @@
 			return true;
 
 
-		$res = db_query_params ('SELECT event_id FROM artifact_workflow_event 
+		$res = db_query_params ('SELECT event_id FROM artifact_workflow_event
 				WHERE group_artifact_id=$1
 				AND field_id=$2
 				AND from_value_id=$3
@@ -55,7 +55,7 @@
 		$event_id = db_result($res, 0, 'event_id');
 		if ($event_id) {
 			// No role based checks for the initial transition.
-			if ($from == 100) 
+			if ($from == 100)
 				return true;
 
 			// There is a transition, now check if current role is allowed.
@@ -67,9 +67,9 @@
 					$rids[] = $role->getID() ;
 				}
 			}
-			
-			$res = db_query_params ('SELECT event_id 
-					FROM artifact_workflow_roles 
+
+			$res = db_query_params ('SELECT event_id
+					FROM artifact_workflow_roles
 					WHERE group_id=$1
 					AND event_id=$2
 					AND role_id=ANY($3)',
@@ -80,11 +80,11 @@
 		}
 		return false;
 	}
-	
+
 	function getNotifyFromWorkFlow() {
-		
+
 	}
-	
+
 	/*
 	 * When a new element is created, add all the new events in the workflow.
 	 */
@@ -96,11 +96,11 @@
 				$this->_addEvent($element_id, $e['element_id']);
 			}
 		}
-		
+
 		// Allow the new element for the Submit form (Initial values).
 		$this->_addEvent('100', $element_id);
 	}
-	
+
 	/*
 	 * When a new element is removed, remove all the events in the workflow.
 	 */
@@ -112,7 +112,7 @@
 				$this->_removeEvent($element_id, $e['element_id']);
 			}
 		}
-		
+
 		// Allow the new element for the Submit form (Initial values).
 		$this->_removeEvent('100', $element_id);
 	}
@@ -120,7 +120,7 @@
 	// Returns all the possible following nodes (no roles involved).
 	function getNextNodes($from) {
 
-		$res = db_query_params ('SELECT to_value_id FROM artifact_workflow_event 
+		$res = db_query_params ('SELECT to_value_id FROM artifact_workflow_event
 				WHERE group_artifact_id=$1
 				AND field_id=$2
 				AND from_value_id=$3',
@@ -132,10 +132,10 @@
 			$values[] = $arr['to_value_id'];
 		}
 		return $values;
-		
+
 	}
 
-	
+
 	function saveNextNodes($from, $nodes) {
 
 		// Get All possible nodes.
@@ -158,22 +158,22 @@
 		}
 		return true;
 	}
-	
+
 	function getAllowedRoles($from, $to) {
 		$values = $this->_getRealAllowedRoles($from, $to);
-				
+
 		// If no values, then no roles defined, all roles are allowed.
 		if (empty($values)) {
 			$roles = $this->ath->Group->getRoles() ;
 			sortRoleList($roles, $this->ath->Group) ;
 			foreach ($roles as $r) {
 				$values[] = $r->getID() ;
-			}			
+			}
 		}
 		return $values;
 	}
 
-	
+
 	function saveAllowedRoles($from, $to, $roles) {
 
 		$event_id = $this->_getEventId($from, $to);
@@ -196,10 +196,10 @@
 		}
 		return true;
 	}
-	
+
 	function _getEventId($from, $to) {
 
-		$res = db_query_params ('SELECT event_id FROM artifact_workflow_event 
+		$res = db_query_params ('SELECT event_id FROM artifact_workflow_event
 				WHERE group_artifact_id=$1
 				AND field_id=$2
 				AND from_value_id=$3
@@ -213,10 +213,10 @@
 			return false;
 		}
 		return db_result($res, 0, 'event_id');
-		
+
 	}
 
-	
+
 	function _addEvent($from, $to) {
 
 		$res = db_query_params ('INSERT INTO artifact_workflow_event
@@ -230,7 +230,7 @@
 			$this->setError('Unable to add Event($from, $to): '.db_error());
 			return false;
 		}
-		
+
 		$event_id = $this->_getEventId($from, $to);
 		if ($event_id) {
 			// By default, all roles are allowed on a new event.
@@ -242,11 +242,11 @@
 		return true;
 	}
 
-	
+
 	function _removeEvent($from, $to) {
 		$event_id = $this->_getEventId($from, $to);
-		
 
+
 		$res = db_query_params ('DELETE FROM artifact_workflow_event
 				WHERE group_artifact_id=$1
 				AND field_id=$2
@@ -260,7 +260,7 @@
 			$this->setError('Unable to remove Event($from, $to): '.db_error());
 			return false;
 		}
-		
+
 		return true;
 	}
 
@@ -296,9 +296,9 @@
 			return false;
 		}
 		return true;
-		
+
 	}
-	
+
 	function _removeRole($event_id, $role_id) {
 
 		$res = db_query_params ('DELETE FROM artifact_workflow_roles
@@ -310,9 +310,9 @@
 			return false;
 		}
 		return true;
-		
+
 	}
-	
+
 }
 
 /*
@@ -321,10 +321,10 @@
  */
 function workflow_add_new_role ($role_id, $group) {
 
-	$res = db_query_params ('INSERT INTO artifact_workflow_roles 
-			SELECT event_id, $1 as role_id 
+	$res = db_query_params ('INSERT INTO artifact_workflow_roles
+			SELECT event_id, $1 as role_id
 					FROM artifact_workflow_event, artifact_group_list
-					WHERE artifact_workflow_event.group_artifact_id=artifact_group_list.group_artifact_id 
+					WHERE artifact_workflow_event.group_artifact_id=artifact_group_list.group_artifact_id
 					AND artifact_group_list.group_id=$2',
 			array($role_id,
 				$group->getID()));

Modified: trunk/src/common/tracker/Artifacts.class.php
===================================================================
--- trunk/src/common/tracker/Artifacts.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/Artifacts.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,14 +39,14 @@
 	 *
 	 * @var		object	$ArtifactType.
 	 */
-	var $ArtifactType; 
+	var $ArtifactType;
 
 	/**
 	 * Array of Artifact objects.
 	 *
 	 * @var		array	$artifacts_array.
 	 */
-	var $artifacts_array; 
+	var $artifacts_array;
 
 	/**
 	 *  Artifacts - constructor.
@@ -58,7 +58,7 @@
 	 *  @return	boolean	success.
 	 */
 	function Artifacts(&$ArtifactType) {
-		$this->Error(); 
+		$this->Error();
 
 		$this->ArtifactType =& $ArtifactType;
 

Modified: trunk/src/common/tracker/ArtifactsForUser.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactsForUser.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/tracker/ArtifactsForUser.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,13 +39,13 @@
 	* @param	user	the User object for which to collect artifacts
 	*/
 	function ArtifactsForUser(&$user) {
-		$this->User =& $user;	
+		$this->User =& $user;
 		return true;
 	}
 
 	/**
 	*	getArtifactsFromSQL - Gets an array of Artifacts
-	*	
+	*
 	*	@param	sql	The sql that returns artifact_id
 	*	@return	Artifact[]	The array of Artifacts
 	*/
@@ -76,7 +76,7 @@
 	function &getAssignedArtifactsByGroup() {
 		return $this->getArtifactsFromSQLwithParams('SELECT * FROM artifact_vw av WHERE av.assigned_to=$1 AND av.status_id=1 ORDER BY av.group_artifact_id, av.artifact_id DESC',
 							    array($this->User->getID())) ;
-								  
+
 	}
 
 	/**
@@ -99,12 +99,12 @@
 
 		$result=db_query_params ('SELECT groups.group_name,groups.group_id,
 artifact_group_list.group_artifact_id,
-artifact_group_list.name 
-FROM groups,artifact_group_list,artifact_type_monitor 
-WHERE groups.group_id=artifact_group_list.group_id 
-AND groups.status =$1 
-AND artifact_group_list.group_artifact_id=artifact_type_monitor.group_artifact_id 
-AND artifact_type_monitor.user_id=$2 
+artifact_group_list.name
+FROM groups,artifact_group_list,artifact_type_monitor
+WHERE groups.group_id=artifact_group_list.group_id
+AND groups.status =$1
+AND artifact_group_list.group_artifact_id=artifact_type_monitor.group_artifact_id
+AND artifact_type_monitor.user_id=$2
 ORDER BY group_name DESC',
 					 array('A',
 					       $this->User->getID()));

Modified: trunk/src/common/widget/Widget.class.php
===================================================================
--- trunk/src/common/widget/Widget.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -146,9 +146,9 @@
 	}
 	/**
 	 * cloneContent
-	 * 
+	 *
 	 * Take the content of a widget, clone it and return the id of the new content
-	 * 
+	 *
 	 * @param $id the id of the content to clone
 	 * @param $owner_id the owner of the widget of the new widget
 	 * @param $owner_type the type of the owner of the new widget (see WidgetLayoutManager)
@@ -205,7 +205,7 @@
 				break;
 				case 'mylatestsvncommits':
 				$o = new Widget_MyLatestSvnCommits();
-				break; 
+				break;
 				case 'mybugs':
 				$o = new Widget_MyBugs();
 				break;
@@ -276,17 +276,17 @@
 	static function getCodendiWidgets($owner_type) {
 		switch ($owner_type) {
 			case WidgetLayoutManager::OWNER_TYPE_USER:
-				$widgets = array('myadmin', 'mysurveys', 'myprojects', 'mybookmarks', 
+				$widgets = array('myadmin', 'mysurveys', 'myprojects', 'mybookmarks',
 						'mymonitoredforums', 'mymonitoredfp', 'myartifacts', 'mybugs', //'mywikipage' //not yet
 						'mytasks', 'mysrs', 'mylatestsvncommits', 'mytwitterfollow',
 						'mysystemevent', 'myrss', 'mymonitoreddocuments', 'myprojectslastdocuments',
 						);
 				break;
 			case WidgetLayoutManager::OWNER_TYPE_GROUP:
-				$widgets = array('projectdescription', 'projectmembers', 'projectinfo', 
+				$widgets = array('projectdescription', 'projectmembers', 'projectinfo',
 						'projectlatestfilereleases', 'projectlatestdocuments', 'projectlatestnews', 'projectpublicareas', //'projectwikipage' //not yet
-						'projectlatestsvncommits', 'projectlatestcvscommits', 'projecttwitterfollow', 
-						'projectsvnstats', 'projectrss', 
+						'projectlatestsvncommits', 'projectlatestcvscommits', 'projecttwitterfollow',
+						'projectsvnstats', 'projectrss',
 						);
 				break;
 			case WidgetLayoutManager::OWNER_TYPE_HOME:

Modified: trunk/src/common/widget/WidgetLayoutManager.class.php
===================================================================
--- trunk/src/common/widget/WidgetLayoutManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/WidgetLayoutManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 /**
  * WidgetLayoutManager
- * 
+ *
  * Manage layouts for users, groups and homepage
  */
 class WidgetLayoutManager {
@@ -199,7 +199,7 @@
 						$w->setOwner($template_id, self::OWNER_TYPE_GROUP);
 						if ($w->canBeUsedByProject($project)) {
 							$content_id = $w->cloneContent($w->content_id, $group_id, self::OWNER_TYPE_GROUP);
-							$sql = "INSERT INTO layouts_contents(owner_id, owner_type, content_id, layout_id, column_id, name, rank, is_minimized, is_removed, display_preferences) 
+							$sql = "INSERT INTO layouts_contents(owner_id, owner_type, content_id, layout_id, column_id, name, rank, is_minimized, is_removed, display_preferences)
 								VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10);
 							";
 							db_query_params($sql, array($group_id , self::OWNER_TYPE_GROUP , $content_id ,  $data['layout_id'] ,  $data['column_id'] ,  $data['name'] ,  $data['rank'] ,  $data['is_minimized'] ,  $data['is_removed'] ,  $data['display_preferences'] ));
@@ -221,11 +221,11 @@
 	 */
 	function displayAvailableWidgets($owner_id, $owner_type, $layout_id) {
 		$used_widgets = array();
-		$sql = "SELECT * 
-			FROM layouts_contents 
+		$sql = "SELECT *
+			FROM layouts_contents
 			WHERE owner_type = $1
-			AND owner_id = $2 
-			AND layout_id = $3 
+			AND owner_id = $2
+			AND layout_id = $3
 			AND content_id = 0 AND column_id <> 0";
 		$res = db_query_params($sql,array($owner_type,$owner_id,$layout_id));
 		while($data = db_fetch_array($res)) {
@@ -330,10 +330,10 @@
 	}
 
 	function updateLayout($owner_id, $owner_type, $layout, $custom_layout) {
-		$sql = "SELECT l.* 
-			FROM layouts AS l INNER JOIN owner_layouts AS o ON(l.id = o.layout_id) 
+		$sql = "SELECT l.*
+			FROM layouts AS l INNER JOIN owner_layouts AS o ON(l.id = o.layout_id)
 			WHERE o.owner_type = $1
-			AND o.owner_id = $2 
+			AND o.owner_id = $2
 			AND o.is_default = 1
 			";
 		$req = db_query_params($sql,array($owner_type,$owner_id));
@@ -359,19 +359,19 @@
 					}
 					//If the structure contains at least one column, create a new layout
 					if (count($rows)) {
-						$sql = "INSERT INTO layouts(name, description, scope) 
+						$sql = "INSERT INTO layouts(name, description, scope)
 							VALUES ('custom', '', 'P')";
 						if ($res = db_query_params($sql,array())) {
 							if ($new_layout_id = db_insertid($res,'layouts', 'id')) {
 								//Create rows & columns
 								$rank = 0;
 								foreach($rows as $cols) {
-									$sql = "INSERT INTO layouts_rows(layout_id, rank) 
+									$sql = "INSERT INTO layouts_rows(layout_id, rank)
 										VALUES ($1,$2)";
 									if ($res = db_query_params($sql,array($new_layout_id,$rank++))) {
 										if ($row_id = db_insertid($res,'layouts_rows', 'id')) {
 												foreach($cols as $width) {
-													$sql = "INSERT INTO layouts_rows_columns(layout_row_id, width) 
+													$sql = "INSERT INTO layouts_rows_columns(layout_row_id, width)
 														VALUES ($1,$2)";
 													db_query_params($sql,array($row_id,$width));
 												}
@@ -399,19 +399,19 @@
 						if (list(,$new_col) = each($new['columns'])) {
 							$last_new_col_id = $new_col['id'];
 						}
-						$sql = "UPDATE layouts_contents 
+						$sql = "UPDATE layouts_contents
 							SET layout_id  = $1
-							, column_id  =$2 
+							, column_id  =$2
 							WHERE owner_type =$3
 							AND owner_id   =$4
 							AND layout_id  =$5
 							AND column_id  =$6;";
 						db_query_params($sql,array($new_layout_id,$last_new_col_id,$owner_type,$owner_id,$old_layout_id,$old_col['id']));
 					}
-					$sql = "UPDATE owner_layouts 
+					$sql = "UPDATE owner_layouts
 						SET layout_id  = $1
-						WHERE owner_type = $2 
-						AND owner_id   = $3 
+						WHERE owner_type = $2
+						AND owner_id   = $3
 						AND layout_id  = $4";
 					db_query_params($sql,array($new_layout_id,$owner_type,$owner_id,$old_layout_id));
 
@@ -419,14 +419,14 @@
 					if ($old_scope != 'S') {
 						$structure = $this->_retrieveStructureOfLayout($old_layout_id);
 						foreach($structure['rows'] as $row) {
-							$sql = "DELETE FROM layouts_rows 
+							$sql = "DELETE FROM layouts_rows
 								WHERE id  = $1";
 							db_query_params($sql,array($row['id']));
-							$sql = "DELETE FROM layouts_rows_columns 
+							$sql = "DELETE FROM layouts_rows_columns
 								WHERE layout_row_id  = $1";
 							db_query_params($sql,array($row['id']));
 						}
-						$sql = "DELETE FROM layouts 
+						$sql = "DELETE FROM layouts
 							WHERE id  = $1";
 						db_query_params($sql,array($old_layout_id));
 					}
@@ -455,9 +455,9 @@
 	/**
 	 * _displayWidgetsSelectionForm
 	 *
-	 * @param  title  
-	 * @param  widgets  
-	 * @param  used_widgets  
+	 * @param  title
+	 * @param  widgets
+	 * @param  used_widgets
 	 */
 	function _displayWidgetsSelectionForm($title, $widgets, $used_widgets) {
 		$hp = Codendi_HTMLPurifier::instance();
@@ -568,7 +568,7 @@
 					ON (c.layout_row_id = r.id)
 					WHERE r.layout_id = $1) AS col
 			ON (u.column_id = col.id)
-			WHERE u.owner_type = $2 
+			WHERE u.owner_type = $2
 			AND u.owner_id = $3
 			AND u.layout_id = $4
 			AND u.column_id <> 0
@@ -578,7 +578,7 @@
 		$column_id = db_result($res, 0, 'id');
 		if (!$column_id) {
 			$sql = "SELECT r.rank AS rank, c.id as id
-				FROM layouts_rows AS r 
+				FROM layouts_rows AS r
 				INNER JOIN layouts_rows_columns AS c
 				ON (c.layout_row_id = r.id)
 				WHERE r.layout_id = $1
@@ -596,7 +596,7 @@
 		}
 
 		//See if it already exists but not used
-		$sql = "SELECT column_id FROM layouts_contents 
+		$sql = "SELECT column_id FROM layouts_contents
 			WHERE owner_type =$1
 			AND owner_id = $2
 			AND layout_id = $3
@@ -621,11 +621,11 @@
 			echo db_error();
 		} else {
 			//Insert
-			$sql = "INSERT INTO layouts_contents(owner_type, owner_id, layout_id, column_id, name, content_id, rank) 
-				SELECT R1.owner_type, R1.owner_id, R1.layout_id, R1.column_id, $1, $2, coalesce(R2.rank, 1) - 1 
-				FROM ( SELECT $3::character varying(1) AS owner_type, $4::integer AS owner_id, $5::integer AS layout_id, $6::integer AS column_id ) AS R1 
-				LEFT JOIN layouts_contents AS R2 USING ( owner_type, owner_id, layout_id, column_id ) 
-				ORDER BY rank ASC 
+			$sql = "INSERT INTO layouts_contents(owner_type, owner_id, layout_id, column_id, name, content_id, rank)
+				SELECT R1.owner_type, R1.owner_id, R1.layout_id, R1.column_id, $1, $2, coalesce(R2.rank, 1) - 1
+				FROM ( SELECT $3::character varying(1) AS owner_type, $4::integer AS owner_id, $5::integer AS layout_id, $6::integer AS column_id ) AS R1
+				LEFT JOIN layouts_contents AS R2 USING ( owner_type, owner_id, layout_id, column_id )
+				ORDER BY rank ASC
 				LIMIT 1";
 			$myfile=fopen('/tmp/debug','a');
 			$params = array($name,$content_id,$owner_type,$owner_id,$layout_id,$column_id);
@@ -776,7 +776,7 @@
 									$_and .= ')';
 									$sql = "UPDATE layouts_contents
 									SET column_id = 0
-									WHERE owner_type = $1 
+									WHERE owner_type = $1
 									AND owner_id = $2
 									AND column_id = $3".
 									$_and;
@@ -799,8 +799,8 @@
 												$_and .= ')';
 												//old and new column must be part of the same layout
 												$sql = 'UPDATE layouts_contents
-												SET column_id = $1 
-												WHERE owner_type = $2 
+												SET column_id = $1
+												WHERE owner_type = $2
 												AND owner_id = $3' .
 												$_and ."
 												AND layout_id = $4";

Modified: trunk/src/common/widget/WidgetLayout_Row.class.php
===================================================================
--- trunk/src/common/widget/WidgetLayout_Row.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/WidgetLayout_Row.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
     var $rank;
     var $columns;
     var $layout;
-    
+
     function WidgetLayout_Row($id, $rank) {
         $this->id      = $id;
         $this->rank    = $rank;

Modified: trunk/src/common/widget/Widget_MyAdmin.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyAdmin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyAdmin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
 
 /**
 * Widget_MyAdmin
-* 
+*
 * Personal Admin
 */
 class Widget_MyAdmin extends Widget {
@@ -43,17 +43,17 @@
 		$res = db_query_params("SELECT count(*) AS count FROM users WHERE status='V' OR status='W'",array());
 		$row = db_fetch_array($res);
 		$validated_users = $row['count'];
-		
+
 		$html_my_admin .= $this->_get_admin_row(
-			$i++, 
+			$i++,
 			vsprintf(_('Users in <a href="%s"><b>P</b> (pending) Status</a>'), array("/admin/userlist.php?status=P")),
 			$pending_users,
 			$this->_get_color($pending_users)
 			);
-		
+
 		if (isset($GLOBALS['sys_user_approval']) && $GLOBALS['sys_user_approval'] == 1) {
 			$html_my_admin .= $this->_get_admin_row(
-				$i++, 
+				$i++,
 				vsprintf(_('Validated users <a href="%s"><b>pending email activation</b></a>'), array("/admin/approve_pending_users.php?page=validated")),
 				$validated_users,
 				$this->_get_color($validated_users)
@@ -67,7 +67,7 @@
 		$pending_projects = $row['count'];
 
 		$html_my_admin .= $this->_get_admin_row(
-			$i++, 
+			$i++,
 			vsprintf(_('Groups in <a href="%s"><b>P</b> (pending) Status</a>'), array("/admin/approve-pending.php")),
 			$pending_projects,
 			$this->_get_color($pending_projects)
@@ -85,10 +85,10 @@
 			AND groups.status=$2
 			ORDER BY post_date',
 					  array ($old_date, 'A')) ;
-		$pending_news = db_numrows($res);		
-		
+		$pending_news = db_numrows($res);
+
 		$html_my_admin .= $this->_get_admin_row(
-			$i++, 
+			$i++,
 			'<a href="/news/admin">'. _("Site News Approval") .'</a>',
 			$pending_news,
 			$this->_get_color($pending_news)

Modified: trunk/src/common/widget/Widget_MyArtifacts.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyArtifacts.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyArtifacts.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,7 +28,7 @@
 
 /**
  * Widget_MyArtifacts
- * 
+ *
  * Artifact assigned to or submitted by this person
  */
 class Widget_MyArtifacts extends Widget {
@@ -167,7 +167,7 @@
 
 				//work on the tracker of the last round if there was one
 				if ($atid != $atid_old && $count_aids != 0) {
-					list($hide_now,$count_diff,$hide_url) = 
+					list($hide_now,$count_diff,$hide_url) =
 						my_hide_url('artifact',$atid_old,$hide_item_id,$count_aids,$hide_artifact);
 					$html_hdr =  '<tr class="boxitem"><td colspan="3">' .
 						$hide_url.'<a href="/tracker/?group_id='.$group_id_old.'&atid='.$atid_old.'">'.
@@ -181,7 +181,7 @@
 					$html = '';
 					$j++;
 
-				} 
+				}
 
 
 				if ($count_aids == 0) {

Modified: trunk/src/common/widget/Widget_MyBookmarks.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyBookmarks.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyBookmarks.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 
 /**
 * Widget_MyBookmarks
-* 
+*
 * Personal bookmarks
 */
 class Widget_MyBookmarks extends Widget {

Modified: trunk/src/common/widget/Widget_MyLatestSvnCommits.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyLatestSvnCommits.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyLatestSvnCommits.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -2,23 +2,23 @@
 
 /**
 * Widget_MyLatestSvnCommits
-* 
+*
 * Copyright (c) Xerox Corporation, Codendi 2001-2009.
 *
 * @author  marc.nazarian at xrce.xerox.com
 */
 class Widget_MyLatestSvnCommits extends Widget {
-    
+
     /**
-     * Default number of SVN commits to display (if user did not change/set preferences) 
+     * Default number of SVN commits to display (if user did not change/set preferences)
      */
     const NB_COMMITS_TO_DISPLAY = 5;
-    
+
     /**
-     * Number of SVN commits to display (user preferences) 
+     * Number of SVN commits to display (user preferences)
      */
     private $_nb_svn_commits;
-    
+
     public function __construct() {
         $this->Widget('mylatestsvncommits');
         $this->_nb_svn_commits = user_get_preference('my_latests_svn_commits_nb_display');
@@ -36,7 +36,7 @@
     public function _getLinkToMore($group_id, $commiter) {
         return '/svn/?func=browse&group_id='.$group_id.'&_commiter='.$commiter;
     }
-    
+
     public function getContent() {
         $html = '';
         $uh = new UserHelper();
@@ -49,10 +49,10 @@
             if ($project->usesSVN()) {
                 list($latest_revisions, $nb_revisions) = svn_get_revisions($project, 0, $this->_nb_svn_commits, '', $user->getUserName());
                 if ($nb_revisions > 0) {
-                    
+
                     list($hide_now,$count_diff,$hide_url) = my_hide_url('my_svn_group', $project_id, $request->get('hide_item_id'), count($project_ids), $request->get('hide_my_svn_group'));
                     $html .= $hide_url;
-                    
+
                     $html .= '<strong>' . $project->getPublicName() . '</strong>';
                     if (!$hide_now) {
                         $i = 0;
@@ -103,7 +103,7 @@
         }
         return true;
     }
-    
+
     function getCategory() {
         return 'scm';
     }

Modified: trunk/src/common/widget/Widget_MyMonitoredDocuments.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyMonitoredDocuments.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyMonitoredDocuments.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 /**
 * Widget_MyMonitoredDocuments
-* 
+*
 * Documents that are actively monitored
 */
 class Widget_MyMonitoredDocuments extends Widget {

Modified: trunk/src/common/widget/Widget_MyMonitoredForums.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyMonitoredForums.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyMonitoredForums.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 
 /**
 * Widget_MyMonitoredForums
-* 
+*
 * Forums that are actively monitored
 */
 class Widget_MyMonitoredForums extends Widget {
@@ -50,7 +50,7 @@
         }
         //$sql .= "GROUP BY groups.group_id ORDER BY groups.group_id ASC LIMIT 100";
         $sql .= "ORDER BY groups.group_id ASC LIMIT 100";
-    
+
         $result=db_query_params($sql,array(user_getid()));
         $rows=db_numrows($result);
         if (!$result || $rows < 1) {
@@ -60,7 +60,7 @@
             $html_my_monitored_forums .= '<table style="width:100%">';
             for ($j=0; $j<$rows; $j++) {
                 $group_id = db_result($result,$j,'group_id');
-        
+
                 $sql2="SELECT forum_group_list.group_forum_id,forum_group_list.forum_name ".
                     "FROM groups,forum_group_list,forum_monitored_forums ".
                     "WHERE groups.group_id=forum_group_list.group_id ".
@@ -68,7 +68,7 @@
                     "AND forum_group_list.is_public <> 9 ".
                     "AND forum_group_list.group_forum_id=forum_monitored_forums.forum_id ".
                     "AND forum_monitored_forums.user_id=$2 LIMIT 100";
-        
+
                 $result2 = db_query_params($sql2,array($group_id,user_getid()));
                 $rows2 = db_numrows($result2);
 

Modified: trunk/src/common/widget/Widget_MyMonitoredFp.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyMonitoredFp.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyMonitoredFp.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
 require_once('common/frs/FRSPackageFactory.class.php');
 /**
 * Widget_MyMonitoredFp
-* 
+*
 * Filemodules that are actively monitored
 */
 class Widget_MyMonitoredFp extends Widget {
@@ -33,7 +33,7 @@
         return _("Monitored File Packages");
     }
     function getContent() {
-        $frsrf = new FRSReleaseFactory();        
+        $frsrf = new FRSReleaseFactory();
         $html_my_monitored_fp = '';
         $sql="SELECT groups.group_name,groups.group_id ".
             "FROM groups,filemodule_monitor,frs_package ".
@@ -48,7 +48,7 @@
             $sql .= "AND groups.group_id IN (". implode(',', $projects) .") ";
         }
         $sql .= "GROUP BY group_id ORDER BY group_id ASC LIMIT 100";
-    
+
         $result=db_query_params($sql,array($frsrf->STATUS_DELETED,user_getid()));
         $rows=db_numrows($result);
         if (!$result || $rows < 1) {
@@ -58,7 +58,7 @@
             $request =& HTTPRequest::instance();
             for ($j=0; $j<$rows; $j++) {
                 $group_id = db_result($result,$j,'group_id');
-        
+
                 $sql2="SELECT frs_package.name,filemodule_monitor.filemodule_id ".
                     "FROM groups,filemodule_monitor,frs_package ".
                     "WHERE groups.group_id=frs_package.group_id ".
@@ -86,11 +86,11 @@
                 }
 
                 list($hide_now,$count_diff,$hide_url) = my_hide_url('frs',$group_id,$hide_item_id,$rows2,$hide_frs);
-        
+
                 $html_hdr = ($j ? '<tr class="boxitem"><td colspan="2">' : '').
                     $hide_url.'<a href="/project/?group_id='.$group_id.'">'.
                     db_result($result,$j,'group_name').'</a>    ';
-        
+
                 $html = '';
                 $count_new = max(0, $count_diff);
                 for ($i=0; $i<$rows2; $i++) {
@@ -106,7 +106,7 @@
                             'border="0" alt="'._("STOP MONITORING").'" /></a></td></tr>';
                     }
                 }
-                
+
                 $html_hdr .= my_item_count($rows2,$count_new).'</td></tr>';
                 $html_my_monitored_fp .= $html_hdr .$html;
             }
@@ -114,7 +114,7 @@
         }
         return $html_my_monitored_fp;
     }
-    
+
     function getCategory() {
         return 'frs';
     }

Modified: trunk/src/common/widget/Widget_MyProjects.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyProjects.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyProjects.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,7 +24,7 @@
 
 /**
 * Widget_MyProjects
-* 
+*
 * PROJECT LIST
 */
 class Widget_MyProjects extends Widget {
@@ -137,7 +137,7 @@
 			if (forge_check_perm ('project_admin', $pid)) {
 				$desc .= '<br />Admin: '. util_make_url('/project/admin/?group_id='.$pid);
 			}
-			
+
 			$rss->addItem(array(
 						'title'       => $title,
 						'description' => $desc,

Modified: trunk/src/common/widget/Widget_MyProjectsLastDocuments.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyProjectsLastDocuments.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyProjectsLastDocuments.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 /**
 * Widget_MyProjectsLastDocuments
-* 
+*
 * PROJECT LIST
 */
 class Widget_MyProjectsLastDocuments extends Widget {

Modified: trunk/src/common/widget/Widget_MyRss.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyRss.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyRss.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,14 +23,14 @@
 
 /**
 * Widget_MyRss
-* 
+*
 * Personal rss reader
 */
 class Widget_MyRss extends Widget_Rss {
     function Widget_MyRss() {
         $this->Widget_Rss('myrss', user_getid(), WidgetLayoutManager::OWNER_TYPE_USER);
     }
-    
+
     function getDescription() {
         return _("Allow you to include public rss (or atom) feeds into your personal page.");
     }

Modified: trunk/src/common/widget/Widget_MySurveys.class.php
===================================================================
--- trunk/src/common/widget/Widget_MySurveys.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MySurveys.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,11 +24,11 @@
 
 /**
  * Widget_MySurveys
- * 
+ *
  * DEVELOPER SURVEYS
- * 
+ *
  * This needs to be updated manually to display any given survey
- * Default behavior: get first survey from group #1 
+ * Default behavior: get first survey from group #1
  */
 class Widget_MySurveys extends Widget {
 	var $content;
@@ -50,7 +50,7 @@
 			}
 		}
 		$projects = $tmp ;
-		
+
 		$html_my_surveys = '';
 		if (count ($projects) < 1) {
 			$html_my_surveys .= '<div class="warning">'. _("There are no surveys in your projects.") ."</div>\n";

Modified: trunk/src/common/widget/Widget_MyTasks.class.php
===================================================================
--- trunk/src/common/widget/Widget_MyTasks.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_MyTasks.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,19 +24,19 @@
 
 /**
 * Widget_MyTasks
-* 
+*
 * Tasks assigned to me
 */
 class Widget_MyTasks extends Widget {
     var $content;
     var $can_be_displayed;
-    
+
     function Widget_MyTasks() {
         $this->Widget('mytasks');
         $this->content = '';
         $this->setOwner(user_getid(), WidgetLayoutManager::OWNER_TYPE_USER);
         $last_group=0;
-    
+
         $sql = 'SELECT groups.group_id, groups.group_name, project_group_list.group_project_id, project_group_list.project_name '.
             'FROM groups,project_group_list,project_task,project_assigned_to '.
             'WHERE project_task.project_task_id=project_assigned_to.project_task_id '.
@@ -44,18 +44,18 @@
             ' AND project_task.status_id=1 AND project_group_list.group_id=groups.group_id '.
             "AND project_group_list.is_public!='9' ".
           'AND project_group_list.group_project_id=project_task.group_project_id GROUP BY groups.group_id, groups.group_name, project_group_list.project_name, project_group_list.group_project_id';
-    
+
         $result=db_query_params($sql,array(user_getid()));
         $rows=db_numrows($result);
-    
+
         if ($result && $rows >= 1) {
             $request =& HTTPRequest::instance();
             $this->content .= '<table style="width:100%">';
             for ($j=0; $j<$rows; $j++) {
-    
+
                 $group_id = db_result($result,$j,'group_id');
                 $group_project_id = db_result($result,$j,'group_project_id');
-        
+
                 $sql2 = 'SELECT project_task.project_task_id, project_task.priority, project_task.summary,project_task.percent_complete '.
                     'FROM groups,project_group_list,project_task,project_assigned_to '.
                     'WHERE project_task.project_task_id=project_assigned_to.project_task_id '.
@@ -65,8 +65,8 @@
                     'AND project_group_list.group_project_id=project_task.group_project_id '.
                     "AND project_group_list.is_public!='9' ".
                    "AND project_group_list.group_project_id= $3 LIMIT 100";
-        
-        
+
+
                 $result2 = db_query_params($sql2,array(user_getid(),$group_id,$group_project_id));
                 $rows2 = db_numrows($result2);
 
@@ -87,7 +87,7 @@
                 }
 
                 list($hide_now,$count_diff,$hide_url) = my_hide_url('pm',$group_project_id,$hide_item_id,$rows2,$hide_pm);
-        
+
                 $html_hdr = ($j ? '<tr class="boxitem"><td colspan="3">' : '').
                     $hide_url.'<a href="/pm/task.php?group_id='.$group_id.
                     '&group_project_id='.$group_project_id.'">'.
@@ -96,9 +96,9 @@
                 $html = '';
                 $count_new = max(0, $count_diff);
                 for ($i=0; $i<$rows2; $i++) {
-                    
+
                     if (!$hide_now) {
-        
+
                     $html .= '
                     <tr class=priority"'.db_result($result2,$i,'priority').
                         '"><td class="small"><a href="/pm/task.php/?func=detailtask&project_task_id='.
@@ -106,10 +106,10 @@
                         $group_id.'&group_project_id='.$group_project_id.
                         '">'.stripslashes(db_result($result2,$i,'summary')).'</a></td>'.
                         '<td class="small">'.(db_result($result2,$i,'percent_complete')).'%</td></tr>';
-        
+
                     }
                 }
-        
+
                 $html_hdr .= my_item_count($rows2,$count_new).'</td></tr>';
                 $this->content .= $html_hdr.$html;
             }
@@ -136,7 +136,7 @@
 	    }
 	    return false ;
     }
-    
+
     function getDescription() {
         return _("List the tasks assigned to you.");
     }

Modified: trunk/src/common/widget/Widget_ProjectDescription.class.php
===================================================================
--- trunk/src/common/widget/Widget_ProjectDescription.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_ProjectDescription.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 
 /**
 * Widget_ProjectDescription
-* 
+*
 */
 class Widget_ProjectDescription extends Widget {
     public function __construct() {

Modified: trunk/src/common/widget/Widget_ProjectInfo.class.php
===================================================================
--- trunk/src/common/widget/Widget_ProjectInfo.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_ProjectInfo.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -61,7 +61,7 @@
 
 		// registration date
 		$project_start_date = $project->getStartDate();
-		print(_('Registered: ') . 
+		print(_('Registered: ') .
 				'<span property="doap:created" content="'.date('Y-m-d', $project_start_date).'">'.
 				date(_('Y-m-d H:i'), $project_start_date).
 				"</span>\n");
@@ -88,11 +88,11 @@
 		}
 
 		if(forge_get_config('use_people')) {
-			$jobs_res = db_query_params ('SELECT name 
-					FROM people_job,people_job_category 
-					WHERE people_job.category_id=people_job_category.category_id 
-					AND people_job.status_id=1 
-					AND group_id=$1 
+			$jobs_res = db_query_params ('SELECT name
+					FROM people_job,people_job_category
+					WHERE people_job.category_id=people_job_category.category_id
+					AND people_job.status_id=1
+					AND group_id=$1
 					GROUP BY name',
 					array ($group_id),
 					2);
@@ -108,7 +108,7 @@
 							db_result($jobs_res,0,"name"));
 					print "</p>\n";
 					//print '<div rel="fusionforge:has_job" typeof="fusionforge:Job" xmlns:fusionforge="http://fusionforge.org/fusionforge#">';
-					//print '<span rel="dc:title" content="'. db_result($jobs_res,0,"name").'" xmlns:dc="http://purl.org/dc/elements/1.1/">'; 
+					//print '<span rel="dc:title" content="'. db_result($jobs_res,0,"name").'" xmlns:dc="http://purl.org/dc/elements/1.1/">';
 					//print '</span>';
 					//echo '</div>';
 					//end of job description part

Modified: trunk/src/common/widget/Widget_ProjectLatestDocuments.class.php
===================================================================
--- trunk/src/common/widget/Widget_ProjectLatestDocuments.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_ProjectLatestDocuments.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 
 /**
 * Widget_ProjectLatestDocuments
-* 
+*
 */
 class Widget_ProjectLatestDocuments extends Widget {
 	var $content;

Modified: trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php
===================================================================
--- trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_ProjectLatestFileReleases.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
 
 /**
 * Widget_ProjectLatestFileReleases
-* 
+*
 */
 class Widget_ProjectLatestFileReleases extends Widget {
     var $content;
@@ -78,11 +78,11 @@
 			$public_required = 0 ;
 		}
 
-		$res_files = db_query_params ('SELECT frs_package.package_id,frs_package.name AS package_name,frs_release.name AS release_name,frs_release.release_id AS release_id,frs_release.release_date AS release_date 
-			FROM frs_package,frs_release 
-			WHERE frs_package.package_id=frs_release.package_id 
-			AND frs_package.group_id=$1 
-			AND frs_release.status_id=1 
+		$res_files = db_query_params ('SELECT frs_package.package_id,frs_package.name AS package_name,frs_release.name AS release_name,frs_release.release_id AS release_id,frs_release.release_date AS release_date
+			FROM frs_package,frs_release
+			WHERE frs_package.package_id=frs_release.package_id
+			AND frs_package.group_id=$1
+			AND frs_release.status_id=1
 			AND (frs_package.is_public=1 OR 1 != $2)
 			ORDER BY frs_package.package_id,frs_release.release_date DESC',
 			array ($group_id,
@@ -121,7 +121,7 @@
 						'</td>
 						<td class="align-center">';
 //echo '</div>';
-					
+
 					// -> notes
 					// accessibility: image is a link, so alt must be unique in page => construct a unique alt
 					$tmp_alt = $package_name . " - " . _('Release Notes');
@@ -130,7 +130,7 @@
 					echo util_make_link ($link, $link_content);
 					echo '</td>
 						<td class="align-center">';
-					
+
 					// -> monitor
 					$tmp_alt = $package_name . " - " . _('Monitor this package');
 					$link = '/frs/monitor.php?filemodule_id=' .  db_result($res_files,$f,'package_id') . '&group_id='.$group_id.'&start=1';
@@ -138,7 +138,7 @@
 					echo util_make_link ($link, $link_content);
 					echo '</td>
 						<td class="align-center">';
-					
+
 					// -> download
 					$tmp_alt = $package_name." ".$package_release." - ". _('Download');
 					$link_content = $HTML->getDownloadPic($tmp_alt, $tmp_alt);
@@ -147,13 +147,13 @@
 					echo util_make_link ($link, $link_content);
 					echo '</td>
 					</tr>';
-					
+
 				}
 			}
 		}
 		echo '</table>';
 		echo '<div class="underline-link">' . util_make_link ('/frs/?group_id='.$group_id, _('View All Project Files')) . '</div>';
-		
+
     }
     function isAvailable() {
         return isset($this->content['title']);

Modified: trunk/src/common/widget/Widget_ProjectRss.class.php
===================================================================
--- trunk/src/common/widget/Widget_ProjectRss.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_ProjectRss.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,9 +25,9 @@
 
 /**
 * Widget_TwitterFollow
-* 
+*
 * Allow to follow a twitter user
-* 
+*
 */
 class Widget_ProjectRss extends Widget_Rss {
     function Widget_ProjectRss() {

Modified: trunk/src/common/widget/Widget_Rss.class.php
===================================================================
--- trunk/src/common/widget/Widget_Rss.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/common/widget/Widget_Rss.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
 
 /**
  * Widget_Rss
- * 
+ *
  * Rss reader
  */
 /* abstract */ class Widget_Rss extends Widget {
@@ -101,7 +101,7 @@
 		return $prefs;
 	}
 	function cloneContent($id, $owner_id, $owner_type) {
-		$sql = "INSERT INTO widget_rss (owner_id, owner_type, title, url) 
+		$sql = "INSERT INTO widget_rss (owner_id, owner_type, title, url)
 			SELECT $1, $2, title, url
 			FROM widget_rss
 			WHERE owner_id = $3 AND owner_type = $4";

Modified: trunk/src/cronjobs/auth_unix.php
===================================================================
--- trunk/src/cronjobs/auth_unix.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/auth_unix.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -6,7 +6,7 @@
  *
  * Novaforge is a registered trade mark from Bull S.A.S
  * Copyright (C) 2007 Bull S.A.S.
- * 
+ *
  * http://novaforge.org/
  *
  * This file has been developed within the Novaforge(TM) project from Bull S.A.S

Modified: trunk/src/cronjobs/backup_site.php
===================================================================
--- trunk/src/cronjobs/backup_site.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/backup_site.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,7 +33,7 @@
 $datetime=date('Y-m-d'); //we will use this to concatenate it with the tar filename
 
 if(!(isset($sys_path_to_backup)) ||  (strcmp($sys_path_to_backup,"/") == 0)){
-//	cron_entry(23,'Variable $sys_path_to_backup was not set or it was equal to /.');	
+//	cron_entry(23,'Variable $sys_path_to_backup was not set or it was equal to /.');
 //	exit;
 	// Default value
 	$sys_path_to_backup = '/gforge-backups/';
@@ -53,7 +53,7 @@
 		$path .= '/'.$subdir;
 		if (!file_exists($path)) {
 			if (!mkdir($path)) {
-				cron_entry(23,'Couldn\'t create directory '.$path.' for backups');	
+				cron_entry(23,'Couldn\'t create directory '.$path.' for backups');
 				exit;
 			}
 		}
@@ -95,7 +95,7 @@
 
 /**************************************
  * Backup uploads dir
- **************************************/ 
+ **************************************/
 $output="";
 if (file_exists(forge_get_config('upload_dir'))) {
 	@exec('tar -hjcvf '.$sys_path_to_backup.'uploads-tmp-'.$datetime.'.tar.bz2 '.forge_get_config('upload_dir').' 2>&1' ,$output,$retval);   //proceed upload dir tar file creation
@@ -108,22 +108,22 @@
 
 /**************************************
  * Backup mailing lists files
- **************************************/ 
+ **************************************/
 $output="";
 // Most probable mailman data dir
 $mailman_data_dir = '/var/lib/mailman';
 if (file_exists($mailman_data_dir)) {
 	@exec('tar -jcvf '.$sys_path_to_backup.'mailinglist-tmp-'.$datetime.'.tar.bz2 '.$mailman_data_dir.'/ 2>&1', $output,$retval);   //proceed mailman dir tar file creation
 	if($retval!=0){
-		$err.= implode("\n", $output);	
-	} 
+		$err.= implode("\n", $output);
+	}
 } else {
 		$err.= 'Unable to find Mailman data dir. Please edit backup_site.php cronjob';
 }
 
 /**************************************
  * Backup CVS repositories
- **************************************/ 
+ **************************************/
 $output="";
 if (file_exists(forge_get_config('repos_path', 'scmcvs'))) {
 	@exec('tar -hjcvf '.$sys_path_to_backup.'cvsroot-tmp-'.$datetime.'.tar.bz2 '.forge_get_config('repos_path', 'scmcvs').'/ 2>&1' ,$output,$retval);   //proceed cvsroot dir tar file creation
@@ -136,12 +136,12 @@
 
 /**************************************
  * Backup SVN repositories (using the hot-backup.py script)
- **************************************/ 
+ **************************************/
 if (file_exists($svndir_prefix)) {
 	$hot_backup = dirname(__FILE__).'/hot-backup.py';
 	$svn_path = dirname(`which svn`);
-	$output="";	
-	
+	$output="";
+
 	if (!file_exists($hot_backup) || !$svn_path) {
 		// hot-backup.py script not available, try regular backup (doesn't check for inconsistencies)
 		@exec('tar -hjcvf '.$sys_path_to_backup.'svnroot-tmp-'.$datetime.'.tar.bz2 '.$svndir_prefix.'/ 2>&1' ,$output,$retval);   //proceed svnroot dir tar file creation
@@ -164,12 +164,12 @@
 			}
 
 		}
-		
+
 		@exec('tar -hjcvf '.$sys_path_to_backup.'svnroot-tmp-'.$datetime.'.tar.bz2 '.$repos_backup_dir.' 2>&1' ,$output,$retval);
 		if($retval!=0){
 			$err.= implode("\n", $output);
 		}
-		
+
 		@exec("rm -rf ".$repos_backup_dir);
 	}
 } else {
@@ -178,7 +178,7 @@
 
 /**************************************
  * Backup config files
- **************************************/ 
+ **************************************/
 $output="";
 if (file_exists(forge_get_config('config_path'))) {
 	@exec('tar -jcvf '.$sys_path_to_backup.'etc-tmp-'.$datetime.'.tar.bz2 '.forge_get_config('config_path').' 2>&1' ,$output,$retval);   //proceed svnroot dir tar file creation
@@ -192,7 +192,7 @@
 
 /**************************************
  * Create backup file
- **************************************/ 
+ **************************************/
 $output="";
 @exec('tar -jcvf '.$sys_path_to_backup.'backup'.$datetime.'.tar.bz2 '.$sys_path_to_backup.'*-tmp-'.$datetime.'*  2>&1',$output,$retval);
 if($retval!=0){
@@ -200,7 +200,7 @@
 }
 
 //If execution of tar command was successfull ($retval equals zero) remove individual files
-if($retval==0){	
+if($retval==0){
 	$output="";
 	@exec('rm '.$sys_path_to_backup.'*tmp-'.$datetime.'*  2>&1',$output,$retval);
 	if($retval!=0){

Modified: trunk/src/cronjobs/calculate_user_metric.php
===================================================================
--- trunk/src/cronjobs/calculate_user_metric.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/calculate_user_metric.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -40,20 +40,20 @@
 	The process starts with a seed group of users who are "trusted"
 		to rate others
 
-	After you are rated N times highly by other users, you can become trusted 
+	After you are rated N times highly by other users, you can become trusted
 		and your ratings of others will begin to count
 
-	Your rating is affected by how many times you are rated by others and 
+	Your rating is affected by how many times you are rated by others and
 		how highly they rate you and how highly rated they are
 
-	How highly rated they are is affected by how many times they're rated 
+	How highly rated they are is affected by how many times they're rated
 		and how highly rated they are and so on up the chain
 
 	For now, this process will run 8 times to get the calculations refined
 		As more users are added, it may have to be run more
 
-	Because of this circular dependency, the numbers are never "right", but 
-		after a few runs, they should be refined "enough" to give us 
+	Because of this circular dependency, the numbers are never "right", but
+		after a few runs, they should be refined "enough" to give us
 		what we want - a list of the top users on the site.
 
 */
@@ -83,10 +83,10 @@
 db_query_params ('UPDATE user_metric0 SET ranking=ranking-1',
 			array()) ;
 
-db_query_params ('UPDATE user_metric0 SET metric=(log(times_ranked::float)*avg_rating::float)::float, percentile=(100-(100*((ranking::float-1)/(select count(*) from user_metric0))))::float', 
+db_query_params ('UPDATE user_metric0 SET metric=(log(times_ranked::float)*avg_rating::float)::float, percentile=(100-(100*((ranking::float-1)/(select count(*) from user_metric0))))::float',
 		 array());
 $err .= db_error();
-db_query_params ('UPDATE user_metric0 SET importance_factor=(1+((percentile::float/100)*.5))::float', 
+db_query_params ('UPDATE user_metric0 SET importance_factor=(1+((percentile::float/100)*.5))::float',
 		 array()) ;
 $err .= db_error();
 
@@ -104,7 +104,7 @@
 	db_drop_table_if_exists ("user_metric_next");
 
 	$res = db_query_params ('CREATE TEMPORARY TABLE user_metric_tmp_next (
-		user_id int not null default 0, 
+		user_id int not null default 0,
 		times_ranked float(8) null default 0,
 		avg_raters_importance float(8) not null default 0,
 		avg_rating float(8) not null default 0,
@@ -130,7 +130,7 @@
 	if (!$res) {
 		$err .= "Error in round $i inserting average ratings: " . db_error();
 		exit;
-		
+
 	}
 
 	/*
@@ -144,7 +144,7 @@
 	if (!$res) {
 		$err .= "Error in round $i calculating metric: " . db_error();
 		exit;
-		
+
 	}
 
 	$res = db_query_params ('DELETE FROM user_metric_tmp_next WHERE metric < $1',
@@ -152,19 +152,19 @@
 	if (!$res) {
                 $err .= "Error in round $i deleting < threshhold ids: " . db_error();
                 exit;
-                
+
         }
 
 	/*
-		Now we need to carry forward trusted IDs from the last round into this 
-		Round, as prior round people may not have been ranked enough times by 
+		Now we need to carry forward trusted IDs from the last round into this
+		Round, as prior round people may not have been ranked enough times by
 		new people in this round to stay in
 	*/
 
 	$res = db_query_params ('INSERT INTO user_metric_tmp_next
 		SELECT user_id,times_ranked,avg_raters_importance,avg_rating,metric
 		FROM user_metric_cur
-		WHERE NOT EXISTS 
+		WHERE NOT EXISTS
 		(SELECT user_id FROM user_metric_tmp_next
 		WHERE user_metric_tmp_next.user_id=user_metric_cur.user_id)',
 				array ()) ;

Modified: trunk/src/cronjobs/create_scm_repos.php
===================================================================
--- trunk/src/cronjobs/create_scm_repos.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/create_scm_repos.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,7 +20,7 @@
  * with FusionForge; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-        
+
 require dirname(__FILE__).'/../www/env.inc.php';
 require_once $gfcommon.'include/pre.php';
 require_once $gfcommon.'include/cron_utils.php';
@@ -31,11 +31,11 @@
 
 // SCM-specific plugins subsystem
 require_once $gfcommon.'include/SCMPlugin.class.php' ;
-			 
+
 setup_plugin_manager () ;
 
 $res = db_query_params ('SELECT group_id FROM groups WHERE status=$1 AND use_scm=1 ORDER BY group_id DESC',
-			array ('A')); 
+			array ('A'));
 if (!$res) {
 	$this->setError('Unable to get list of projects using SCM: '.db_error());
 	return false;

Modified: trunk/src/cronjobs/daily_task_email.php
===================================================================
--- trunk/src/cronjobs/daily_task_email.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/daily_task_email.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -30,8 +30,8 @@
 session_set_admin() ;
 
 // Get user id's from users who have open tasks
-$res = db_query_params ('SELECT DISTINCT u.user_id, u.realname, u.email FROM users u, project_assigned_to pat, project_task_vw ptv 
-		WHERE u.user_id > 100 AND u.user_id=pat.assigned_to_id AND pat.project_task_id=ptv.project_task_id 
+$res = db_query_params ('SELECT DISTINCT u.user_id, u.realname, u.email FROM users u, project_assigned_to pat, project_task_vw ptv
+		WHERE u.user_id > 100 AND u.user_id=pat.assigned_to_id AND pat.project_task_id=ptv.project_task_id
 		AND ptv.status_id=1 ORDER BY u.user_id;',
 			array()) ;
 
@@ -63,7 +63,7 @@
 		$last_group = 0;
 		$last_projectgroup = 0;
 
-		// start composing the email	
+		// start composing the email
 		$subject = 'Tasks for '.$realname.' for '.$today;
 
 		if (count($userTasks) > 0) {

Modified: trunk/src/cronjobs/db_project_sums.php
===================================================================
--- trunk/src/cronjobs/db_project_sums.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/db_project_sums.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -68,7 +68,7 @@
 	if (!$res) {
 		$err .= "INSERT INTO forum_agg_msg_count : ".db_error();
 	}
-	
+
 	db_commit();
 }
 
@@ -98,9 +98,9 @@
 LEFT JOIN artifact a USING (group_artifact_id)
 GROUP BY agl.group_artifact_id',
 			      array()) ;
-	
+
 	$err .= db_error();
-	
+
 	db_commit();
 }
 

Modified: trunk/src/cronjobs/db_stats_agg.php
===================================================================
--- trunk/src/cronjobs/db_stats_agg.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/db_stats_agg.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -45,7 +45,7 @@
 $res = db_query_params ('INSERT INTO stats_project_months
 	SELECT month, group_id,
 	avg(developers)::int AS developers,
-    avg(group_ranking)::int AS group_ranking, 
+    avg(group_ranking)::int AS group_ranking,
 	avg(group_metric) AS group_metric,
 	sum(logo_showings) AS logo_showings,
 	sum(downloads) AS downloads,

Modified: trunk/src/cronjobs/db_trove_maint.php
===================================================================
--- trunk/src/cronjobs/db_trove_maint.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/db_trove_maint.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -27,11 +27,11 @@
 $err='';
 
 /*
-  
+
   Rebuild the trove_agg table, which saves us
   from doing really expensive queries in trove
   each time of the trove map is viewed
-  
+
 */
 
 db_begin();
@@ -63,7 +63,7 @@
 Do this by first running an aggregate query in the database,
 then putting that into two associative arrays.
 
-Start at the top of the trove tree and recursively go down 
+Start at the top of the trove tree and recursively go down
 the tree, building a third associative array which contains
 the count of projects under each category
 
@@ -115,7 +115,7 @@
 
 	// Number of groups that were in this trove_cat
 	$count=isset($cat_counts[$cat_id][1]) ? $cat_counts[$cat_id][1] : 0;
- 
+
 	//number of children of this trove_cat
 	$rows=count( @$parent_list[$cat_id] );
 
@@ -141,7 +141,7 @@
 
 //$err .= "<table>";
 while (list($k,$v) = each($sum_totals)) {
-	$res = db_query_params ('INSERT INTO trove_treesums (trove_cat_id,subprojects) 
+	$res = db_query_params ('INSERT INTO trove_treesums (trove_cat_id,subprojects)
 		VALUES ($1,$2)',
 				array($k,
 				      $v));

Modified: trunk/src/cronjobs/forum_gateway.php
===================================================================
--- trunk/src/cronjobs/forum_gateway.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/forum_gateway.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -6,7 +6,7 @@
  * Copyright 2004 GForge, LLC
  *
  * @author Tim Perdue tim at gforge.org
- * @author Sung Kim 
+ * @author Sung Kim
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -53,17 +53,17 @@
 
 	function ForumGateway() {
 		$this->Error();
-	
+
 		/* Copy mail message to tmp file */
 		$tmpfile = $this->copyMailTmp();
 		//DBG("Tmpname: ". $tmpfile);
 
 		/* parse email */
 		$ret = $this->parseMail($tmpfile);
-	
+
 		/* Delete temp file */
 		unlink($tmpfile);
-	
+
 		/* Check the return variable from parseMail */
 		if (!$ret) {
 			return false;
@@ -74,11 +74,11 @@
 		if (!$ret) {
 			return false;
 		}
-	
+
 		return true;
 	}
-	
-	
+
+
 	/**
 	 * function - Copy mail(from stdin to tmp and return the tmp file
 	 *
@@ -90,14 +90,14 @@
 		$tmpfile = tempnam ("/tmp", "forum_gateway.".util_randnum()."-".util_randnum());
 		$in = fopen("php://stdin", "r");
 		$out = fopen($tmpfile, "w");
-	
+
 		while($buffer = fgets($in, 4096)) {
 			fputs($out, $buffer);
 		}
-	
+
 		fclose($in);
 		fclose($out);
-	
+
 		return $tmpfile;
 	}
 
@@ -111,7 +111,7 @@
 	function parseMail($input_file) {
 		global $argv;
 //DBG("parseMail start");
-		
+
 		if (!$mp = new MailParser($input_file)) {
 			$this->setError('Error In MailParser');
 //DBG("parseMail error1: ".$mp->getErrorMessage());
@@ -172,8 +172,8 @@
 
 		$begin = strpos($this->Body, FORUM_MAIL_MARKER);
 		if ($begin === false) { //do nothing
-				return true; 
-		}		
+				return true;
+		}
 		// get the part of the message located after the marker
 		$this->Body = substr($this->Body, $begin+strlen(FORUM_MAIL_MARKER));
 //DBG( "body2:". $this->Body);
@@ -184,14 +184,14 @@
 		}
 		$message = substr($this->Body, 0, $end);
 		$message = trim($message);
-		
+
 		// maybe the last line was "> (FORUM_MAIL_MARKER)". In that case, delete the last ">"
 		$message = preg_replace('/>$/', '', $message);
 		$this->Message = $message;
-		
+
 		return true;
 	}
-	
+
 	/**
 	 * Insert data into the forum db
 	 *
@@ -236,7 +236,7 @@
 			return false;
 		}
 //DBG( "AddMessage 3\n");
-		if ($this->Message!=""){	
+		if ($this->Message!=""){
 			if (!$ForumMessage->create($this->Subject,$this->Message,$this->ThreadId,$this->Parent)) {
 //DBG( "AddMessage 4.".$ForumMessage->getErrorMessage()."\n");
 				$this->setError("ForumMessage Create Error: ".$ForumMessage->getErrorMessage());
@@ -252,7 +252,7 @@
 
 
 	/*------------------------------------------------------------------------
-	 *  Utility functions 
+	 *  Utility functions
 	 *-----------------------------------------------------------------------*/
 
 	/* Find user_id from email */
@@ -261,7 +261,7 @@
 		$from = strtolower($this->FromEmail);
 		// If no user id, user id is 0;
 		if (! $from) return 0;
-		$res = db_query_params ('SELECT user_id FROM users 
+		$res = db_query_params ('SELECT user_id FROM users
 			WHERE lower(email) = $1 AND status = $2',
 					array (strtolower($from),
 					       'A'));
@@ -271,7 +271,7 @@
 			$user_id = db_result($res,0,'user_id');
 		}
 		db_free_result($res);
-	
+
 		return $user_id;
 	}
 
@@ -291,7 +291,7 @@
 				//
 				// Find Forum id by parent
 				//
-				$res = db_query_params ('SELECT group_forum_id,thread_id 
+				$res = db_query_params ('SELECT group_forum_id,thread_id
 					FROM forum
 					WHERE msg_id=$1',
 							array ($this->Parent));
@@ -299,7 +299,7 @@
 				//
 				//	Find forum by arguments passed by aliases file
 				//
-				$res = db_query_params ('SELECT group_forum_id, 0 AS thread_id 
+				$res = db_query_params ('SELECT group_forum_id, 0 AS thread_id
 					FROM forum_group_list
 					WHERE forum_name=$1
 					AND group_id=$2',
@@ -316,10 +316,10 @@
 
 			$this->Forum = new Forum($Group,$this->ForumId);
 		}
-	
+
 		return $this->Forum;
 	}
- 
+
 }
 
 
@@ -329,7 +329,7 @@
  * Add this in /etc/syslog.conf and see /var/log/debug file:
  * # Debug
  * *.=debug			/var/log/debug
- * 
+ *
  */
 function DBG($str) {
 	global $debug;
@@ -341,8 +341,8 @@
 		echo $str."\n";
 	}
 }
- 
 
+
 /* Main routine */
 $debug = 0;
 $listforum = new ForumGateway();

Modified: trunk/src/cronjobs/ftp_create_group_access.php
===================================================================
--- trunk/src/cronjobs/ftp_create_group_access.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/ftp_create_group_access.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,7 +1,7 @@
 #! /usr/bin/php
 <?php
 /**
- * 
+ *
  * Fabio Bertagnin nov 2005
  * fbertatnin at mail.transiciel.com
  *

Modified: trunk/src/cronjobs/gather_scm_stats.php
===================================================================
--- trunk/src/cronjobs/gather_scm_stats.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/gather_scm_stats.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,7 +20,7 @@
  * with FusionForge; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-        
+
 require (dirname(__FILE__).'/../www/env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfcommon.'include/cron_utils.php';
@@ -31,11 +31,11 @@
 
 // SCM-specific plugins subsystem
 require_once $gfcommon.'include/SCMPlugin.class.php' ;
-			 
+
 setup_plugin_manager () ;
 
 $res = db_query_params ('SELECT group_id FROM groups WHERE status=$1 AND use_scm=1 ORDER BY group_id DESC',
-			array ('A')); 
+			array ('A'));
 if (!$res) {
 	$this->setError('Unable to get list of projects using SCM: '.db_error());
 	return false;

Modified: trunk/src/cronjobs/generate_scm_snapshots.php
===================================================================
--- trunk/src/cronjobs/generate_scm_snapshots.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/generate_scm_snapshots.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,7 +20,7 @@
  * with FusionForge; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
-        
+
 require (dirname(__FILE__).'/../www/env.inc.php');
 require_once $gfcommon.'include/pre.php';
 require_once $gfcommon.'include/cron_utils.php';
@@ -31,11 +31,11 @@
 
 // SCM-specific plugins subsystem
 require_once $gfcommon.'include/SCMPlugin.class.php' ;
-			 
+
 setup_plugin_manager () ;
 
 $res = db_query_params ('SELECT group_id FROM groups WHERE status=$1 AND use_scm=1 ORDER BY group_id DESC',
-			array ('A')); 
+			array ('A'));
 if (!$res) {
 	$this->setError('Unable to get list of projects using SCM: '.db_error());
 	return false;

Modified: trunk/src/cronjobs/homedirs.php
===================================================================
--- trunk/src/cronjobs/homedirs.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/homedirs.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
  */
 
 /*
-This file creates blank user home directories and 
+This file creates blank user home directories and
 creates a group home directory with a template in it.
 
 #
@@ -48,13 +48,13 @@
 	<IfModule apache_ssl.c>
 		SSLDisable
 	</IfModule>
-</VirtualHost> 
+</VirtualHost>
 */
 require_once dirname(__FILE__).'/../www/env.inc.php';
 require_once $gfcommon.'include/pre.php';
 require $gfcommon.'include/cron_utils.php';
 
-setup_gettext_from_sys_lang();	
+setup_gettext_from_sys_lang();
 define('USER_DEFAULT_GROUP','users');
 //error variable
 $err = '';
@@ -85,7 +85,7 @@
 $unames = array_unique ($unames) ;
 foreach($unames as $uname) {
 	if (is_dir(forge_get_config('homedir_prefix')."/".$uname)) {
-		
+
 	} else {
 		@mkdir(forge_get_config('homedir_prefix')."/".$uname);
 	}
@@ -100,9 +100,9 @@
 foreach($active_projects as $project) {
 	$groupname = $project->getUnixName() ;
 	//create an FTP upload dir for this project
-	if (forge_get_config('use_ftp_uploads')) { 
+	if (forge_get_config('use_ftp_uploads')) {
 		if (!is_dir(forge_get_config('ftp_upload_dir').'/'.$groupname)) {
-			@mkdir(forge_get_config('ftp_upload_dir').'/'.$groupname); 
+			@mkdir(forge_get_config('ftp_upload_dir').'/'.$groupname);
 		}
 	}
 
@@ -145,11 +145,11 @@
 		fclose($fw);
 	}
 
-	if (forge_get_config('use_manual_uploads')) { 
+	if (forge_get_config('use_manual_uploads')) {
 		$incoming = forge_get_config('groupdir_prefix')/$groupname."/incoming" ;
 		if (!is_dir($incoming))
 		{
-			@mkdir($incoming); 
+			@mkdir($incoming);
 		}
 	}
 

Modified: trunk/src/cronjobs/mail/mailaliases.php
===================================================================
--- trunk/src/cronjobs/mail/mailaliases.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/mail/mailaliases.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -64,18 +64,18 @@
 			$i++;
 			$line = trim($aliases_orig[$i]);
 		} while ($i < count($aliases_orig) && !preg_match("/^[[:blank:]]*#GFORGEEND/", $line));
-		
+
 		// Got to end of file (shouldn't happen, means #GFORGEEND wasn't found on file
 		if ($i >= (count($aliases_orig)-1)) break;
-		
+
 		// read next line
 		$i++;
 		$line = trim($aliases_orig[$i]);
 	}
-	
+
 	// empty line or comment
 	if (empty($line) || preg_match('/^#/', $line)) continue;
-	
+
 	list($alias_name, $alias) = explode(':', $line, 2);
 	$alias_name = trim($alias_name);
 	$alias = trim($alias);
@@ -96,12 +96,12 @@
 			array ('A'));
 	for ($forres=0; $forres<db_numrows($resforum); $forres++) {
 		$forname=strtolower(db_result($resforum,$forres,'unix_group_name').'-'.strtolower(db_result($resforum,$forres,'forum_name')));
-		
+
 		if (array_key_exists($forname, $aliases)) {
 			// A GForge alias was found outside the markers
 			unset($aliases[$forname]);
 		}
-		
+
 		$gforge_aliases[$forname] = '"|'.$php_command." ".$path_to_cronjobs."/forum_gateway.php ".db_result($resforum,$forres,'unix_group_name')." ".strtolower(db_result($resforum,$forres,'forum_name')).'"';
 	}
 }
@@ -120,18 +120,18 @@
 		// first we remove non-alphanumeric characters (spaces and other stuff)
 		$formatted_tracker_name = preg_replace('/[^[:alnum:]]/','',db_result($restracker,$forres,'tracker_name'));
 		$formatted_tracker_name = strtolower($formatted_tracker_name);
-		
+
 		$trackername=strtolower(db_result($restracker,$forres,'unix_group_name'))."-".$formatted_tracker_name;
 		// enclose tracker name with quotes if it has whitespaces
 		if (strpos($trackername, ' ') !== false) {
 			$trackername = '"'.$trackername.'"';
 		}
-		
+
 		if (array_key_exists($trackername, $aliases)) {
 			// A GForge alias was found outside the markers
 			unset($aliases[$trackername]);
 		}
-		
+
 		$gforge_aliases[$trackername] = '"|'.$php_command." ".$path_to_cronjobs."/tracker_gateway.php ".db_result($restracker,$forres,'unix_group_name')." ".strtolower(db_result($restracker,$forres,'group_artifact_id')).'"';
 	}
 }
@@ -146,16 +146,16 @@
 	$mailmanlines = explode("\n",$mailmancontents);
 	for	($k = 0; $k < count($mailmanlines); $k++) {
 		$mailmanline = explode(":",$mailmanlines[$k], 2);
-		
+
 		$alias = trim($mailmanline[0]);
 		if (empty($alias)) continue;
 		$command = trim($mailmanline[1]);
-		
+
 		if (array_key_exists($alias, $aliases)) {
 			// A GForge alias was found outside the markers
 			unset($aliases[$alias]);
 		}
-		
+
 		$gforge_aliases[$alias] = $command;
 	}
 	$err .= "\n$k Mailman Lines";
@@ -184,7 +184,7 @@
 		// A GForge alias was found outside the markers
 		unset($aliases[$user]);
 	}
-	
+
 	$gforge_aliases[$user] = $email;
 }
 

Modified: trunk/src/cronjobs/massmail.php
===================================================================
--- trunk/src/cronjobs/massmail.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/massmail.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -2,7 +2,7 @@
 <?php
 /**
  * Massmail backend cron script
- * This is mass mailing backend script which actually sends messages 
+ * This is mass mailing backend script which actually sends messages
  * of the mailings scheduled via the web frontend.
  * Mailing types, for which this is applicable, have trailer
  * appended with individual URL for unsubscription from future
@@ -149,8 +149,8 @@
 page (%2$s), or disable them altogether
 by visiting following link:
 <%3$s>
-'), 
-				  forge_get_config ('forge_name'), 
+'),
+				  forge_get_config ('forge_name'),
 				  util_make_url('/account/'),
 				  util_make_url('/account/unsubscribe.php?ch=_'.$user->getConfirmHash())) ;
 	} else {
@@ -175,7 +175,7 @@
 
 function m_exit($mess = '') {
 	global $err;
-	
+
 	if (!cron_remove_lock(__FILE__)) {
 		$err .= "Could not remove lock\n";
 	}

Modified: trunk/src/cronjobs/project_cleanup.php
===================================================================
--- trunk/src/cronjobs/project_cleanup.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/project_cleanup.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -37,18 +37,18 @@
 // one week ago for users
 $then=(time()-604800);
 if (USE_PFO_RBAC) {
-	db_query_params ('DELETE FROM pfo_user_role WHERE EXISTS (SELECT user_id FROM users 
+	db_query_params ('DELETE FROM pfo_user_role WHERE EXISTS (SELECT user_id FROM users
 WHERE status=$1 and add_date < $2 AND users.user_id=pfo_user_role.user_id)',
 			 array ('P',
 				$then));
 	$err .= db_error();
-	db_query_params ('DELETE FROM user_group WHERE EXISTS (SELECT user_id FROM users 
+	db_query_params ('DELETE FROM user_group WHERE EXISTS (SELECT user_id FROM users
 WHERE status=$1 and add_date < $2 AND users.user_id=user_group.user_id)',
 			 array ('P',
 				$then));
 	$err .= db_error();
 } else {
-	db_query_params ('DELETE FROM user_group WHERE EXISTS (SELECT user_id FROM users 
+	db_query_params ('DELETE FROM user_group WHERE EXISTS (SELECT user_id FROM users
 WHERE status=$1 and add_date < $2 AND users.user_id=user_group.user_id)',
 			 array ('P',
 				$then));

Modified: trunk/src/cronjobs/send_pending_items_mail.php
===================================================================
--- trunk/src/cronjobs/send_pending_items_mail.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/send_pending_items_mail.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -14,7 +14,7 @@
  *              sends mail for tracker items
  *
  *            ./send_pending_items_mail.php pm
- *              sends mail for pm items 
+ *              sends mail for pm items
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -73,15 +73,15 @@
 			$language=db_result($userres,$usercount,"language");
 			setup_gettext_from_language_id($language);
 			$subject=_('Pending task manager items notification');
-			$messagebody=stripcslashes(sprintf(_('This mail is sent to you to remind you of pending/overdue tasks. 
-The task manager item #%1$s is pending: 
+			$messagebody=stripcslashes(sprintf(_('This mail is sent to you to remind you of pending/overdue tasks.
+The task manager item #%1$s is pending:
 Task Summary: %2$s
 Submitted by: %4$s
 Status:%5$s
 Percent Complete: %6$s
 
 Click here to visit the item %3$s'), $project_task_id, $summary, $hyperlink, $user_name, $status_name, db_result($res, $i,'percent_complete')));
-			util_send_message($mailto,$subject,$messagebody);	
+			util_send_message($mailto,$subject,$messagebody);
 		}
 	}
 	cron_entry(19,db_error());
@@ -93,7 +93,7 @@
 	$time = time();
 	$res = db_query_params ('SELECT artifact_id, submitted_by, group_id, assigned_to, summary,  details, description,  assigned_realname, submitted_realname, status_name, category_name, group_name, group_artifact_id, open_date	FROM artifact_vw a NATURAL JOIN artifact_group_list agl	WHERE (agl.due_period+a.open_date) < $1 AND a.status_id=1',
 			array($time));
-	
+
 	for ($tmp=0; $tmp<db_numrows($res); $tmp++) {
 		$realopendate=date(_('Y-m-d H:i'), db_result($res,$tmp,'open_date'));
 		$status_name=db_result($res,$tmp,'status_name');
@@ -124,7 +124,7 @@
 
 Click here to visit the item: %4$s'),  $artifact, $opendate, $summary, $hyperlink, $status_name, $realopendate, db_result($res,$tmp,'assigned_realname'), db_result($res,$tmp,'submitted_realname'),  db_result($res,$tmp,'details')));
 			/* and finally send the email */
-			util_send_message($mailto,$subject,$messagebody);	
+			util_send_message($mailto,$subject,$messagebody);
 		}
 	}
 	cron_entry(19,db_error());

Modified: trunk/src/cronjobs/site_stats.php
===================================================================
--- trunk/src/cronjobs/site_stats.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/site_stats.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -45,8 +45,8 @@
 $rel = db_query_params ('DELETE FROM stats_agg_logo_by_day WHERE day=$1',
 			array ($yesterday_formatted));
 $err .= db_error();
-$rel = db_query_params ('INSERT INTO stats_agg_logo_by_day 
-	SELECT day, count(*) 
+$rel = db_query_params ('INSERT INTO stats_agg_logo_by_day
+	SELECT day, count(*)
 	FROM activity_log WHERE type=0 AND day=$1 GROUP BY day',
 			array ($yesterday_formatted));
 $err .= db_error();

Modified: trunk/src/cronjobs/tracker_gateway.php
===================================================================
--- trunk/src/cronjobs/tracker_gateway.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/tracker_gateway.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -54,17 +54,17 @@
 
 	function TrackerGateway() {
 		$this->Error();
-	
+
 		/* Copy mail message to tmp file */
 		$tmpfile = $this->copyMailTmp();
 		//DBG("Tmpname: ". $tmpfile);
 
 		/* parse email */
 		$ret = $this->parseMail($tmpfile);
-	
+
 		/* Delete temp file */
 		unlink($tmpfile);
-	
+
 		/* Check the return variable from parseMail */
 		if (!$ret) {
 			return false;
@@ -75,7 +75,7 @@
 		if (!$ret) {
 			return false;
 		}
-	
+
 		return true;
 	}
 
@@ -90,7 +90,7 @@
 		$tmpfile = tempnam ("/tmp", "artifact_gateway.".util_randnum()."-".util_randnum());
 		$in = fopen("php://stdin", "r");
 		$out = fopen($tmpfile, "w");
-	
+
 		while($buffer = fgets($in, 4096)) {
 			fputs($out, $buffer);
 		}

Modified: trunk/src/cronjobs/vacuum.php
===================================================================
--- trunk/src/cronjobs/vacuum.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/cronjobs/vacuum.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -37,8 +37,8 @@
 //
 $res = db_query_params ('VACUUM FULL ANALYZE;',
 			array()) ;
-			 
 
+
 if (!$res) {
 	$err .= "Error on DB1: " . db_error();
 }

Modified: trunk/src/db/20010304-4-artifact-convert-files.php
===================================================================
--- trunk/src/db/20010304-4-artifact-convert-files.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20010304-4-artifact-convert-files.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -5,7 +5,7 @@
 require_once $gfcommon.'include/pre.php';
 
 db_begin();
-			      
+
 $rel = db_query_params ('SELECT id,bin_data FROM artifact_file ORDER BY id ASC',
 						      array ());
 echo db_error();

Modified: trunk/src/db/20021213-2-doc_data-migrate.php
===================================================================
--- trunk/src/db/20021213-2-doc_data-migrate.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20021213-2-doc_data-migrate.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,7 +24,7 @@
 	echo db_error();
 	db_rollback();
 	exit();
-}	 
+}
 $rows=db_numrows($res);
 
 for ($i=0; $i<$rows; $i++) {

Modified: trunk/src/db/20040826_migrateforum.php
===================================================================
--- trunk/src/db/20040826_migrateforum.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20040826_migrateforum.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -52,10 +52,10 @@
 }
 
 //
-//	Long-standing oddity in GForge - 
+//	Long-standing oddity in GForge -
 //	forums were ZERO-pen Discussion, not Oh-pen Discussion
 //
-$res = db_query_params ('UPDATE forum_group_list SET forum_name=$1 
+$res = db_query_params ('UPDATE forum_group_list SET forum_name=$1
 	WHERE forum_name=$2',
 			array('open-discussion',
 			'0pen-discussion')) ;

Modified: trunk/src/db/20040826_migraterbac.php
===================================================================
--- trunk/src/db/20040826_migraterbac.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20040826_migraterbac.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -29,7 +29,7 @@
 //system library
 //Required by Role.class.php to update system
 require_once $gfcommon.'include/System.class.php';
-// Right now the nss tables don't exist so if sys_account_manager_type=pgsql 
+// Right now the nss tables don't exist so if sys_account_manager_type=pgsql
 // This will fail UNIX should be safe
 //if (!forge_get_config('account_manager_type')) {
 	$sys_account_manager_type='UNIX';

Modified: trunk/src/db/20041211-syncmail.php
===================================================================
--- trunk/src/db/20041211-syncmail.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20041211-syncmail.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,8 +28,8 @@
 $id=db_result($res,0,0);
 session_set_new($id);
 
-$res = db_query_params ('SELECT group_id, unix_group_name 
-	FROM groups 
+$res = db_query_params ('SELECT group_id, unix_group_name
+	FROM groups
 	WHERE STATUS=$1 ORDER BY group_id',
 			array('A')) ;
 
@@ -42,11 +42,11 @@
 	for ($i=0; $i<db_numrows($res); $i++) {
 		$group_id   = db_result($res,$i,'group_id');
 		$group_name = db_result($res,$i,'unix_group_name');
-	
+
 		$res2 = db_query_params ('SELECT * FROM mail_group_list WHERE group_id = $1 AND list_name = $2',
 					 array ($group_id,
 						$group_name."-commits'")) ;
-	
+
 		if (db_numrows($res2) < 1) {
 			$group = new Group($group_id);
 			if (!$group || !is_object($group)) {
@@ -56,13 +56,13 @@
 				$was_error=true;
 				echo "Could Not Get Group Object for $group_name: ".$group->getErrorMessage();
 			} else {
-	
+
 				$res_aux2 = db_query_params ('SELECT user_id FROM user_group WHERE admin_flags = $1 AND group_id = $2',
 							     array ('A',
 								    $group_id)) ;
-	
+
 				$group_admin = db_result($res_aux2,0,'user_id');
-	
+
 				echo "Will create mailing list for <b>".$group_name."-commits</b><br>\n";
 				$mailing_list = new MailingList($group);
 				if (!$mailing_list || !is_object($mailing_list)) {

Modified: trunk/src/db/20041222-1-delete-task-artifact.php
===================================================================
--- trunk/src/db/20041222-1-delete-task-artifact.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20041222-1-delete-task-artifact.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -15,12 +15,12 @@
 	exit();
 } else {
 	$tasks = array();
-	
+
 	for ($i=0;$i<db_numrows($res);$i++) {
 		$data = db_fetch_array($res);
 		$tasks[] = $data['project_task_id'];
 	}
-	
+
 	foreach ($tasks as $task_id) {
 		$res = db_query_params ('DELETE FROM project_assigned_to WHERE project_task_id=$1',
 					array ($task_id));
@@ -83,12 +83,12 @@
 	exit();
 } else {
 	$artifacts = array();
-	
+
 	for ($i=0;$i<db_numrows($res);$i++) {
 		$data = db_fetch_array($res);
 		$artifacts[] = $data['artifact_id'];
 	}
-	
+
 	foreach ($artifacts as $artifact_id) {
 		$res = db_query_params ('DELETE FROM artifact_extra_field_data WHERE artifact_id=$1',
 					array ($artifact_id)) ;

Modified: trunk/src/db/20050325-3.php
===================================================================
--- trunk/src/db/20050325-3.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20050325-3.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -40,7 +40,7 @@
 		echo db_error();
 		exit(16);
 	}
-} 
+}
 
 //
 //  Set up this script to run as the site admin
@@ -129,7 +129,7 @@
 			exit(5);
 		}
 		$res2=db_query_params ('INSERT INTO artifact_extra_field_data (artifact_id,field_data,extra_field_id)
-			SELECT artifact_id,$efe_id,$catbox_id FROM artifact 
+			SELECT artifact_id,$efe_id,$catbox_id FROM artifact
 			WHERE category_id=$1 AND group_artifact_id=$2',
 			array($cat_id,
 			$gaid)) ;
@@ -192,7 +192,7 @@
 			exit(9);
 		}
 		$res2=db_query_params ('INSERT INTO artifact_extra_field_data (artifact_id,field_data,extra_field_id)
-			SELECT artifact_id,$efe_id,$groupbox_id FROM artifact 
+			SELECT artifact_id,$efe_id,$groupbox_id FROM artifact
 			WHERE artifact_group_id=$1 AND group_artifact_id=$2',
 			array($artgroup_id,
 			$gaid)) ;
@@ -255,7 +255,7 @@
 				exit(13);
 			}
 			$res2=db_query_params ('INSERT INTO artifact_extra_field_data (artifact_id,field_data,extra_field_id)
-				SELECT artifact_id,$efe_id,$resolutionbox_id FROM artifact 
+				SELECT artifact_id,$efe_id,$resolutionbox_id FROM artifact
 				WHERE resolution_id=$1 AND group_artifact_id=$2',
 			array($resolution_id,
 			$gaid)) ;
@@ -266,7 +266,7 @@
 				exit(14);
 			}
 			$res3=db_query_params ('UPDATE artifact_history SET old_value=$1,field_name=$2
-				WHERE old_value=$3 AND field_name=$4 AND artifact_id IN 
+				WHERE old_value=$3 AND field_name=$4 AND artifact_id IN
 				(SELECT artifact_id FROM artifact WHERE group_artifact_id=$5)',
 			array($resolution_name,
 			'Resolution',

Modified: trunk/src/db/20050617.php
===================================================================
--- trunk/src/db/20050617.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20050617.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -49,7 +49,7 @@
 		echo db_error();
 		exit(1);
 	}
-} 
+}
 
 // Now fill all the data
 db_query_params ('BEGIN WORK',
@@ -66,28 +66,28 @@
 
 while ($row = db_fetch_array($res)) {
 	$name = $row["field_name"];
-	
+
 	// for some weird reason the alias was already set... don't try to change it
 	if (array_key_exists("alias", $row) && !empty($row["alias"])) {
 		continue;
 	}
-	
-	// Convert the original name to a valid alias (i.e., if the extra field is 
+
+	// Convert the original name to a valid alias (i.e., if the extra field is
 	// called "Quality test", make an alias called "quality_test").
 	// The alias can be seen as a "unix name" for this field
 	$alias = preg_replace("/ /", "_", $name);
 	$alias = preg_replace("/[^[:alpha:]_]/", "", $alias);
 	$alias = strtolower($alias);
-	
+
 	// no alias is suitable... do nothing
 	if (strlen($alias) == 0) continue;
-	
+
 	// alias is reserved?
 	if (in_array($alias, $reserved_alias)) {
 		// prepend "extra_" to the alias (indicates it is an extra field)
 		$alias = "extra_".$alias;
 	}
-	
+
 	// check for conflicting names
 	$conflict = false;
 	$count = 1;
@@ -112,7 +112,7 @@
 	if (!$update) {
 		echo db_error();
 		exit(3);
-	}	
+	}
 }
 db_commit ();
 

Modified: trunk/src/db/20050804-2.php
===================================================================
--- trunk/src/db/20050804-2.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20050804-2.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -33,7 +33,7 @@
 if (!$res) {		// error
 	echo db_error();
 	exit(1);
-} 
+}
 
 echo "Updating ".db_numrows($res)." documents\n";
 

Modified: trunk/src/db/20090507-install_workflow.php
===================================================================
--- trunk/src/db/20090507-install_workflow.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/20090507-install_workflow.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 
 			      $res = db_query_params ('SELECT group_id, artifact_group_list.group_artifact_id, element_id, artifact_extra_field_elements.extra_field_id
 		FROM artifact_extra_field_list, artifact_extra_field_elements, artifact_group_list
-		WHERE 
+		WHERE
 			artifact_extra_field_list.extra_field_id=artifact_extra_field_elements.extra_field_id
 		AND 	artifact_group_list.group_artifact_id = artifact_extra_field_list.group_artifact_id
 		AND	field_type=7',
@@ -35,7 +35,7 @@
 	$efarr =& $ath->getExtraFields(array(ARTIFACT_EXTRAFIELDTYPE_STATUS));
 	$keys=array_keys($efarr);
 	$field_id = $keys[0];
-	    	
+
 	$atw = new ArtifactWorkflow($ath, $field_id);
 	$atw->addNode($row['element_id']);
 	$atw->_addEvent('100', $row['element_id']);

Modified: trunk/src/db/startpoint.php
===================================================================
--- trunk/src/db/startpoint.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/db/startpoint.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
 		exit();
 	} else {
 		$date = check_version($version);
-		
+
 		if ($date != 0) {
 			set_version($version, $date);
 		}
@@ -118,6 +118,6 @@
 		return false;
 	}
 	echo "FusionForge Database Version: $version ($date)\n";
-	db_commit();	
+	db_commit();
 }
 ?>

Modified: trunk/src/deb-specific/pkginfo.inc.php
===================================================================
--- trunk/src/deb-specific/pkginfo.inc.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/deb-specific/pkginfo.inc.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -4,4 +4,4 @@
 $forge_pkg_type = '@PLUCKERNAME@';
 $forge_pkg_version = '@PKGVERSION@';
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/fusionforge-install-2.php
===================================================================
--- trunk/src/fusionforge-install-2.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/fusionforge-install-2.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -72,8 +72,8 @@
 	//     echo 1>&2 "invalid apache group"
 	//     exit 2
 	//fi
-	
 
+
 	exec("getent group $args[3] > /dev/null", $arr, $t);
 	if ($t != 0) {
 	 	echo "invalid apache group";
@@ -180,7 +180,7 @@
 	system("mkdir -p /etc/gforge/httpd.conf.d");
 	$h = opendir ('etc/httpd.conf.d-opt') ;
 	while (false !== ($file = readdir($h))) {
-		if ($file != "." 
+		if ($file != "."
 		    && $file != ".."
 		    && (preg_match ('/^[0-9a-zA-Z_-]+(.conf)?$/', $file)
 			|| preg_match ('/^[0-9a-zA-Z_-]+(.inc)?$/', $file))) {
@@ -268,7 +268,7 @@
 
 	//cd /opt/gforge
 	chdir("/opt/gforge");
-	
+
 	if (!is_dir("/etc/gforge"))
 	{
 		echo "/etc/gforge didn't exist - error - make sure you've got permission";

Modified: trunk/src/fusionforge-install-3-db.php
===================================================================
--- trunk/src/fusionforge-install-3-db.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/fusionforge-install-3-db.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -41,14 +41,14 @@
 //}
 
 // Make sure the DB is initialized by starting postgresql service
-if (is_file('/etc/init.d/postgresql')) 
+if (is_file('/etc/init.d/postgresql'))
 {
 	$pgservice='/etc/init.d/postgresql';
-} 
+}
 elseif (is_file('/etc/init.d/postgresql-8.2'))
 {
 	$pgservice='/etc/init.d/postgresql-8.2';
-} 
+}
 elseif (is_file('/etc/init.d/postgresql-8.3'))
 {
 	$pgservice='/etc/init.d/postgresql-8.3';
@@ -183,7 +183,7 @@
 
 	show(" * Creating '$gforge_user' User...");
 	run("/usr/sbin/useradd -g $gforge_user $gforge_user", true);
-	
+
 	// Let's give some time for PostgreSQL to start
 	sleep(5);
 
@@ -280,18 +280,18 @@
 		$pw_md5 = md5($pwd1);
 		$pw_crypt = crypt($pwd1);
 		$pw_crypt = str_replace('$', '\\\\\\$', $pw_crypt);
-		//run(	'su - postgres -c "psql ' . 
-		//	$gforge_db . 
-		//	' -c \\"UPDATE \\\\\"user\\\\\" SET unix_name=\'' . 
-		//	$admin_user . '\', password_md5=\'' . 
-		//	$pw_md5 . '\', password_crypt=\'' . 
+		//run(	'su - postgres -c "psql ' .
+		//	$gforge_db .
+		//	' -c \\"UPDATE \\\\\"user\\\\\" SET unix_name=\'' .
+		//	$admin_user . '\', password_md5=\'' .
+		//	$pw_md5 . '\', password_crypt=\'' .
 		//	$pw_crypt . '\' WHERE user_id=101;\\""'); // MODIFIQUE ESTO
 
-		//run(	'su - postgres -c "psql ' . 
-		//	$gforge_db . 
-		//	' -c \\"UPDATE \\\\\"users\\\\\" SET user_name=\'' . 
-		//	$admin_user . '\', user_pw=\'' . 
-		//	$pw_md5 . '\', unix_pw=\'' . 
+		//run(	'su - postgres -c "psql ' .
+		//	$gforge_db .
+		//	' -c \\"UPDATE \\\\\"users\\\\\" SET user_name=\'' .
+		//	$admin_user . '\', user_pw=\'' .
+		//	$pw_md5 . '\', unix_pw=\'' .
 		//	$pw_crypt . '\' WHERE user_id=101;\\""');
 //echo "BREAKPOINT 1\n";
 //$t = trim(fgets($STDIN));
@@ -329,7 +329,7 @@
 web_host='.system("hostname -f").'
 ';
 			fwrite ($fp, $config);
-			fclose($fp);	
+			fclose($fp);
 		}
 	}
 	if (!is_file("$fusionforge_etc_dir/config.ini.d/rpm-install-secrets.ini")){
@@ -346,7 +346,7 @@
 ; database_password=$pw
 ';
 			fwrite ($fp, $config);
-			fclose($fp);	
+			fclose($fp);
 		}
 	}
 	#$data = file_get_contents("$fusionforge_etc_dir/local.inc");
@@ -360,7 +360,7 @@
 
 	#if ($fp = fopen("$fusionforge_etc_dir/local.inc", "w")) {
 	#	fwrite ($fp, $config);
-	#	fclose($fp);	
+	#	fclose($fp);
 	#}
 
 	show(' * Saving installation log in /tmp/gforge-import.log');

Modified: trunk/src/plugins/aselectextauth/include/ASelectAuthPlugin.class.php
===================================================================
--- trunk/src/plugins/aselectextauth/include/ASelectAuthPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/aselectextauth/include/ASelectAuthPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -26,22 +26,22 @@
 	function ASelectextauthPlugin () {
 		$this->Plugin() ;
 		$this->name = "aselectextauth";
-		$this->hooks[] = "session_set_entry";	
+		$this->hooks[] = "session_set_entry";
 	}
-	
+
 	function CallHook ($hookname, &$params) {
 		global $HTML ;
-		
+
 		switch ($hookname) {
 		case "session_set_entry":
-		
-			$Aselect = new Aselect();			
-			$loginname = strtolower($Aselect->getUserName());//Since A-Select UserID is 
+
+			$Aselect = new Aselect();
+			$loginname = strtolower($Aselect->getUserName());//Since A-Select UserID is
 																											//not case sensitive we pass it to lower case
-			$passwd = '' ;		
-	
+			$passwd = '' ;
+
 			$this->AuthUser($loginname, $passwd) ;
-			break;		
+			break;
 		default:
 			// Forgot something
 		}
@@ -49,31 +49,31 @@
 
 	function AuthUser ($loginname, $passwd) {
 		global $feedback;
-	
-		if(!$loginname) {						
+
+		if(!$loginname) {
 			return false;
 		}
 
-		
+
 		$u = user_get_object_by_name ($loginname) ;
 		if ($u) {
 			// User exists in DB
-			if($u->getStatus()=='A'){ //we check if it's active				
-				$user_id = $u->getID();  
-				session_set_new($user_id); //create session cookie		
+			if($u->getStatus()=='A'){ //we check if it's active
+				$user_id = $u->getID();
+				session_set_new($user_id); //create session cookie
 				$GLOBALS['aselect_auth_failed']=false;
 				return true ;
 			} else {
 				$GLOBALS['aselect_auth_failed']=true;
 				return false ;
 			}
-		} else {				
-					$GLOBALS['aselect_auth_failed']=true;					
+		} else {
+					$GLOBALS['aselect_auth_failed']=true;
 					return false;
-		}						
-			
-			
-		
+		}
+
+
+
 	}
 }
 

Modified: trunk/src/plugins/aselectextauth/include/Aselect.class.php
===================================================================
--- trunk/src/plugins/aselectextauth/include/Aselect.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/aselectextauth/include/Aselect.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,58 +25,58 @@
 	var $attributes=array();
 	var $ticket;
 	function ASelect () {
-		
+
 		if(isset($_COOKIE['aselectuid'])){
-		   $this->username = $_COOKIE['aselectuid'];		   		    
+		   $this->username = $_COOKIE['aselectuid'];
 		} else {
-   		 $this->username = '';   		 
+   		 $this->username = '';
 		}
-		
+
 		if(isset($_COOKIE['aselectorganization'])){
 			$this->organization = $_COOKIE['aselectorganization'];
 		} else {
    		$this->organization = '';
 		}
-		
-		if(isset($_COOKIE['aselectattributes'])){			
+
+		if(isset($_COOKIE['aselectattributes'])){
 			$a = explode('&', $_COOKIE['aselectattributes']);
 			$i = 0;
 			while ($i < count($a)) {
    			$b = split('=', $a[$i]);
    			$this->$attributes[htmlspecialchars(urldecode($b[0]))] = htmlspecialchars(urldecode($b[1]));
    			$i++;
-			}		
+			}
 			} else {
    		//nothing to be done here yet.
 			}
-		
+
 		if(isset($_COOKIE['aselectticket'])){
 			$this->ticket = $_COOKIE['aselectticket'];
 		} else {
    		$this->ticket = '';
 		}
 	}
-	
+
 	function getUserName () {
 		return $this->username;
 	}
-	
+
 	function getOrganization () {
 		return $this->organization;
 	}
-	
+
 	function getAttributes () {
 		return $this->attributes;
 	}
-	
+
 	function getAttribute ($attribute) {
 		return $this->attributes[$attribute];
 	}
-	
+
 	function getTicket () {
 		return $this->ticket;
 	}
-	
-	
+
+
 }
 ?>

Modified: trunk/src/plugins/authcas/include/AuthCASPlugin.class.php
===================================================================
--- trunk/src/plugins/authcas/include/AuthCASPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/authcas/include/AuthCASPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -118,13 +118,13 @@
 			// otherwise, use the CAS user
 			$user = $this->startSession(phpCAS::getUser());
 		}
-		
+
 		// TODO : document this
 		if ($user) {
 			if ($this->isSufficient()) {
 				$this->saved_user = $user;
 				$params['results'][$this->name] = FORGE_AUTH_AUTHORITATIVE_ACCEPT;
-				
+
 			} else {
 				$params['results'][$this->name] = FORGE_AUTH_NOT_AUTHORITATIVE;
 			}

Modified: trunk/src/plugins/authhttpd/include/AuthHTTPDPlugin.class.php
===================================================================
--- trunk/src/plugins/authhttpd/include/AuthHTTPDPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/authhttpd/include/AuthHTTPDPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -67,7 +67,7 @@
 <p><input type="submit" name="login" value="' . _('Login via HTTP authentication') . '" />
 </p>
 </form>' ;
-		
+
 		$params['html_snippets'][$this->name] = $result;
 
 		$params['transparent_redirect_urls'][$this->name] = util_make_url('/plugins/authhttpd/post-login.php?return_to='.htmlspecialchars(stripslashes($return_to)));
@@ -90,13 +90,13 @@
 		if ($username) {
 			$user = user_get_object_by_name($username);
 		}
-		
+
 		// TODO : shouldn't this part be factorized as it seems quite common for many plugins ?
 		if ($user) {
 			if ($this->isSufficient()) {
 				$this->saved_user = $user;
 				$params['results'][$this->name] = FORGE_AUTH_AUTHORITATIVE_ACCEPT;
-				
+
 			} else {
 				$params['results'][$this->name] = FORGE_AUTH_NOT_AUTHORITATIVE;
 			}

Modified: trunk/src/plugins/authldap/include/AuthLDAPPlugin.class.php
===================================================================
--- trunk/src/plugins/authldap/include/AuthLDAPPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/authldap/include/AuthLDAPPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,7 +1,7 @@
 <?php
 /** External authentication via LDAP for FusionForge
  * Copyright 2003, Roland Mas <lolando at debian.org>
- * Copyright 2004, Roland Mas <roland at gnurandal.com> 
+ * Copyright 2004, Roland Mas <roland at gnurandal.com>
  *                 The Gforge Group, LLC <http://gforgegroup.com/>
  * Copyright 2004, Christian Bayle <bayle at debian.org>
  * Copyright 2009-2010, Alain Peyrat, Alcatel-Lucent
@@ -50,7 +50,7 @@
 
 		$this->declareConfigVars();
 	}
-	
+
 	function syncAccountInfo($params) {
 		if (!$this->syncDataOn($params['event'])) {
 			return true;
@@ -75,7 +75,7 @@
 			$u = new GFUser();
 
 			$user_data = array();
-			
+
 			$user_data['unix_name'] = $n;
 			$user_data['firstname'] = '';
 			$user_data['lastname'] = '';
@@ -133,7 +133,7 @@
 					 $send_mail)) {
 				return false;
 			}
-			
+
 			if (!$u->setStatus ('A')) {
 				return false;
 			}
@@ -146,7 +146,7 @@
 		    && !session_check_credentials_in_database($this->saved_login, $this->saved_password, false)) {
 			$u->setPasswd($this->saved_password);
 		}
-		
+
 		$mapped_data = array(
 			'username' => $u->getUnixName(),
 			'md5_password' => '',
@@ -156,7 +156,7 @@
 			'email' => $u->getEmail(),
 			'phone' => $u->getPhone()
 			);
-			
+
 		foreach (explode(',', forge_get_config('mapping', $this->name))
 			 as $map_entry) {
 			list ($fffield, $ldapfield) = explode('=',$map_entry);
@@ -164,7 +164,7 @@
 				$mapped_data[$fffield] = $data[$ldapfield][0];
 			}
 		}
-		
+
 		$u->update($mapped_data['firstname'],
 			   $mapped_data['lastname'],
 			   $u->getLanguage(),
@@ -234,7 +234,7 @@
 		}
 
 		if (forge_get_config('manager_dn', $this->name)) {
-			ldap_bind($this->ldap_conn, 
+			ldap_bind($this->ldap_conn,
 				   forge_get_config('manager_dn', $this->name),
 				   forge_get_config('ldap_password'));
 		} else {

Modified: trunk/src/plugins/authldap/include/authldap-init.php
===================================================================
--- trunk/src/plugins/authldap/include/authldap-init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/authldap/include/authldap-init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,7 +1,7 @@
 <?php
 /** External authentication via LDAP for Gforge
  * Copyright 2003 Roland Mas <lolando at debian.org>
- * Copyright 2004 Roland Mas <roland at gnurandal.com> 
+ * Copyright 2004 Roland Mas <roland at gnurandal.com>
  *                The Gforge Group, LLC <http://gforgegroup.com/>
  *
  * This file is not part of Gforge

Modified: trunk/src/plugins/authopenid/include/AuthOpenIDPlugin.class.php
===================================================================
--- trunk/src/plugins/authopenid/include/AuthOpenIDPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/authopenid/include/AuthOpenIDPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -34,9 +34,9 @@
  */
 class AuthOpenIDPlugin extends ForgeAuthPlugin {
 	var $openid;
-	
+
 	var $openid_identity;
-	
+
 	function AuthOpenIDPlugin () {
 		global $gfconfig;
 		$this->ForgeAuthPlugin() ;
@@ -55,9 +55,9 @@
 		$this->saved_user = NULL;
 
 		$this->openid = FALSE;
-		
+
 		$this->openid_identity = FALSE;
-		
+
 		$this->declareConfigVars();
 	}
 
@@ -78,11 +78,11 @@
 		$result .= '<p>';
 		$result .= _('Cookies must be enabled past this point.');
 		$result .= '</p>';
-		
+
 		$result .= '<form action="' . util_make_url('/plugins/authopenid/post-login.php') . '" method="post">
 <input type="hidden" name="form_key" value="' . form_generate_key() . '"/>
 <input type="hidden" name="return_to" value="' . htmlspecialchars(stripslashes($return_to)) . '" />
-Your OpenID identifier: <input type="text" name="openid_identifier" /> 
+Your OpenID identifier: <input type="text" name="openid_identifier" />
 <input type="submit" name="login" value="' . _('Login via OpenID') . '" />
 </form>';
 
@@ -94,7 +94,7 @@
 	 * Is there a valid session?
 	 * @param unknown_type $params
 	 */
-	
+
 	function checkAuthSession(&$params) {
 		$this->saved_user = NULL;
 		$user = NULL;
@@ -114,12 +114,12 @@
 				}
 			}
 		}
-		
+
 		if ($user) {
 			if ($this->isSufficient()) {
 				$this->saved_user = $user;
 				$params['results'][$this->name] = FORGE_AUTH_AUTHORITATIVE_ACCEPT;
-				
+
 			} else {
 				$params['results'][$this->name] = FORGE_AUTH_NOT_AUTHORITATIVE;
 			}
@@ -157,8 +157,8 @@
 	 */
 	protected function declareConfigVars() {
 		parent::declareConfigVars();
-		
-		// Change vs default 
+
+		// Change vs default
 		forge_define_config_item ('required', $this->name, 'no');
 		forge_set_config_item_bool ('required', $this->name) ;
 
@@ -166,7 +166,7 @@
 		forge_define_config_item ('sufficient', $this->name, 'no');
 		forge_set_config_item_bool ('sufficient', $this->name) ;
 	}
-	
+
 	/**
 	 * Displays link to OpenID identities management tab in user's page ('usermenu' hook)
 	 * @param unknown_type $params
@@ -176,7 +176,7 @@
 		$text = $this->text; // this is what shows in the tab
 		if ($G_SESSION->usesPlugin($this->name)) {
 			//$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we�re calling is the user one
-			echo $HTML->PrintSubMenu (array ($text), array ('/plugins/authopenid/index.php'), array(_('coin pan')));				
+			echo $HTML->PrintSubMenu (array ($text), array ('/plugins/authopenid/index.php'), array(_('coin pan')));
 		}
 	}
 }

Modified: trunk/src/plugins/authopenid/www/index.php
===================================================================
--- trunk/src/plugins/authopenid/www/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/authopenid/www/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -43,17 +43,17 @@
 $openid_identity = htmlspecialchars(trim(getStringFromRequest('openid_identity', 'http://')));
 
 try {
-	
+
 	// initialize the OpenID lib handler which will read the posted args
 	$plugin->openid = new LightOpenID;
 	// check the 'openid_mode' that may be set on returning from OpenID provider
 	if($plugin->openid->mode) {
-		
+
     	// or we are called back by the OpenID provider
     	if($plugin->openid->mode == 'cancel') {
         	$warning_msg .= _('User has canceled authentication. Identity not added.');
     	} else {
-    	
+
 	    	// Authentication should have been attempted by OpenID provider
     		if ($plugin->openid->validate()) {
     			// If user successfully logged in to OpenID provider
@@ -69,7 +69,7 @@
 				}
     		}
     	}
-	}        
+	}
 } catch(ErrorException $e) {
     $error_msg = 'OpenID error: '. $e->getMessage();
     //exit(0);
@@ -87,17 +87,17 @@
 		if ($res && db_numrows($res) > 0) {
 			$error_msg = _('ERROR: identity already used by a forge user.');
 		} else {
-			
+
 			// TODO : redirect and check that the identity is authorized for the user
 			try {
-	
+
 				// initialize the OpenID lib handler which will read the posted args
 				$plugin->openid = new LightOpenID;
 				// check the 'openid_mode' that may be set on returning from OpenID provider
-				
+
             	$plugin->openid->identity = htmlspecialchars_decode($openid_identity);
             	session_redirect_external($plugin->openid->authUrl());
-            	
+
         	} catch(ErrorException $e) {
     			$error_msg = 'OpenID error: '. $e->getMessage();
     			//exit(0);
@@ -155,7 +155,7 @@
 
 	while ($row = db_fetch_array($res)) {
 		$openid_identity = 	$row['openid_identity'];
-	
+
 		echo '<tr '.$HTML->boxGetAltRowStyle($i).'>';
 		echo '<td>'. $openid_identity .'</td>';
 		echo '<td><a href="'.util_make_uri ('/plugins/authopenid/').'?openid_identity='. urlencode($openid_identity) .'&delete=1">delete</a></td>';

Modified: trunk/src/plugins/blocks/common/blocksPlugin.class.php
===================================================================
--- trunk/src/plugins/blocks/common/blocksPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/blocks/common/blocksPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -66,7 +66,7 @@
 			}
 		} elseif ($hookname == "blocks") {
 			return $this->blocks($params);
-		} 
+		}
 	}
 	function blocks($params) {
 		// Check if block is active and if yes, display the block.
@@ -103,7 +103,7 @@
 			}
 		}
 	}
-	
+
 	function parseContent($t) {
 		global $HTML;
 
@@ -118,7 +118,7 @@
 		$t = preg_replace('/{boxHeader}/i', '<hr />', $t);
 		$t = preg_replace('/{boxFooter}<\/p>/i', '<hr />', $t);
 		$t = preg_replace('/{boxFooter}/i', '<hr />', $t);
-		
+
 		return $t;
 	}
 }

Modified: trunk/src/plugins/blocks/etc/plugins/blocks/config.php
===================================================================
--- trunk/src/plugins/blocks/etc/plugins/blocks/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/blocks/etc/plugins/blocks/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -41,10 +41,10 @@
  * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
  * ALONE BASIS."
  */
- 
+
 $plugins_blocks_templates = array(
 	'summary_right' => "{boxTop Project}\nEnter your text here\n{boxBottom}",
 	'summary_description' => "Enter your description here",
 	'*' => "{boxHeader}Enter your text here{boxFooter}");
-	
+
 ?>

Modified: trunk/src/plugins/contribtracker/www/actor_logo.php
===================================================================
--- trunk/src/plugins/contribtracker/www/actor_logo.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/contribtracker/www/actor_logo.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,7 +39,7 @@
 	echo $actor->getLogo();
 } else {
 		exit_error (_('Invalid actor'),'contribtracker');
-}	
+}
 
 // Local Variables:
 // mode: php

Modified: trunk/src/plugins/contribtracker/www/global_admin.php
===================================================================
--- trunk/src/plugins/contribtracker/www/global_admin.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/contribtracker/www/global_admin.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -90,7 +90,7 @@
 		unlink ($arr['tmp_name']) ;
 	}
 	return $logo ;
-}	
+}
 
 // Get and validate parameters, error if tampered with
 switch ($action) {
@@ -107,13 +107,13 @@
 case 'del_role':
 	$role_id = getIntFromRequest ('role_id') ;
 	check_role_id ($role_id) ;
-	break ;	
+	break ;
 case 'post_edit_role':
 	$role_id = getIntFromRequest ('role_id') ;
 	check_role_id ($role_id) ;
 	$name = getStringFromRequest ('role_name') ;
 	$desc = getStringFromRequest ('role_desc') ;
-	break ;	
+	break ;
 
 case 'add_structure':
 	break ;
@@ -125,13 +125,13 @@
 case 'del_structure':
 	$structure_id = getIntFromRequest ('structure_id') ;
 	check_structure_id ($structure_id) ;
-	break ;	
+	break ;
 case 'post_edit_structure':
 	$structure_id = getIntFromRequest ('structure_id') ;
 	check_structure_id ($structure_id) ;
 	$name = getStringFromRequest ('structure_name') ;
 	$desc = getStringFromRequest ('structure_desc') ;
-	break ;	
+	break ;
 
 case 'add_actor':
 	break ;
@@ -149,7 +149,7 @@
 case 'del_actor':
 	$actor_id = getIntFromRequest ('actor_id') ;
 	check_actor_id ($actor_id) ;
-	break ;	
+	break ;
 case 'post_edit_actor':
 	$actor_id = getIntFromRequest ('actor_id') ;
 	check_actor_id ($actor_id) ;
@@ -161,10 +161,10 @@
 	$logo = check_logo ($logoarr, $actor_id) ;
 	$structure_id = getIntFromRequest ('structure_id') ;
 	check_structure_id ($structure_id) ;
-	break ;	
+	break ;
 
 }
-	
+
 // Do the required action
 
 switch ($action) {
@@ -293,7 +293,7 @@
 			} else {
 		print _("No legal structures yet, can't define actors without them.") ;
 	}
-	
+
 	print '<h1>'._('Existing legal structures').'</h1>' ;
 	$structs = $plugin->getLegalStructures () ;
 	if (count ($structs)) {
@@ -319,7 +319,7 @@
 					 </td>
 					 <?php
 					 print '</tr>';
-		}	
+		}
 		print '</tbody></table>' ;
 	} else {
 		print _('No legal structures currently defined.') ;
@@ -358,7 +358,7 @@
 					 </td>
 					 <?php
 					 print '</tr>';
-		}	
+		}
 		print '</tbody></table>' ;
 	} else {
 		print _('No roles currently defined.') ;
@@ -389,7 +389,7 @@
 case 'edit_role':
 	print '<h1>'._('Edit a role').'</h1>' ;
 	$role = new ContribTrackerRole ($role_id) ;
-	
+
 	?>
 		<form action="<?php echo util_make_url ('/plugins/'.$plugin->name.'/global_admin.php') ?>" method="post">
 			 <input type="hidden" name="action" value="post_edit_role" />
@@ -417,7 +417,7 @@
 case 'edit_structure':
 	print '<h1>'._('Edit a legal structure').'</h1>' ;
 	$structure = new ContribTrackerLegalStructure ($structure_id) ;
-	
+
 	?>
 		<form action="<?php echo util_make_url ('/plugins/'.$plugin->name.'/global_admin.php') ?>" method="post">
 			 <input type="hidden" name="action" value="post_edit_structure" />
@@ -458,7 +458,7 @@
 case 'edit_actor':
 	print '<h1>'._('Edit an actor').'</h1>' ;
 	$actor = new ContribTrackerActor ($actor_id) ;
-	
+
 	?>
 		<form action="<?php echo util_make_url ('/plugins/'.$plugin->name.'/global_admin.php') ?>" method="post" enctype="multipart/form-data">
 			 <input type="hidden" name="action" value="post_edit_actor" />

Modified: trunk/src/plugins/contribtracker/www/project_admin.php
===================================================================
--- trunk/src/plugins/contribtracker/www/project_admin.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/contribtracker/www/project_admin.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -73,7 +73,7 @@
 	} else {
 		return 0 ;
 	}
-}	
+}
 
 // Get and validate parameters, error if tampered with
 switch ($action) {
@@ -90,7 +90,7 @@
 case 'del_contrib':
 	$contrib_id = getIntFromRequest ('contrib_id') ;
 	check_contrib_id ($contrib_id, $group_id) ;
-	break ;	
+	break ;
 case 'post_edit_contrib':
 	$contrib_id = getIntFromRequest ('contrib_id') ;
 	check_contrib_id ($contrib_id, $group_id) ;
@@ -126,7 +126,7 @@
 	}
 	break ;
 }
-	
+
 // Do the required action
 
 switch ($action) {
@@ -216,7 +216,7 @@
 <?php
 
 	 print '<h3>'._('Current participants').'</h3>' ;
-	  
+
 	$parts = $contrib->getParticipations () ;
 	print '<strong>'.ngettext('Participant:',
 				  'Participants:',
@@ -250,9 +250,9 @@
 		print '</li>' ;
 	}
 	print '</ul>' ;
-	
+
 	  print '<h3>'._('Add a participant').'</h3>' ;
-	
+
 ?>
 <form action="<?php echo util_make_url ('/plugins/'.$plugin->name.'/project_admin.php') ?>" method="post">
 <input type="hidden" name="action" value="add_part" />
@@ -283,17 +283,17 @@
 	$contribs = $plugin->getContributionsByGroup ($group) ;
 	if (count ($contribs) != 0) {
 		print '<h1>'._('Existing contributions').'</h1>' ;
-		
+
 		foreach ($contribs as $c) {
 			print '<h3>'.$c->getName().'</h3>' ;
 			print '<strong>'._('Date:').'</strong> ' ;
 			print strftime (_('%Y-%m-%d'), $c->getDate ()) ;
 			print '<br />' ;
-			
+
 			print '<strong>'._('Description:').'</strong> ' ;
 			print htmlspecialchars ($c->getDescription ()) ;
 			print '<br />' ;
-			
+
 			$parts = $c->getParticipations () ;
 			print '<strong>'.ngettext('Participant:',
 						  'Participants:',
@@ -328,7 +328,7 @@
 		}
 	} else {
 		print '<h1>'._('No contributions for this project yet.').'</h1>' ;
-	}		
+	}
 ?>
 <form action="<?php echo util_make_url ('/plugins/'.$plugin->name.'/project_admin.php') ?>" method="post">
 <input type="hidden" name="action" value="add_contrib" />

Modified: trunk/src/plugins/cvssyncmail/common/CVSSyncMailPlugin.class.php
===================================================================
--- trunk/src/plugins/cvssyncmail/common/CVSSyncMailPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/cvssyncmail/common/CVSSyncMailPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -62,7 +62,7 @@
 			} else {
 				$group->setPluginUse ( $this->name, false );
 			}
-		} 
+		}
 	}
 }
 

Modified: trunk/src/plugins/cvstracker/bin/post.php
===================================================================
--- trunk/src/plugins/cvstracker/bin/post.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/cvstracker/bin/post.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -28,7 +28,7 @@
  *  HTTP POSTs to /plugins/cvstracker/newcommit.php.
  *
  */
- 
+
 require dirname(__FILE__).'/../../env.inc.php';
 require_once $gfcommon.'include/pre.php';
 require_once ($gfcommon.'common/include/utils.php');
@@ -49,7 +49,7 @@
 	global $cvs_binary_version;
 	if ($cvs_binary_version == "1.12" ) {
 		echo "Usage: $argv[0] <Repository> <Path> [<File> <VersionFrom> <VersionTo>]xN\n";
-	} 
+	}
 	if ($cvs_binary_version == "1.11" ) {
 		echo "Usage: $argv[0] <Repository> [<File>,<VersionFrom>,<VersionTo>xN]\n";
 	}
@@ -121,11 +121,11 @@
 	if ($argc <= 3 ) {
 		usage ( $argv );
 	}
-	
+
 	$repository      = $argv[1];
 	$parameters = explode(' ', $argv[2]);
 	$path = $parameters[0];
-	
+
 	for($i = 1; $i < count($parameters); $i++) {
 		$filesInformation = explode(',', trim($parameters[$i], ','));
 
@@ -135,13 +135,13 @@
 			'actual' => $filesInformation[2]
 		);
 	}
-	
-} 
+
+}
 if ( $cvs_binary_version == "1.12" ) {
 	if ($argc < 6 ) {
 		usage ( $argv );
 	}
-	
+
 	if ( (($argc - 3) % 3 ) != 0 ) {
 		echo "There should be 3 params + 3*N, instead of $argc\n";
 		usage ( $argv );
@@ -149,7 +149,7 @@
 	$NumFiles= (($argc-3) / 3 ); // 3 Fixed params + 3 * File
 	$repository      = $argv[1];
 	$path            = $argv[2];
-	
+
 	for ( $i=0; $i < $NumFiles; $i++ ) {
 		$files[] = array(
 			'name' => $path."/".$argv[3 + 3*$i],
@@ -198,7 +198,7 @@
 	$SubmitVars[$i]["CvsDate"]         = time();
 	$i++;
 }
-	
+
 $vars['data'] = serialize($SubmitVars);
 $snoopy->submit($SubmitUrl,$vars);
 

Modified: trunk/src/plugins/cvstracker/common/Snoopy.class.php
===================================================================
--- trunk/src/plugins/cvstracker/common/Snoopy.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/cvstracker/common/Snoopy.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -38,7 +38,7 @@
 class Snoopy
 {
 	/**** Public variables ****/
-	
+
 	/* user definable vars */
 
 	var $host			=	"www.php.net";		// host name we are connecting to
@@ -62,15 +62,15 @@
 	var $passcookies	=	true;				// pass set cookies back through redirects
 												// NOTE: this currently does not respect
 												// dates, domains or paths.
-	
+
 	var	$user			=	"";					// user for http authentication
 	var	$pass			=	"";					// password for http authentication
-	
+
 	// http accept types
 	var $accept			=	"image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*";
-	
+
 	var $results		=	"";					// where the content is put
-		
+
 	var $error			=	"";					// error messages sent here
 	var	$response_code	=	"";					// response code returned from server
 	var	$headers		=	array();			// headers returned from server sent here
@@ -80,7 +80,7 @@
 												// set to 0 to disallow timeouts
 	var $timed_out		=	false;				// if a read operation timed out
 	var	$status			=	0;					// http request status
-	
+
 	var	$curl_path		=	"/usr/bin/curl";
 												// Snoopy will use cURL for fetching
 												// SSL content if a full system path to
@@ -92,11 +92,11 @@
 												// library functions built into php,
 												// as these functions are not stable
 												// as of this Snoopy release.
-	
-	/**** Private variables ****/	
-	
+
+	/**** Private variables ****/
+
 	var	$_maxlinelen	=	4096;				// max line length (headers)
-	
+
 	var $_httpmethod	=	"GET";				// default http request method
 	var $_httpversion	=	"HTTP/1.0";			// default http request version
 	var $_submit_method	=	"POST";				// default submit method
@@ -106,7 +106,7 @@
 	var $_redirectdepth	=	0;					// increments on an http redirect
 	var $_frameurls		= 	array();			// frame src urls
 	var $_framedepth	=	0;					// increments on frame depth
-	
+
 	var $_isproxy		=	false;				// set if using a proxy server
 	var $_fp_timeout	=	30;					// timeout for socket connection
 
@@ -121,14 +121,14 @@
 
 	function fetch($URI)
 	{
-	
+
 		//preg_match("|^([^:]+)://([^:/]+)(:[\d]+)*(.*)|",$URI,$URI_PARTS);
 		$URI_PARTS = parse_url($URI);
 		if (!empty($URI_PARTS["user"]))
 			$this->user = $URI_PARTS["user"];
 		if (!empty($URI_PARTS["pass"]))
 			$this->pass = $URI_PARTS["pass"];
-				
+
 		switch($URI_PARTS["scheme"])
 		{
 			case "http":
@@ -148,7 +148,7 @@
 						// no proxy, send only the path
 						$this->_httprequest($path, $fp, $URI, $this->_httpmethod);
 					}
-					
+
 					$this->_disconnect($fp);
 
 					if($this->_redirectaddr)
@@ -171,7 +171,7 @@
 					{
 						$frameurls = $this->_frameurls;
 						$this->_frameurls = array();
-						
+
 						while(list(,$frameurl) = each($frameurls))
 						{
 							if($this->_framedepth < $this->maxframes)
@@ -182,13 +182,13 @@
 							else
 								break;
 						}
-					}					
+					}
 				}
 				else
 				{
 					return false;
 				}
-				return true;					
+				return true;
 				break;
 			case "https":
 				if(!$this->curl_path || (!is_executable($this->curl_path)))
@@ -239,15 +239,15 @@
 						else
 							break;
 					}
-				}					
-				return true;					
+				}
+				return true;
 				break;
 			default:
 				// not a valid protocol
 				$this->error	=	'Invalid protocol "'.$URI_PARTS["scheme"].'"\n';
 				return false;
 				break;
-		}		
+		}
 		return true;
 	}
 
@@ -263,15 +263,15 @@
 	function submit($URI, $formvars="", $formfiles="")
 	{
 		unset($postdata);
-		
+
 		$postdata = $this->_prepare_post_body($formvars, $formfiles);
-			
+
 		$URI_PARTS = parse_url($URI);
 		if (!empty($URI_PARTS["user"]))
 			$this->user = $URI_PARTS["user"];
 		if (!empty($URI_PARTS["pass"]))
 			$this->pass = $URI_PARTS["pass"];
-				
+
 		switch($URI_PARTS["scheme"])
 		{
 			case "http":
@@ -291,17 +291,17 @@
 						// no proxy, send only the path
 						$this->_httprequest($path, $fp, $URI, $this->_submit_method, $this->_submit_type, $postdata);
 					}
-					
+
 					$this->_disconnect($fp);
 
 					if($this->_redirectaddr)
 					{
 						/* url was redirected, check if we've hit the max depth */
 						if($this->maxredirs > $this->_redirectdepth)
-						{						
+						{
 							if(!preg_match("|^".$URI_PARTS["scheme"]."://|", $this->_redirectaddr))
-								$this->_redirectaddr = $this->_expandlinks($this->_redirectaddr,$URI_PARTS["scheme"]."://".$URI_PARTS["host"]);						
-							
+								$this->_redirectaddr = $this->_expandlinks($this->_redirectaddr,$URI_PARTS["scheme"]."://".$URI_PARTS["host"]);
+
 							// only follow redirect if it's on this site, or offsiteok is true
 							if(preg_match("|^http://".preg_quote($this->host)."|i",$this->_redirectaddr) || $this->offsiteok)
 							{
@@ -317,9 +317,9 @@
 					{
 						$frameurls = $this->_frameurls;
 						$this->_frameurls = array();
-						
+
 						while(list(,$frameurl) = each($frameurls))
-						{														
+						{
 							if($this->_framedepth < $this->maxframes)
 							{
 								$this->fetch($frameurl);
@@ -328,14 +328,14 @@
 							else
 								break;
 						}
-					}					
-					
+					}
+
 				}
 				else
 				{
 					return false;
 				}
-				return true;					
+				return true;
 				break;
 			case "https":
 				if(!$this->curl_path || (!is_executable($this->curl_path)))
@@ -359,9 +359,9 @@
 				{
 					/* url was redirected, check if we've hit the max depth */
 					if($this->maxredirs > $this->_redirectdepth)
-					{						
+					{
 						if(!preg_match("|^".$URI_PARTS["scheme"]."://|", $this->_redirectaddr))
-							$this->_redirectaddr = $this->_expandlinks($this->_redirectaddr,$URI_PARTS["scheme"]."://".$URI_PARTS["host"]);						
+							$this->_redirectaddr = $this->_expandlinks($this->_redirectaddr,$URI_PARTS["scheme"]."://".$URI_PARTS["host"]);
 
 						// only follow redirect if it's on this site, or offsiteok is true
 						if(preg_match("|^http://".preg_quote($this->host)."|i",$this->_redirectaddr) || $this->offsiteok)
@@ -380,7 +380,7 @@
 					$this->_frameurls = array();
 
 					while(list(,$frameurl) = each($frameurls))
-					{														
+					{
 						if($this->_framedepth < $this->maxframes)
 						{
 							$this->fetch($frameurl);
@@ -389,16 +389,16 @@
 						else
 							break;
 					}
-				}					
-				return true;					
+				}
+				return true;
 				break;
-				
+
 			default:
 				// not a valid protocol
 				$this->error	=	'Invalid protocol "'.$URI_PARTS["scheme"].'"\n';
 				return false;
 				break;
-		}		
+		}
 		return true;
 	}
 
@@ -412,7 +412,7 @@
 	function fetchlinks($URI)
 	{
 		if ($this->fetch($URI))
-		{			
+		{
 
 			if(is_array($this->results))
 			{
@@ -439,9 +439,9 @@
 
 	function fetchform($URI)
 	{
-		
+
 		if ($this->fetch($URI))
-		{			
+		{
 
 			if(is_array($this->results))
 			{
@@ -450,14 +450,14 @@
 			}
 			else
 				$this->results = $this->_stripform($this->results);
-			
+
 			return true;
 		}
 		else
 			return false;
 	}
-	
-	
+
+
 /*======================================================================*\
 	Function:	fetchtext
 	Purpose:	fetch the text from a web page, stripping the links
@@ -468,7 +468,7 @@
 	function fetchtext($URI)
 	{
 		if($this->fetch($URI))
-		{			
+		{
 			if(is_array($this->results))
 			{
 				for($x=0;$x<count($this->results);$x++)
@@ -492,7 +492,7 @@
 	function submitlinks($URI, $formvars="", $formfiles="")
 	{
 		if($this->submit($URI,$formvars, $formfiles))
-		{			
+		{
 			if(is_array($this->results))
 			{
 				for($x=0;$x<count($this->results);$x++)
@@ -524,7 +524,7 @@
 	function submittext($URI, $formvars = "", $formfiles = "")
 	{
 		if($this->submit($URI,$formvars, $formfiles))
-		{			
+		{
 			if(is_array($this->results))
 			{
 				for($x=0;$x<count($this->results);$x++)
@@ -546,8 +546,8 @@
 			return false;
 	}
 
-	
 
+
 /*======================================================================*\
 	Function:	set_submit_multipart
 	Purpose:	Set the form submission content type to
@@ -558,7 +558,7 @@
 		$this->_submit_type = "multipart/form-data";
 	}
 
-	
+
 /*======================================================================*\
 	Function:	set_submit_normal
 	Purpose:	Set the form submission content type to
@@ -569,14 +569,14 @@
 		$this->_submit_type = "application/x-www-form-urlencoded";
 	}
 
-	
-	
 
+
+
 /*======================================================================*\
 	Private functions
 \*======================================================================*/
-	
-	
+
+
 /*======================================================================*\
 	Function:	_striplinks
 	Purpose:	strip the hyperlinks from an html document
@@ -585,28 +585,28 @@
 \*======================================================================*/
 
 	function _striplinks($document)
-	{	
+	{
 		preg_match_all("'<\s*a\s.*?href\s*=\s*			# find <a href=
 						([\"\'])?					# find single or double quote
 						(?(1) (.*?)\\1 | ([^\s\>]+))		# if quote found, match up to next matching
 													# quote, otherwise match up to next space
 						'isx",$document,$links);
-						
 
+
 		// catenate the non-empty matches from the conditional subpattern
 
 		while(list($key,$val) = each($links[2]))
 		{
 			if(!empty($val))
 				$match[] = $val;
-		}				
-		
+		}
+
 		while(list($key,$val) = each($links[3]))
 		{
 			if(!empty($val))
 				$match[] = $val;
-		}		
-		
+		}
+
 		// return the links
 		return $match;
 	}
@@ -619,18 +619,18 @@
 \*======================================================================*/
 
 	function _stripform($document)
-	{	
+	{
 		preg_match_all("'<\/?(FORM|INPUT|SELECT|TEXTAREA|(OPTION))[^<>]*>(?(2)(.*(?=<\/?(option|select)[^<>]*>[\r\n]*)|(?=[\r\n]*))|(?=[\r\n]*))'Usi",$document,$elements);
-		
+
 		// catenate the matches
 		$match = implode("\r\n",$elements[0]);
-				
+
 		// return the links
 		return $match;
 	}
 
-	
-	
+
+
 /*======================================================================*\
 	Function:	_striptext
 	Purpose:	strip the text from an html document
@@ -640,11 +640,11 @@
 
 	function _striptext($document)
 	{
-		
+
 		// I didn't use preg eval (//e) since that is only available in PHP 4.0.
 		// so, list your entities one by one here. I included some of the
 		// more common ones.
-								
+
 		$search = array("'<script[^>]*?>.*?</script>'si",	// strip out javascript
 						"'<[\/\!]*?[^<>]*?>'si",			// strip out html tags
 						"'([\r\n])[\s]+'",					// strip out white space
@@ -693,9 +693,9 @@
 							"Ü",
 							"ß",
 						);
-					
+
 		$text = preg_replace($search,$replace,$document);
-								
+
 		return $text;
 	}
 
@@ -709,23 +709,23 @@
 
 	function _expandlinks($links,$URI)
 	{
-		
+
 		preg_match("/^[^\?]+/",$URI,$match);
 
 		$match = preg_replace("|/[^\/\.]+\.[^\/\.]+$|","",$match[0]);
-				
+
 		$search = array( 	"|^http://".preg_quote($this->host)."|i",
 							"|^(?!http://)(\/)?(?!mailto:)|i",
 							"|/\./|",
 							"|/[^\/]+/\.\./|"
 						);
-						
+
 		$replace = array(	"",
 							$match."/",
 							"/",
 							"/"
-						);			
-				
+						);
+
 		$expandedLinks = preg_replace($search,$replace,$links);
 
 		return $expandedLinks;
@@ -738,19 +738,19 @@
 				$fp			the current open file pointer
 				$URI		the full URI
 				$body		body contents to send if any (POST)
-	Output:		
+	Output:
 \*======================================================================*/
-	
+
 	function _httprequest($url,$fp,$URI,$http_method,$content_type="",$body="")
 	{
 		$cookie_headers = '';
 		if($this->passcookies && $this->_redirectaddr)
 			$this->setcookies();
-			
+
 		$URI_PARTS = parse_url($URI);
 		if(empty($url))
 			$url = "/";
-		$headers = $http_method." ".$url." ".$this->_httpversion."\r\n";		
+		$headers = $http_method." ".$url." ".$this->_httpversion."\r\n";
 		if(!empty($this->agent))
 			$headers .= "User-Agent: ".$this->agent."\r\n";
 		if(!empty($this->host) && !isset($this->rawheaders['Host']))
@@ -760,10 +760,10 @@
 		if(!empty($this->referer))
 			$headers .= "Referer: ".$this->referer."\r\n";
 		if(!empty($this->cookies))
-		{			
+		{
 			if(!is_array($this->cookies))
 				$this->cookies = (array)$this->cookies;
-	
+
 			reset($this->cookies);
 			if ( count($this->cookies) > 0 ) {
 				$cookie_headers .= 'Cookie: ';
@@ -771,7 +771,7 @@
 				$cookie_headers .= $cookieKey."=".urlencode($cookieVal)."; ";
 				}
 				$headers .= substr($cookie_headers,0,-2) . "\r\n";
-			} 
+			}
 		}
 		if(!empty($this->rawheaders))
 		{
@@ -786,23 +786,23 @@
 				$headers .= "; boundary=".$this->_mime_boundary;
 			$headers .= "\r\n";
 		}
-		if(!empty($body))	
+		if(!empty($body))
 			$headers .= "Content-length: ".strlen($body)."\r\n";
-		if(!empty($this->user) || !empty($this->pass))	
+		if(!empty($this->user) || !empty($this->pass))
 			$headers .= "Authorization: Basic ".base64_encode($this->user.":".$this->pass)."\r\n";
 
 		$headers .= "\r\n";
-		
+
 		// set the read timeout if needed
 		if ($this->read_timeout > 0)
 			socket_set_timeout($fp, $this->read_timeout);
 		$this->timed_out = false;
-		
+
 		fwrite($fp,$headers.$body,strlen($headers.$body));
-		
+
 		$this->_redirectaddr = false;
 		unset($this->headers);
-						
+
 		while($currentHeader = fgets($fp,$this->_maxlinelen))
 		{
 			if ($this->read_timeout > 0 && $this->_check_timeout($fp))
@@ -810,10 +810,10 @@
 				$this->status=-100;
 				return false;
 			}
-				
+
 			if($currentHeader == "\r\n")
 				break;
-						
+
 			// if a header begins with Location: or URI:, set the redirect
 			if(preg_match("/^(Location:|URI:)/i",$currentHeader))
 			{
@@ -833,16 +833,16 @@
 				else
 					$this->_redirectaddr = $matches[2];
 			}
-		
+
 			if(preg_match("|^HTTP/|",$currentHeader))
 			{
                 if(preg_match("|^HTTP/[^\s]*\s(.*?)\s|",$currentHeader, $status))
 				{
 					$this->status= $status[1];
-                }				
+                }
 				$this->response_code = $currentHeader;
 			}
-				
+
 			$this->headers[] = $currentHeader;
 		}
 
@@ -860,12 +860,12 @@
 			$this->status=-100;
 			return false;
 		}
-		
+
 		// check if there is a a redirect meta tag
-		
+
 		if(preg_match("'<meta[\s]*http-equiv[^>]*?content[\s]*=[\s]*[\"\']?\d+;[\s]+URL[\s]*=[\s]*([^\"\']*?)[\"\']?>'i",$results,$match))
 		{
-			$this->_redirectaddr = $this->_expandlinks($match[1],$URI);	
+			$this->_redirectaddr = $this->_expandlinks($match[1],$URI);
 		}
 
 		// have we hit our frame depth and is there frame src to fetch?
@@ -881,7 +881,7 @@
 		// no framed content
 		else
 			$this->results = $results;
-		
+
 		return true;
 	}
 
@@ -891,21 +891,21 @@
 	Input:		$url		the url to fetch
 				$URI		the full URI
 				$body		body contents to send if any (POST)
-	Output:		
+	Output:
 \*======================================================================*/
-	
+
 	function _httpsrequest($url,$URI,$http_method,$content_type="",$body="")
 	{
 		if($this->passcookies && $this->_redirectaddr)
 			$this->setcookies();
 
-		$headers = array();		
-					
+		$headers = array();
+
 		$URI_PARTS = parse_url($URI);
 		if(empty($url))
 			$url = "/";
 		// GET ... header not needed for curl
-		//$headers[] = $http_method." ".$url." ".$this->_httpversion;		
+		//$headers[] = $http_method." ".$url." ".$this->_httpversion;
 		if(!empty($this->agent))
 			$headers[] = "User-Agent: ".$this->agent;
 		if(!empty($this->host))
@@ -915,10 +915,10 @@
 		if(!empty($this->referer))
 			$headers[] = "Referer: ".$this->referer;
 		if(!empty($this->cookies))
-		{			
+		{
 			if(!is_array($this->cookies))
 				$this->cookies = (array)$this->cookies;
-	
+
 			reset($this->cookies);
 			if ( count($this->cookies) > 0 ) {
 				$cookie_str = 'Cookie: ';
@@ -941,41 +941,41 @@
 			else
 				$headers[] = "Content-type: $content_type";
 		}
-		if(!empty($body))	
+		if(!empty($body))
 			$headers[] = "Content-length: ".strlen($body);
-		if(!empty($this->user) || !empty($this->pass))	
+		if(!empty($this->user) || !empty($this->pass))
 			$headers[] = "Authorization: BASIC ".base64_encode($this->user.":".$this->pass);
-			
+
 		for($curr_header = 0; $curr_header < count($headers); $curr_header++)
 			$cmdline_params .= " -H \"".$headers[$curr_header]."\"";
-		
+
 		if(!empty($body))
 			$cmdline_params .= " -d \"$body\"";
-		
+
 		if($this->read_timeout > 0)
 			$cmdline_params .= " -m ".$this->read_timeout;
-		
+
 		$headerfile = uniqid(time());
 // TODO -> WE SHOULD MODIFY THE -K PARAMETER. THIS IS ONLY FOR TEST PURPOSES, AS WE DON'T HAVE A CERTIFICATE
 		exec($this->curl_path." -D \"/tmp/$headerfile\"".$cmdline_params." -k ".$URI,$results,$return);
-		
+
 		if($return)
 		{
 			$this->error = "Error: cURL could not retrieve the document, error $return.";
 			return false;
 		}
-			
-			
+
+
 		$results = implode("\r\n",$results);
-		
+
 		$result_headers = file("/tmp/$headerfile");
-						
+
 		$this->_redirectaddr = false;
 		unset($this->headers);
-						
+
 		for($currentHeader = 0; $currentHeader < count($result_headers); $currentHeader++)
 		{
-			
+
 			// if a header begins with Location: or URI:, set the redirect
 			if(preg_match("/^(Location: |URI: )/i",$result_headers[$currentHeader]))
 			{
@@ -995,7 +995,7 @@
 				else
 					$this->_redirectaddr = $matches[2];
 			}
-		
+
 			if(preg_match("|^HTTP/|",$result_headers[$currentHeader]))
 				$this->response_code = $result_headers[$currentHeader];
 
@@ -1003,10 +1003,10 @@
 		}
 
 		// check if there is a a redirect meta tag
-		
+
 		if(preg_match("'<meta[\s]*http-equiv[^>]*?content[\s]*=[\s]*[\"\']?\d+;[\s]+URL[\s]*=[\s]*([^\"\']*?)[\"\']?>'i",$results,$match))
 		{
-			$this->_redirectaddr = $this->_expandlinks($match[1],$URI);	
+			$this->_redirectaddr = $this->_expandlinks($match[1],$URI);
 		}
 
 		// have we hit our frame depth and is there frame src to fetch?
@@ -1024,7 +1024,7 @@
 			$this->results = $results;
 
 		unlink("/tmp/$headerfile");
-		
+
 		return true;
 	}
 
@@ -1032,7 +1032,7 @@
 	Function:	setcookies()
 	Purpose:	set cookies for a redirection
 \*======================================================================*/
-	
+
 	function setcookies()
 	{
 		for($x=0; $x<count($this->headers); $x++)
@@ -1042,7 +1042,7 @@
 		}
 	}
 
-	
+
 /*======================================================================*\
 	Function:	_check_timeout
 	Purpose:	checks whether timeout has occurred
@@ -1066,7 +1066,7 @@
 	Purpose:	make a socket connection
 	Input:		$fp	file pointer
 \*======================================================================*/
-	
+
 	function _connect(&$fp)
 	{
 		if(!empty($this->proxy_host) && !empty($this->proxy_port))
@@ -1080,9 +1080,9 @@
 			$host = $this->host;
 			$port = $this->port;
 		}
-	
+
 		$this->status = 0;
-		
+
 		if($fp = fsockopen(
 					$host,
 					$port,
@@ -1118,13 +1118,13 @@
 	Purpose:	disconnect a socket connection
 	Input:		$fp	file pointer
 \*======================================================================*/
-	
+
 	function _disconnect($fp)
 	{
 		return(fclose($fp));
 	}
 
-	
+
 /*======================================================================*\
 	Function:	_prepare_post_body
 	Purpose:	Prepare post body according to encoding type
@@ -1132,7 +1132,7 @@
 				$formfiles - form upload files
 	Output:		post body
 \*======================================================================*/
-	
+
 	function _prepare_post_body($formvars, $formfiles)
 	{
 		settype($formvars, "array");
@@ -1140,7 +1140,7 @@
 
 		if (count($formvars) == 0 && count($formfiles) == 0)
 			return;
-		
+
 		switch ($this->_submit_type) {
 			case "application/x-www-form-urlencoded":
 				reset($formvars);
@@ -1156,7 +1156,7 @@
 
 			case "multipart/form-data":
 				$this->_mime_boundary = "Snoopy".md5(uniqid(microtime()));
-				
+
 				reset($formvars);
 				while(list($key,$val) = each($formvars)) {
 					if (is_array($val) || is_object($val)) {
@@ -1171,7 +1171,7 @@
 						$postdata .= "$val\r\n";
 					}
 				}
-				
+
 				reset($formfiles);
 				while (list($field_name, $file_names) = each($formfiles)) {
 					settype($file_names, "array");

Modified: trunk/src/plugins/cvstracker/common/cvstrackerPlugin.class.php
===================================================================
--- trunk/src/plugins/cvstracker/common/cvstrackerPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/cvstracker/common/cvstrackerPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -57,20 +57,20 @@
 	*/
 	function getCommitEntries($DBResult,$group_id) {
 		$group = group_get_object($group_id);
-		
+
 		if (!$group->usesPlugin($this->name)) {
 			return;
 		}
-		
+
 		$Rows= db_numrows($DBResult);
-		
+
 		if ($Rows > 0) {
 			echo '<tr><td colspan="2">';
 			echo '<h4>'._('Links to related CVS commits').':</h4>';
 
 			$title_arr=$this->getTitleArr();
 			echo $GLOBALS['HTML']->listTableTop ($title_arr);
-		
+
 			for ($i=0; $i<$Rows; $i++) {
 				$Row = db_fetch_array($DBResult);
 				echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>'.
@@ -173,9 +173,9 @@
 	*/
 	function addCvsTrackerToFile($group, $path) {
 		global  $cvs_binary_version;
-		
+
 		$FOut = fopen($path, "a");
-		if($FOut) {		
+		if($FOut) {
 			fwrite($FOut, "# BEGIN added by gforge-plugin-cvstracker\n");
 			if ( $cvs_binary_version == "1.12" ) {
 				$Line = "ALL ( php -q -d include_path=".ini_get('include_path').
@@ -192,11 +192,11 @@
 			fclose($FOut);
 		}
 	}
-	
+
 	/**
-	* Function to get cvstracker loginfo lines 
+	* Function to get cvstracker loginfo lines
 	*
-	* 
+	*
 	*	return array with the loginfo lines.
 	*/
 	function getCvsTrackerLogInfoLines() {
@@ -211,12 +211,12 @@
 			$array[] = "ALL ( php -q -d include_path=".ini_get('include_path').
 			" ".forge_get_config('plugins_path')."/cvstracker/bin/post.php
  %r %p %{sVv} )\n";
-		}			
+		}
 		$array[]= "# END added by gforge-plugin-cvstracker\n";
-		
+
 		return $array;
 	}
-	
+
 	/**
 	* Retrieve a file into a temporary directory from a CVS server
 	*
@@ -228,7 +228,7 @@
 	function getCvsFile($repos,$file) {
 		$actual_dir = getcwd();
 		$tempdirname = tempnam("/tmp","cvstracker");
-		if (!$tempdirname) 
+		if (!$tempdirname)
 			return false;
 		if (!unlink($tempdirname))
 			return false;
@@ -240,7 +240,7 @@
 		if (!chdir($tempdirname))
 			return false;
 		system("cvs -d ".$repos." co ".$file);
-		
+
 		chdir($actual_dir);
 		return $tempdirname.$file;
 	}
@@ -290,7 +290,7 @@
 							}
 				 	}
 				 	fclose($FIn);
-				}				
+				}
 				if($LineFound==FALSE) {
 					$newfile=getCvsFile($params["file_name"],
 						 "CVSROOT/loginfo");
@@ -301,7 +301,7 @@
 			}
 		} elseif ($hookname == "get_cvs_loginfo_lines") {
 			$group = group_get_object($group_id);
-			$GLOBALS['loginfo_lines']=$this->getCvsTrackerLogInfoLines($group);		
+			$GLOBALS['loginfo_lines']=$this->getCvsTrackerLogInfoLines($group);
 		}
 	}
 }

Modified: trunk/src/plugins/cvstracker/www/newcommit.php
===================================================================
--- trunk/src/plugins/cvstracker/www/newcommit.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/cvstracker/www/newcommit.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -57,7 +57,7 @@
 function parseConfig($Config)
 {
 	$repos_path = forge_get_config ('repos_path', 'scmcvs') ;
-	
+
 	$Result = array();
 	$Result['check'] = true;
 	$Repository = $Config['Repository'];
@@ -72,7 +72,7 @@
 	} else {
 		$GroupName = $Repository;
 	}
-	
+
 	$Result['user']     = user_get_object_by_name($UserName);
 	if (!$Result['user'] || !is_object($Result['user']) ||
 		$Result['user']->isError() || !$Result['user']->isActive()) {

Modified: trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php
===================================================================
--- trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/doaprdf/include/doaprdfPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -40,7 +40,7 @@
 		//$this->_addHook("project_admin_plugins"); // to show up in the admin page fro group
 		$this->_addHook("script_accepted_types");
 		$this->_addHook("content_negociated_project_home");
-		
+
 	}
 /*
 	function CallHook ($hookname, &$params) {
@@ -50,7 +50,7 @@
 			if ($G_SESSION->usesPlugin("doaprdf")) {
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
 				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-						  array ('/plugins/doaprdf/index.php' . $param ));				
+						  array ('/plugins/doaprdf/index.php' . $param ));
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
@@ -70,7 +70,7 @@
 			} else {
 				$params['TITLES'][]=$this->text." is [Off]";
 				$params['DIRS'][]='';
-			}	
+			}
 			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
 		} elseif ($hookname == "groupisactivecheckbox") {
 			//Check if the group is active
@@ -121,47 +121,47 @@
 				echo '<p>'.util_make_link ("/plugins/doaprdf/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('DoaPRDF Admin')).'</p>' ;
 			}
-		}												    
+		}
 		elseif ($hookname == "blahblahblah") {
 			// ...
-		} 
+		}
 	}
 	*/
-	
+
 	/**
 	 * Declares itself as accepting RDF XML on /users
 	 * @param unknown_type $params
 	 */
 	function script_accepted_types (&$params) {
-		$script = $params['script']; 
-		if ($script == 'project_home') { 
-			$params['accepted_types'][] = 'application/rdf+xml'; 
-		} 
+		$script = $params['script'];
+		if ($script == 'project_home') {
+			$params['accepted_types'][] = 'application/rdf+xml';
+		}
 	}
-	
+
 	/**
 	 * Outputs user's FOAF profile
 	 * @param unknown_type $params
 	 */
 	function content_negociated_project_home (&$params) {
 		$projectname = $params['groupname'];
-		$accept = $params['accept']; 
-		
+		$accept = $params['accept'];
+
 		if($accept == 'application/rdf+xml') {
 				$params['content_type'] = 'application/rdf+xml';
-				
+
 				$params['content'] = '<?xml version="1.0"?>
 				<rdf:RDF
       				xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       				xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
       				xmlns:doap=http://usefulinc.com/ns/doap#">
-      				
+
       			<doap:Project rdf:about="">
-      				<doap:name>'. $projectname .'</doap:name> 
+      				<doap:name>'. $projectname .'</doap:name>
       			</doap:Project>
-      			
+
     			</rdf:RDF>';
-  
+
 		}
 	}
 }

Modified: trunk/src/plugins/externalsearch/etc/plugins/externalsearch/config.php
===================================================================
--- trunk/src/plugins/externalsearch/etc/plugins/externalsearch/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/externalsearch/etc/plugins/externalsearch/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -9,5 +9,5 @@
 // mode: php
 // c-file-style: "bsd"
 // End:
- 
+
 ?>

Modified: trunk/src/plugins/externalsearch/include/ExternalHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/plugins/externalsearch/include/ExternalHtmlSearchRenderer.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/externalsearch/include/ExternalHtmlSearchRenderer.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,13 +18,13 @@
 	* @var string $name
 	*/
 	var $name;
-	
+
 	/**
 	* url of the external site
 	*
 	* @var string $url
 	*/
-	var $url;	
+	var $url;
 
 	/**
 	 * Constructor

Modified: trunk/src/plugins/externalsearch/include/ExternalSearchEngine.class.php
===================================================================
--- trunk/src/plugins/externalsearch/include/ExternalSearchEngine.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/externalsearch/include/ExternalSearchEngine.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,32 +11,32 @@
 require_once $gfwww.'search/include/engines/GroupSearchEngine.class.php';
 
 class ExternalSearchEngine extends GroupSearchEngine {
-	
+
 	/**
 	* name of the external site
 	*
 	* @var string $name
 	*/
 	var $name;
-	
+
 	/**
 	* url of the external site
 	*
 	* @var string $url
 	*/
 	var $url;
-	
+
 	function ExternalSearchEngine($type, $name, $url) {
 		$this->name = $name;
 		$this->url = $url;
-		
+
 		$this->GroupSearchEngine($type, 'ExternalHtmlSearchRenderer', $name);
 	}
-	
+
 	function isAvailable($parameters) {
 		return true;
 	}
-	
+
 	function getSearchRenderer($words, $offset, $exact, $parameters) {
 		require_once $gfplugins.'externalsearch/include/ExternalHtmlSearchRenderer.class.php';
 		$renderer = new ExternalHtmlSearchRenderer($type, $this->name, $this->url, $words);

Modified: trunk/src/plugins/externalsearch/include/ExternalSearchPlugin.class.php
===================================================================
--- trunk/src/plugins/externalsearch/include/ExternalSearchPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/externalsearch/include/ExternalSearchPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,7 +23,7 @@
 		$this->Plugin();
 		$this->name = 'externalsearch';
 		$this->text = 'External Search';
-		
+
 		$this->hooks[] = 'search_engines';
 	}
 

Modified: trunk/src/plugins/extratabs/www/iframe.php
===================================================================
--- trunk/src/plugins/extratabs/www/iframe.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/extratabs/www/iframe.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -51,4 +51,4 @@
 // c-file-style: "bsd"
 // End:
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php
===================================================================
--- trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/common/fckeditorPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,7 +21,7 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
- 
+
 /**
  * The fckeditorPlugin class. It implements the Hooks for the presentation
  *  of the text editor whenever needed

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/basexml.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/basexml.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/basexml.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,20 +1,20 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: basexml.php
  * 	These functions define the base of the XML response sent by the PHP
  * 	connector.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -41,13 +41,13 @@
 function CreateXmlHeader( $command, $resourceType, $currentFolder )
 {
 	SetXmlHeaders() ;
-	
+
 	// Create the XML document header.
 	echo '<?xml version="1.0" encoding="utf-8" ?>' ;
 
 	// Create the main "Connector" node.
 	echo '<Connector command="' . $command . '" resourceType="' . $resourceType . '">' ;
-	
+
 	// Add the current folder node.
 	echo '<CurrentFolder path="' . ConvertToXmlAttribute( $currentFolder ) . '" url="' . ConvertToXmlAttribute( GetUrlFromPath( $resourceType, $currentFolder ) ) . '" />' ;
 }
@@ -60,12 +60,12 @@
 function SendError( $number, $text )
 {
 	SetXmlHeaders() ;
-	
+
 	// Create the XML document header
 	echo '<?xml version="1.0" encoding="utf-8" ?>' ;
-	
+
 	echo '<Connector><Error number="' . $number . '" text="' . htmlspecialchars( $text ) . '" /></Connector>' ;
-	
+
 	exit ;
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/commands.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/commands.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/commands.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: commands.php
  * 	This is the File Manager Connector for PHP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -38,7 +38,7 @@
 
 	// Open the "Folders" node.
 	echo "<Folders>" ;
-	
+
 	natcasesort( $aFolders ) ;
 	foreach ( $aFolders as $sFolder )
 		echo $sFolder ;
@@ -160,7 +160,7 @@
 
 		// Get the uploaded file name.
 		$sFileName = $oFile['name'] ;
-		
+
 		// Replace dots in the name with underscores (only one dot can be there... security issue).
 		if ( $Config['ForceSingleExtension'] )
 			$sFileName = preg_replace( '/\\.(?![^.]*$)/', '_', $sFileName ) ;
@@ -215,4 +215,4 @@
 
 	exit ;
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/config.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: config.php
  * 	Configuration file for the File Manager Connector for PHP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -48,4 +48,4 @@
 $Config['AllowedExtensions']['Media']	= array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ;
 $Config['DeniedExtensions']['Media']	= array() ;
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/connector.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/connector.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/connector.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: connector.php
  * 	This is the File Manager Connector for PHP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -42,7 +42,7 @@
 if ( ! preg_match( '/\/$/', $GLOBALS["UserFilesPath"] ) )
 	$GLOBALS["UserFilesPath"] .= '/' ;
 
-if ( strlen( $Config['UserFilesAbsolutePath'] ) > 0 ) 
+if ( strlen( $Config['UserFilesAbsolutePath'] ) > 0 )
 {
 	$GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ;
 
@@ -74,7 +74,7 @@
 	// Check the current folder syntax (must begin and start with a slash).
 	if ( ! preg_match( '/\/$/', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
 	if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ;
-	
+
 	// Check for invalid folder paths (..)
 	if ( strpos( $sCurrentFolder, '..' ) )
 		SendError( 102, "" ) ;

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/io.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/io.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/io.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: io.php
  * 	This is the File Manager Connector for ASP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -94,4 +94,4 @@
 
 	return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ;
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/util.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/util.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/browser/default/connectors/php/util.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: util.php
  * 	This is the File Manager Connector for ASP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -34,4 +34,4 @@
 {
 	return utf8_encode( htmlspecialchars( $value ) ) ;
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/config.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,26 +1,26 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: config.php
  * 	Configuration file for the PHP File Uploader.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
 
 global $Config ;
 
-// SECURITY: You must explicitelly enable this "uploader". 
+// SECURITY: You must explicitelly enable this "uploader".
 $Config['Enabled'] = false ;
 
 // Path to uploaded files relative to the document root.
@@ -45,4 +45,4 @@
 $Config['AllowedExtensions']['Flash']	= array('swf','fla') ;
 $Config['DeniedExtensions']['Flash']	= array() ;
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/upload.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/upload.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/upload.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: upload.php
  * 	This is the "File Uploader" for PHP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -78,7 +78,7 @@
 // The the target directory.
 if ( isset( $Config['UserFilesAbsolutePath'] ) && strlen( $Config['UserFilesAbsolutePath'] ) > 0 )
 	$sServerDir = $Config['UserFilesAbsolutePath'] ;
-else 
+else
 	$sServerDir = GetRootPath() . $Config["UserFilesPath"] ;
 
 while ( true )
@@ -103,7 +103,7 @@
 			chmod( $sFilePath, 0777 ) ;
 			umask( $oldumask ) ;
 		}
-		
+
 		$sFileUrl = $Config["UserFilesPath"] . $sFileName ;
 
 		break ;
@@ -111,4 +111,4 @@
 }
 
 SendResults( $sErrorNumber, $sFileUrl, $sFileName ) ;
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/util.php
===================================================================
--- trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/util.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/fckeditor/www/editor/filemanager/upload/php/util.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,19 +1,19 @@
-<?php 
+<?php
 /*
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2006 Frederico Caldeira Knabben
- * 
+ *
  * Licensed under the terms of the GNU Lesser General Public License:
  * 		http://www.opensource.org/licenses/lgpl-license.php
- * 
+ *
  * For further information visit:
  * 		http://www.fckeditor.net/
- * 
+ *
  * "Support Open Source software. What about a donation today?"
- * 
+ *
  * File Name: util.php
  * 	This is the File Manager Connector for ASP.
- * 
+ *
  * File Authors:
  * 		Frederico Caldeira Knabben (fredck at fckeditor.net)
  */
@@ -33,4 +33,4 @@
 	return substr( $sRealPath, 0, strlen( $sRealPath ) - strlen( $sSelfPath ) ) ;
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/foafprofiles/include/foafprofilesPlugin.class.php
===================================================================
--- trunk/src/plugins/foafprofiles/include/foafprofilesPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/foafprofiles/include/foafprofilesPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -40,7 +40,7 @@
 		//$this->_addHook("project_admin_plugins"); // to show up in the admin page fro group
 		$this->_addHook("script_accepted_types");
 		$this->_addHook("content_negociated_user_home");
-		
+
 	}
 /*
 	function CallHook ($hookname, &$params) {
@@ -50,7 +50,7 @@
 			if ($G_SESSION->usesPlugin("foafprofiles")) {
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
 				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-						  array ('/plugins/foafprofiles/index.php' . $param ));				
+						  array ('/plugins/foafprofiles/index.php' . $param ));
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
@@ -70,7 +70,7 @@
 			} else {
 				$params['TITLES'][]=$this->text." is [Off]";
 				$params['DIRS'][]='';
-			}	
+			}
 			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
 		} elseif ($hookname == "groupisactivecheckbox") {
 			//Check if the group is active
@@ -121,64 +121,64 @@
 				echo '<p>'.util_make_link ("/plugins/foafprofiles/admin/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 						     _('FOAFProfiles Admin')).'</p>' ;
 			}
-		}												    
+		}
 		elseif ($hookname == "blahblahblah") {
 			// ...
-		} 
+		}
 	}
 	*/
-	
+
 	/**
 	 * Declares itself as accepting RDF XML on /users
 	 * @param unknown_type $params
 	 */
 	function script_accepted_types (&$params) {
-		$script = $params['script']; 
-		if ($script == 'user_home') { 
-			$params['accepted_types'][] = 'application/rdf+xml'; 
-		} 
+		$script = $params['script'];
+		if ($script == 'user_home') {
+			$params['accepted_types'][] = 'application/rdf+xml';
+		}
 	}
-	
+
 	/**
 	 * Outputs user's FOAF profile
 	 * @param unknown_type $params
 	 */
 	function content_negociated_user_home (&$params) {
-		$username = $params['username']; 
-		$accept = $params['accept']; 
-		
+		$username = $params['username'];
+		$accept = $params['accept'];
+
 		if($accept == 'application/rdf+xml') {
 				$params['content_type'] = 'application/rdf+xml';
-			
+
 				$user_obj = user_get_object_by_name($username);
-				
+
 				$user_real_name = $user_obj->getRealName();
 				$user_email = $user_obj->getEmail();
 				$mbox = 'mailto:'.$user_email;
 				$mbox_sha1sum = sha1($mbox);
-				
+
 				$params['content'] = '<?xml version="1.0"?>
 				<rdf:RDF
       				xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       				xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
       				xmlns:foaf="http://xmlns.com/foaf/0.1/"
       				xmlns:sioc="http://rdfs.org/sioc/ns#">
-      				
+
       			<foaf:OnlineAccount rdf:about="">
       				<foaf:accountServiceHomepage rdf:resource="/"/>
       				<foaf:accountName>'. $username .'</foaf:accountName>
       				<sioc:account_of rdf:resource="#person" />
       				<foaf:accountProfilePage rdf:resource="" />
     			</foaf:OnlineAccount>
-    			
+
       			<foaf:Person rdf:ID="person">
       				<foaf:name>'. $username .'</foaf:name>
 					<foaf:holdsAccount rdf:resource="" />
 					<foaf:mbox_sha1sum>'. $mbox_sha1sum .'</foaf:mbox_sha1sum>
     			</foaf:Person>
-    			
+
     			</rdf:RDF>';
-  
+
 		}
 	}
 }

Modified: trunk/src/plugins/forumml/bin/mail_2_DB.php
===================================================================
--- trunk/src/plugins/forumml/bin/mail_2_DB.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/bin/mail_2_DB.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -64,7 +64,7 @@
 if ($p && $plugin_manager->isPluginAvailable($p) ) {
     $info =& $p->getPluginInfo();
 	if ($argv[2] == 2) {
-		// get list archive		
+		// get list archive
 		$forumml_arch = $GLOBALS['forumml_arch'];
 		$mbox_file = $forumml_arch."/private/".$list.".mbox/".$list.".mbox";
 		// check if mbox file exists
@@ -72,7 +72,7 @@
 			$stderr = fopen('php://stderr', 'w');
 			fwrite($stderr, "Invalid mbox file $mbox_file \n");
 			fclose($stderr);
-			exit;	
+			exit;
 		}
 
         // Do not import from archives if there are already messages for this list

Modified: trunk/src/plugins/forumml/bin/mail_2_DBFF.php
===================================================================
--- trunk/src/plugins/forumml/bin/mail_2_DBFF.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/bin/mail_2_DBFF.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -63,7 +63,7 @@
 $p =& $plugin_manager->getPluginByName('forumml');
 if ($p && $plugin_manager->isPluginAvailable($p) ) {
 	if ($argv[2] == 2) {
-		// get list archive		
+		// get list archive
 		$forumml_arch = $GLOBALS['forumml_arch'];;
 		$mbox_file = $forumml_arch."/private/".$list.".mbox/".$list.".mbox";
 		// check if mbox file exists
@@ -71,7 +71,7 @@
 			$stderr = fopen('php://stderr', 'w');
 			fwrite($stderr, "Invalid mbox file $mbox_file \n");
 			fclose($stderr);
-			exit;	
+			exit;
 		}
         // Do not import from archives if there are already messages for this list
         $sql = 'SELECT NULL FROM plugin_forumml_message WHERE id_list = $1 LIMIT 1';

Modified: trunk/src/plugins/forumml/common/forumml-init.php
===================================================================
--- trunk/src/plugins/forumml/common/forumml-init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/common/forumml-init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 

Modified: trunk/src/plugins/forumml/include/ForumMLGroupSearchEngine.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLGroupSearchEngine.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLGroupSearchEngine.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -10,13 +10,13 @@
 require_once $gfwww.'search/include/engines/GroupSearchEngine.class.php';
 
 class ForumMLGroupSearchEngine extends GroupSearchEngine {
-	
+
 	function ForumMLGroupSearchEngine() {
 		$this->GroupSearchEngine(SEARCH__TYPE_IS_LIST,
-					 'ForumMLHtmlSearchRenderer', 
+					 'ForumMLHtmlSearchRenderer',
 					 _('ForumML'));
 	}
-	
+
 	function isAvailable($parameters) {
 		if (parent::isAvailable($parameters)) {
 			if ($this->Group->usesPlugin('forumml')) {

Modified: trunk/src/plugins/forumml/include/ForumMLHtmlSearchRenderer.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLHtmlSearchRenderer.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLHtmlSearchRenderer.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -6,7 +6,7 @@
  *
  * @version $Id: NewsHtmlSearchRenderer.class,v 1.1 2004/10/16 16:36:31 gsmet Exp $
  */
-global $gfwww,$gfcommon; 
+global $gfwww,$gfcommon;
 require_once 'preplugins.php';
 require_once $gfwww.'search/include/renderers/HtmlGroupSearchRenderer.class.php';
 require_once(dirname(__FILE__).'/../include/ForumML_HTMLPurifier.class.php');
@@ -32,13 +32,13 @@
                 $searchQuery = new ForumMLSearchQuery($words, $offset, $isExact, $groupId);
 
                 //init the searchrendererr
-                $this->HtmlGroupSearchRenderer(SEARCH__TYPE_IS_LIST, $words, $isExact, 
+                $this->HtmlGroupSearchRenderer(SEARCH__TYPE_IS_LIST, $words, $isExact,
                                 $searchQuery, $groupId, 'list');
 
                // $this->tableHeaders = array(_('Thread'),_('Submitted on'), _('Author'));
-                
 
 
+
         }
 
         /**
@@ -88,7 +88,7 @@
                         }
                         $from = mb_decode_mimeheader($header[1]);
 
-                        // Replace '<' by '<' and '>' by '>'. Otherwise the email adress won't be displayed 
+                        // Replace '<' by '<' and '>' by '>'. Otherwise the email adress won't be displayed
                         // because it will be considered as an xhtml tag.
                         $from = preg_replace('/\</', '<', $from);
                         $from = preg_replace('/\>/', '>', $from);
@@ -97,13 +97,13 @@
                         $hp =& ForumML_HTMLPurifier::instance();
                         $subject = $hp->purify($subject,CODENDI_PURIFIER_FORUMML);
 
-                        // display the resulting threads in rows 
+                        // display the resulting threads in rows
                         $return .= "<tr class='".$class."'>
                                 <td class='subject'>
                                  <img src='".$p->getThemePath()."/images/ic/comment.png'/>
-                                <a href='/plugins/forumml/message.php?group_id=".$this->groupId."&topic=".$rows['id_message']."&list=".$rows['id_list']."'><b>".$subject."</b></a>                                            
+                                <a href='/plugins/forumml/message.php?group_id=".$this->groupId."&topic=".$rows['id_message']."&list=".$rows['id_list']."'><b>".$subject."</b></a>
                                 </td>
-                                <td>                                            
+                                <td>
                                 <font class='info'>".$date."</font>
                                 </td>
                                 <td>

Modified: trunk/src/plugins/forumml/include/ForumMLInsert.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLInsert.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLInsert.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -30,20 +30,20 @@
     var $mail;
     var $id_list;
     var $dao;
-	
+
     // Class Constructor
 	function __construct($list_id) {
 		// set id_list
 		$this->id_list = $list_id;
 		$this->dao = new ForumML_MessageDao(CodendiDataAccess::instance());
 	}
-    
+
     // Insert values into forumml_messageheader table
     function insertMessageHeader($id_header,$value) {
 	$this->dao->insertMessageHeader($this->id_message,$id_header,$value);
     }
 
-    // Insert values into forumml_attachment table 
+    // Insert values into forumml_attachment table
     function insertAttachment($id_message, $filename,$filetype,$filepath,$content_id="") {
         if (is_file($filepath)) {
             $filesize = filesize($filepath);
@@ -55,9 +55,9 @@
 
     // Insert values into forumml_header table
     function insertHeader($header) {
-        
+
     	// Search if the header is already in the table
-       $result = $this->dao->searchHeader($header);        
+       $result = $this->dao->searchHeader($header);
         // If not, insert it
        if ($result->rowCount()<1) {
 	       return $this->dao->insertHeader($header);
@@ -97,13 +97,13 @@
 	    $this->mail = $structure;
 
 	    if (isset($structure["in-reply-to"])) {
-		    // special case: 'in-reply-to' header may contain "Message from ... " 
+		    // special case: 'in-reply-to' header may contain "Message from ... "
 		    if (preg_match('/^Message from.*$/',$structure["in-reply-to"])) {
 			    $arr = explode(" ",$structure["in-reply-to"]);
 			    $reply_to = $arr[count($structure["in-reply-to"]) - 1];
 		    } else {
 			    $reply_to = $structure["in-reply-to"];
-		    }	
+		    }
 	    } else {
 		    if (isset($structure["references"])) {
 			    // special case: 'in-reply-to' header is not set, but 'references' - which contain list of parent messages ids - is set
@@ -111,7 +111,7 @@
 			    $reply_to = $ref_arr[count($structure["references"]) - 1];
 		    } else {
 			    $reply_to = "";
-		    }	
+		    }
 	    }
 
 	    // Message date
@@ -200,7 +200,7 @@
 					    $filename = "attachment";
 				    } else {
 					    // get filename from 'name' section
-					    $filename = substr(substr($filetype,$pos),6,-1);			
+					    $filename = substr(substr($filetype,$pos),6,-1);
 				    }
 			    } else {
 				    $filename = $struct->d_parameters["filename"];
@@ -219,7 +219,7 @@
 		    $fpath = $storage->store($basename, $struct->body, $this->id_list, $date);
 
 		    // insert attachment in the DB
-		    $this->insertAttachment($messageId, $basename, $filetype, $fpath, $content_id);	
+		    $this->insertAttachment($messageId, $basename, $filetype, $fpath, $content_id);
 	    }
     }
 
@@ -300,7 +300,7 @@
     }
 
     /**
-     * Abandon all hope you who enter here! Mail & MIME is at best a nightmare, take a couple of 
+     * Abandon all hope you who enter here! Mail & MIME is at best a nightmare, take a couple of
      * bottles before diving into this code...
      * http://en.wikipedia.org/wiki/MIME
      *

Modified: trunk/src/plugins/forumml/include/ForumMLPluginDescriptor.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLPluginDescriptor.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLPluginDescriptor.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,7 +21,7 @@
 require_once('common/plugin/PluginDescriptor.class.php');
 
 class ForumMLPluginDescriptor extends PluginDescriptor {
-    
+
     function __construct() {
         parent::__construct('ForumML', 'v2.0', $GLOBALS['Language']->getText('plugin_forumml', 'descriptor_description'));
     }

Modified: trunk/src/plugins/forumml/include/ForumMLPluginInfo.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLPluginInfo.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLPluginInfo.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,36 +23,36 @@
 require_once('common/include/PropertyDescriptor.class.php');
 
 class ForumMLPluginInfo extends PluginInfo {
-    
+
     function __construct($plugin) {
         parent::__construct($plugin);
         $this->setPluginDescriptor(new ForumMLPluginDescriptor());
         $this->_conf_path = $plugin->getPluginEtcRoot() .'/forumml.inc';
         $this->loadProperties();
-        
+
     }
-    
+
 	function loadProperties() {
         if (is_file($this->_conf_path)) {
             $this->checkConfigurationFiles($this->_conf_path);
             $variables = $this->_getVariablesFromConfigurationFile($this->_conf_path);
             foreach($variables as $variable) {
                 $key =& $variable['name'];
-                if (preg_match('`^"(.*)"$`', $variable['value'], $match) || 
-                    preg_match('`^\'(.*)\'$`', $variable['value'], $match)) 
+                if (preg_match('`^"(.*)"$`', $variable['value'], $match) ||
+                    preg_match('`^\'(.*)\'$`', $variable['value'], $match))
                 {
                     $value = $match[1];
-                } 
-                else 
+                }
+                else
                 {
                     $value = $variable['value'];
                 }
                 $descriptor =& new PropertyDescriptor($key, $value);
                 $this->_addPropertyDescriptor($descriptor);
             }
-        }	
+        }
 	}
-	
+
 	function saveProperties() {
         copy($this->_conf_path, $this->_conf_path .'.'. date('YmdHis'));
         $content = file_get_contents($this->_conf_path);
@@ -69,8 +69,8 @@
                 $replace = '$1"'.addslashes($desc->getValue()).'";';
             }
             $content = preg_replace(
-                '`((?:^|\n)\$'. preg_quote($desc_name) .'\s*=\s*)(.*)\s*;`', 
-                $replace, 
+                '`((?:^|\n)\$'. preg_quote($desc_name) .'\s*=\s*)(.*)\s*;`',
+                $replace,
                 $content
             );
             $iter->next();
@@ -79,14 +79,14 @@
         if ($f) {
             fwrite($f, $content);
             fclose($f);
-        }	
+        }
 	}
-    
+
 	function getPropertyValueForName($name) {
         $desc = $this->getPropertyDescriptorForName($name);
         return $desc ? $desc->getValue() : $desc;
     }
-    
+
     function _getVariablesFromConfigurationFile($file) {
         $tokens = token_get_all(file_get_contents($file));
 
@@ -127,9 +127,9 @@
         }
         return $variables;
     }
-	
+
 	function checkConfigurationFiles() {
         require($this->_conf_path);
-    }        
+    }
 }
 ?>

Modified: trunk/src/plugins/forumml/include/ForumMLSearchEngine.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLSearchEngine.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLSearchEngine.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -12,7 +12,7 @@
 require_once $GLOBALS['gfwww'].'search/include/engines/GroupSearchEngine.class.php';
 
 class ForumMLSearchEngine extends GroupSearchEngine {
-	
+
 	/**
 	* name of the external site
 	*
@@ -20,21 +20,21 @@
 	*/
 	var $rendererClassName;
 	var $groupId;
-	
+
 	function ForumMLSearchEngine($type, $rendererClassName, $label, $groupId) {
 		$this->groupId = $groupId;
 		$this->rendererClassName = $rendererClassName;
-		
+
 		$this->GroupSearchEngine($type, $rendererClassName, $label);
 	}
-	
+
 	function isAvailable($parameters) {
 		return true;
 	}
-	
+
 	function & getSearchRenderer($words, $offset, $exact) {
 		require_once($this->rendererClassName.'.class.php');
-		$renderer = new $this->rendererClassName($words, $offset, $exact, 
+		$renderer = new $this->rendererClassName($words, $offset, $exact,
 			$this->groupId);
 		return $renderer;
 	}

Modified: trunk/src/plugins/forumml/include/ForumMLSearchQuery.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumMLSearchQuery.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumMLSearchQuery.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -12,14 +12,14 @@
 require_once $gfcommon.'search/SearchQuery.class.php';
 
 class ForumMLSearchQuery extends SearchQuery {
-	
+
 	/**
 	* group id
 	*
 	* @var int $groupId
 	*/
 	var $groupId;
-	
+
 	/**
 	 * Constructor
 	 *
@@ -28,9 +28,9 @@
 	 * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
 	 * @param int $groupId group id
 	 */
-	function ForumMLSearchQuery($words, $offset, $isExact, $groupId) {	
+	function ForumMLSearchQuery($words, $offset, $isExact, $groupId) {
 		$this->groupId = $groupId;
-		
+
 		$this->SearchQuery($words, $offset, $isExact);
 	}
 
@@ -40,7 +40,7 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		
+
 		$pat = '_g'.$this->groupId.'_';
 		$len = strlen($pat)+1;
 		$qpa = db_construct_qpa () ;
@@ -51,7 +51,7 @@
                         ' AND m.id_parent = 0'.
                         ' AND m.id_message = mh.id_message AND ',
 					 array (4)) ;
-	$qpa=$this->addIlikeCondition($qpa, 'mh.value');	
+	$qpa=$this->addIlikeCondition($qpa, 'mh.value');
 		return $qpa ;
 	}
 }

Modified: trunk/src/plugins/forumml/include/ForumML_AttachmentDao.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumML_AttachmentDao.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumML_AttachmentDao.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
     function __construct($da) {
         parent::__construct($da);
     }
-    
+
     function getById($id) {
         $sql = 'SELECT * FROM plugin_forumml_attachment WHERE id_attachment = $1';
         return $this->retrieve($sql,array($id));

Modified: trunk/src/plugins/forumml/include/ForumML_FileStorage.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumML_FileStorage.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumML_FileStorage.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,31 +25,31 @@
 
 /**
  * A class to handle mails attachments storage
- * 
+ *
  */
 class ForumML_FileStorage {
-    
-    // Root directory to host mails attachments 
+
+    // Root directory to host mails attachments
 	var $root;
-    
+
     /**
      * ForumML_FileStorage Constructor
-     * 
-     * @param root: The ForumML attachments directory 
+     *
+     * @param root: The ForumML attachments directory
      */
     function __construct($root) {
         $this->root = $root;
     }
-    
+
     /**
      * Store - stores attached files in the ForumML root dir
-     * 
+     *
      * @param filename: name of attached file
      * @param content: content of attached file
      * @param list: mailing-list name
      * @param date: date of attachment in YYYY_MM_DD format
      * @param encod: encoding of attachment
-     * 
+     *
      * @return int size of attached file
      */
     function store($filename, $content, $list, $date, $encod="") {
@@ -61,7 +61,7 @@
             return false;
         }
     }
-    
+
     /**
     * Store:
     *  +---------------------------------------------------------------------------------+
@@ -69,29 +69,29 @@
     *  |                             |                                         |         |
     * _|__              _______     _|__                                       |         |
     * name              list_id     date                                       v         v
-    * Attach.doc           7      2007_10_19              =>  foruuml_dir/<listname>/2007_10_19/Attach_doc 
-    *                      |                                              ^ 
+    * Attach.doc           7      2007_10_19              =>  foruuml_dir/<listname>/2007_10_19/Attach_doc
+    *                      |                                              ^
     *                      +---------------------------------------------+|
-    *                     
     *
+    *
     * Upload (to temporary location):
     *  +-----------------------------------------------------------------------+
     *  |                                                                       |
     *  |                                                                       |
     * _|__                                                                     |
     * name                                                                     v
-    * Attach.doc                                     =>  foruuml_dir/upload/Attach_doc     
-    * 
+    * Attach.doc                                     =>  foruuml_dir/upload/Attach_doc
+    *
     */
 
     /**
      * _getPath - Get the absolute path where to Upload/Store attached file
-     * 
+     *
      * @param name: basename of attached file
      * @param list: mailing-list name
      * @param date: attachment date (YYYY_MM_DD)
-     * @param string type: upload/store 
-     * 
+     * @param string type: upload/store
+     *
      * @return string path
      */
     function _getPath($name, $list, $date, $type) {
@@ -105,7 +105,7 @@
             if (strlen($name) > 64) {
                 $name = substr($name, 0, 64);
             }
-    	
+
             $name = preg_replace('`[^a-z0-9_-]`i', '_', $name);
             $name = preg_replace('`_{2,}`', '_', $name);
         }
@@ -113,9 +113,9 @@
         if ($type == "upload") {
         	$path_elements = array($this->root, $type);
         } else if ($type == "store") {
-        	$path_elements = array($this->root, $list, $date);	
+        	$path_elements = array($this->root, $list, $date);
         }
-        
+
         $path = '';
         foreach($path_elements as $elem) {
             $path .= $elem .'/';
@@ -138,7 +138,7 @@
     function fileExists($path) {
         return is_file($path);
     }
-    
+
 }
 
 ?>

Modified: trunk/src/plugins/forumml/include/ForumML_HTMLPurifier.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumML_HTMLPurifier.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumML_HTMLPurifier.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,16 +1,16 @@
 <?php
 /**
  * Copyright (c) STMicroelectronics, 2007. All Rights Reserved.
- * 
+ *
  * Originally written by Mohamed CHAARI, 2007.
- * 
+ *
  * This file is a part of codendi.
- * 
+ *
  * codendi is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * codendi is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -29,13 +29,13 @@
      * Hold an instance of the class
      */
     private static $ForumML_HTMLPurifier_instance;
-	
+
     /**
      * Constructor
      */
     protected function __construct() {
     }
-	
+
 	/**
      * Singleton access.
      * Override parent method
@@ -49,10 +49,10 @@
 		}
 		return self::$ForumML_HTMLPurifier_instance;
 	}
-	
+
 	/**
 	 * No basic HTML markups, no forms, no javascript
-	 * Allow urls, auto-magic links, <blockquote> and CSS styles 
+	 * Allow urls, auto-magic links, <blockquote> and CSS styles
 	 */
 	function getForumMLConfig() {
 
@@ -63,34 +63,34 @@
         $config->set('CSS.DefinitionRev', 1);
         return $config;
     }
-	
+
     /**
      * HTML Purifier configuration factory
      */
     function getHPConfig($level) {
         $config = null;
-        switch($level) {              
+        switch($level) {
         	case CODENDI_PURIFIER_FORUMML:
         		$config = $this->getForumMLConfig();
         		break;
-        	
+
         	default:
-        		$config = parent::getHPConfig($level);	
-        }	 
+        		$config = parent::getHPConfig($level);
+        }
         return $config;
     }
-	
+
     /**
-    * Perform HTML purification depending of level purification required and create links. 
+    * Perform HTML purification depending of level purification required and create links.
     */
     function purify($html, $level=0, $groupId=0) {
         $clean = '';
-        switch($level) {        
+        switch($level) {
             case CODENDI_PURIFIER_FORUMML:
                 require_once($GLOBALS['htmlpurifier_dir'].'HTMLPurifier.auto.php');
                 $hp = HTMLPurifier::getInstance();
                 $config = $this->getHPConfig($level);
-                $clean = util_make_links($hp->purify($html, $config), $groupId);        	
+                $clean = util_make_links($hp->purify($html, $config), $groupId);
                 break;
             default:
                 $clean = parent::purify($html,$level,$groupId);

Modified: trunk/src/plugins/forumml/include/ForumML_MessageManager.class.php
===================================================================
--- trunk/src/plugins/forumml/include/ForumML_MessageManager.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/ForumML_MessageManager.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -41,4 +41,4 @@
 
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/forumml/include/forummlPlugin.class.php
===================================================================
--- trunk/src/plugins/forumml/include/forummlPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/include/forummlPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -43,7 +43,7 @@
 		$this->_addHook('cssfile');
 		$this->_addHook('search_engines');
 		$this->_addHook('full_search_engines');
-		// Set ForumML plugin scope to 'Projects' wide 
+		// Set ForumML plugin scope to 'Projects' wide
 		//$this->setScope(Plugin::SCOPE_PROJECT);
 		$this->allowedForProject = array();
 	}
@@ -55,7 +55,7 @@
 			if ($G_SESSION->usesPlugin("mailman")) {
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we�re calling is the user one
 				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-						array ('/plugins/mailman/index.php' . $param ));				
+						array ('/plugins/mailman/index.php' . $param ));
 			}
 		} elseif ($hookname =='cssfile') {
 			echo '<link rel="stylesheet" type="text/css" href="/plugins/forumml/themes/default/css/style.css" />';
@@ -104,8 +104,8 @@
 					}
 					$searchManager->addSearchEngine(
 							SEARCH__TYPE_IS_LIST,
-							new ForumMLSearchEngine(SEARCH__TYPE_IS_LIST, 
-								'ForumMLHtmlSearchRenderer', 
+							new ForumMLSearchEngine(SEARCH__TYPE_IS_LIST,
+								'ForumMLHtmlSearchRenderer',
 								_("This project's mailing lists"), $group_id)
 							);
 				}
@@ -125,7 +125,7 @@
 		} elseif ($hookname == "plugins_powered_search") {
 			$this->forumml_search($params);
 
-		}											
+		}
 	}
 
 	function &getPluginInfo() {

Modified: trunk/src/plugins/forumml/tests/ForumML_FileStorageTest.php
===================================================================
--- trunk/src/plugins/forumml/tests/ForumML_FileStorageTest.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/tests/ForumML_FileStorageTest.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -2,16 +2,16 @@
 
 /**
  * Copyright (c) STMicroelectronics, 2006. All Rights Reserved.
- * 
+ *
  * Originally written by Mohamed CHAARI, 2007.
- * 
+ *
  * This file is a part of codendi.
- * 
+ *
  * codendi is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * codendi is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -20,7 +20,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- * 
+ *
  * $Id$
  */
 
@@ -57,7 +57,7 @@
 
     function setUp() {
     }
-	
+
     function tearDown() {
         $this->_deleteIfExists($this->_fixture.'/gpig-interest/2007_10_24/Screenshot_jpg');
         $this->_deleteIfExists($this->_fixture.'/gpig-interest/2007_10_24');
@@ -72,8 +72,8 @@
 		$this->assertEqual($fstorage->root,$this->_fixture);
 		$this->assertNoErrors();
 	}
-	
-    // case 1: an attachment file whose name has more than 64 characters  		
+
+    // case 1: an attachment file whose name has more than 64 characters
 	function test_getPathFileNameWithMoreThan64Char() {
 		$fs1 = $this->_getFileStorage($this->_fixture);
 		$name1 = "a string with more than 64 characters, which is the limit allowed for ForumML attachments";
@@ -85,7 +85,7 @@
 		$path1 = $fs1->_getPath($name1,$list1,$date1,$type1);
 		$this->assertNotNull($path1);
 		$this->assertIsA($path1, 'string');
-		$this->assertNoErrors();		
+		$this->assertNoErrors();
 		// check filename length is restricted to 64 characters
 		$path_array1 = explode("/",$path1);
 		$fname1 = $path_array1[count($path_array1) - 1];
@@ -111,17 +111,17 @@
 		$path2 = $fs1->_getPath($name2,$list1,$date1,$type1);
 		$this->assertNotNull($path2);
 		$this->assertIsA($path2, 'string');
-		$this->assertNoErrors();				
+		$this->assertNoErrors();
 		$path_array2 = explode("/",$path2);
-		$fname2 = $path_array2[count($path_array2) - 1];		
-		$this->assertEqual($fname2,"filename_less_than_64_chars");				
+		$fname2 = $path_array2[count($path_array2) - 1];
+		$this->assertEqual($fname2,"filename_less_than_64_chars");
 		$this->assertNotEqual(strlen($fname2),64);
 		// check path components
 		$flist2 = $path_array2[count($path_array2) - 3];
 		$this->assertEqual($flist2,$list1);
 		$fdate2 = $path_array2[count($path_array2) - 2];
-		$this->assertEqual($fdate2,$date1);		
-		// check regexp		
+		$this->assertEqual($fdate2,$date1);
+		// check regexp
 		$this->assertWantedPattern($this->_namePattern,$name2);
     }
 
@@ -136,7 +136,7 @@
 		$path3 = $fs1->_getPath($name3,$list1,$date1,$type1);
 		$this->assertNotNull($path3);
 		$this->assertIsA($path3, 'string');
-		$this->assertNoErrors();		
+		$this->assertNoErrors();
 		$path_array3 = explode("/",$path3);
 		$fname3 = $path_array3[count($path_array3) - 1];
 		$this->assertNoUnwantedPattern($this->_namePattern,$name3);
@@ -158,14 +158,14 @@
 		$fname4 = $path_array4[count($path_array4) - 1];
 		$this->assertWantedPattern('/^attachment.*/', $fname4);
 	}
-	
+
     // case 5: same attachment name submitted 2 times same day for same list
     function testGetPathWithSameFileName() {
         $fs = new ForumML_FileStorageTestVersion($this);
         $fs->root = $this->_fixture;
         $fs->setReturnValueAt(0, 'fileExists', false);
         $fs->setReturnValueAt(1, 'fileExists', true);
- 
+
         $list = "gpig-interest";
 		$date = "2007_10_24";
 		$type = "store";
@@ -182,4 +182,4 @@
 
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/forumml/tests/ForumML_InsertTest.php
===================================================================
--- trunk/src/plugins/forumml/tests/ForumML_InsertTest.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/tests/ForumML_InsertTest.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -193,7 +193,7 @@
         $i->expectAt(1, 'insertAttachment', array(2, 'attachment', 'image/png', '/a/b/c', '<part1.05020200.07040300 at codendi.org>'));
         $i->expectAt(2, 'insertAttachment', array(2, 'new_trk_severity_migr.png', 'image/png; name="new_trk_severity_migr.png"', '/a/b/c', ''));
         $i->expectCallCount('insertAttachment', 3);
-        
+
         $i->storeEmail($structure, $storage);
     }
 
@@ -212,7 +212,7 @@
         $i->expectCallCount('insertAttachment', 2);
 
         $i->storeEmail($structure, $storage);
-    } 
+    }
 
 
 

Modified: trunk/src/plugins/forumml/www/forumml_utils.php
===================================================================
--- trunk/src/plugins/forumml/www/forumml_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/www/forumml_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -43,15 +43,15 @@
 	return new ForumML_MessageDao(CodendiDataAccess::instance());
 }
 
-// Get message headers 
+// Get message headers
 function plugin_forumml_get_message_headers($id_message) {
 
-	return getForumMLDao()->getMessageHeaders($id_message)->getRow();	
+	return getForumMLDao()->getMessageHeaders($id_message)->getRow();
 }
 
 // Display search results
 function plugin_forumml_show_search_results($p,$result,$group_id,$list_id) {
-	
+
 	echo "<table width='100%'>
 			<tr>
 				<th class=forumml>".
@@ -64,7 +64,7 @@
 					_('Author')."
 				</th>
 			</tr>";
-					
+
 	$idx = 0;
 	// Build a table full of search results
 	while ($rows = $result->getRow()) {
@@ -74,9 +74,9 @@
 		} else {
 			$class="boxitem bgcolor-grey";
 		}
-	
+
 		$res1 = getForumMLDao()->getSpecificMessage($rows['id_message'],$list_id)->getRow();
-		$subject = mb_decode_mimeheader($res1['value']);	
+		$subject = mb_decode_mimeheader($res1['value']);
 		$res2 = getForumMLDao()->getHeaderValue($rows['id_message'],array(2,3));
     	$k = 1;
         while ($rows2 =$res2->getRow()) {
@@ -85,7 +85,7 @@
         }
 	    $from = mb_decode_mimeheader($header[1]);
 
-        // Replace '<' by '<' and '>' by '>'. Otherwise the email adress won't be displayed 
+        // Replace '<' by '<' and '>' by '>'. Otherwise the email adress won't be displayed
         // because it will be considered as an xhtml tag.
         $from = preg_replace('/\</', '<', $from);
         $from = preg_replace('/\>/', '>', $from);
@@ -94,28 +94,28 @@
 		// purify message subject (CODENDI_PURIFIER_FORUMML level)
 		$hp =& ForumML_HTMLPurifier::instance();
 		$subject = $hp->purify($subject,CODENDI_PURIFIER_FORUMML);
-		
-		// display the resulting threads in rows 
+
+		// display the resulting threads in rows
 		printf ("<tr class='".$class."'>
 					<td class='subject'>
 						 <img src='".$p->getThemePath()."/images/ic/comment.png'/>
-    					<a href='message.php?group_id=".$group_id."&topic=".$rows['id_message']."&list=".$list_id."'><b>".$subject."</b></a>						
+    					<a href='message.php?group_id=".$group_id."&topic=".$rows['id_message']."&list=".$list_id."'><b>".$subject."</b></a>
 					</td>
-					<td>						
+					<td>
          				<font class='info'>".$date."</font>
 					</td>
 					<td>
 						<font class='info'>".$from."</font>
 					</td>
 				</tr>");
-	}										
-	echo "</table>";				
-	
+	}
+	echo "</table>";
+
 }
 
 // List all threads
 function plugin_forumml_show_all_threads($p,$list_id,$list_name,$offset) {
-	
+
 	$chunks = 30;
 	$request =& HTTPRequest::instance();
 
@@ -146,15 +146,15 @@
 			_('Previous ').$chunks.(' messages')."'/></a>";
 	} else {
 		$begin = "<img src='".$p->getThemePath()."/images/ic/resultset_first_disabled.png' alt='".$p->getThemePath()."/images/ic/resultset_first_disabled.png'/>";
-		$previous = "<img src='".$p->getThemePath()."/images/ic/resultset_previous_disabled.png' 
-			title='"._('Previous ').$chunks.(' messages')."'/>"; 
-	}	 
+		$previous = "<img src='".$p->getThemePath()."/images/ic/resultset_previous_disabled.png'
+			title='"._('Previous ').$chunks.(' messages')."'/>";
+	}
 
 	if (($offset + $chunks ) < $nbThreads) {
 		$next = "<a href=\"/plugins/forumml/message.php?group_id=".$request->get('group_id')."&list=".$list_id."&offset=".($offset + $chunks)."\"><img src='".$p->getThemePath()."/images/ic/resultset_next.png' title='"._('Next ').$chunks.(' messages')."'/></a>";
 		$finish = "<a href=\"/plugins/forumml/message.php?group_id=".$request->get('group_id')."&list=".$list_id."&offset=".($chunks * (int) (($nbThreads - 1) / $chunks))."\"><img src='".$p->getThemePath()."/images/ic/resultset_last.png' title='".$_('Last messages')."'/></a>";
 	} else {
-		$next = "<img src='".$p->getThemePath()."/images/ic/resultset_next_disabled.png' title='".$chunks."'/>"; 
+		$next = "<img src='".$p->getThemePath()."/images/ic/resultset_next_disabled.png' title='".$chunks."'/>";
 		$finish = "<img src='".$p->getThemePath()."/images/ic/resultset_last_disabled.png'/>";
 	}
 
@@ -175,8 +175,8 @@
 		</td>
 		<td align='right' width='10%'>
 		$finish
-		</td>														
-		</tr>	
+		</td>
+		</tr>
 		</table>";
 
 	if ($nbRowFound > 0) {
@@ -213,7 +213,7 @@
 				<td class='subject'>";
 			if ($count > 1) {
 				print "<img src='".$p->getThemePath()."/images/ic/comments.png'/>";
-			} 
+			}
 			else {
 				print "<img src='".$p->getThemePath()."/images/ic/comment.png'/>";
 			}
@@ -223,12 +223,12 @@
 
 			print "<a href='message.php?group_id=".$request->get('group_id')."&topic=".$msg['id_message']."&list=".$request->get('list')."'>
 				".$hp->purify($subject, CODENDI_PURIFIER_CONVERT_HTML)."
-				</a> <b><i>(".$count.")</i></b>						 
+				</a> <b><i>(".$count.")</i></b>
 				</td>".
 				"<td class='info'>".strftime("%a, %e %h %G  %R",$msg['lastup'])."</td>".
 				"<td class='info'>".strftime("%a, %e %h %G  %R",strtotime($msg['date']))."</td>
 				<td class='info'>".$hp->purify($msg['sender'], CODENDI_PURIFIER_CONVERT_HTML)."</td>
-				</tr>";	
+				</tr>";
 		}
 
 		echo '</table>';
@@ -249,8 +249,8 @@
 			</td>
 			<td align='right' width='10%'>
 			$finish
-			</td>														
-			</tr>	
+			</td>
+			</tr>
 			</table>";
 	}
 
@@ -369,7 +369,7 @@
  *                ),
  *   ...
  * );
- * 
+ *
  */
 function plugin_forumml_build_flattened_thread($topic) {
 	$thread = array();
@@ -410,7 +410,7 @@
 	}
 
 	echo '<div class="plugin_forumml_message">';
-	// specific thread  
+	// specific thread
 	echo '<div class="plugin_forumml_message_header boxitemalt" id="plugin_forumml_message_'. $msg['id_message'] .'">';
 	echo '<div class="plugin_forumml_message_header_subject">'. $hp->purify($msg['subject'], CODENDI_PURIFIER_CONVERT_HTML) .'</div>';
 
@@ -494,7 +494,7 @@
 			// Use CODENDI_PURIFIER_FULL for html mails
 			$msg['cached_html'] = $hp->purify($body,CODENDI_PURIFIER_FULL,$request->get('group_id'));
 		} else {
-			// CODENDI_PURIFIER_FORUMML level : no basic html markups, no forms, no javascript, 
+			// CODENDI_PURIFIER_FORUMML level : no basic html markups, no forms, no javascript,
 			// Allowed: url + automagic links + <blockquote>
 			$purified_body = $hp->purify($body,CODENDI_PURIFIER_CONVERT_HTML,$request->get('group_id'));
 			$purified_body = str_replace('>', '>', $purified_body);
@@ -545,16 +545,16 @@
 	// If you click on 'Reply', load reply form
 	$vMess = new Valid_UInt('id_mess');
 	$vMess->required();
-	if ($request->valid($vMess) && $request->get('id_mess') == $msg['id_message']) {			
+	if ($request->valid($vMess) && $request->get('id_mess') == $msg['id_message']) {
 		$vReply = new Valid_WhiteList('reply',array(0,1));
-		$vReply->required();            	
+		$vReply->required();
 		if ($request->valid($vReply) && $request->get('reply') == 1) {
 			if ($is_html) {
 				$body = $hp->purify($body, CODENDI_PURIFIER_STRIP_HTML);
 			} else {
 				$body = $hp->purify($body, CODENDI_PURIFIER_CONVERT_HTML);
 			}
-			plugin_forumml_reply($hp,$msg['subject'],$msg['id_message'],$id_parent,$body,$msg['sender']);            		
+			plugin_forumml_reply($hp,$msg['subject'],$msg['id_message'],$id_parent,$body,$msg['sender']);
 		}
 	} else {
 
@@ -656,9 +656,9 @@
 	if ($reply) {
 		// set In-Reply-To header
 		$hres = plugin_forumml_get_message_headers($request->get('reply_to'));
-		$reply_to = $hres['value'];			
+		$reply_to = $hres['value'];
 		$mail->addAdditionalHeader("In-Reply-To",$reply_to);
-	} 
+	}
 	$continue = true;
 
 	if ($request->validArray(new Valid_Email('ccs')) && $request->exist('ccs')) {
@@ -703,7 +703,7 @@
 		$boundaryEnd   = '--'.$boundary.'--';
 
 		// Attachments headers
-		if (isset($_FILES["files"]) && count($_FILES["files"]['name']) > 0) {			
+		if (isset($_FILES["files"]) && count($_FILES["files"]['name']) > 0) {
 			$attachment = "";
 			$text = "This is a multi-part message in MIME format.\n";
 			$text = "$boundaryStart\n";

Modified: trunk/src/plugins/forumml/www/index.php
===================================================================
--- trunk/src/plugins/forumml/www/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/www/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,9 +25,9 @@
 
 /*
  * ForumML New Thread submission form
- * 
- */ 
-require_once('env.inc.php'); 
+ *
+ */
+require_once('env.inc.php');
 require_once('pre.php');
 require_once('preplugins.php');
 require_once('forumml_utils.php');
@@ -42,13 +42,13 @@
 if ($p && $plugin_manager->isPluginAvailable($p) && $p->isAllowed()) {
 
 	$request =& HTTPRequest::instance();
-	
+
 	if ($request->valid(new Valid_UInt('group_id'))) {
 		$group_id = $request->get('group_id');
 	} else {
 		$group_id = "";
 	}
-	
+
 	// Checks 'list' parameter
 	if (! $request->valid(new Valid_UInt('list'))) {
 		exit_error(_('Error'),_('No list specified'));
@@ -57,7 +57,7 @@
 $list = new MailmanList($group_id,$list_id);
 		if (!isLogged() || ($list->isPublic()!=1 && !$current_user->isMember($group_id))) {
 			exit_error(_('error'),_('You are not allowed to access this page'));
-		}		
+		}
 		if ($list->getStatus() !=3) {
 			exit_error(_('Error'),_('The mailing  list does not exist or is inactive'));
 		}
@@ -68,7 +68,7 @@
 		// Checks if mail subject is empty
 		$vSub = new Valid_String('subject');
 		$vSub->required();
-		if (! $request->valid($vSub)) {		
+		if (! $request->valid($vSub)) {
 			$feedback .=_('Submit failed you must specify the mail subject.');
 		} else {
 			// process the mail
@@ -89,7 +89,7 @@
 	$params['toptab'] = 'mail';
 	$params['help'] = "CommunicationServices.html#MailingLists";
 	mailman_header($params);
-		
+
 	if ($request->isPost() && $request->get('post') && $request->valid($vSub)) {
 		if (isset($return) && $return) {
 			// wait few seconds before redirecting to archives page

Modified: trunk/src/plugins/forumml/www/message.php
===================================================================
--- trunk/src/plugins/forumml/www/message.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/www/message.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 
 /*
  * ForumML Archives Browsing page
- *  
+ *
  */
 
 require_once('env.inc.php');
@@ -52,7 +52,7 @@
 
 	$vGrp = new Valid_UInt('group_id');
 	$vGrp->required();
-	if ($request->valid($vGrp)) {		
+	if ($request->valid($vGrp)) {
 		$group_id = $request->get('group_id');
 	} else {
 		$group_id = "";
@@ -96,7 +96,7 @@
 		$list = new MailmanList($group_id,$list_id);
 		if (!isLogged() || ($list->isPublic()!=1 && !$current_user->isMember($group_id))) {
 			exit_error(_('error'),_('You are not allowed to access this page'));
-		}		
+		}
 		if ($list->getStatus() !=3) {
 			exit_error(_('error'),_('This list is not active'));
 		}
@@ -130,7 +130,7 @@
 
 	$params['title'] = $Group->getPublicName().' - ForumML - '.$list_name;
 	if ($topicSubject) {
-		$params['title'] .= ' - '.$topicSubject;   
+		$params['title'] .= ' - '.$topicSubject;
 	}
 	$params['group'] = $group_id;
 	$params['toptab']='mail';
@@ -144,7 +144,7 @@
 		if (isset($ret) && $ret) {
 			// wait few seconds before redirecting to archives page
 			echo "<script> setTimeout('window.location=\"/plugins/forumml/message.php?group_id=".$group_id."&list=".$list_id."&topic=".$topic."\"',3000) </script>";
-		}		
+		}
 	}
 
 	$list_link = '<a href="/plugins/forumml/message.php?group_id='.$group_id.'&list='.$list_id.'">'.$list_name.'</a>';
@@ -195,18 +195,18 @@
 		// Check if there are archives to browse
 		$res = getForumMLDao()->hasArchives($list_id);
 		if ($res->rowCount() > 0) {
-			// Call to show_thread() function to display the archives			
+			// Call to show_thread() function to display the archives
 			if (isset($topic) && $topic != 0) {
 				// specific thread
 				plugin_forumml_show_thread($p, $list_id, $topic, $purgeCache);
 			} else {
 				plugin_forumml_show_all_threads($p,$list_id,$list_name,$offset);
-			}	
+			}
 		} else {
 			echo "<H2>"._('Empty archives')."</H2>";
 		}
 	} else {
-		// search archives		
+		// search archives
 		$pattern = "%".$request->get('search')."%";
 		$result = getForumMLDao()->searchArchives($list_id,$pattern);
 		echo "<H3>"._('Search result for ').$request->get('search')." (".$result->rowCount()." "._('Thread(s) found').")</H3>";

Modified: trunk/src/plugins/forumml/www/scripts/cc_attach_js.php
===================================================================
--- trunk/src/plugins/forumml/www/scripts/cc_attach_js.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/www/scripts/cc_attach_js.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -53,8 +53,8 @@
   					+file
   					+"'size=30></td><td align=center><a href=\"javascript:;\" onclick=\"removeHeader(\'"
   					+divIdName
-  					+"\')\"><img border='0' src=\"<?php echo getImage("ic/trash.png"); ?>\"></a></td></tr></table>";  
-  }					
+  					+"\')\"><img border='0' src=\"<?php echo getImage("ic/trash.png"); ?>\"></a></td></tr></table>";
+  }
   ni.appendChild(newdiv);
 }
 

Modified: trunk/src/plugins/forumml/www/upload.php
===================================================================
--- trunk/src/plugins/forumml/www/upload.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/forumml/www/upload.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -46,7 +46,7 @@
 	$list = new MailmanList($groupId,$list_id);
 	if (!isLogged() || ($list->isPublic()!=1 && !$current_user->isMember($groupId))) {
 		exit_error(_('error'),_('You are not allowed to access this page'));
-	}		
+	}
 	if ($list->getStatus() !=3) {
 		exit_error(_('error'),_('This list is not active'));
 	}

Modified: trunk/src/plugins/globalsearch/common/globalsearch_edit_utils.php
===================================================================
--- trunk/src/plugins/globalsearch/common/globalsearch_edit_utils.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/globalsearch/common/globalsearch_edit_utils.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -12,7 +12,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -38,7 +38,7 @@
 	echo '<tr><td><strong>'._('Software only').'</strong></td><td><input type="checkbox" checked name="onlysw" value="t"/></td></tr>';
 	echo '<tr><td><strong>'._('Enabled').'</strong></td><td><input type="checkbox" checked name="enabled" value="t"/></td></tr>';
 	echo '<tr><td><strong>'._('Rank').'</strong></td><td><input type="text" name="rank" /></td></tr>';
-	
+
 	echo '</table><input type="submit" value="'._('Submit new associated forge').'" /></form>
                         <form name="cancel" action="'.$PHP_SELF.'" method="post">
                         <input type="submit" value="Cancel" />
@@ -150,7 +150,7 @@
 		echo '<tr><td><strong>'._('Software only').'</strong></td><td><input type="checkbox" '.(($old_onlysw == 't')?'checked':'') .' name="onlysw" value="t"/></td></tr>';
 		echo '<tr><td><strong>'._('Enabled').'</strong></td><td><input type="checkbox" '.(($old_enabled == 't')?'checked':'') .' name="enabled" value="t"/></td></tr>';
 		echo '<tr><td><strong>'._('Rank').'</strong></td><td><input type="text" name="rank" value="'.$old_rank.'"/></td></tr>';
-		
+
 		echo '</table><input type="submit" value="'._('Submit changes').'" /></form>
                         <form name="cancel" action="'.$PHP_SELF.'" method="post">
                         <input type="submit" value="'._('Cancel').'" />
@@ -240,13 +240,13 @@
                 echo db_error();
         }
 }
-	
+
 function globalsearch_status_name ($status_id) {
 	switch ($status_id) {
-	case 1: return _('New'); break; 
-	case 2: return _('OK'); break; 
-	case 3: return _('Error fetching data'); break; 
-	case 4: return _('Error parsing data'); break; 
+	case 1: return _('New'); break;
+	case 2: return _('OK'); break;
+	case 3: return _('Error fetching data'); break;
+	case 4: return _('Error parsing data'); break;
 	default: return _('Unknown status ID');
 	}
 }

Modified: trunk/src/plugins/globalsearch/common/globalsearch_stats_boxes.php
===================================================================
--- trunk/src/plugins/globalsearch/common/globalsearch_stats_boxes.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/globalsearch/common/globalsearch_stats_boxes.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -28,7 +28,7 @@
 
 function show_globalsearch_stats_boxes() {
         GLOBAL $HTML;
-        
+
         $return = '';
         $return .= $HTML->boxTop(_("Global Search"));
         $return .= globalsearch_box();
@@ -60,11 +60,11 @@
 
 function show_top_n_assocsites($num_assocsites) {
         $res_top_n_assoc = db_query_params ('
-                SELECT a.title, a.link, count(*) AS numprojects 
-                FROM plugin_globalsearch_assoc_site_project p, plugin_globalsearch_assoc_site a 
-                WHERE p.assoc_site_id = a.assoc_site_id AND p.assoc_site_id IN 
-                        (SELECT assoc_site_id FROM plugin_globalsearch_assoc_site 
-                        WHERE status_id = 2 AND enabled=$1 ORDER BY rank LIMIT $2) 
+                SELECT a.title, a.link, count(*) AS numprojects
+                FROM plugin_globalsearch_assoc_site_project p, plugin_globalsearch_assoc_site a
+                WHERE p.assoc_site_id = a.assoc_site_id AND p.assoc_site_id IN
+                        (SELECT assoc_site_id FROM plugin_globalsearch_assoc_site
+                        WHERE status_id = 2 AND enabled=$1 ORDER BY rank LIMIT $2)
                 GROUP BY a.title, a.link',
 					    array('t',
 						  $num_assocsites));
@@ -77,12 +77,12 @@
         while ($row_topdown = db_fetch_array($res_top_n_assoc)) {
                 if ($row_topdown['numprojects'] > 0)
                         $return .= "<tr><td><a href=\"$row_topdown[link]/\">";
-                        $return .= $row_topdown[title]."</a></td>"; 
+                        $return .= $row_topdown[title]."</a></td>";
                         $return .= "<td><div align=\"right\">". number_format($row_topdown[numprojects], 0);
                         $return .= " projects</div></td></tr>\n";
         }
         $return .= "</div></table>";
-        
+
         return $return;
 }
 

Modified: trunk/src/plugins/globalsearch/www/edit_assoc_sites.php
===================================================================
--- trunk/src/plugins/globalsearch/www/edit_assoc_sites.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/globalsearch/www/edit_assoc_sites.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU

Modified: trunk/src/plugins/globalsearch/www/index.php
===================================================================
--- trunk/src/plugins/globalsearch/www/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/globalsearch/www/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -38,7 +38,7 @@
 $otherfreeknowledge = getIntFromRequest('otherfreeknowledge') ;
 $gwords = getStringFromRequest('gwords');
 $order = getStringFromRequest('order', 'rank');
-util_ensure_value_in_set ($order, 
+util_ensure_value_in_set ($order,
 			  array ('rank',
 				 'project_title',
 				 'project_description',
@@ -122,7 +122,7 @@
 		}
 	}
 	$i++ ;
-	
+
 	$qpa = db_construct_qpa ($qpa, 'lower(project_title) LIKE $1', array ("%$val%")) ;
 }
 
@@ -138,7 +138,7 @@
 		}
 	}
 	$i++ ;
-	
+
 	$qpa = db_construct_qpa ($qpa, 'lower(project_description) LIKE $1', array ("%$val%")) ;
 }
 $qpa = db_construct_qpa ($qpa, ')) ORDER BY '.$order) ;
@@ -179,7 +179,7 @@
                 } else {
                         $what = 'projects';
                 }
-                
+
                 print        "<tr ". $HTML->boxGetAltRowStyle($i)."><td><a href=\""
                         . db_result($result, $i, 'project_link')."\" target=\"blank\">"
                         . html_image("ic/msg.png","10","12",array("border"=>"0"))." "

Modified: trunk/src/plugins/gravatar/common/gravatarPlugin.class.php
===================================================================
--- trunk/src/plugins/gravatar/common/gravatarPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/gravatar/common/gravatarPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -56,10 +56,10 @@
 			$url = 'http://www.gravatar.com/avatar/';
 			if (isset($_SERVER['HTTPS']))
 				$url = 'https://secure.gravatar.com/avatar/';
-			
+
 			$usize = 28;
-			
-			if ($size == 'l') 
+
+			if ($size == 'l')
 				$usize = '130';
 			if ($size == 'm')
 				$usize = 48;

Modified: trunk/src/plugins/hudson/common/hudson-init.php
===================================================================
--- trunk/src/plugins/hudson/common/hudson-init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/common/hudson-init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 

Modified: trunk/src/plugins/hudson/cronjobs/manage_hudson.php
===================================================================
--- trunk/src/plugins/hudson/cronjobs/manage_hudson.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/cronjobs/manage_hudson.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -28,10 +28,10 @@
 // MailingList backend class
 /* This is only sample
 require_once $gfplugins.'hudson/include/BackendHelloworld.class.php' ;
-			 
 
+
 $res = db_query_params ('SELECT id,type, parameters FROM system_event WHERE status=$1 ORDER BY id DESC',
-			array ('1')); 
+			array ('1'));
 if (!$res) {
 	printf('Unable to get list of events: '.db_error());
 	return false;
@@ -49,7 +49,7 @@
 }
 if(isset($events)) {
 	foreach($events as $event_id => $log) {
-		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;"; 
+		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;";
 		$result = db_query_params($sql,array(time(),$log,$event_id));
 		if (!$result) {
 			printf('Unable to update the list of events: '.db_error());

Modified: trunk/src/plugins/hudson/etc/plugins/hudson/config.php
===================================================================
--- trunk/src/plugins/hudson/etc/plugins/hudson/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/etc/plugins/hudson/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 // here you can put all your configuration variables
 

Modified: trunk/src/plugins/hudson/include/HudsonBuild.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonBuild.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonBuild.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,36 +21,36 @@
 require_once('HudsonJobURLMalformedException.class.php');
 require_once('HudsonJobURLFileException.class.php');
 require_once('HudsonJobURLFileNotFoundException.class.php');
- 
+
 class HudsonBuild {
 
     protected $hudson_build_url;
     protected $dom_build;
-    
+
     private $context;
-        
+
     /**
      * Construct an Hudson build from a build URL
      */
     function HudsonBuild($hudson_build_url) {
         $parsed_url = parse_url($hudson_build_url);
-        
+
         if ( ! $parsed_url || ! array_key_exists('scheme', $parsed_url) ) {
             throw new HudsonJobURLMalformedException(vsprintf(_("Wrong Job URL: %s"),  array($hudson_build_url)));
         }
-                
+
         $this->hudson_build_url = $hudson_build_url . "/api/xml";
-        
+
         $this->_setStreamContext();
-        
+
         $this->buildBuildObject();
-        
+
     }
-    
+
     public function buildBuildObject() {
         $this->dom_build = $this->_getXMLObject($this->hudson_build_url);
     }
-    
+
     protected function _getXMLObject($hudson_build_url) {
         $xmlstr = @file_get_contents($hudson_build_url, false, $this->context);
         if ($xmlstr !== false) {
@@ -61,10 +61,10 @@
                 throw new HudsonJobURLFileException(vsprintf(_("Unable to read file at URL: %s"),  array($hudson_build_url)));
             }
         } else {
-            throw new HudsonJobURLFileNotFoundException(vsprintf(_("File not found at URL: %s"),  array($hudson_build_url))); 
+            throw new HudsonJobURLFileNotFoundException(vsprintf(_("File not found at URL: %s"),  array($hudson_build_url)));
         }
     }
-    
+
     private function _setStreamContext() {
         if (array_key_exists('sys_proxy', $GLOBALS) && $GLOBALS['sys_proxy']) {
             $context_opt = array(
@@ -80,11 +80,11 @@
             $this->context = null;
         }
     }
-    
+
     function getDom() {
         return $this->dom_build;
     }
-    
+
     function getBuildStyle() {
         return $this->dom_build->getName();
     }
@@ -111,4 +111,4 @@
     }
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/HudsonJob.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonJob.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonJob.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,7 +21,7 @@
 require_once('HudsonJobURLMalformedException.class.php');
 require_once('HudsonJobURLFileException.class.php');
 require_once('HudsonJobURLFileNotFoundException.class.php');
- 
+
 class HudsonJob {
 
     protected $hudson_job_url;
@@ -30,46 +30,46 @@
     protected $dom_job;
     protected $config_job;
     private $icons_path;
-    
+
     private $context;
-        
+
     /**
      * Construct an Hudson job from a job URL
      */
     function HudsonJob($hudson_job_url) {
         $parsed_url = parse_url($hudson_job_url);
-        
+
         if ( ! $parsed_url || ! array_key_exists('scheme', $parsed_url) ) {
             throw new HudsonJobURLMalformedException(vsprintf(_("Wrong Job URL: %s"),  array($hudson_job_url)));
         }
-                
+
         $this->hudson_job_url = $hudson_job_url . "/api/xml";
         $this->hudson_dobuild_url = $hudson_job_url . "/build";
         $this->hudson_config_job_url = $hudson_job_url . "/config.xml";
-        
-        $controler = $this->getHudsonControler(); 
+
+        $controler = $this->getHudsonControler();
         $this->icons_path = $controler->getIconsPath();
-        
+
         $this->_setStreamContext();
-        
+
         $this->buildJobObject();
-        
+
     }
     function getHudsonControler() {
         return new hudson();
     }
-    
+
     public function buildJobObject() {
         $this->dom_job = $this->_getXMLObject($this->hudson_job_url);
     }
-    
+
     public function configJobObject() {
 	if ($this->config_job) {
 	    return;
 	}
         $this->config_job = $this->_getXMLObject($this->hudson_config_job_url);
     }
-    
+
     protected function _getXMLObject($hudson_job_url) {
 
         // If enabled, use APC cache (1sec) to reduce RSS fetching that may cause big delays.
@@ -91,10 +91,10 @@
                 throw new HudsonJobURLFileException(vsprintf(_("Unable to read file at URL: %s"),  array($hudson_job_url)));
             }
         } else {
-            throw new HudsonJobURLFileNotFoundException(vsprintf(_("File not found at URL: %s"),  array($hudson_job_url))); 
+            throw new HudsonJobURLFileNotFoundException(vsprintf(_("File not found at URL: %s"),  array($hudson_job_url)));
         }
     }
-    
+
     private function _setStreamContext() {
         if (array_key_exists('sys_proxy', $GLOBALS) && $GLOBALS['sys_proxy']) {
             $context_opt = array(
@@ -110,7 +110,7 @@
             $this->context = null;
         }
     }
-    
+
     function getProjectStyle() {
         return $this->dom_job->getName();
     }
@@ -142,11 +142,11 @@
                 break;
             case "yellow":
                 // The last build was successful but unstable. This is primarily used to represent test failures.
-                return _("Unstable"); 
+                return _("Unstable");
                 break;
             case "yellow_anime":
                 // The last build was successful but unstable. This is primarily used to represent test failures. A new build is in progress.
-                return _("In progress"); 
+                return _("In progress");
                 break;
             case "red":
                 // The last build fatally failed.
@@ -170,7 +170,7 @@
                 break;
         }
     }
-    
+
     function getIconsPath() {
         return $this->icons_path;
     }
@@ -186,7 +186,7 @@
                 break;
             case "yellow":
                 // The last build was successful but unstable. This is primarily used to represent test failures.
-                return $this->getIconsPath()."status_yellow.png"; 
+                return $this->getIconsPath()."status_yellow.png";
                 break;
             case "yellow_anime":
                 // The last build was successful but unstable. A new build is in progress.
@@ -214,40 +214,40 @@
                 break;
         }
     }
-    
+
     function isBuildable() {
         return ($this->dom_job->buildable == "true");
     }
-    
+
     function hasBuilds() {
-        return ((int)$this->getLastBuildNumber() !== 0); 
+        return ((int)$this->getLastBuildNumber() !== 0);
     }
-    
+
     function getLastBuildNumber() {
         return $this->dom_job->lastBuild->number;
     }
     function getLastBuildUrl() {
         return $this->dom_job->lastBuild->url;
     }
-    
+
     function getLastSuccessfulBuildNumber() {
         return $this->dom_job->lastSuccessfulBuild->number;
     }
     function getLastSuccessfulBuildUrl() {
         return $this->dom_job->lastSuccessfulBuild->url;
     }
-    
+
     function getLastFailedBuildNumber() {
         return $this->dom_job->lastFailedBuild->number;
     }
     function getLastFailedBuildUrl() {
         return $this->dom_job->lastFailedBuild->url;
     }
-    
+
     function getNextBuildNumber() {
         return $this->dom_job->nextBuildNumber;
     }
-    
+
     function getHealthScores() {
         $scores = array();
         foreach ($this->dom_job->healthReport as $health_report) {
@@ -275,7 +275,7 @@
             return null;
         }
     }
-    
+
     function getWeatherReportIcon() {
         $score = $this->getHealthAverageScore();
         if ($score >= 80) {
@@ -290,17 +290,17 @@
             return $this->getIconsPath()."health_00_to_19.gif";
         }
     }
-    
+
     function getSvnLocation() {
         $this->configJobObject();
         return $this->config_job->scm->locations->{'hudson.scm.SubversionSCM_-ModuleLocation'}->remote;
     }
-    
+
     /**
      * Launch a Build for this job on the Continuous Integration server.
-     * 
+     *
      * @exception if unable to open build URL or if response is an error
-     *  
+     *
      * @param string $token if CI server has activated security (login/password), then a token is mandatory to build jobs. This token is defined in the job configuration.
      * @return response of build call.
      */
@@ -324,7 +324,7 @@
         }
         return $response;
     }
-    
+
 }
 
 ?>

Modified: trunk/src/plugins/hudson/include/HudsonJobURLFileException.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonJobURLFileException.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonJobURLFileException.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,7 +18,7 @@
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  */
 class HudsonJobURLFileException extends Exception {
-    
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/HudsonJobURLFileNotFoundException.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonJobURLFileNotFoundException.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonJobURLFileNotFoundException.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,7 +18,7 @@
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  */
 class HudsonJobURLFileNotFoundException extends HudsonJobURLFileException {
-    
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/HudsonJobURLMalformedException.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonJobURLMalformedException.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonJobURLMalformedException.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -18,7 +18,7 @@
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
  */
 class HudsonJobURLMalformedException extends Exception {
-    
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/HudsonJobWidget.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonJobWidget.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonJobWidget.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,18 +22,18 @@
 require_once('PluginHudsonJobDao.class.php');
 
 abstract class HudsonJobWidget extends HudsonWidget {
-    
+
     var $widget_id;
     var $group_id;
-    
+
     var $job;
     var $job_url;
     var $job_id;
-    
+
     function isUnique() {
         return false;
     }
-    
+
     function create(&$request) {
         $content_id = false;
         $vId = new Valid_Uint('job_id');
@@ -47,18 +47,18 @@
         }
         return $content_id;
     }
-    
+
     function destroy($id) {
         $sql = 'DELETE FROM plugin_hudson_widget WHERE id = $1 AND owner_id = $2 AND owner_type = $3';
         db_query_params($sql,array($id,$this->owner_id,$this->owner_type));
     }
-    
+
     function getInstallPreferences() {
         $prefs  = '';
         $prefs .= '<strong>'._("Monitored job:").'</strong><br />';
         $jobs = $this->getAvailableJobs();
 	$selected_jobs_id = $this->getSelectedJobsId();
-        
+
         foreach ($jobs as $job_id => $job) {
             if (in_array($job_id, $selected_jobs_id)) {
     			$options = ' disabled="disabled"';
@@ -80,7 +80,7 @@
         $prefs .= '<strong>'._("Monitored job:").'</strong><br />';
         $jobs = $this->getAvailableJobs();
     	$selected_jobs_id = $this->getSelectedJobsId();
-        
+
         foreach ($jobs as $job_id => $job) {
     		if (in_array($job_id, $selected_jobs_id)) {
     			$options = ' disabled="disabled"';
@@ -97,13 +97,13 @@
         }
         return $prefs;
     }
-    
+
     function updatePreferences(&$request) {
         $request->valid(new Valid_String('cancel'));
         if (!$request->exist('cancel')) {
             $job_id = $request->get($this->id);
             $sql = "UPDATE plugin_hudson_widget SET job_id=$1 WHERE owner_id = $2 AND owner_type = $3 AND id = $4";
-            $res = db_query_params($sql,array($job_id,$this->owner_id,$this->owner_type,(int)$request->get('content_id'))); 
+            $res = db_query_params($sql,array($job_id,$this->owner_id,$this->owner_type,(int)$request->get('content_id')));
         }
         return true;
     }
@@ -121,7 +121,7 @@
         return $selected_jobs_id;
     }
 
-    
+
 }
 
 ?>

Modified: trunk/src/plugins/hudson/include/HudsonOverviewWidget.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonOverviewWidget.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonOverviewWidget.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,11 +20,11 @@
 require_once('HudsonWidget.class.php');
 
 abstract class HudsonOverviewWidget extends HudsonWidget {
-    
+
     function isUnique() {
         return true;
     }
-    
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/HudsonTestResult.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonTestResult.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonTestResult.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -21,41 +21,41 @@
 require_once('HudsonJobURLMalformedException.class.php');
 require_once('HudsonJobURLFileException.class.php');
 require_once('HudsonJobURLFileNotFoundException.class.php');
- 
+
 class HudsonTestResult {
 
     protected $hudson_test_result_url;
     protected $dom_job;
-    
+
     private $context;
-    
+
     /**
      * Construct an Hudson job from a job URL
      */
     function HudsonTestResult($hudson_job_url) {
         $parsed_url = parse_url($hudson_job_url);
-        
+
         if ( ! $parsed_url || ! array_key_exists('scheme', $parsed_url) ) {
             throw new HudsonJobURLMalformedException(vsprintf(_("Wrong Job URL: %s"),  array($hudson_job_url)));
         }
-                
+
         $this->hudson_test_result_url = $hudson_job_url . "/lastBuild/testReport/api/xml/";
-        
-        $controler = $this->getHudsonControler(); 
-        
+
+        $controler = $this->getHudsonControler();
+
         $this->_setStreamContext();
-        
+
         $this->buildJobObject();
-        
+
     }
     function getHudsonControler() {
         return new hudson();
     }
-    
+
     public function buildJobObject() {
         $this->dom_job = $this->_getXMLObject($this->hudson_test_result_url);
     }
-    
+
     protected function _getXMLObject($hudson_test_result_url) {
         $xmlstr = @file_get_contents($hudson_test_result_url, false, $this->context);
         if ($xmlstr !== false) {
@@ -66,10 +66,10 @@
                 throw new HudsonJobURLFileException(vsprintf(_("Unable to read file at URL: %s"),  array($hudson_test_result_url)));
             }
         } else {
-            throw new HudsonJobURLFileNotFoundException(vsprintf(_("File not found at URL: %s"),  array($hudson_test_result_url))); 
+            throw new HudsonJobURLFileNotFoundException(vsprintf(_("File not found at URL: %s"),  array($hudson_test_result_url)));
         }
     }
-    
+
     private function _setStreamContext() {
         if (array_key_exists('sys_proxy', $GLOBALS) && $GLOBALS['sys_proxy']) {
             $context_opt = array(
@@ -85,7 +85,7 @@
             $this->context = null;
         }
     }
-    
+
     function getFailCount() {
         return $this->dom_job->failCount;
     }
@@ -98,11 +98,11 @@
     function getTotalCount() {
         return $this->getFailCount() + $this->getPassCount() + $this->getSkipCount();
     }
-    
+
     function getTestResultPieChart() {
         return '<img class="test_result_pie_chart" src="/plugins/hudson/test_result_pie_chart.php?p='.$this->getPassCount().'&f='.$this->getFailCount().'&s='.$this->getSkipCount().'" alt="Test result: '.$this->getPassCount().'/'.$this->getTotalCount().'" title="Test result: '.$this->getPassCount().'/'.$this->getTotalCount().'" />';
     }
-        
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/HudsonWidget.class.php
===================================================================
--- trunk/src/plugins/hudson/include/HudsonWidget.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/HudsonWidget.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,11 +22,11 @@
 require_once('common/widget/WidgetLayoutManager.class.php');
 
 abstract class HudsonWidget extends Widget {
-    
+
     function getCategory() {
         return _('Hudson');
     }
-    
+
     protected function getAvailableJobs() {
         $jobs = array();
         if ($this->owner_type == WidgetLayoutManager::OWNER_TYPE_USER) {
@@ -36,7 +36,7 @@
         }
         return $jobs;
     }
-    
+
     protected function getJobsByGroup($group_id) {
     	$dao = CodendiDataAccess::instance();
         $job_dao = new PluginHudsonJobDao($dao);
@@ -54,7 +54,7 @@
         }
         return $jobs;
     }
-    
+
     protected function getJobsByUser($user_id) {
         $job_dao = new PluginHudsonJobDao(CodendiDataAccess::instance());
         $dar = $job_dao->searchByUserID($user_id);
@@ -71,11 +71,11 @@
         }
         return $jobs;
     }
-    
+
     function isAjax() {
         return true;
     }
-    
+
 }
 
 ?>

Modified: trunk/src/plugins/hudson/include/PluginHudsonJobDao.class.php
===================================================================
--- trunk/src/plugins/hudson/include/PluginHudsonJobDao.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/PluginHudsonJobDao.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,7 +20,7 @@
 require_once('common/dao/include/DataAccessObject.class.php');
 
 /**
- *  Data Access Object for PluginHudsonJob 
+ *  Data Access Object for PluginHudsonJob
  */
 class PluginHudsonJobDao extends DataAccessObject {
 	/**
@@ -41,11 +41,11 @@
 	}
 
 	/**
-	 * Searches PluginHudsonJob by Codendi group ID 
+	 * Searches PluginHudsonJob by Codendi group ID
 	 * @return DataAccessResult
 	 */
 	function & searchByGroupID($group_id) {
-		$sql = "SELECT *  
+		$sql = "SELECT *
 			FROM plugin_hudson_job
 			WHERE group_id = $1";
 		$group_id = $this->da->quoteSmart($group_id);
@@ -53,11 +53,11 @@
 	}
 
 	/**
-	 * Searches PluginHudsonJob by job ID 
+	 * Searches PluginHudsonJob by job ID
 	 * @return DataAccessResult
 	 */
 	function & searchByJobID($job_id) {
-		$sql = "SELECT *  
+		$sql = "SELECT *
 			FROM plugin_hudson_job
 			WHERE job_id = $1";
 		$job_id = $this->da->quoteSmart($job_id);
@@ -65,11 +65,11 @@
 	}
 
 	/**
-	 * Searches PluginHudsonJob by job name 
+	 * Searches PluginHudsonJob by job name
 	 * @return DataAccessResult
 	 */
 	function & searchByJobName($job_name) {
-		$sql = "SELECT *  
+		$sql = "SELECT *
 			FROM plugin_hudson_job
 			WHERE name = $1";
 		$job_name = $this->da->quoteSmart($job_name);
@@ -78,21 +78,21 @@
 
 	/**
 	 * Searches PluginHudsonJob by user ID
-	 * means "all the jobs of all projects the user is member of" 
+	 * means "all the jobs of all projects the user is member of"
 	 * @return DataAccessResult
 	 */
 	function & searchByUserID($user_id) {
-		$sql = "SELECT j.*  
+		$sql = "SELECT j.*
 			FROM plugin_hudson_job j, users u, user_group ug
 			WHERE ug.group_id = j.group_id AND
-			u.user_id = ug.user_id AND 
+			u.user_id = ug.user_id AND
 			u.user_id = $1";
 		$user_id = $this->da->quoteSmart($user_id);
 		return $this->retrieve($sql,array($user_id));
 	}
 
 	/**
-	 * create a row in the table plugin_hudson_job 
+	 * create a row in the table plugin_hudson_job
 	 * @return true if there is no error
 	 */
 	function createHudsonJob($group_id, $hudson_job_url, $job_name, $use_svn_trigger = false, $use_cvs_trigger = false, $token = null) {

Modified: trunk/src/plugins/hudson/include/hudson.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -24,21 +24,21 @@
 /**
  * hudson */
 class hudson extends Controler {
-    
+
     private $themePath;
-    
+
     function hudson() {
         $p = PluginManager::instance()->getPluginByName('hudson');
         $this->themePath = $p->getThemePath();
     }
-    
+
     function getThemePath() {
         return $this->themePath;
     }
     function getIconsPath() {
         return $this->themePath . "/images/ic/";
     }
-    
+
     function request() {
 		global $feedback, $error_msg;
         $request =& HTTPRequest::instance();
@@ -129,7 +129,7 @@
                 } else {
                     $error_msg .= _("Permission Denied");
                 }
-                
+
             } else {
                 $error_msg .= _("Hudson service is not enabled");
             }

Modified: trunk/src/plugins/hudson/include/hudsonActions.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudsonActions.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudsonActions.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -32,7 +32,7 @@
     function hudsonActions(&$controler, $view=null) {
         $this->Actions($controler);
 	}
-	
+
 	// {{{ Actions
     function addJob() {
         global $feedback, $error_msg;
@@ -98,7 +98,7 @@
         }
     }
     // }}}
-   
+
 }
 
 ?>

Modified: trunk/src/plugins/hudson/include/hudsonPluginDescriptor.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudsonPluginDescriptor.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudsonPluginDescriptor.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -20,9 +20,9 @@
 require_once('common/plugin/PluginDescriptor.class.php');
 
 class hudsonPluginDescriptor extends PluginDescriptor {
-    
+
     function hudsonPluginDescriptor() {
         $this->PluginDescriptor(_("Continuous Integration"), '1.0', _("Continuous Integration with Hudson"));
     }
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/hudsonPluginInfo.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudsonPluginInfo.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudsonPluginInfo.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,11 +22,11 @@
 require_once('hudsonPluginDescriptor.class.php');
 
 class hudsonPluginInfo extends PluginInfo {
-    
+
     function hudsonPluginInfo(&$plugin) {
         $this->PluginInfo($plugin);
         $this->setPluginDescriptor(new hudsonPluginDescriptor());
     }
-    
+
 }
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/include/hudsonViews.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudsonViews.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudsonViews.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -70,7 +70,7 @@
 		$group_id = $request->get('group_id');
 		$user = UserManager::instance()->getCurrentUser();
 
-		$this->_display_jobs_table($group_id);       
+		$this->_display_jobs_table($group_id);
 		if ($user->isMember($request->get('group_id'), 'A')) {
 			$this->_display_add_job_form($group_id);
 		}
@@ -375,7 +375,7 @@
 				$dar->next();
 				$cpt++;
 			}
-			echo '</table>';   
+			echo '</table>';
 		} else {
 			echo '<p>'._("No Hudson jobs associated with this project. To add a job, select the link just below.").'</p>';
 		}

Modified: trunk/src/plugins/hudson/include/hudson_Widget_JobBuildHistory.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_JobBuildHistory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_JobBuildHistory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 require_once('HudsonJob.class.php');
 
 class hudson_Widget_JobBuildHistory extends HudsonJobWidget {
-    
+
     function hudson_Widget_JobBuildHistory($owner_type, $owner_id) {
         $request =& HTTPRequest::instance();
         if ($owner_type == WidgetLayoutManager::OWNER_TYPE_USER) {
@@ -36,10 +36,10 @@
             $this->group_id = $request->get('group_id');
         }
         $this->Widget($this->widget_id);
-        
+
         $this->setOwner($owner_id, $owner_type);
     }
-    
+
     function getTitle() {
         $title = '';
         if ($this->job) {
@@ -49,11 +49,11 @@
         }
         return  $title;
     }
-    
+
     function getDescription() {
         return _("Show the build history of the selected job, under the form of RSS feed. For each build of the list, you can see the build number, the status and the date the build has been scheduled.");
     }
-    
+
     function loadContent($id) {
         $sql = "SELECT * FROM plugin_hudson_widget WHERE widget_name=$1 AND owner_id = $2 AND owner_type = $3 AND id = $4";
         $res = db_query_params($sql,array($this->widget_id,$this->owner_id,$this->owner_type,$id));
@@ -61,9 +61,9 @@
             $data = db_fetch_array($res);
             $this->job_id    = $data['job_id'];
             $this->content_id = $id;
-            
+
             $jobs = $this->getAvailableJobs();
-            
+
             if (array_key_exists($this->job_id, $jobs)) {
                 $used_job = $jobs[$this->job_id];
                 $this->job_url = $used_job->getUrl();
@@ -71,26 +71,26 @@
             } else {
                 $this->job = null;
             }
-            
+
         }
     }
-    
+
     function getContent() {
         $html = '';
         if ($this->job != null) {
-                        
+
             $job = $this->job;
-                        
+
             $buildHistoryRSSWidget = new Widget_ProjectRss();
             $buildHistoryRSSWidget->rss_url = $job->getUrl().'/rssAll';
             $html .= $buildHistoryRSSWidget->getContent();
-                    
+
         } else {
             $html .= _("Job not found.");
         }
         return $html;
     }
-    
+
     function hasRss() {
         return true;
     }

Modified: trunk/src/plugins/hudson/include/hudson_Widget_JobLastArtifacts.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_JobLastArtifacts.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_JobLastArtifacts.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,10 +25,10 @@
 require_once('HudsonBuild.class.php');
 
 class hudson_Widget_JobLastArtifacts extends HudsonJobWidget {
-    
+
     var $build;
     var $last_build_url;
-    
+
     function hudson_Widget_JobLastArtifacts($owner_type, $owner_id) {
         $request =& HTTPRequest::instance();
         if ($owner_type == WidgetLayoutManager::OWNER_TYPE_USER) {
@@ -39,10 +39,10 @@
             $this->group_id = $request->get('group_id');
         }
         $this->Widget($this->widget_id);
-        
+
         $this->setOwner($owner_id, $owner_type);
     }
-    
+
     function getTitle() {
         $title = '';
         if ($this->job) {
@@ -52,11 +52,11 @@
         }
         return  $title;
     }
-    
+
     function getDescription() {
         return _("Show the last successfully published artifacts of one job. To display something, your job needs to publish artifacts.");
     }
-    
+
     function loadContent($id) {
         $sql = "SELECT * FROM plugin_hudson_widget WHERE widget_name=$1 AND owner_id=$2 AND owner_type=$3 AND id=$4";
         $res = db_query_params($sql,array($this->widget_id,$this->owner_id,$this->owner_type,$id));
@@ -64,35 +64,35 @@
             $data = db_fetch_array($res);
             $this->job_id    = $data['job_id'];
             $this->content_id = $id;
-            
+
             $jobs = $this->getAvailableJobs();
-            
+
             if (array_key_exists($this->job_id, $jobs)) {
                 $used_job = $jobs[$this->job_id];
                 $this->job_url = $used_job->getUrl();
                 $this->job = $used_job;
-                
+
                 $this->last_build_url = $this->job_url.'/lastBuild/';
 
                 try {
                     $this->build = new HudsonBuild($this->last_build_url);
                 } catch (Exception $e) {
                     $this->build = null;
-                }   
+                }
             } else {
                 $this->job = null;
                 $this->build = null;
             }
-            
+
         }
     }
-    
+
     function getContent() {
         $html = '';
         if ($this->job != null && $this->build != null) {
-                        
+
             $build = $this->build;
-            
+
             $html .= '<ul>';
             $dom = $build->getDom();
             foreach ($dom->artifact as $artifact) {
@@ -105,7 +105,7 @@
             } else {
                 $html .= _("Job not found.");
             }
-        }            
+        }
         return $html;
     }
 }

Modified: trunk/src/plugins/hudson/include/hudson_Widget_JobLastBuilds.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_JobLastBuilds.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_JobLastBuilds.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,7 +25,7 @@
 require_once('HudsonJob.class.php');
 
 class hudson_Widget_JobLastBuilds extends HudsonJobWidget {
-    
+
     function hudson_Widget_JobLastBuilds($owner_type, $owner_id) {
         $request =& HTTPRequest::instance();
         if ($owner_type == WidgetLayoutManager::OWNER_TYPE_USER) {
@@ -36,10 +36,10 @@
             $this->group_id = $request->get('group_id');
         }
         $this->Widget($this->widget_id);
-                
+
         $this->setOwner($owner_id, $owner_type);
     }
-    
+
     function getTitle() {
         $title = '';
         if ($this->job) {
@@ -49,11 +49,11 @@
         }
         return  $title;
     }
-    
+
     function getDescription() {
         return _("Show the last builds for this job (last one, last successfull, last failed) and the weather report. The trend is represented by a weather report (sun, thunder, etc.) meaning that the trend is good or not.");
     }
-    
+
     function loadContent($id) {
         $sql = "SELECT * FROM plugin_hudson_widget WHERE widget_name=$1 AND owner_id=$2 AND owner_type=$3 AND id=$4";
         $res = db_query_params($sql,array($this->widget_id,$this->owner_id,$this->owner_type,$id));
@@ -61,9 +61,9 @@
             $data = db_fetch_array($res);
             $this->job_id    = $data['job_id'];
             $this->content_id = $id;
-            
+
             $jobs = $this->getAvailableJobs();
-            
+
             if (array_key_exists($this->job_id, $jobs)) {
                 $used_job = $jobs[$this->job_id];
                 $this->job_url = $used_job->getUrl();
@@ -71,7 +71,7 @@
             } else {
                 $this->job = null;
             }
-            
+
         }
     }
 
@@ -79,7 +79,7 @@
         $html = '';
         if ($this->job != null) {
             $job = $this->job;
-            
+
             $html .= '<table width="100%">';
             $html .= ' <tr>';
             $html .= '  <td>';
@@ -97,11 +97,11 @@
             $html .= _("Weather Report:").'<img src="'.$job->getWeatherReportIcon().'" class="widget_lastbuilds_weather_img" />';
             $html .= '  </td>';
             $html .= ' </tr>';
-            $html .= '</table>';        
+            $html .= '</table>';
         } else {
             $html .= _("Job not found.");
         }
-            
+
         return $html;
     }
 }

Modified: trunk/src/plugins/hudson/include/hudson_Widget_JobTestResults.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_JobTestResults.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_JobTestResults.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -26,9 +26,9 @@
 require_once('HudsonTestResult.class.php');
 
 class hudson_Widget_JobTestResults extends HudsonJobWidget {
-    
+
     var $test_result;
-    
+
     function hudson_Widget_JobTestResults($owner_type, $owner_id) {
         $request =& HTTPRequest::instance();
         if ($owner_type == WidgetLayoutManager::OWNER_TYPE_USER) {
@@ -39,14 +39,14 @@
             $this->group_id = $request->get('group_id');
         }
         $this->Widget($this->widget_id);
-        
+
         $this->setOwner($owner_id, $owner_type);
     }
-    
+
     function getTitle() {
         $title = '';
         if ($this->job && $this->test_result) {
-            $title .= vsprintf(_('%1$s Test Results (%2$s / %3$s)'),  
+            $title .= vsprintf(_('%1$s Test Results (%2$s / %3$s)'),
             	array($this->job->getName(), $this->test_result->getPassCount(), $this->test_result->getTotalCount()));
         } elseif ($this->job && ! $this->test_result) {
             $title .= sprintf(_('%1$s Test Results'), $this->job->getName());
@@ -55,11 +55,11 @@
         }
         return  $title;
     }
-    
+
     function getDescription() {
         return _("Show the test results of the latest build for the selected job.To display something, your job needs to execute tests and publish them. The result is shown on a pie chart.");
     }
-    
+
     function loadContent($id) {
         $sql = "SELECT * FROM plugin_hudson_widget WHERE widget_name=$1 AND owner_id=$2 AND owner_type=$3 AND id=$4";
         $res = db_query_params($sql,array($this->widget_id,$this->owner_id,$this->owner_type,$id));
@@ -67,39 +67,39 @@
             $data = db_fetch_array($res);
             $this->job_id    = $data['job_id'];
             $this->content_id = $id;
-            
+
             $jobs = $this->getAvailableJobs();
-            
+
             if (array_key_exists($this->job_id, $jobs)) {
                 $used_job = $jobs[$this->job_id];
                 $this->job_url = $used_job->getUrl();
                 $this->job = $used_job;
-                
+
                 try {
                     $this->test_result = new HudsonTestResult($this->job_url);
                 } catch (Exception $e) {
                     $this->test_result = null;
                 }
-                
+
             } else {
                 $this->job = null;
                 $this->test_result = null;
             }
-            
+
         }
     }
-    
+
     function getContent() {
         $html = '';
         if ($this->job != null && $this->test_result != null) {
-                        
+
             $job = $this->job;
             $test_result = $this->test_result;
 
             $html .= '<div style="padding: 20px;">';
             $html .= ' <a href="/plugins/hudson/?action=view_last_test_result&group_id='.$this->group_id.'&job_id='.$this->job_id.'">'.$test_result->getTestResultPieChart().'</a>';
             $html .= '</div>';
-            
+
         } else {
             if ($this->job != null) {
                 $html .= _("No test found for this job.");
@@ -107,7 +107,7 @@
                 $html .= _("Job not found.");
             }
         }
-            
+
         return $html;
     }
 }

Modified: trunk/src/plugins/hudson/include/hudson_Widget_JobTestTrend.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_JobTestTrend.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_JobTestTrend.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -27,7 +27,7 @@
 require_once('HudsonTestResult.class.php');
 
 class hudson_Widget_JobTestTrend extends HudsonJobWidget {
-    
+
     function hudson_Widget_JobTestTrend($owner_type, $owner_id) {
         $request =& HTTPRequest::instance();
         if ($owner_type == WidgetLayoutManager::OWNER_TYPE_USER) {
@@ -38,10 +38,10 @@
             $this->group_id = $request->get('group_id');
         }
         $this->Widget($this->widget_id);
-        
+
         $this->setOwner($owner_id, $owner_type);
     }
-    
+
     function getTitle() {
         if ($this->job) {
             return sprintf(_('%s Test Result Trend'), $this->job->getName());
@@ -49,11 +49,11 @@
             return _('Test Result Trend');
         }
     }
-    
+
     function getDescription() {
         return _("Show the test result trend for the selected job. To display something, your job needs to have tests. The graph will show the number of tests (failed and successfull) along  time. The number of tests is increasing while the number of build and commits are increasing too.");
     }
-    
+
     function loadContent($id) {
         $sql = "SELECT * FROM plugin_hudson_widget WHERE widget_name=$1 AND owner_id=$2 AND owner_type=$3 AND id=$4";
         $res = db_query_params($sql,array($this->widget_id,$this->owner_id,$this->owner_type,$id));
@@ -61,34 +61,34 @@
             $data = db_fetch_array($res);
             $this->job_id    = $data['job_id'];
             $this->content_id = $id;
-            
+
             $jobs = $this->getAvailableJobs();
-            
+
             if (array_key_exists($this->job_id, $jobs)) {
                 $used_job = $jobs[$this->job_id];
                 $this->job_url = $used_job->getUrl();
                 $this->job = $used_job;
-                
+
                 try {
                     $this->test_result = new HudsonTestResult($this->job_url);
                 } catch (Exception $e) {
                     $this->test_result = null;
                 }
-                
+
             } else {
                 $this->job = null;
                 $this->test_result = null;
             }
-            
+
         }
     }
-    
+
     function getContent() {
         $html = '';
         if ($this->job != null && $this->test_result != null) {
 
             $job = $this->job;
-            
+
             $html .= '<div style="padding: 20px;">';
             $html .= '<a href="/plugins/hudson/?action=view_test_trend&group_id='.$this->group_id.'&job_id='.$this->job_id.'">';
             $html .= '<img src="'.$job->getUrl().'/test/trend?width=320&height=240" alt="'.vsprintf(_("%s Test Result Trend"),  array($this->job->getName())).'" title="'.vsprintf(_("%s Test Result Trend"),  array($this->job->getName())).'" />';
@@ -102,7 +102,7 @@
                 $html .= _("Job not found.");
             }
         }
-            
+
         return $html;
     }
 }

Modified: trunk/src/plugins/hudson/include/hudson_Widget_MyMonitoredJobs.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_MyMonitoredJobs.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_MyMonitoredJobs.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -26,33 +26,33 @@
 require_once('HudsonJob.class.php');
 
 class hudson_Widget_MyMonitoredJobs extends HudsonOverviewWidget {
-    
+
     var $plugin;
-    
+
     var $_not_monitored_jobs;
     var $_use_global_status;
     var $_all_status;
     var $_global_status;
     var $_global_status_icon;
-    
+
     function hudson_Widget_MyMonitoredJobs($plugin) {
         $this->Widget('plugin_hudson_my_jobs');
         $this->plugin = $plugin;
 	$user=UserManager::instance()->getCurrentUser();
-        
+
         $this->_not_monitored_jobs = $user->getPreference('plugin_hudson_my_not_monitored_jobs');
         if ($this->_not_monitored_jobs === false) {
             $this->_not_monitored_jobs = array();
         } else {
             $this->_not_monitored_jobs = explode(",", $this->_not_monitored_jobs);
         }
-        
+
         $this->_use_global_status = $user->getPreference('plugin_hudson_use_global_status');
         if ($this->_use_global_status === false) {
             $this->_use_global_status = "false";
             $user->setPreference('plugin_hudson_use_global_status', $this->_use_global_status);
         }
-        
+
         if ($this->_use_global_status == "true") {
             $this->_all_status = array(
                 'grey' => 0,
@@ -62,9 +62,9 @@
             );
             $this->computeGlobalStatus();
         }
-        
+
     }
-    
+
     function computeGlobalStatus() {
         $monitored_jobs = $this->_getMonitoredJobsByUser();
         foreach ($monitored_jobs as $monitored_job) {
@@ -75,7 +75,7 @@
                     $row = $dar->current();
                     $job_url = $row['job_url'];
                     $job = new HudsonJob($job_url);
-                    $this->_all_status[(string)$job->getColorNoAnime()] = $this->_all_status[(string)$job->getColorNoAnime()] + 1;    
+                    $this->_all_status[(string)$job->getColorNoAnime()] = $this->_all_status[(string)$job->getColorNoAnime()] + 1;
                 }
             } catch (Exception $e) {
                 // Do not display wrong jobs
@@ -92,25 +92,25 @@
             $this->_global_status_icon = $this->plugin->getThemePath() . "/images/ic/" . "status_blue.png";
         }
     }
-    
+
     function getTitle() {
         $title = '';
         if ($this->_use_global_status == "true") {
             $title = '<img src="'.$this->_global_status_icon.'" title="'.$this->_global_status.'" alt="'.$this->_global_status.'" /> ';
         }
-        $title .= _("My Hudson Jobs"); 
+        $title .= _("My Hudson Jobs");
         return  $title;
     }
-    
+
     function getDescription() {
         return _("Show an overview of all the jobs of all the projects you're member of. You can of course select the jobs you wish to display by selecting the preferences link of the widget.");
     }
-    
+
     function updatePreferences(&$request) {
         $request->valid(new Valid_String('cancel'));
         if (!$request->exist('cancel')) {
             $monitored_jobs = $request->get('myhudsonjobs');
-            
+
             $user = UserManager::instance()->getCurrentUser();
             $job_dao = new PluginHudsonJobDao(CodendiDataAccess::instance());
             $dar = $job_dao->searchByUserID($user->getId());
@@ -118,15 +118,15 @@
             while ($dar->valid()) {
                 $row = $dar->current();
                 if ( ! in_array($row['job_id'], $monitored_jobs)) {
-                    $not_monitored_jobs[] = $row['job_id'];                    
+                    $not_monitored_jobs[] = $row['job_id'];
                 }
                 $dar->next();
             }
-            
-            $this->_not_monitored_jobs = $not_monitored_jobs; 
-            
+
+            $this->_not_monitored_jobs = $not_monitored_jobs;
+
             $user->setPreference('plugin_hudson_my_not_monitored_jobs', implode(",", $this->_not_monitored_jobs));
-            
+
             $use_global_status = $request->get('use_global_status');
             $this->_use_global_status = ($use_global_status !== false)?"true":"false";
             $user->setPreference('plugin_hudson_use_global_status', $this->_use_global_status);
@@ -153,23 +153,23 @@
             }
             $dar->next();
         }
-        
+
         // Use global status
         $prefs .= '<strong>'._("Use global status:").'</strong>';
         $prefs .= '<input type="checkbox" name="use_global_status" value="use_global" '.(($this->_use_global_status == "true")?'checked="checked"':'').'><br />';
         return $prefs;
     }
-    
+
     function getContent() {
         $monitored_jobs = $this->_getMonitoredJobsByUser();
         if (sizeof($monitored_jobs) > 0) {
-            $html = '';            
+            $html = '';
             $html .= '<table style="width:100%">';
             $cpt = 1;
-            
+
             foreach ($monitored_jobs as $monitored_job) {
                 try {
-                    
+
                     $job_dao = new PluginHudsonJobDao(CodendiDataAccess::instance());
                     $dar = $job_dao->searchByJobID($monitored_job);
                     if ($dar->valid()) {
@@ -192,7 +192,7 @@
                         $html .= '  <a href="/plugins/hudson/?action=view_job&group_id='.$group_id.'&job_id='.$job_id.'">'.$job->getName().'</a><br />';
                         $html .= ' </td>';
                         $html .= '</tr>';
-                        
+
                         $cpt++;
                     }
                 } catch (Exception $e) {
@@ -203,7 +203,7 @@
             return $html;
         }
     }
-    
+
     function _getMonitoredJobsByUser() {
         $user = UserManager::instance()->getCurrentUser();
         $job_dao = new PluginHudsonJobDao(CodendiDataAccess::instance());
@@ -212,7 +212,7 @@
         while ($dar->valid()) {
             $row = $dar->current();
             if ( ! in_array($row['job_id'], $this->_not_monitored_jobs)) {
-                $monitored_jobs[] = $row['job_id'];                    
+                $monitored_jobs[] = $row['job_id'];
             }
             $dar->next();
         }

Modified: trunk/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php
===================================================================
--- trunk/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/include/hudson_Widget_ProjectJobsOverview.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,23 +25,23 @@
 require_once('HudsonJob.class.php');
 
 class hudson_Widget_ProjectJobsOverview extends HudsonOverviewWidget {
-    
+
     var $plugin;
     var $group_id;
-    
+
     var $_not_monitored_jobs;
     var $_use_global_status = true;
     var $_all_status;
     var $_global_status;
     var $_global_status_icon;
-    
+
     function hudson_Widget_ProjectJobsOverview($plugin) {
         $this->Widget('plugin_hudson_project_jobsoverview');
         $this->plugin = $plugin;
-        
+
         $request =& HTTPRequest::instance();
         $this->group_id = $request->get('group_id');
-        
+
         if ($this->_use_global_status == "true") {
             $this->_all_status = array(
                 'grey' => 0,
@@ -51,13 +51,13 @@
             );
             $this->computeGlobalStatus();
         }
-        
+
     }
-    
+
     function computeGlobalStatus() {
         $jobs = $this->getJobsByGroup($this->group_id);
         foreach ($jobs as $job) {
-            $this->_all_status[(string)$job->getColorNoAnime()] = $this->_all_status[(string)$job->getColorNoAnime()] + 1;    
+            $this->_all_status[(string)$job->getColorNoAnime()] = $this->_all_status[(string)$job->getColorNoAnime()] + 1;
         }
         if ($this->_all_status['grey'] > 0 || $this->_all_status['red'] > 0) {
             $this->_global_status = _("One or more failure or pending job");
@@ -70,27 +70,27 @@
             $this->_global_status_icon = $this->plugin->getThemePath() . "/images/ic/" . "status_blue.png";
         }
     }
-    
+
     function getTitle() {
         $title = '';
         if ($this->_use_global_status == "true") {
             $title = '<img src="'.$this->_global_status_icon.'" title="'.$this->_global_status.'" alt="'.$this->_global_status.'" /> ';
         }
-        $title .= _("Hudson Jobs"); 
+        $title .= _("Hudson Jobs");
         return  $title;
     }
-    
+
     function getDescription() {
         return _("Shows an overview of all the jobs associated with this project. You can always choose the ones you want to display in the widget (preferences link).");
     }
-    
+
     function getContent() {
         $jobs = $this->getJobsByGroup($this->group_id);
         if (sizeof($jobs) > 0) {
-            $html = '';            
+            $html = '';
             $html .= '<table style="width:100%">';
             $cpt = 1;
-            
+
             foreach ($jobs as $job_id => $job) {
 		if ($cpt % 2 == 0) {
                         $class="boxitemalt bgcolor-white";
@@ -99,7 +99,7 @@
                 }
 
                 try {
-                    
+
                     $html .= '<tr class="'. $class .'">';
                     $html .= ' <td>';
                     $html .= ' <img src="'.$job->getStatusIcon().'" title="'.$job->getStatus().'" >';
@@ -108,9 +108,9 @@
                     $html .= '  <a href="/plugins/hudson/?action=view_job&group_id='.$this->group_id.'&job_id='.$job_id.'">'.$job->getName().'</a><br />';
                     $html .= ' </td>';
                     $html .= '</tr>';
-                        
+
                     $cpt++;
-                    
+
                 } catch (Exception $e) {
                     // Do not display wrong jobs
                 }

Modified: trunk/src/plugins/hudson/tests/AllTests.php
===================================================================
--- trunk/src/plugins/hudson/tests/AllTests.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/tests/AllTests.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -12,7 +12,7 @@
 class HudsonGroupTest extends GroupTest {
     function HudsonGroupTest($name = 'All Hudson Plugin tests') {
         $this->GroupTest($name);
-        
+
         $this->addTestFile(dirname(__FILE__).'/HudsonJobTest.php');
         $this->addTestFile(dirname(__FILE__).'/HudsonTestResultTest.php');
         $this->addTestFile(dirname(__FILE__).'/HudsonBuildTest.php');

Modified: trunk/src/plugins/hudson/tests/HudsonBuildTest.php
===================================================================
--- trunk/src/plugins/hudson/tests/HudsonBuildTest.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/tests/HudsonBuildTest.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -36,11 +36,11 @@
     function HudsonBuildTest($name = 'HudsonBuild test') {
         $this->UnitTestCase($name);
     }
-    
+
     function setUp() {
         $GLOBALS['Language'] = new MockBaseLanguage($this);
     }
-    
+
     function testMalformedURL() {
         $this->expectException('HudsonJobURLMalformedException');
         $this->expectError();
@@ -56,7 +56,7 @@
         $this->expectError();
         $b = new HudsonBuild("http://");
     }
-    
+
     function testWrongXMLFile() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -66,24 +66,24 @@
 </foo>
 XML;
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $b = new HudsonBuildTestVersion($this);
         $b->setReturnValue('_getXMLObject', $xmldom);
         $b->buildBuildObject();
-        
+
         $this->expectError();
     }
-    
+
     function testSimpleJobBuild() {
-        
+
         $build_file = dirname(__FILE__).'/resources/jobbuild.xml';
         $xmldom = simplexml_load_file($build_file);
-        
+
         $b = new HudsonBuildTestVersion($this);
         $b->setReturnValue('_getXMLObject', $xmldom);
-        
+
         $b->HudsonBuild("http://myCIserver/jobs/myCIjob/lastBuild/");
-        
+
         $this->assertEqual($b->getBuildStyle(), "freeStyleBuild");
         $this->assertFalse($b->isBuilding());
         $this->assertEqual($b->getUrl(), "http://code4.grenoble.xrce.xerox.com:8080/hudson/job/Codendi/87/");
@@ -91,9 +91,9 @@
         $this->assertEqual($b->getNumber(), 87);
         $this->assertEqual($b->getDuration(), 359231);
         $this->assertEqual($b->getTimestamp(), 1230051671000);
-        
+
     }
-        
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/tests/HudsonJobTest.php
===================================================================
--- trunk/src/plugins/hudson/tests/HudsonJobTest.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/tests/HudsonJobTest.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -44,11 +44,11 @@
     function HudsonJobTest($name = 'HudsonJob test') {
         $this->UnitTestCase($name);
     }
-    
+
     function setUp() {
         $GLOBALS['Language'] = new MockBaseLanguage($this);
     }
-    
+
     function testMalformedURL() {
         $this->expectException('HudsonJobURLMalformedException');
         $this->expectError();
@@ -64,7 +64,7 @@
         $this->expectError();
         $j = new HudsonJob("http://");
     }
-    
+
     function testWrongXMLFile() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -74,15 +74,15 @@
 </foo>
 XML;
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $j->setReturnValue('getIconsPath', '');
         $j->buildJobObject();
-        
+
         $this->expectError();
     }
-    
+
     function testSimpleJob() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -127,40 +127,40 @@
   <url>http://code4.grenoble.xrce.xerox.com:8080/hudson/job/Codendi/60/</url>
  </lastSuccessfulBuild>
  <nextBuildNumber>61</nextBuildNumber>
-</freeStyleProject>        
+</freeStyleProject>
 XML;
-        
+
         $xmldom = new SimpleXMLElement($xmlstr);
         //var_dump($xmldom);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $mh = new Mockhudson($this);
         $mh->setReturnValue('getIconsPath', '');
         $j->setReturnValue('getHudsonControler', $mh);
         $j->setReturnValue('getIconsPath', '');
-        
+
         $j->HudsonJob("http://myCIserver/jobs/myCIjob");
-        
+
         $this->assertEqual($j->getProjectStyle(), "freeStyleProject");
         $this->assertEqual($j->getName(), "Codendi");
         $this->assertEqual($j->getUrl(), "http://code4.grenoble.xrce.xerox.com:8080/hudson/job/Codendi/");
         $this->assertEqual($j->getColor(), "yellow");
         $this->assertEqual($j->getStatusIcon(), "status_yellow.png");
-        
+
         $this->assertEqual($j->getLastBuildNumber(), "60");
         $this->assertEqual($j->getLastSuccessfulBuildNumber(), "60");
         $this->assertEqual($j->getLastFailedBuildNumber(), "30");
         $this->assertEqual($j->getNextBuildNumber(), "61");
         $this->assertTrue($j->hasBuilds());
         $this->assertTrue($j->isBuildable());
-        
+
         $this->assertEqual($j->getHealthScores(), array('79', '98'));
         $this->assertEqual($j->getHealthAverageScore(), '88');
         $this->assertEqual($j->getWeatherReportIcon(), "health_80_plus.gif");
-        
+
     }
-    
+
     function testJobFromAnotherJob() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -200,35 +200,35 @@
 XML;
 
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $mh = new Mockhudson($this);
         $mh->setReturnValue('getIconsPath', '');
         $j->setReturnValue('getHudsonControler', $mh);
         $j->setReturnValue('getIconsPath', '');
-        
+
         $j->HudsonJob("http://myCIserver/jobs/myCIjob");
-        
+
         $this->assertEqual($j->getProjectStyle(), "freeStyleProject");
         $this->assertEqual($j->getName(), "TestProjectExistingJob");
         $this->assertEqual($j->getUrl(), "http://code4.grenoble.xrce.xerox.com:8080/hudson/job/TestProjectExistingJob/");
         $this->assertEqual($j->getColor(), "red");
         $this->assertEqual($j->getStatusIcon(), "status_red.png");
-        
+
         $this->assertEqual($j->getLastBuildNumber(), "1");
         $this->assertNull($j->getLastSuccessfulBuildNumber());
         $this->assertEqual($j->getLastFailedBuildNumber(), "1");
         $this->assertEqual($j->getNextBuildNumber(), "2");
         $this->assertTrue($j->hasBuilds());
         $this->assertTrue($j->isBuildable());
-        
+
         $this->assertEqual($j->getHealthScores(), array('0'));
         $this->assertEqual($j->getHealthAverageScore(), '0');
         $this->assertEqual($j->getWeatherReportIcon(), "health_00_to_19.gif");
-        
+
     }
-    
+
     function testJobFromExternalJob() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -245,34 +245,34 @@
 XML;
 
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $mh = new Mockhudson($this);
         $mh->setReturnValue('getIconsPath', '');
         $j->setReturnValue('getHudsonControler', $mh);
         $j->setReturnValue('getIconsPath', '');
-        
+
         $j->HudsonJob("http://myCIserver/jobs/myCIjob");
-        
+
         $this->assertEqual($j->getProjectStyle(), "externalJob");
         $this->assertEqual($j->getName(), "TestProjectExternalJob");
         $this->assertEqual($j->getUrl(), "http://code4.grenoble.xrce.xerox.com:8080/hudson/job/TestProjectExternalJob/");
         $this->assertEqual($j->getColor(), "grey");
         $this->assertEqual($j->getStatusIcon(), "status_grey.png");
-        
+
         $this->assertNull($j->getLastBuildNumber());
         $this->assertNull($j->getLastSuccessfulBuildNumber());
         $this->assertNull($j->getLastFailedBuildNumber());
         $this->assertEqual($j->getNextBuildNumber(), "1");
         $this->assertFalse($j->hasBuilds());
         $this->assertFalse($j->isBuildable());
-        
+
         $this->assertEqual($j->getHealthScores(), array());
         $this->assertEqual($j->getHealthAverageScore(), '0');
-        
+
     }
-    
+
     function testJobFromMaven2Job() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -289,34 +289,34 @@
 XML;
 
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $mh = new Mockhudson($this);
         $mh->setReturnValue('getIconsPath', '');
         $j->setReturnValue('getHudsonControler', $mh);
         $j->setReturnValue('getIconsPath', '');
-        
+
         $j->HudsonJob("http://myCIserver/jobs/myCIjob");
-        
+
         $this->assertEqual($j->getProjectStyle(), "mavenModuleSet");
         $this->assertEqual($j->getName(), "TestProjectMaven2");
         $this->assertEqual($j->getUrl(), "http://code4.grenoble.xrce.xerox.com:8080/hudson/job/TestProjectMaven2/");
         $this->assertEqual($j->getColor(), "grey");
         $this->assertEqual($j->getStatusIcon(), "status_grey.png");
-        
+
         $this->assertNull($j->getLastBuildNumber());
         $this->assertNull($j->getLastSuccessfulBuildNumber());
         $this->assertNull($j->getLastFailedBuildNumber());
         $this->assertEqual($j->getNextBuildNumber(), "1");
         $this->assertFalse($j->hasBuilds());
         $this->assertTrue($j->isBuildable());
-        
+
         $this->assertEqual($j->getHealthScores(), array());
         $this->assertEqual($j->getHealthAverageScore(), '0');
-        
+
     }
-    
+
     function testJobFromMultiConfiguration() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -333,55 +333,55 @@
 XML;
 
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $mh = new Mockhudson($this);
         $mh->setReturnValue('getIconsPath', '');
         $j->setReturnValue('getHudsonControler', $mh);
         $j->setReturnValue('getIconsPath', '');
-        
+
         $j->HudsonJob("http://myCIserver/jobs/myCIjob");
-        
+
         $this->assertEqual($j->getProjectStyle(), "matrixProject");
         $this->assertEqual($j->getName(), "TestProjectMultiConfiguration");
         $this->assertEqual($j->getUrl(), "http://code4.grenoble.xrce.xerox.com:8080/hudson/job/TestProjectMultiConfiguration/");
         $this->assertEqual($j->getColor(), "grey");
         $this->assertEqual($j->getStatusIcon(), "status_grey.png");
-        
+
         $this->assertNull($j->getLastBuildNumber());
         $this->assertNull($j->getLastSuccessfulBuildNumber());
         $this->assertNull($j->getLastFailedBuildNumber());
         $this->assertEqual($j->getNextBuildNumber(), "1");
         $this->assertFalse($j->hasBuilds());
         $this->assertTrue($j->isBuildable());
-        
+
         $this->assertEqual($j->getHealthScores(), array());
         $this->assertEqual($j->getHealthAverageScore(), '0');
-        
+
     }
-    
+
     function testColorNoAnime1() {
         $j = new HudsonJobTestColorVersion($this);
         $j->setReturnValue('getColor', "blue");
         $this->assertEqual($j->getColorNoAnime(), "blue");
-    }  
+    }
     function testColorNoAnime2() {
         $j = new HudsonJobTestColorVersion($this);
         $j->setReturnValue('getColor', "blue_anime");
         $this->assertEqual($j->getColorNoAnime(), "blue");
     }
     function testColorNoAnime3() {
-        $j = new HudsonJobTestColorVersion($this);        
+        $j = new HudsonJobTestColorVersion($this);
         $j->setReturnValue('getColor', "grey");
         $this->assertEqual($j->getColorNoAnime(), "grey");
     }
     function testColorNoAnime4() {
-        $j = new HudsonJobTestColorVersion($this);  
+        $j = new HudsonJobTestColorVersion($this);
         $j->setReturnValue('getColor', "grey_anime");
         $this->assertEqual($j->getColorNoAnime(), "grey");
     }
-    
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/tests/HudsonTestResultTest.php
===================================================================
--- trunk/src/plugins/hudson/tests/HudsonTestResultTest.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/tests/HudsonTestResultTest.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -39,11 +39,11 @@
     function HudsonTestResultTest($name = 'HudsonTestResult test') {
         $this->UnitTestCase($name);
     }
-    
+
     function setUp() {
         $GLOBALS['Language'] = new MockBaseLanguage($this);
     }
-    
+
     function testMalformedURL() {
         $this->expectException('HudsonJobURLMalformedException');
         $this->expectError();
@@ -59,7 +59,7 @@
         $this->expectError();
         $j = new HudsonJob("http://");
     }
-    
+
     function testWrongXMLFile() {
         $xmlstr = <<<XML
 <?xml version='1.0' standalone='yes'?>
@@ -69,35 +69,35 @@
 </foo>
 XML;
         $xmldom = new SimpleXMLElement($xmlstr);
-        
+
         $j = new HudsonJobTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $j->buildJobObject();
-        
+
         $this->expectError();
     }
-    
+
     function testSimpleJobTestResult() {
-        
+
         $test_result_file = dirname(__FILE__).'/resources/testReport.xml';
         $xmldom = simplexml_load_file($test_result_file);
-        
+
         $j = new HudsonTestResultTestVersion($this);
         $j->setReturnValue('_getXMLObject', $xmldom);
         $mh = new Mockhudson($this);
         $mh->setReturnValue('getIconsPath', '');
         $j->setReturnValue('getHudsonControler', $mh);
         $j->setReturnValue('getIconsPath', '');
-        
+
         $j->HudsonTestResult("http://myCIserver/jobs/myCIjob/lastBuild/testReport/");
-        
+
         $this->assertEqual($j->getFailCount(), 5);
         $this->assertEqual($j->getPassCount(), 416);
         $this->assertEqual($j->getSkipCount(), 3);
         $this->assertEqual($j->getTotalCount(), 424);
-        
+
     }
-        
+
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/src/plugins/hudson/www/admin/index.php
===================================================================
--- trunk/src/plugins/hudson/www/admin/index.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/www/admin/index.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,25 +13,25 @@
 require_once $gfconfig.'plugins/hudson/config.php';
 
 // the header that displays for the user portion of the plugin
-function hudson_Project_Header($params) {                                                                                                                                         
+function hudson_Project_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$id;
-	$params['toptab']='hudson'; 
+	$params['toptab']='hudson';
 	$params['group']=$id;
-	/*                                                                                                                                                              
-		Show horizontal links                                                                                                                                   
-	*/                                                                                                                                                              
-	site_project_header($params);														
+	/*
+		Show horizontal links
+	*/
+	site_project_header($params);
 }
 
 // the header that displays for the project portion of the plugin
 function hudson_User_Header($params) {
 	global $DOCUMENT_ROOT,$HTML,$user_id;
-	$params['toptab']='hudson'; 
+	$params['toptab']='hudson';
 	$params['user']=$user_id;
-	/*                                                                                                                                                              
-	 Show horizontal links                                                                                                                                   
-	 */                                                                                                                                                              
-	site_user_header($params);    
+	/*
+	 Show horizontal links
+	 */
+	site_user_header($params);
 }
 
 
@@ -44,7 +44,7 @@
 	$type = getStringFromRequest('type');
 	$id = getStringFromRequest('id');
 	$pluginname = getStringFromRequest('pluginname');
-	
+
 	if (!$type) {
 		exit_error("Cannot Process your request","No TYPE specified"); // you can create items in Base.tab and customize this messages
 	} elseif (!$id) {
@@ -56,26 +56,26 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the Hudson plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group (optional)
 			if ( !$userperm->IsMember()) {
 				exit_error("Access Denied", "You are not a member of this project");
 			}
 			// other perms checks here...
-			hudson_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+			hudson_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 			// DO THE STUFF FOR THE PROJECT PART HERE
 			echo "We are in the Project Hudson plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
 		} elseif ($type == 'user') {
-			$realuser = user_get_object($id);// 
+			$realuser = user_get_object($id);//
 			if (!($realuser) || !($realuser->usesPlugin($pluginname))) {
 				exit_error("Error", "First activate the User's $pluginname plugin through Account Manteinance Page");
 			}
 			if ( (!$user) || ($user->getID() != $id)) { // if someone else tried to access the private Hudson part of this user
 				exit_error("Access Denied", "You cannot access other user's personal $pluginname");
 			}
-			hudson_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));    
+			hudson_User_Header(array('title'=>'My '.$pluginname,'pagename'=>"$pluginname",'sectionvals'=>array($realuser->getUnixName())));
 			// DO THE STUFF FOR THE USER PART HERE
 			echo "We are in the User Hudson plugin <br>";
 			echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -85,7 +85,7 @@
 				exit_error("Invalid Project", "Inexistent Project");
 			}
 			if ( ! ($group->usesPlugin ( $pluginname )) ) {//check if the group has the Hudson plugin active
-				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");			
+				exit_error("Error", "First activate the $pluginname plugin through the Project's Admin Interface");
 			}
 			$userperm = $group->getPermission($user);//we'll check if the user belongs to the group
 			if ( !$userperm->IsMember()) {
@@ -93,7 +93,7 @@
 			}
 			//only project admin can access here
 			if ( $userperm->isAdmin() ) {
-				hudson_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));    
+				hudson_Project_Header(array('title'=>$pluginname . ' Project Plugin!','pagename'=>"$pluginname",'sectionvals'=>array(group_getname($id))));
 				// DO THE STUFF FOR THE PROJECT ADMINISTRATION PART HERE
 				echo "We are in the Project Hudson plugin <font color=\"#ff0000\">ADMINISTRATION</font> <br>";
 				echo "Greetings from planet " . $world; // $world comes from the config file in /etc
@@ -101,8 +101,8 @@
 				exit_error("Access Denied", "You are not a project Admin");
 			}
 		}
-	}	 
-	
+	}
+
 	site_project_footer(array());
 
 // Local Variables:

Modified: trunk/src/plugins/hudson/www/test_result_pie_chart.php
===================================================================
--- trunk/src/plugins/hudson/www/test_result_pie_chart.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/hudson/www/test_result_pie_chart.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -13,7 +13,7 @@
 $total_count = $pass_count + $fail_count + $skip_count;
 
 // graph size
-$graph = new PieGraph(250,150); 
+$graph = new PieGraph(250,150);
 
 // graph title
 $graph->title-> Set(_("Test Results"));
@@ -40,7 +40,7 @@
 
 // pie chart color values
 // Pass is blue and Failed is red (Skip is black)
-$pp->SetSliceColors($array_color); 
+$pp->SetSliceColors($array_color);
 
 // pie chart position
 // the pie chart is a little bit on the left (0.35) and at the bottom (0.60)
@@ -49,6 +49,6 @@
 $graph->Add($pp);
 
 // display graph
-$graph->Stroke(); 
+$graph->Stroke();
 
 ?>

Modified: trunk/src/plugins/mailman/common/mailman-init.php
===================================================================
--- trunk/src/plugins/mailman/common/mailman-init.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/common/mailman-init.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 

Modified: trunk/src/plugins/mailman/cronjobs/manage_mailmanlists.php
===================================================================
--- trunk/src/plugins/mailman/cronjobs/manage_mailmanlists.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/cronjobs/manage_mailmanlists.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -11,7 +11,7 @@
  * it under the terms of the GNU General Public License as published
  * by the Free Software Foundation; either version 2 of the License,
  * or (at your option) any later version.
- * 
+ *
  * FusionForge is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -27,10 +27,10 @@
 
 // MailingList backend class
 require_once $gfplugins.'mailman/include/BackendMailmanList.class.php' ;
-			 
 
+
 $res = db_query_params ('SELECT id,type, parameters FROM system_event WHERE status=$1 ORDER BY id DESC',
-			array ('1')); 
+			array ('1'));
 if (!$res) {
 	printf('Unable to get list of events: '.db_error());
 	return false;
@@ -48,7 +48,7 @@
 }
 if(isset($events)) {
 	foreach($events as $event_id => $log) {
-		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;"; 
+		$sql = "UPDATE system_event SET end_date=$1, log=$2, status='3' WHERE id=$3;";
 		$result = db_query_params($sql,array(time(),$log,$event_id));
 		if (!$result) {
 			printf('Unable to update the list of events: '.db_error());

Modified: trunk/src/plugins/mailman/etc/plugins/mailman/config.php
===================================================================
--- trunk/src/plugins/mailman/etc/plugins/mailman/config.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/etc/plugins/mailman/config.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 $GLOBALS['mailman_bin_dir'] =  forge_get_config('mailman_path').'/bin';
 $GLOBALS['mailman_list_dir'] = '/var/lib/mailman/lists';
 $GLOBALS['tmp_dir'] = '/tmp';

Modified: trunk/src/plugins/mailman/include/BackendMailmanList.class.php
===================================================================
--- trunk/src/plugins/mailman/include/BackendMailmanList.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/BackendMailmanList.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -35,12 +35,12 @@
      * Hold an instance of the class
      */
     protected static $_instance;
-    
+
     /**
      * Backends are singletons
      */
     public static function instance() {
-    
+
         if (!isset(self::$_instance)) {
             $c = __CLASS__;
             self::$_instance = new $c;
@@ -59,7 +59,7 @@
     }
 
 
-    /** 
+    /**
      * Update mailman configuration for the given list
      * Write configuration in temporary file, and load it with mailman config_list tool
      * @return true on success, false otherwise
@@ -67,10 +67,10 @@
     protected function updateListConfig($list) {
         // write configuration in temporary file
         $config_file=$GLOBALS['tmp_dir']."/mailman_config_".$list->getID().".in";
-        
+
         if ($fp = fopen($config_file, 'w')) {
-            // Define encoding of this file for Python. See SR #764 
-            // Please note that this allows config_list to run with UTF-8 strings, but if the 	 
+            // Define encoding of this file for Python. See SR #764
+            // Please note that this allows config_list to run with UTF-8 strings, but if the
             // description contains non-ascii chars, they will be displayed badly in mailman config web page.
             fwrite($fp, "# coding=UTF-8\n\n");
             // Deactivate monthly reminders by default
@@ -79,7 +79,7 @@
             fwrite($fp, "description = '".addslashes($list->getDescription())."'\n");
             // Allow up to 200 kB messages
             fwrite($fp, "max_message_size = 200\n");
-        
+
             if ($list->isPublic() == 0) { // Private lists
                 // Don't advertise this list when people ask what lists are on this machine
                 fwrite($fp, "advertised = False\n");
@@ -89,7 +89,7 @@
                 fwrite($fp, "subscribe_policy = 2\n");
             }
             fclose($fp);
-            
+
             if (system($GLOBALS['mailman_bin_dir']."/config_list -i $config_file ".$list->getName()) !== false) {
                 if (unlink($config_file)) {
 			return true;
@@ -125,7 +125,7 @@
 				    if (!$result) {
 					    printf('Unable to update the list status: '.db_error());
 					    return false;
-				    }		
+				    }
 				    else {
 					    return true;
 				    }
@@ -139,7 +139,7 @@
 			    if (!$result) {
 				    printf('Unable to update the list status: '.db_error());
 				    return false;
-			    }		
+			    }
 			    else {
 				    return true;
 			    }
@@ -150,7 +150,7 @@
     }
 
     /**
-     * Delete mailing list 
+     * Delete mailing list
      * - list and archives are deleted
      * - backup first in temp directory
      * @return true on success, false otherwise

Modified: trunk/src/plugins/mailman/include/MailmanList.class.php
===================================================================
--- trunk/src/plugins/mailman/include/MailmanList.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/MailmanList.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -22,7 +22,7 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 
@@ -42,7 +42,7 @@
 
 class MailmanList extends Error {
 	/**
-	 * DAO 
+	 * DAO
 	 *
 	 * @var	 MailingListDao   $mailingDAO.
 	 */
@@ -80,7 +80,7 @@
 	function MailmanList($group_id, $groupListId = false, $dataArray = false) {
 		$pm = ProjectManager::instance();
 		$Group = $pm->getProject($group_id);
-		$this->_mailingDAO = new MailmanListDao(CodendiDataAccess::instance());	
+		$this->_mailingDAO = new MailmanListDao(CodendiDataAccess::instance());
 		$this->Error();
 		if (!$Group || !is_object($Group)) {
 			$this->setError(sprintf(_('%1$s:: No Valid Group Object'), 'MailmanList'));
@@ -174,7 +174,7 @@
 		$systemevent->createEvent('MAILMAN_LIST_CREATE', $this->groupMailmanListId,SystemEvent::PRIORITY_MEDIUM);
 		$this->fetchData($this->groupMailmanListId);
 		$user=UserManager::instance()->getUserByID($creator_id);
-	
+
 		$userEmail = $user->getEmail();
 		if(empty($userEmail) || !validate_email($userEmail)) {
 			$this->setInvalidEmailError();
@@ -185,7 +185,7 @@
 
 		return true;
 	}
-	
+
 	/**
 	* activationRequested - LEt us know if an event is present to create this list
 	*
@@ -383,7 +383,7 @@
 	}
 	/**
 	 * unsubscribeUrl - delete the user from the mailing list
-	 * 
+	 *
 	 * @return string url of the info page
 	 */
 	function unsubscribe() {

Modified: trunk/src/plugins/mailman/include/MailmanListDao.class.php
===================================================================
--- trunk/src/plugins/mailman/include/MailmanListDao.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/MailmanListDao.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -16,14 +16,14 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 
 require_once 'common/dao/include/DataAccessObject.class.php';
 
 /**
- *  Data Access Object for mailing lists 
+ *  Data Access Object for mailing lists
  */
 class MailmanListDao extends DataAccessObject {
 
@@ -31,15 +31,15 @@
 		parent::__construct($da);
 	}
 
-	
+
 	/**
-	 * Search active (=not deteted) mailing lists 
+	 * Search active (=not deteted) mailing lists
 	 * return all active lists
 	 * @return DataAccessResult
 	 */
 	function & searchAllActiveML() {
-		$sql = "SELECT * 
-			FROM mail_group_list 
+		$sql = "SELECT *
+			FROM mail_group_list
 			WHERE is_public IN (0,1)";
 		return $this->retrieve($sql,array());
 	}
@@ -50,7 +50,7 @@
 	 */
 	function & searchByGroupListId($group_list_id) {
 		$group_list_id = $this->da->quoteSmart($group_list_id);
-		$sql = "SELECT * FROM mail_group_list 
+		$sql = "SELECT * FROM mail_group_list
 			WHERE group_list_id = $1";
 		return $this->retrieve($sql,array($group_list_id));
 	}
@@ -69,7 +69,7 @@
 	 */
 	function & searchByGroupId($group_id) {
 		$group_id = $this->da->quoteSmart($group_id);
-		$sql = "SELECT * FROM mail_group_list 
+		$sql = "SELECT * FROM mail_group_list
 			WHERE group_id = $1 ORDER BY group_list_id";
 		return $this->retrieve($sql,array($group_id));
 	}
@@ -80,7 +80,7 @@
 	function & searchListFromGroup($group_list_id,$group_id) {
 		$group_id = $this->da->quoteSmart($group_id);
 		$group_list_id = $this->da->quoteSmart($group_list_id);
-		$sql = "SELECT * FROM mail_group_list 
+		$sql = "SELECT * FROM mail_group_list
 			WHERE group_id = $1 AND group_list_id=$2";
 		return $this->retrieve($sql,array($group_id,$group_list_id));
 	}
@@ -133,7 +133,7 @@
 		$sql="SELECT count(*) AS count FROM plugin_mailman WHERE address=$1 AND listname=$2;";
 		return $this->retrieve($sql,array($usermail,$listname));
 	}
-	
+
 	function & listsMonitoredByUser($usermail) {
 		$usermail = $this->da->quoteSmart($usermail);
 		$sql="SELECT groups.group_name,groups.group_id,mail_group_list.group_list_id,mail_group_list.list_name ".
@@ -141,7 +141,7 @@
 		     "WHERE groups.group_id=mail_group_list.group_id AND groups.status ='A' ".
 		     "AND mail_group_list.list_name=plugin_mailman.listname ".
 		     "AND plugin_mailman.address=$1 ORDER BY group_name DESC";
-		
+
 		return $this->retrieve($sql,array($usermail));
 	}
 

Modified: trunk/src/plugins/mailman/include/MailmanListFactory.class.php
===================================================================
--- trunk/src/plugins/mailman/include/MailmanListFactory.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/MailmanListFactory.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -23,11 +23,11 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
- 
+
  /*
- 
+
  This work is based on Tim Perdue's work on the forum stuff
- 
+
  */
 
 
@@ -51,7 +51,7 @@
 	 */
 	var $mailingLists;
 	/**
-	 * DAO 
+	 * DAO
 	 *
 	 * @var	 MailingListDao   $mailingDAO.
 	 */
@@ -64,9 +64,9 @@
 	 *	@param	object	The Group object to which these mailing lists are associated.
 	 */
 	function MailmanListFactory(& $Group) {
-		$this->_mailingDAO = new MailmanListDao(CodendiDataAccess::instance());	
+		$this->_mailingDAO = new MailmanListDao(CodendiDataAccess::instance());
 		$this->Error();
-		
+
 		if (!$Group || !is_object($Group)) {
 			$this->setError(sprintf(_('%1$s:: No Valid Group Object'), 'MailmanListFactory'));
 			return false;
@@ -100,15 +100,15 @@
 		if (isset($this->mailingLists) && is_array($this->mailingLists)) {
 			return $this->mailingLists;
 		}
-		
+
 		if (islogged() && $current_user->isMember($this->Group->getID())) {
 			$public_flag='0,1';
 		} else {
 			$public_flag='1';
 		}
 		$result =& $this->_mailingDAO->searchByGroupId($this->Group->getID());
-	
-		
+
+
 		if (!$result) {
 			$this->setError(sprintf(_('Error Getting %1$s'), _('Error Getting %1$s')).db_error());
 			return false;
@@ -130,14 +130,14 @@
 	{
 		$current_user=UserManager::instance()->getCurrentUser();
 		$mail=$current_user->getEmail();
-		
+
 		$passwd= $current_user->getUserPw();
 		$name= $current_user->getRealName();
 		$result =& $this->_mailingDAO->compareInfos($mail);
 		if (!$result) {
 			return false;
 		}
-		else 
+		else
 		{
 			while( $arr =& $result->getRow())
 			{
@@ -159,16 +159,16 @@
 	{
 		$current_user=UserManager::instance()->getCurrentUser();
 		$mail=$current_user->getEmail();
-		
+
 		$passwd= $current_user->getUserPw();
 		$name= $current_user->getRealName();
-		
+
 		$result =& $this->_mailingDAO->updateInfos($mail,$passwd,$name);
 		if (!$result) {
 			return false;
 		}
 		htmlRedirect('/plugins/mailman/index.php?group_id='.$this->Group->getId());
-		return $result;	
+		return $result;
 	}
 
 

Modified: trunk/src/plugins/mailman/include/MailmanPluginDescriptor.class.php
===================================================================
--- trunk/src/plugins/mailman/include/MailmanPluginDescriptor.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/MailmanPluginDescriptor.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -16,7 +16,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 
@@ -24,7 +24,7 @@
 
 
 class MailmanPluginDescriptor extends PluginDescriptor {
-    
+
     function MailmanPluginDescriptor() {
         $this->PluginDescriptor(_('Mailman'), 'v1.0', _('Offers a better integration of Mailman in the forge'));
     }

Modified: trunk/src/plugins/mailman/include/MailmanPluginInfo.class.php
===================================================================
--- trunk/src/plugins/mailman/include/MailmanPluginInfo.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/MailmanPluginInfo.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -16,18 +16,18 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
- * 
+ *
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
 require_once('common/plugin/PluginInfo.class.php');
 require_once('MailmanPluginDescriptor.class.php');
 
 class MailmanPluginInfo extends PluginInfo {
-    
+
     function MailmanPluginInfo(&$plugin) {
         $this->PluginInfo($plugin);
         $this->setPluginDescriptor(new MailmanPluginDescriptor());
     }
-    
+
 }
 ?>

Modified: trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_CREATE.class.php
===================================================================
--- trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_CREATE.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_CREATE.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -25,12 +25,12 @@
 *
 */
 class SystemEvent_MAILMAN_LIST_CREATE extends SystemEvent {
-    
+
     /**
-     * Verbalize the parameters so they are readable and much user friendly in 
+     * Verbalize the parameters so they are readable and much user friendly in
      * notifications
-     * 
-     * @param bool $with_link true if you want links to entities. The returned 
+     *
+     * @param bool $with_link true if you want links to entities. The returned
      * string will be html instead of plain/text
      *
      * @return string
@@ -41,7 +41,7 @@
         return $txt;
     }
 
-    /** 
+    /**
      * Process stored event
      */
     function process() {
@@ -56,7 +56,7 @@
             $this->error("Could not create mailing list $group_list_id");
             return false;
         }
-            
+
         // Need to add list aliases
         Backend::instance('Aliases')->setNeedUpdateMailAliases();
 

Modified: trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_DELETE.class.php
===================================================================
--- trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_DELETE.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/events/SystemEvent_MAILMAN_LIST_DELETE.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -26,12 +26,12 @@
 *
 */
 class SystemEvent_MAILMAN_LIST_DELETE extends SystemEvent {
-    
+
     /**
-     * Verbalize the parameters so they are readable and much user friendly in 
+     * Verbalize the parameters so they are readable and much user friendly in
      * notifications
-     * 
-     * @param bool $with_link true if you want links to entities. The returned 
+     *
+     * @param bool $with_link true if you want links to entities. The returned
      * string will be html instead of plain/text
      *
      * @return string
@@ -41,8 +41,8 @@
         $txt .= 'mailing list: #'. $this->getIdFromParam($this->parameters);
         return $txt;
     }
-    
-    /** 
+
+    /**
      * Process stored event
      */
     function process() {
@@ -57,10 +57,10 @@
             $this->error("Could not delete mailing list $group_list_id");
             return false;
         }
-            
+
         // Need to add list aliases
         Backend::instance('Aliases')->setNeedUpdateMailAliases();
-            
+
         $this->done();
         return true;
     }

Modified: trunk/src/plugins/mailman/include/mailmanPlugin.class.php
===================================================================
--- trunk/src/plugins/mailman/include/mailmanPlugin.class.php	2011-07-12 11:42:06 UTC (rev 13753)
+++ trunk/src/plugins/mailman/include/mailmanPlugin.class.php	2011-07-12 11:44:44 UTC (rev 13754)
@@ -1,7 +1,7 @@
 <?php
 
 /**
- * mailmanPlugin class 
+ * mailmanPlugin class
  *
  * This file is part of FusionForge.
  *
@@ -18,11 +18,11 @@
  * You should have received a copy of the GNU General Public License along
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- * 
+ *
  * Portions Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
  * Portions Copyright 2010 (c) Mélanie Le Bail
  */
- 
+
 require_once 'plugins_utils.php';
 require_once('common/system_event/SystemEvent.class.php');
 require_once('common/event/Event.class.php');
@@ -54,14 +54,14 @@
 		$this->_addHook("group_approve"); // to create mailing list 'Commit' when creating a group
 		$this->_addHook('site_admin_option_hook');
 		$this->_addHook(Event::GET_SYSTEM_EVENT_CLASS,'getSystemEventClass', false);//to make SystemEvent manager knows about mailman plugin
-		
+
 	}
-	
+
 	function process() {
 		echo '<h1>Mailman</h1>';
 		echo $this->getPluginInfo()->getpropVal('answer');
 	}
-	
+
 	function getPluginInfo() {
 		if (!is_a($this->pluginInfo, 'MailmanPluginInfo')) {
 			require_once('MailmanPluginInfo.class.php');
@@ -69,7 +69,7 @@
 		}
 		return $this->pluginInfo;
 	}
-	
+
 	function CallHook ($hookname, &$params) {
 		global $use_mailmanplugin,$G_SESSION,$HTML,$gfcommon,$gfwww,$gfplugins;
 		if ($hookname == "usermenu") {
@@ -77,7 +77,7 @@
 			if ($G_SESSION->usesPlugin("mailman")) {
 				$param = '?type=user&id=' . $G_SESSION->getId() . "&pluginname=" . $this->name; // we indicate the part we're calling is the user one
 				echo ' | ' . $HTML->PrintSubMenu (array ($text),
-					array ('/plugins/mailman/index.php' . $param ));				
+					array ('/plugins/mailman/index.php' . $param ));
 			}
 		} elseif ($hookname == "groupmenu") {
 			$group_id=$params['group'];
@@ -95,7 +95,7 @@
 				$params['TITLES'][]=$this->text;
 				$params['DIRS'][]='/plugins/mailman/index.php?group_id=' . $group_id . "&pluginname=" . $this->name; // we indicate the part we�re calling is the project one
                 $params['ADMIN'][]='';
-			} 
+			}
 			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
 		} elseif ($hookname == "groupisactivecheckbox") {
 			//Check if the group is active
@@ -115,7 +115,7 @@
 			echo "<strong>Use ".$this->text." Plugin</strong>";
 			echo "</td>";
 			echo "</tr>";
-			
+
 		} elseif ($hookname == "groupisactivecheckboxpost") {
 			// this code actually activates/deactivates the plugin after the form was submitted in the project edit public info page
 			$group_id=$params['group'];
@@ -146,7 +146,7 @@
 				echo '<p>'.util_make_link ("/plugins/projects_hierarchy/index.php?id=".$group->getID().'&type=admin&pluginname='.$this->name,
 									 _('View the mailman Administration')).'</p>';
 			}
-		}												    
+		}
 		elseif ($hookname == "monitored_element") {
 			$current_user=UserManager::instance()->getCurrentUser();
 			$last_group=0;
@@ -154,7 +154,7 @@
 			$order_name_arr[]=_('Remove');
 			$order_name_arr[]=_('Monitored Lists');
 			echo $HTML->listTableTop($order_name_arr);
-			$dao = new MailmanListDao(CodendiDataAccess::instance());	
+			$dao = new MailmanListDao(CodendiDataAccess::instance());
 			$result = $dao->listsMonitoredByUser($current_user->getEmail());
 			for ($i=0; $i<$result->rowCount(); $i++) {
 				$listResult = $result->getRow();
@@ -184,7 +184,7 @@
 				}
 			}
 			echo $HTML->listTableBottom();
-	
+
 		}
 		elseif ($hookname == "group_delete") {
 			$group_id = $params['group_id'];
@@ -200,8 +200,8 @@
 					$this->setError(_('Could not properly delete the mailing list'));
 				}
 				//echo 'MailmanListFactory'.db_error();
-			}	
-		}  
+			}
+		}
 		elseif ($hookname == "group_approve") {
 			$idadmin_group =$params[0];
 			$group_id=$params[1];
@@ -217,17 +217,17 @@
 		elseif ($hookname=='site_admin_option_hook') {
 			echo '<li><a href="'.$this->getPluginPath().'/">Template [' . _('Mailman plugin') . ']</a></li>';
 		}
-		
-		
-		
+
+
+
 	}
 	function getSystemEventClass($params) {
-		
+
 		switch($params['type']) {
 			case 'MAILMAN_LIST_CREATE' :
-				
+
 				require_once(dirname(__FILE__).'/events/SystemEvent_MAILMAN_LIST_CREATE.class.php');
-				
+
 				$params['class'] = 'SystemEvent