Permalink
Browse files

updated the code with security recomendation fixes

  • Loading branch information...
alansaviolobo committed Jul 26, 2012
1 parent dda362d commit b0ed0ec699fd789176aacab3652fd9a373edcde6
Showing 1,012 changed files with 49,588 additions and 314,775 deletions.
Binary file not shown.
View
Binary file not shown.
@@ -1,360 +0,0 @@
-<?php
-
-// Define the default WYSIWYG editor
-define('OGPL_EDITOR', 'tinymce');
-
-// Define the default theme
-define('DMS_DEFAULT_THEME', 'dms');
-
-/**
- * Return an array of the modules to be enabled when this profile is installed.
- *
- * To save time during installation, only enable module here that are either
- * required by Features or not included in any Commons features
- *
- * @return
- * An array of modules to enable.
- */
-
-function ogpl_profile_modules() {
- $modules = array(
- 'block',
- 'filter',
- 'node',
- 'system',
- 'user',
-
- 'color',
- 'comment',
- 'dblog',
- 'help',
- 'locale',
- 'menu',
- 'path',
- 'search',
- 'statistics',
- 'syslog',
- 'taxonomy',
- 'trigger',
- 'update',
- 'upload',
-
- 'administerusersbyrole',
- 'admin_menu',
- 'admin_theme',
- 'advanced_help',
- 'agency_wise_metrics',
- 'aggregator',
- 'ahah_response',
- 'apachesolr',
- 'apachesolr_autocomplete',
- 'apachesolr_exclude',
- 'apachesolr_nodeaccess',
- 'apachesolr_nodereference',
- 'apachesolr_search',
- 'assigneewise_feedback_listing_urm',
- 'autologout',
- 'auto_nodetitle',
- 'better_formats',
- 'blockify',
- 'bulk_export',
- 'calendar',
- 'calendar_ical',
- 'calendar_multiday',
- 'captcha',
- 'catalog_home_tabs',
- 'cckformsettings',
- 'clientside_validation',
- 'clientside_validation_fapi',
- 'clientside_validation_form',
- 'cms_apachesolr_config',
- 'cms_customizations',
- 'cms_notify_email',
- 'cms_themes_file_uploader',
- 'cms_views',
- 'cms_workflow_alter',
- 'cms_workflow_summary',
- 'commentformsettings',
- 'content',
- 'content_copy',
- 'content_permissions',
- 'content_profile',
- 'content_profile_registration',
- 'content_profile_tokens',
- 'content_taxonomy',
- 'content_taxonomy_options',
- 'ctools',
- 'context',
- 'context_layouts',
- 'context_ui',
- 'conditional_fields',
- 'conditional_styles',
- 'date',
- 'date_api',
- 'date_locale',
- 'date_php4',
- 'date_popup',
- 'date_repeat',
- 'date_timezone',
- 'date_tools',
- 'devel',
- 'devel_node_access',
- /*'devel_themer',
- 'dms_customizations',
- 'dms_ds_upload',
- 'dms_save_settings',*/
- 'download_by_category_organisation',
- 'download_count',
- 'download_count_statistics',
- 'download_file',
- 'dynamic_views_for_the_what_s_new_page',
- 'email',
- 'email_registration',
- 'extlink',
- 'fapi_validation',
- 'faq',
- 'featured_gallery',
- 'features',
- 'feedback_category',
- 'feedback_category_listing_urm',
- 'fe_block',
- 'fe_taxonomy',
- 'fieldgroup',
- 'filefield',
- 'fivestar',
- 'libraries',
- 'flexifield',
- 'flexifield_displaycontexts',
- 'flexifield_fieldgroup',
- 'flexifield_filefield',
- 'flowplayer',
- 'flowplayer3',
- /*'mp3player',
- 'filefieldmp3player',*/
- 'footermenus',
- 'front_end_major_events_tab',
- 'front_footer_menu',
- 'front_page',
- 'fusioncharts',
- 'hacked',
- 'home_page_panels',
- 'ie6update',
- 'imageapi',
- 'imageapi_gd',
- 'imagecache',
- 'imagecache_ui',
- 'imagefield',
- 'image_captcha',
- 'imce',
- 'imce_wysiwyg',
- 'jammer',
- 'jammer_generic',
- 'jcalendar',
- 'jquery_plugin',
- 'jquery_ui',
- 'jquery_update',
- 'libraries',
- 'link',
- 'list_of_datasets',
- 'location',
- 'logintoboggan',
- 'logintoboggan_rules',
- 'login_destination',
- 'main_menus',
- 'markup',
- 'mass_change',
- 'menu_perms',
- 'menu_per_role',
- 'metrics_visitor_stats_reports',
- 'module_grants',
- 'month_wise_metrics',
- 'month_wise_metrics_per_year',
- 'more_node_buttons',
- 'multistep',
- 'nice_menus',
- 'nodeaccess_userreference',
- 'nodeblock',
- 'nodeformsettings',
- 'nodereference',
- 'nodewords',
- 'nodewords_basic',
- 'nodewords_extra',
- 'node_expiry_alert',
- 'node_tools',
- 'number',
- 'number_of_views_report',
- 'open_data_site_view_and_content_types',
- 'optionwidgets',
- 'ownerwise_feedback_stat',
- 'panels',
- 'panels_ipe',
- 'panels_mini',
- 'password_policy',
- 'pathauto',
- 'pet',
- 'php',
- 'pngfix',
- 'poormanscron',
- 'print_mail',
- 'print_pdf',
- 'quicktabs',
- 'rate',
- 'rate_expiration',
- 'rate_slider',
- 'realname',
- 'recaptcha',
- 'recent_ideas_view',
- 'revisioning',
- 'revisioning_scheduler',
- 'role_delegation',
- 'role_theme_switcher',
- 'rotating_panel',
- 'rotating_panel_half',
- 'rss_feed_views',
- 'rules',
- 'rules_admin',
- 'rules_forms',
- 'rules_scheduler',
- 'schema',
- 'search404',
- 'site_map',
- /*'sitemap_menus',*/
- 'skinr',
- 'strongarm',
- 'stylizer',
- 'suggested_datasets_and_apps',
- 'superfish',
- 'swfobject',
- 'swftools',
- 'text',
- 'textsize',
- /*'themer',*/
- 'token',
- 'tokenSTARTER',
- 'token_actions',
- 'token_filter',
- 'tw',
- 'tw_import_delimited',
- 'unique_field',
- 'unlimited_css',
- 'uploadfield',
- 'userprotect',
- 'userreference',
- 'user_management',
- 'video',
- 'video_field_for_faq',
- 'views',
- 'reverse_node_reference',
- 'views_block',
- 'views_bulk_operations',
- 'views_customfield',
- 'views_data_export',
- 'views_display_block_path',
- 'views_embed_form',
- 'views_export',
- 'views_filters_autosubmit',
- 'views_for_the_what_s_new_page',
- 'views_fusioncharts',
- 'views_groupby',
- 'views_or',
- 'views_php',
- 'views_slideshow',
- 'views_slideshow_imageflow',
- 'views_slideshow_singleframe',
- 'views_slideshow_thumbnailhover',
- 'views_ui',
- 'better_exposed_filters',
- 'votingapi',
- 'vrm_customization',
- 'vrm_custom_comment',
- 'vrm_feedback_history',
- 'vrm_feedback_reply',
- 'vrm_feedback_type',
- 'vrm_tabs',
- 'vrm_views',
- 'vrm_workflow_states_description',
- 'webform',
- 'web_captcha_alter',
- 'web_catalogs_search',
- 'web_charts_export',
- 'web_contact_owner',
- 'web_embed_code',
- 'web_feed_aggregator',
- 'web_filefield_icons',
- 'web_metrics_report',
- 'web_print',
- 'web_site_config',
- 'web_tellafriend',
- 'web_views_query_alter',
- 'what_s_new',
- 'what_s_new_placeholder_for_pages',
- 'workflow',
- 'workflow_access',
- 'workflow_customizations',
- 'workflow_email_notification',
- 'workflow_extensions',
- 'workflow_node_revisions',
- 'wysiwyg',
- );
- return $modules;
-}
-
-/**
- * Return a description of the profile for the initial installation screen.
- *
- * @return
- * An array with keys 'name' and 'description' describing this profile,
- * and optional 'language' to override the language selection for
- * language-specific profiles.
- */
-function ogpl_profile_details() {
- $logo = '<a href="http://someurl.com" target="_blank"><img alt="Open Oovernment Platform" title="Open Oovernment Platform" src="./profiles/ogpl/themes/dms/logo.png"/></a>';
- $description = st('Select this profile to install the Open Government Platform powering your community website.');
- $description .= '<br/>' . $logo;
-
- return array(
- 'name' => 'OGPL',
- 'description' => $description,
- );
-}
-/**
- * Return a list of tasks that this profile supports.
- *
- * @return
- * A keyed array of tasks the profile will perform during
- * the final stage. The keys of the array will be used internally,
- * while the values will be displayed to the user in the installer
- * task list.
- */
-function ogpl_profile_task_list() {
- return array(
- 'profile-import-table-data' => st('Import profile data')
- );
-}
-
-function ogpl_profile_tasks(&$task, $url) {
- //if ($task == 'profile-import-table-data') {
-
- //module_enable($module_list);
- ogpl_run_sql();
- //}
-}
-
-function ogpl_run_sql() {
-
- $current_dir = dirname(__FILE__);
- $sql_path = $current_dir.'/sql/';
- $files = scandir($current_dir.'/sql/');
- foreach($files as $file)
- {
- if ( substr($file, -4) == '.sql') {
- $sql = file_get_contents($sql_path.$file);
- if (0 == strlen(trim($sql))) continue;
- $queries = explode("\n", $sql);
- foreach($queries as $query) {
- if(trim($query) != '')
- db_query($query);
- }
- }
- }
-}
@@ -1 +0,0 @@
-INSERT IGNORE INTO `actions` VALUES ('1','system','token_actions_send_email_action','a:3:{s:9:\"recipient\";s:11:\"[user-mail]\";s:7:\"subject\";s:19:\"Workflow transition\";s:7:\"message\";s:5:\"Test \";}','Send tokenized e-mail for workflow state transition'),('comment_publish_action','comment','comment_publish_action','','Publish comment'),('comment_unpublish_action','comment','comment_unpublish_action','','Unpublish comment'),('dms_customizations_download_node_csv_action','node','dms_customizations_download_node_csv_action','','Download node in csv format'),('dms_ds_upload_download_node_csv_action','node','dms_ds_upload_download_node_csv_action','','Download node in csv format'),('imagecache_flush_action','node','imagecache_flush_action','','ImageCache: Flush ALL presets for this node\'s filefield images'),('imagecache_generate_all_action','node','imagecache_generate_all_action','','ImageCache: Generate ALL presets for this node\'s filefield images'),('node_make_sticky_action','node','node_make_sticky_action','','Make post sticky'),('node_make_unsticky_action','node','node_make_unsticky_action','','Make post unsticky'),('node_promote_action','node','node_promote_action','','Promote post to front page'),('node_publish_action','node','node_publish_action','','Publish post'),('node_save_action','node','node_save_action','','Save post'),('node_unpromote_action','node','node_unpromote_action','','Remove post from front page'),('node_unpublish_action','node','node_unpublish_action','','Unpublish post'),('revisioning_create_pending_revision_action','node','revisioning_create_pending_revision_action','','Create a new pending revision of a node'),('revisioning_delete_archived_action','node','revisioning_delete_archived_action','','Delete archived revisions of the node'),('revisioning_publish_latest_revision_action','node','revisioning_publish_latest_revision_action','','Publish the most recent pending revision'),('revision_moderation_disable_action','node','revision_moderation_disable_action','','Disable revision moderation on node'),('revision_moderation_enable_action','node','revision_moderation_enable_action','','Enable revision moderation on node'),('user_block_ip_action','user','user_block_ip_action','','Ban IP address of current user'),('user_block_user_action','user','user_block_user_action','','Block current user'),('views_bulk_operations_archive_action','file','views_bulk_operations_archive_action','','Download archive of selected files'),('views_bulk_operations_delete_comment_action','comment','views_bulk_operations_delete_comment_action','','Delete comment'),('views_bulk_operations_delete_node_action','node','views_bulk_operations_delete_node_action','','Delete node'),('views_bulk_operations_delete_term_action','term','views_bulk_operations_delete_term_action','','Delete term'),('views_bulk_operations_delete_user_action','user','views_bulk_operations_delete_user_action','','Delete user'),('views_bulk_operations_ruleset_action_rules_set_1','node','views_bulk_operations_ruleset_action_rules_set_1','','Example: Empty rule set working with content'),('workflow_customizations_approve_action','node','workflow_customizations_approve_action','','Approve'),('workflow_customizations_delete_action','node','workflow_customizations_delete_action','','Delete'),('workflow_customizations_sendback_action','node','workflow_customizations_sendback_action','','Sendback'),('workflow_select_next_state_action','node','workflow_select_next_state_action','','Change workflow state of post to next state');
@@ -1 +0,0 @@
-INSERT IGNORE INTO `actions_aid` VALUES (1),(2),(3);
Oops, something went wrong.

0 comments on commit b0ed0ec

Please sign in to comment.