diff --git a/wp-content/plugins/contact-form-7/admin/admin-functions.php b/wp-content/plugins/contact-form-7/admin/admin-functions.php
new file mode 100644
index 0000000..871c518
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/admin-functions.php
@@ -0,0 +1,52 @@
+ $title,
+ 'content' => $elm_id,
+ 'options' => $options );
+
+ if ( is_callable( $callback ) )
+ add_action( 'wpcf7_admin_footer', $callback );
+
+ return true;
+}
+
+function wpcf7_tag_generators() {
+ global $wpcf7_tag_generators;
+
+ $taggenerators = array();
+
+ foreach ( (array) $wpcf7_tag_generators as $name => $tg ) {
+ $taggenerators[$name] = array_merge(
+ (array) $tg['options'],
+ array( 'title' => $tg['title'], 'content' => $tg['content'] ) );
+ }
+
+ return $taggenerators;
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/admin.php b/wp-content/plugins/contact-form-7/admin/admin.php
new file mode 100644
index 0000000..5933569
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/admin.php
@@ -0,0 +1,487 @@
+initial = true;
+ }
+
+ $contact_form->title = trim( $_POST['wpcf7-title'] );
+
+ $form = trim( $_POST['wpcf7-form'] );
+
+ $mail = array(
+ 'subject' => trim( $_POST['wpcf7-mail-subject'] ),
+ 'sender' => trim( $_POST['wpcf7-mail-sender'] ),
+ 'body' => trim( $_POST['wpcf7-mail-body'] ),
+ 'recipient' => trim( $_POST['wpcf7-mail-recipient'] ),
+ 'additional_headers' => trim( $_POST['wpcf7-mail-additional-headers'] ),
+ 'attachments' => trim( $_POST['wpcf7-mail-attachments'] ),
+ 'use_html' =>
+ isset( $_POST['wpcf7-mail-use-html'] ) && 1 == $_POST['wpcf7-mail-use-html']
+ );
+
+ $mail_2 = array(
+ 'active' =>
+ isset( $_POST['wpcf7-mail-2-active'] ) && 1 == $_POST['wpcf7-mail-2-active'],
+ 'subject' => trim( $_POST['wpcf7-mail-2-subject'] ),
+ 'sender' => trim( $_POST['wpcf7-mail-2-sender'] ),
+ 'body' => trim( $_POST['wpcf7-mail-2-body'] ),
+ 'recipient' => trim( $_POST['wpcf7-mail-2-recipient'] ),
+ 'additional_headers' => trim( $_POST['wpcf7-mail-2-additional-headers'] ),
+ 'attachments' => trim( $_POST['wpcf7-mail-2-attachments'] ),
+ 'use_html' =>
+ isset( $_POST['wpcf7-mail-2-use-html'] ) && 1 == $_POST['wpcf7-mail-2-use-html']
+ );
+
+ $messages = isset( $contact_form->messages ) ? $contact_form->messages : array();
+
+ foreach ( wpcf7_messages() as $key => $arr ) {
+ $field_name = 'wpcf7-message-' . strtr( $key, '_', '-' );
+ if ( isset( $_POST[$field_name] ) )
+ $messages[$key] = trim( $_POST[$field_name] );
+ }
+
+ $additional_settings = trim( $_POST['wpcf7-additional-settings'] );
+
+ $props = apply_filters( 'wpcf7_contact_form_admin_posted_properties',
+ compact( 'form', 'mail', 'mail_2', 'messages', 'additional_settings' ) );
+
+ foreach ( (array) $props as $key => $prop )
+ $contact_form->{$key} = $prop;
+
+ $query = array();
+ $query['message'] = ( $contact_form->initial ) ? 'created' : 'saved';
+
+ $contact_form->save();
+
+ $query['post'] = $contact_form->id;
+
+ $redirect_to = add_query_arg( $query, menu_page_url( 'wpcf7', false ) );
+
+ wp_safe_redirect( $redirect_to );
+ exit();
+ }
+
+ if ( 'copy' == $action ) {
+ $id = empty( $_POST['post_ID'] )
+ ? absint( $_REQUEST['post'] )
+ : absint( $_POST['post_ID'] );
+
+ check_admin_referer( 'wpcf7-copy-contact-form_' . $id );
+
+ if ( ! current_user_can( 'wpcf7_edit_contact_form', $id ) )
+ wp_die( __( 'You are not allowed to edit this item.', 'wpcf7' ) );
+
+ $query = array();
+
+ if ( $contact_form = wpcf7_contact_form( $id ) ) {
+ $new_contact_form = $contact_form->copy();
+ $new_contact_form->save();
+
+ $query['post'] = $new_contact_form->id;
+ $query['message'] = 'created';
+ } else {
+ $query['post'] = $contact_form->id;
+ }
+
+ $redirect_to = add_query_arg( $query, menu_page_url( 'wpcf7', false ) );
+
+ wp_safe_redirect( $redirect_to );
+ exit();
+ }
+
+ if ( 'delete' == $action ) {
+ if ( ! empty( $_POST['post_ID'] ) )
+ check_admin_referer( 'wpcf7-delete-contact-form_' . $_POST['post_ID'] );
+ elseif ( ! is_array( $_REQUEST['post'] ) )
+ check_admin_referer( 'wpcf7-delete-contact-form_' . $_REQUEST['post'] );
+ else
+ check_admin_referer( 'bulk-posts' );
+
+ $posts = empty( $_POST['post_ID'] )
+ ? (array) $_REQUEST['post']
+ : (array) $_POST['post_ID'];
+
+ $deleted = 0;
+
+ foreach ( $posts as $post ) {
+ $post = new WPCF7_ContactForm( $post );
+
+ if ( empty( $post ) )
+ continue;
+
+ if ( ! current_user_can( 'wpcf7_delete_contact_form', $post->id ) )
+ wp_die( __( 'You are not allowed to delete this item.', 'wpcf7' ) );
+
+ if ( ! $post->delete() )
+ wp_die( __( 'Error in deleting.', 'wpcf7' ) );
+
+ $deleted += 1;
+ }
+
+ $query = array();
+
+ if ( ! empty( $deleted ) )
+ $query['message'] = 'deleted';
+
+ $redirect_to = add_query_arg( $query, menu_page_url( 'wpcf7', false ) );
+
+ wp_safe_redirect( $redirect_to );
+ exit();
+ }
+
+ $_GET['post'] = isset( $_GET['post'] ) ? $_GET['post'] : '';
+
+ $post = null;
+
+ if ( 'new' == $_GET['post'] && current_user_can( 'wpcf7_edit_contact_forms' ) )
+ $post = wpcf7_get_contact_form_default_pack(
+ array( 'locale' => ( isset( $_GET['locale'] ) ? $_GET['locale'] : '' ) ) );
+ elseif ( ! empty( $_GET['post'] ) )
+ $post = wpcf7_contact_form( $_GET['post'] );
+
+ if ( $post && current_user_can( 'wpcf7_edit_contact_form', $post->id ) ) {
+ wpcf7_add_meta_boxes( $post->id );
+
+ } else {
+ $current_screen = get_current_screen();
+
+ if ( ! class_exists( 'WPCF7_Contact_Form_List_Table' ) )
+ require_once WPCF7_PLUGIN_DIR . '/admin/includes/class-contact-forms-list-table.php';
+
+ add_filter( 'manage_' . $current_screen->id . '_columns',
+ array( 'WPCF7_Contact_Form_List_Table', 'define_columns' ) );
+
+ add_screen_option( 'per_page', array(
+ 'label' => __( 'Contact Forms', 'wpcf7' ),
+ 'default' => 20,
+ 'option' => 'cfseven_contact_forms_per_page' ) );
+ }
+
+ $wpcf7_contact_form = $post;
+}
+
+add_action( 'admin_enqueue_scripts', 'wpcf7_admin_enqueue_scripts' );
+
+function wpcf7_admin_enqueue_scripts( $hook_suffix ) {
+ if ( false === strpos( $hook_suffix, 'wpcf7' ) )
+ return;
+
+ wp_enqueue_style( 'contact-form-7-admin',
+ wpcf7_plugin_url( 'admin/css/styles.css' ),
+ array( 'thickbox' ), WPCF7_VERSION, 'all' );
+
+ if ( wpcf7_is_rtl() ) {
+ wp_enqueue_style( 'contact-form-7-admin-rtl',
+ wpcf7_plugin_url( 'admin/css/styles-rtl.css' ),
+ array(), WPCF7_VERSION, 'all' );
+ }
+
+ wp_enqueue_script( 'wpcf7-admin-taggenerator',
+ wpcf7_plugin_url( 'admin/js/taggenerator.js' ),
+ array( 'jquery' ), WPCF7_VERSION, true );
+
+ wp_enqueue_script( 'wpcf7-admin',
+ wpcf7_plugin_url( 'admin/js/scripts.js' ),
+ array( 'jquery', 'thickbox', 'postbox', 'wpcf7-admin-taggenerator' ),
+ WPCF7_VERSION, true );
+
+ $current_screen = get_current_screen();
+
+ wp_localize_script( 'wpcf7-admin', '_wpcf7', array(
+ 'screenId' => $current_screen->id,
+ 'generateTag' => __( 'Generate Tag', 'wpcf7' ),
+ 'pluginUrl' => wpcf7_plugin_url(),
+ 'tagGenerators' => wpcf7_tag_generators() ) );
+}
+
+add_action( 'admin_print_footer_scripts', 'wpcf7_print_taggenerators_json', 20 );
+
+function wpcf7_print_taggenerators_json() { // for backward compatibility
+ global $plugin_page, $wpcf7_tag_generators;
+
+ if ( ! version_compare( get_bloginfo( 'version' ), '3.3-dev', '<' ) )
+ return;
+
+ if ( ! isset( $plugin_page ) || 'wpcf7' != $plugin_page )
+ return;
+
+ $taggenerators = array();
+
+ foreach ( (array) $wpcf7_tag_generators as $name => $tg ) {
+ $taggenerators[$name] = array_merge(
+ (array) $tg['options'],
+ array( 'title' => $tg['title'], 'content' => $tg['content'] ) );
+ }
+
+?>
+
+initial ? -1 : $post->id;
+
+ require_once WPCF7_PLUGIN_DIR . '/admin/includes/meta-boxes.php';
+ require_once WPCF7_PLUGIN_DIR . '/admin/edit-contact-form.php';
+ return;
+ }
+
+ $list_table = new WPCF7_Contact_Form_List_Table();
+ $list_table->prepare_items();
+
+?>
+
+
+
+
' . esc_html( __( 'Add New', 'wpcf7' ) ) . '';
+
+ if ( ! empty( $_REQUEST['s'] ) ) {
+ echo sprintf( ''
+ . __( 'Search results for “%s”', 'wpcf7' )
+ . '', esc_html( $_REQUEST['s'] ) );
+ }
+?>
+
+
+
+
+
+
+
+
+ 'wpcf7-mail-2',
+ 'name' => 'mail_2',
+ 'use' => __( 'Use mail (2)', 'wpcf7' ) ) );
+
+ add_meta_box( 'messagesdiv', __( 'Messages', 'wpcf7' ),
+ 'wpcf7_messages_meta_box', null, 'messages', 'core' );
+
+ add_meta_box( 'additionalsettingsdiv', __( 'Additional Settings', 'wpcf7' ),
+ 'wpcf7_additional_settings_meta_box', null, 'additional_settings', 'core' );
+
+ do_action( 'wpcf7_add_meta_boxes', $post_id );
+}
+
+/* Misc */
+
+add_action( 'wpcf7_admin_notices', 'wpcf7_admin_before_subsubsub' );
+
+function wpcf7_admin_before_subsubsub() {
+ // wpcf7_admin_before_subsubsub is deprecated. Use wpcf7_admin_notices instead.
+
+ $current_screen = get_current_screen();
+
+ if ( 'toplevel_page_wpcf7' != $current_screen->id )
+ return;
+
+ if ( empty( $_GET['post'] ) || ! $contact_form = wpcf7_contact_form( $_GET['post'] ) )
+ return;
+
+ do_action_ref_array( 'wpcf7_admin_before_subsubsub', array( &$contact_form ) );
+}
+
+add_action( 'wpcf7_admin_notices', 'wpcf7_admin_updated_message' );
+
+function wpcf7_admin_updated_message() {
+ if ( empty( $_REQUEST['message'] ) )
+ return;
+
+ if ( 'created' == $_REQUEST['message'] )
+ $updated_message = esc_html( __( 'Contact form created.', 'wpcf7' ) );
+ elseif ( 'saved' == $_REQUEST['message'] )
+ $updated_message = esc_html( __( 'Contact form saved.', 'wpcf7' ) );
+ elseif ( 'deleted' == $_REQUEST['message'] )
+ $updated_message = esc_html( __( 'Contact form deleted.', 'wpcf7' ) );
+
+ if ( empty( $updated_message ) )
+ return;
+
+?>
+
+'
+ . esc_html( __( 'Settings', 'wpcf7' ) ) . '';
+
+ array_unshift( $links, $settings_link );
+
+ return $links;
+}
+
+add_action( 'wpcf7_admin_notices', 'wpcf7_cf7com_links', 9 );
+
+function wpcf7_cf7com_links() {
+ $links = '';
+
+ echo apply_filters( 'wpcf7_cf7com_links', $links );
+}
+
+add_action( 'wpcf7_admin_notices', 'wpcf7_donation_link' );
+
+function wpcf7_donation_link() {
+ if ( ! WPCF7_SHOW_DONATION_LINK )
+ return;
+
+ if ( ! empty( $_REQUEST['post'] ) && 'new' == $_REQUEST['post'] )
+ return;
+
+ if ( ! empty( $_REQUEST['message'] ) )
+ return;
+
+ $show_link = true;
+
+ $num = mt_rand( 0, 99 );
+
+ if ( $num >= 20 )
+ $show_link = false;
+
+ $show_link = apply_filters( 'wpcf7_show_donation_link', $show_link );
+
+ if ( ! $show_link )
+ return;
+
+ $texts = array(
+ __( "Contact Form 7 needs your support. Please donate today.", 'wpcf7' ),
+ __( "Your contribution is needed for making this plugin better.", 'wpcf7' ) );
+
+ $text = $texts[array_rand( $texts )];
+
+?>
+
+
+
+
Contact Form 7 %1$s requires WordPress %2$s or higher. Please update WordPress first.', 'wpcf7' ), WPCF7_VERSION, WPCF7_REQUIRED_WP_VERSION, admin_url( 'update-core.php' ) ); ?>
+
+
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/css/styles-rtl.css b/wp-content/plugins/contact-form-7/admin/css/styles-rtl.css
new file mode 100644
index 0000000..6a62300
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/css/styles-rtl.css
@@ -0,0 +1,21 @@
+div.save-contact-form {
+ direction: rtl;
+}
+
+div.actions-link {
+ right: auto;
+ left: 0;
+}
+
+div.tg-pane table caption {
+ text-align: right;
+}
+
+div.tg-dropdown {
+ left: auto;
+ right: 0;
+}
+
+div.wrap div.cf7com-links {
+ text-align: left;
+}
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/css/styles.css b/wp-content/plugins/contact-form-7/admin/css/styles.css
new file mode 100644
index 0000000..0f8971a
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/css/styles.css
@@ -0,0 +1,260 @@
+#icon-wpcf7 {
+ background: transparent url(../images/screen-icon.png) no-repeat 2px 1px;
+}
+
+div.wrap div.cf7com-links {
+ text-align: right;
+ font-size: .9em;
+ margin: -2em 1em 1em 0;
+}
+
+div.wrap div.cf7com-links a {
+ text-decoration: none;
+ font-weight: bold;
+}
+
+div.wrap div.donation {
+ border-width: 1px;
+ border-style: solid;
+ padding: 0 0.6em;
+ margin: 5px 0 15px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+ background-color: #ffffe0;
+ border-color: #e6db55;
+}
+
+div.wrap div.donation p {
+ margin: .7em 0;
+ line-height: 1;
+ padding: 2px;
+ font-size: 107%;
+}
+
+div.wrap div.donation p a {
+ color: #3f3f3f;
+ text-decoration: none;
+}
+
+div.wrap div.donation p a.button {
+ margin-left: 1em;
+ font-weight: bold;
+}
+
+#titlediv {
+ margin-bottom: 20px;
+ position: relative;
+ border: 1px solid #c7c7c7;
+ padding: 6px;
+}
+
+div.save-contact-form {
+ padding: 1.4em 0 0 0;
+ text-align: right;
+}
+
+div.actions-link {
+ position: absolute;
+ top: 0;
+ right: 0;
+ margin: 0;
+ padding: 6px;
+}
+
+div.actions-link input {
+ padding: 0;
+ margin: 0;
+ border: none;
+ font-size: 11px;
+ cursor: pointer;
+}
+
+div.actions-link input.copy {
+ color: #006505;
+}
+
+div.actions-link input.delete {
+ color: #bc0b0b;
+}
+
+input#wpcf7-title {
+ color: #555;
+ border: none;
+ font: bold 20px serif;
+ cursor: pointer;
+ background-color: transparent;
+}
+
+input#wpcf7-title.focus {
+ color: #333;
+ border: 1px solid #777;
+ font: normal 13px Verdana, Arial, Helvetica, sans-serif;
+ cursor: text;
+ background-color: transparent;
+}
+
+input#wpcf7-title.mouseover {
+ background-color: #ffffdd;
+}
+
+p.tagcode {
+ color: #333;
+ margin: 2ex 0 1ex 0;
+}
+
+input#contact-form-anchor-text, input#contact-form-anchor-text-old {
+ color: #fff;
+ background: #7e4e0b;
+ border: none;
+ width: 100%;
+ -webkit-border-radius: 6px;
+ border-radius: 6px;
+}
+
+.postbox .half, .postbox .half-left, .postbox .half-right {
+ float: left;
+ width: 50%;
+}
+
+.postbox .half-right > * {
+ margin-left: 10px;
+}
+
+.postbox .mail-field, .postbox .message-field {
+ margin-top: 6px;
+ margin-bottom: 8px;
+}
+
+.postbox .mail-field label, .postbox .message-field label {
+ line-height: 1.4em;
+}
+
+div.pseudo-hr {
+ border-bottom: 1px solid transparent;
+ margin: 8px 0;
+}
+
+input, textarea {
+ border: 1px solid #dfdfdf;
+}
+
+input.wide {
+ width: 100%;
+}
+
+textarea {
+ width: 100%;
+}
+
+label.disabled {
+ color: #777;
+}
+
+div.tag-generator {
+ position: relative;
+ background: transparent;
+ padding: 0 0 5px 1px;
+}
+
+div.tg-pane {
+ border: 1px dashed #999;
+ background: #f1f1f1;
+ margin: 1ex 0 0 0;
+ padding: 10px;
+ -webkit-border-radius: 6px;
+ border-radius: 6px;
+ line-height: 140%;
+}
+
+div.tg-pane table {
+ width: 100%;
+ margin: 0 0 0.7em 0;
+}
+
+div.tg-pane table caption {
+ text-align: left;
+ padding: 0 0 0.2em 0;
+ font-weight: bolder;
+ color: #777;
+}
+
+div.tg-pane table code {
+ background-color: inherit;
+}
+
+div.tg-pane table td {
+ vertical-align: top;
+ width: 50%;
+ border: none;
+ padding: 2px 0;
+}
+
+div.tg-pane input.tag, div.tg-pane input.mail-tag {
+ width: 100%;
+ border: none;
+ color: #fff;
+ background-color: #7e4e0b;
+ -webkit-border-radius: 6px;
+ border-radius: 6px;
+}
+
+div.tg-pane input.mail-tag {
+ width: 50%;
+ background-color: #404f03;
+}
+
+div.tg-mail-tag {
+ margin-top: 2.4em;
+ text-align: right;
+}
+
+div.tg-pane span.arrow {
+ font-family: monospace;
+ font-size: 1.2em;
+ color: #333;
+}
+
+div.tg-pane input.tg-name {
+ border-color: #555;
+}
+
+div.tg-pane input.oneline {
+ width: 98%;
+ font-size: smaller;
+}
+
+div.tg-pane textarea {
+ width: 98%;
+ height: 100px;
+ font-size: smaller;
+}
+
+div.tg-pane div.tg-tag {
+ margin: .4em 0;
+}
+
+div.tg-dropdown {
+ position: absolute;
+ top: 26px;
+ left: 0;
+ z-index: 10;
+ border: 1px solid #ddd;
+}
+
+span.tg-closebutton {
+ color: #777;
+ font: bold 18px monospace;
+ padding: 1px 4px;
+ cursor: pointer;
+}
+
+div.tg-panetitle {
+ font: bold 132% sans-serif;
+ margin: 0 0 10px;
+ color: #777;
+}
+
+input.shortcode-in-list-table {
+ width: 100%;
+ border: none;
+}
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/edit-contact-form.php b/wp-content/plugins/contact-form-7/admin/edit-contact-form.php
new file mode 100644
index 0000000..9161ae6
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/edit-contact-form.php
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/plugins/contact-form-7/admin/images/dropdown.gif b/wp-content/plugins/contact-form-7/admin/images/dropdown.gif
new file mode 100644
index 0000000..a342dfd
Binary files /dev/null and b/wp-content/plugins/contact-form-7/admin/images/dropdown.gif differ
diff --git a/wp-content/plugins/contact-form-7/admin/images/menu-icon.png b/wp-content/plugins/contact-form-7/admin/images/menu-icon.png
new file mode 100644
index 0000000..2510461
Binary files /dev/null and b/wp-content/plugins/contact-form-7/admin/images/menu-icon.png differ
diff --git a/wp-content/plugins/contact-form-7/admin/images/screen-icon.png b/wp-content/plugins/contact-form-7/admin/images/screen-icon.png
new file mode 100644
index 0000000..70ee014
Binary files /dev/null and b/wp-content/plugins/contact-form-7/admin/images/screen-icon.png differ
diff --git a/wp-content/plugins/contact-form-7/admin/includes/class-contact-forms-list-table.php b/wp-content/plugins/contact-form-7/admin/includes/class-contact-forms-list-table.php
new file mode 100644
index 0000000..576333b
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/includes/class-contact-forms-list-table.php
@@ -0,0 +1,169 @@
+ '',
+ 'title' => __( 'Title', 'wpcf7' ),
+ 'shortcode' => __( 'Shortcode', 'wpcf7' ),
+ 'author' => __( 'Author', 'wpcf7' ),
+ 'date' => __( 'Date', 'wpcf7' ) );
+
+ return $columns;
+ }
+
+ function __construct() {
+ parent::__construct( array(
+ 'singular' => 'post',
+ 'plural' => 'posts',
+ 'ajax' => false ) );
+ }
+
+ function prepare_items() {
+ $current_screen = get_current_screen();
+ $per_page = $this->get_items_per_page( 'cfseven_contact_forms_per_page' );
+
+ $this->_column_headers = $this->get_column_info();
+
+ $args = array(
+ 'posts_per_page' => $per_page,
+ 'orderby' => 'title',
+ 'order' => 'ASC',
+ 'offset' => ( $this->get_pagenum() - 1 ) * $per_page );
+
+ if ( ! empty( $_REQUEST['s'] ) )
+ $args['s'] = $_REQUEST['s'];
+
+ if ( ! empty( $_REQUEST['orderby'] ) ) {
+ if ( 'title' == $_REQUEST['orderby'] )
+ $args['orderby'] = 'title';
+ elseif ( 'author' == $_REQUEST['orderby'] )
+ $args['orderby'] = 'author';
+ elseif ( 'date' == $_REQUEST['orderby'] )
+ $args['orderby'] = 'date';
+ }
+
+ if ( ! empty( $_REQUEST['order'] ) ) {
+ if ( 'asc' == strtolower( $_REQUEST['order'] ) )
+ $args['order'] = 'ASC';
+ elseif ( 'desc' == strtolower( $_REQUEST['order'] ) )
+ $args['order'] = 'DESC';
+ }
+
+ $this->items = WPCF7_ContactForm::find( $args );
+
+ $total_items = WPCF7_ContactForm::$found_items;
+ $total_pages = ceil( $total_items / $per_page );
+
+ $this->set_pagination_args( array(
+ 'total_items' => $total_items,
+ 'total_pages' => $total_pages,
+ 'per_page' => $per_page ) );
+ }
+
+ function get_columns() {
+ return get_column_headers( get_current_screen() );
+ }
+
+ function get_sortable_columns() {
+ $columns = array(
+ 'title' => array( 'title', true ),
+ 'author' => array( 'author', false ),
+ 'date' => array( 'date', false ) );
+
+ return $columns;
+ }
+
+ function get_bulk_actions() {
+ $actions = array(
+ 'delete' => __( 'Delete', 'wpcf7' ) );
+
+ return $actions;
+ }
+
+ function column_default( $item, $column_name ) {
+ return '';
+ }
+
+ function column_cb( $item ) {
+ return sprintf(
+ '',
+ $this->_args['singular'],
+ $item->id );
+ }
+
+ function column_title( $item ) {
+ $url = admin_url( 'admin.php?page=wpcf7&post=' . absint( $item->id ) );
+ $edit_link = add_query_arg( array( 'action' => 'edit' ), $url );
+
+ $actions = array(
+ 'edit' => '' . __( 'Edit', 'wpcf7' ) . '' );
+
+ if ( current_user_can( 'wpcf7_edit_contact_form', $item->id ) ) {
+ $copy_link = wp_nonce_url(
+ add_query_arg( array( 'action' => 'copy' ), $url ),
+ 'wpcf7-copy-contact-form_' . absint( $item->id ) );
+
+ $actions = array_merge( $actions, array(
+ 'copy' => '' . __( 'Copy', 'wpcf7' ) . '' ) );
+ }
+
+ $a = sprintf( '%3$s',
+ $edit_link,
+ esc_attr( sprintf( __( 'Edit “%s”', 'wpcf7' ), $item->title ) ),
+ esc_html( $item->title ) );
+
+ return '' . $a . ' ' . $this->row_actions( $actions );
+ }
+
+ function column_author( $item ) {
+ $post = get_post( $item->id );
+
+ if ( ! $post )
+ return;
+
+ $author = get_userdata( $post->post_author );
+
+ return esc_html( $author->display_name );
+ }
+
+ function column_shortcode( $item ) {
+ $shortcodes = array(
+ sprintf( '[contact-form-7 id="%1$d" title="%2$s"]', $item->id, $item->title ) );
+
+ $output = '';
+
+ foreach ( $shortcodes as $shortcode ) {
+ $output .= "\n" . '';
+ }
+
+ return trim( $output );
+ }
+
+ function column_date( $item ) {
+ $post = get_post( $item->id );
+
+ if ( ! $post )
+ return;
+
+ $t_time = mysql2date( __( 'Y/m/d g:i:s A', 'wpcf7' ), $post->post_date, true );
+ $m_time = $post->post_date;
+ $time = mysql2date( 'G', $post->post_date ) - get_option( 'gmt_offset' ) * 3600;
+
+ $time_diff = time() - $time;
+
+ if ( $time_diff > 0 && $time_diff < 24*60*60 )
+ $h_time = sprintf( __( '%s ago', 'wpcf7' ), human_time_diff( $time ) );
+ else
+ $h_time = mysql2date( __( 'Y/m/d', 'wpcf7' ), $m_time );
+
+ return '' . $h_time . '';
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/includes/meta-boxes.php b/wp-content/plugins/contact-form-7/admin/includes/meta-boxes.php
new file mode 100644
index 0000000..a607f75
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/includes/meta-boxes.php
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+ 'wpcf7-mail', 'name' => 'mail', 'use' => null );
+
+ if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) )
+ $args = array();
+ else
+ $args = $box['args'];
+
+ extract( wp_parse_args( $args, $defaults ), EXTR_SKIP );
+
+ $id = esc_attr( $id );
+ $mail = $post->{$name};
+
+ if ( ! empty( $use ) ) :
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ />
+
+
+
+
+
+
+
+
+ $arr ) :
+ $field_name = 'wpcf7-message-' . strtr( $key, '_', '-' );
+
+?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/js/scripts.js b/wp-content/plugins/contact-form-7/admin/js/scripts.js
new file mode 100644
index 0000000..f2b0e47
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/js/scripts.js
@@ -0,0 +1,75 @@
+(function($) {
+
+ $(function() {
+ try {
+ $('div.cf7com-links').insertAfter($('div.wrap h2:first'));
+
+ $.extend($.tgPanes, _wpcf7.tagGenerators);
+ $('#taggenerator').tagGenerator(_wpcf7.generateTag,
+ { dropdownIconUrl: _wpcf7.pluginUrl + '/admin/images/dropdown.gif' });
+
+ $('input#wpcf7-title:disabled').css({cursor: 'default'});
+
+ $('input#wpcf7-title').mouseover(function() {
+ $(this).not('.focus').addClass('mouseover');
+ });
+
+ $('input#wpcf7-title').mouseout(function() {
+ $(this).removeClass('mouseover');
+ });
+
+ $('input#wpcf7-title').focus(function() {
+ $(this).addClass('focus').removeClass('mouseover');
+ });
+
+ $('input#wpcf7-title').blur(function() {
+ $(this).removeClass('focus');
+ });
+
+ $('input#wpcf7-title').change(function() {
+ updateTag();
+ });
+
+ updateTag();
+
+ $('.check-if-these-fields-are-active').each(function(index) {
+ if (! $(this).is(':checked'))
+ $(this).parent().siblings('.mail-fields').hide();
+
+ $(this).click(function() {
+ if ($(this).parent().siblings('.mail-fields').is(':hidden')
+ && $(this).is(':checked')) {
+ $(this).parent().siblings('.mail-fields').slideDown('fast');
+ } else if ($(this).parent().siblings('.mail-fields').is(':visible')
+ && $(this).not(':checked')) {
+ $(this).parent().siblings('.mail-fields').slideUp('fast');
+ }
+ });
+ });
+
+ postboxes.add_postbox_toggles(_wpcf7.screenId);
+
+ } catch (e) {
+ }
+ });
+
+ function updateTag() {
+ var title = $('input#wpcf7-title').val();
+
+ if (title)
+ title = title.replace(/["'\[\]]/g, '');
+
+ $('input#wpcf7-title').val(title);
+ var postId = $('input#post_ID').val();
+ var tag = '[contact-form-7 id="' + postId + '" title="' + title + '"]';
+ $('input#contact-form-anchor-text').val(tag);
+
+ var oldId = $('input#wpcf7-id').val();
+
+ if (0 != oldId) {
+ var tagOld = '[contact-form ' + oldId + ' "' + title + '"]';
+ $('input#contact-form-anchor-text-old').val(tagOld).parent('p.tagcode').show();
+ }
+ }
+
+})(jQuery);
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/admin/js/taggenerator.js b/wp-content/plugins/contact-form-7/admin/js/taggenerator.js
new file mode 100644
index 0000000..32fb3fb
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/admin/js/taggenerator.js
@@ -0,0 +1,262 @@
+(function($) {
+
+ $.fn.tagGenerator = function(title, options) {
+ var menu = $('');
+
+ var selector = $('' + title + '');
+
+ selector.css({
+ border: '1px solid #ddd',
+ padding: '2px 4px',
+ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0',
+ '-moz-border-radius': '3px',
+ '-khtml-border-radius': '3px',
+ '-webkit-border-radius': '3px',
+ 'border-radius': '3px'
+ });
+
+ selector.mouseover(function() {
+ $(this).css({ 'border-color': '#bbb' });
+ });
+ selector.mouseout(function() {
+ $(this).css({ 'border-color': '#ddd' });
+ });
+ selector.mousedown(function() {
+ $(this).css({ background: '#ddd' });
+ });
+ selector.mouseup(function() {
+ $(this).css({
+ background: '#fff url( ../wp-admin/images/fade-butt.png ) repeat-x 0 0'
+ });
+ });
+ selector.click(function() {
+ dropdown.slideDown('fast');
+ return false;
+ });
+ $('body').click(function() {
+ dropdown.hide();
+ });
+
+ if (options.dropdownIconUrl) {
+ var dropdown_icon = $('
');
+ dropdown_icon.css({ 'vertical-align': 'bottom' });
+ selector.append(dropdown_icon);
+ }
+
+ menu.append(selector);
+
+ var pane = $('');
+ pane.hide();
+ menu.append(pane);
+
+ var dropdown = $('');
+ dropdown.hide();
+ menu.append(dropdown);
+
+ $.each($.tgPanes, function(i, n) {
+ var submenu = $('' + $.tgPanes[i].title + '
');
+ submenu.css({
+ margin: 0,
+ padding: '0 4px',
+ 'line-height': '180%',
+ background: '#fff'
+ });
+ submenu.mouseover(function() {
+ $(this).css({ background: '#d4f2f2' });
+ });
+ submenu.mouseout(function() {
+ $(this).css({ background: '#fff' });
+ });
+ submenu.click(function() {
+ dropdown.hide();
+ pane.hide();
+ pane.empty();
+ $.tgPane(pane, i);
+ pane.slideDown('fast');
+ return false;
+ });
+ dropdown.append(submenu);
+ });
+
+ this.append(menu);
+ };
+
+ $.tgPane = function(pane, tagType) {
+ var closeButtonDiv = $('');
+ closeButtonDiv.css({ float: 'right' });
+
+ var closeButton = $('×');
+ closeButton.click(function() {
+ pane.slideUp('fast').empty();
+ });
+ closeButtonDiv.append(closeButton);
+
+ pane.append(closeButtonDiv);
+
+ var paneTitle = $('' + $.tgPanes[tagType].title + '
');
+ pane.append(paneTitle);
+
+ pane.append($('#' + $.tgPanes[tagType].content).clone().contents());
+
+ pane.find(':checkbox.exclusive').change(function() {
+ if ($(this).is(':checked'))
+ $(this).siblings(':checkbox.exclusive').removeAttr('checked');
+ });
+
+ if ($.isFunction($.tgPanes[tagType].change))
+ $.tgPanes[tagType].change(pane, tagType);
+ else
+ $.tgCreateTag(pane, tagType);
+
+ pane.find(':input').change(function() {
+ if ($.isFunction($.tgPanes[tagType].change))
+ $.tgPanes[tagType].change(pane, tagType);
+ else
+ $.tgCreateTag(pane, tagType);
+ });
+ }
+
+ $.tgCreateTag = function(pane, tagType) {
+ pane.find('input[name="name"]').each(function(i) {
+ var val = $(this).val();
+ val = val.replace(/[^0-9a-zA-Z:._-]/g, '').replace(/^[^a-zA-Z]+/, '');
+ if ('' == val) {
+ var rand = Math.floor(Math.random() * 1000);
+ val = tagType + '-' + rand;
+ }
+ $(this).val(val);
+ });
+
+ pane.find(':input.numeric').each(function(i) {
+ var val = $(this).val();
+ val = val.replace(/[^0-9]/g, '');
+ $(this).val(val);
+ });
+
+ pane.find(':input.idvalue').each(function(i) {
+ var val = $(this).val();
+ val = val.replace(/[^-0-9a-zA-Z_]/g, '');
+ $(this).val(val);
+ });
+
+ pane.find(':input.classvalue').each(function(i) {
+ var val = $(this).val();
+ val = $.map(val.split(' '), function(n) {
+ return n.replace(/[^-0-9a-zA-Z_]/g, '');
+ }).join(' ');
+ val = $.trim(val.replace(/\s+/g, ' '));
+ $(this).val(val);
+ });
+
+ pane.find(':input.color').each(function(i) {
+ var val = $(this).val();
+ val = val.replace(/[^0-9a-fA-F]/g, '');
+ $(this).val(val);
+ });
+
+ pane.find(':input.filesize').each(function(i) {
+ var val = $(this).val();
+ val = val.replace(/[^0-9kKmMbB]/g, '');
+ $(this).val(val);
+ });
+
+ pane.find(':input.filetype').each(function(i) {
+ var val = $(this).val();
+ val = val.replace(/[^0-9a-zA-Z.,|\s]/g, '');
+ $(this).val(val);
+ });
+
+ pane.find(':input.date').each(function(i) {
+ var val = $(this).val();
+ if (! val.match(/^\d{4}-\d{1,2}-\d{1,2}$/)) // 'yyyy-mm-dd' ISO 8601 format
+ $(this).val('');
+ });
+
+ pane.find(':input[name="values"]').each(function(i) {
+ var val = $(this).val();
+ val = $.trim(val);
+ $(this).val(val);
+ });
+
+ pane.find('input.tag').each(function(i) {
+ var type = $(this).attr('name');
+
+ var scope = pane.find('.scope.' + type);
+ if (! scope.length)
+ scope = pane;
+
+ if (pane.find(':input[name="required"]').is(':checked'))
+ type += '*';
+
+ var name = pane.find(':input[name="name"]').val();
+
+ var options = [];
+
+ var size = scope.find(':input[name="size"]').val();
+ var maxlength = scope.find(':input[name="maxlength"]').val();
+ if (size || maxlength)
+ options.push(size + '/' + maxlength);
+
+ var cols = scope.find(':input[name="cols"]').val();
+ var rows = scope.find(':input[name="rows"]').val();
+ if (cols || rows)
+ options.push(cols + 'x' + rows);
+
+ scope.find('input:text.option').each(function(i) {
+ if (-1 < $.inArray($(this).attr('name'), ['size', 'maxlength', 'cols', 'rows']))
+ return;
+
+ var val = $(this).val();
+
+ if (! val)
+ return;
+
+ if ($(this).hasClass('filetype'))
+ val = val.split(/[,|\s]+/).join('|');
+
+ if ($(this).hasClass('color'))
+ val = '#' + val;
+
+ if ('class' == $(this).attr('name')) {
+ $.each(val.split(' '), function(i, n) { options.push('class:' + n) });
+ } else {
+ options.push($(this).attr('name') + ':' + val);
+ }
+ });
+
+ scope.find('input:checkbox.option').each(function(i) {
+ if ($(this).is(':checked'))
+ options.push($(this).attr('name'));
+ });
+
+ options = (options.length > 0) ? ' ' + options.join(' ') : '';
+
+ var value = '';
+
+ if (scope.find(':input[name="values"]').val()) {
+ $.each(scope.find(':input[name="values"]').val().split("\n"), function(i, n) {
+ value += ' "' + n.replace(/["]/g, '"') + '"';
+ });
+ }
+
+ if ($.tgPanes[tagType].nameless)
+ var tag = '[' + type + options + value + ']';
+ else
+ var tag = name ? '[' + type + ' ' + name + options + value + ']' : '';
+
+ $(this).val(tag);
+ });
+
+ pane.find('input.mail-tag').each(function(i) {
+ var name = pane.find(':input[name="name"]').val();
+
+ var tag = name ? '[' + name + ']' : '';
+
+ $(this).val(tag);
+ });
+
+ }
+
+ $.tgPanes = {};
+
+})(jQuery);
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/images/ajax-loader.gif b/wp-content/plugins/contact-form-7/images/ajax-loader.gif
new file mode 100644
index 0000000..f2cfafd
Binary files /dev/null and b/wp-content/plugins/contact-form-7/images/ajax-loader.gif differ
diff --git a/wp-content/plugins/contact-form-7/includes/capabilities.php b/wp-content/plugins/contact-form-7/includes/capabilities.php
new file mode 100644
index 0000000..00a09d8
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/capabilities.php
@@ -0,0 +1,20 @@
+ WPCF7_ADMIN_READ_WRITE_CAPABILITY,
+ 'wpcf7_edit_contact_forms' => WPCF7_ADMIN_READ_WRITE_CAPABILITY,
+ 'wpcf7_read_contact_forms' => WPCF7_ADMIN_READ_CAPABILITY,
+ 'wpcf7_delete_contact_form' => WPCF7_ADMIN_READ_WRITE_CAPABILITY );
+
+ $caps = array_diff( $caps, array_keys( $meta_caps ) );
+
+ if ( isset( $meta_caps[$cap] ) )
+ $caps[] = $meta_caps[$cap];
+
+ return $caps;
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/includes/classes.php b/wp-content/plugins/contact-form-7/includes/classes.php
new file mode 100644
index 0000000..4da400f
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/classes.php
@@ -0,0 +1,812 @@
+ array(
+ 'name' => __( 'Contact Forms', 'wpcf7' ),
+ 'singular_name' => __( 'Contact Form', 'wpcf7' ) ),
+ 'rewrite' => false,
+ 'query_var' => false ) );
+ }
+
+ public static function find( $args = '' ) {
+ $defaults = array(
+ 'post_status' => 'any',
+ 'posts_per_page' => -1,
+ 'offset' => 0,
+ 'orderby' => 'ID',
+ 'order' => 'ASC' );
+
+ $args = wp_parse_args( $args, $defaults );
+
+ $args['post_type'] = self::post_type;
+
+ $q = new WP_Query();
+ $posts = $q->query( $args );
+
+ self::$found_items = $q->found_posts;
+
+ $objs = array();
+
+ foreach ( (array) $posts as $post )
+ $objs[] = new self( $post );
+
+ return $objs;
+ }
+
+ public function __construct( $post = null ) {
+ $this->initial = true;
+
+ $post = get_post( $post );
+
+ if ( $post && self::post_type == get_post_type( $post ) ) {
+ $this->initial = false;
+ $this->id = $post->ID;
+ $this->title = $post->post_title;
+
+ $this->form = get_post_meta( $post->ID, 'form', true );
+ $this->mail = get_post_meta( $post->ID, 'mail', true );
+ $this->mail_2 = get_post_meta( $post->ID, 'mail_2', true );
+ $this->messages = get_post_meta( $post->ID, 'messages', true );
+ $this->additional_settings = get_post_meta( $post->ID, 'additional_settings', true );
+
+ $this->upgrade();
+ }
+
+ do_action_ref_array( 'wpcf7_contact_form', array( &$this ) );
+ }
+
+ // Return true if this form is the same one as currently POSTed.
+ function is_posted() {
+ if ( ! isset( $_POST['_wpcf7_unit_tag'] ) || empty( $_POST['_wpcf7_unit_tag'] ) )
+ return false;
+
+ if ( $this->unit_tag == $_POST['_wpcf7_unit_tag'] )
+ return true;
+
+ return false;
+ }
+
+ function clear_post() {
+ $fes = $this->form_scan_shortcode();
+
+ foreach ( $fes as $fe ) {
+ if ( ! isset( $fe['name'] ) || empty( $fe['name'] ) )
+ continue;
+
+ $name = $fe['name'];
+
+ if ( isset( $_POST[$name] ) )
+ unset( $_POST[$name] );
+ }
+ }
+
+ /* Generating Form HTML */
+
+ function form_html() {
+ $form = '';
+
+ $url = wpcf7_get_request_uri();
+
+ if ( $frag = strstr( $url, '#' ) )
+ $url = substr( $url, 0, -strlen( $frag ) );
+
+ $url .= '#' . $this->unit_tag;
+
+ $url = apply_filters( 'wpcf7_form_action_url', $url );
+
+ $class = 'wpcf7-form';
+
+ if ( $this->is_posted() ) {
+ if ( ! empty( $_POST['_wpcf7_validation_errors'] ) ) {
+ $class .= ' invalid';
+ } elseif ( ! empty( $_POST['_wpcf7_mail_sent'] ) ) {
+ if ( ! empty( $_POST['_wpcf7_mail_sent']['spam'] ) )
+ $class .= ' spam';
+ elseif ( ! empty( $_POST['_wpcf7_mail_sent']['ok'] ) )
+ $class .= ' sent';
+ else
+ $class .= ' failed';
+ }
+ }
+
+ $class = apply_filters( 'wpcf7_form_class_attr', $class );
+
+ $enctype = apply_filters( 'wpcf7_form_enctype', '' );
+
+ $form .= '';
+
+ $form .= '
';
+
+ return $form;
+ }
+
+ function form_hidden_fields() {
+ $hidden_fields = array(
+ '_wpcf7' => $this->id,
+ '_wpcf7_version' => WPCF7_VERSION,
+ '_wpcf7_unit_tag' => $this->unit_tag );
+
+ if ( WPCF7_VERIFY_NONCE )
+ $hidden_fields['_wpnonce'] = wpcf7_create_nonce( $this->unit_tag );
+
+ $content = '';
+
+ foreach ( $hidden_fields as $name => $value ) {
+ $content .= '' . "\n";
+ }
+
+ return '' . "\n" . $content . '
' . "\n";
+ }
+
+ function form_response_output() {
+ $class = 'wpcf7-response-output';
+ $content = '';
+
+ if ( $this->is_posted() ) { // Post response output for non-AJAX
+ if ( isset( $_POST['_wpcf7_mail_sent'] ) && $_POST['_wpcf7_mail_sent']['id'] == $this->id ) {
+ if ( $_POST['_wpcf7_mail_sent']['ok'] ) {
+ $class .= ' wpcf7-mail-sent-ok';
+ $content = $_POST['_wpcf7_mail_sent']['message'];
+ } else {
+ $class .= ' wpcf7-mail-sent-ng';
+ if ( $_POST['_wpcf7_mail_sent']['spam'] )
+ $class .= ' wpcf7-spam-blocked';
+ $content = $_POST['_wpcf7_mail_sent']['message'];
+ }
+ } elseif ( isset( $_POST['_wpcf7_validation_errors'] ) && $_POST['_wpcf7_validation_errors']['id'] == $this->id ) {
+ $class .= ' wpcf7-validation-errors';
+ $content = $this->message( 'validation_error' );
+ }
+ } else {
+ $class .= ' wpcf7-display-none';
+ }
+
+ $class = ' class="' . $class . '"';
+
+ return '' . $content . '
';
+ }
+
+ function validation_error( $name ) {
+ if ( ! $this->is_posted() )
+ return '';
+
+ if ( ! isset( $_POST['_wpcf7_validation_errors']['messages'][$name] ) )
+ return '';
+
+ $ve = trim( $_POST['_wpcf7_validation_errors']['messages'][$name] );
+
+ if ( ! empty( $ve ) ) {
+ $ve = '' . esc_html( $ve ) . '';
+ return apply_filters( 'wpcf7_validation_error', $ve, $name, $this );
+ }
+
+ return '';
+ }
+
+ /* Form Elements */
+
+ function form_do_shortcode() {
+ global $wpcf7_shortcode_manager;
+
+ $form = $this->form;
+
+ if ( WPCF7_AUTOP ) {
+ $form = $wpcf7_shortcode_manager->normalize_shortcode( $form );
+ $form = wpcf7_autop( $form );
+ }
+
+ $form = $wpcf7_shortcode_manager->do_shortcode( $form );
+ $this->scanned_form_tags = $wpcf7_shortcode_manager->scanned_tags;
+
+ return $form;
+ }
+
+ function form_scan_shortcode( $cond = null ) {
+ global $wpcf7_shortcode_manager;
+
+ if ( ! empty( $this->scanned_form_tags ) ) {
+ $scanned = $this->scanned_form_tags;
+ } else {
+ $scanned = $wpcf7_shortcode_manager->scan_shortcode( $this->form );
+ $this->scanned_form_tags = $scanned;
+ }
+
+ if ( empty( $scanned ) )
+ return null;
+
+ if ( ! is_array( $cond ) || empty( $cond ) )
+ return $scanned;
+
+ for ( $i = 0, $size = count( $scanned ); $i < $size; $i++ ) {
+
+ if ( isset( $cond['type'] ) ) {
+ if ( is_string( $cond['type'] ) && ! empty( $cond['type'] ) ) {
+ if ( $scanned[$i]['type'] != $cond['type'] ) {
+ unset( $scanned[$i] );
+ continue;
+ }
+ } elseif ( is_array( $cond['type'] ) ) {
+ if ( ! in_array( $scanned[$i]['type'], $cond['type'] ) ) {
+ unset( $scanned[$i] );
+ continue;
+ }
+ }
+ }
+
+ if ( isset( $cond['name'] ) ) {
+ if ( is_string( $cond['name'] ) && ! empty( $cond['name'] ) ) {
+ if ( $scanned[$i]['name'] != $cond['name'] ) {
+ unset ( $scanned[$i] );
+ continue;
+ }
+ } elseif ( is_array( $cond['name'] ) ) {
+ if ( ! in_array( $scanned[$i]['name'], $cond['name'] ) ) {
+ unset( $scanned[$i] );
+ continue;
+ }
+ }
+ }
+ }
+
+ return array_values( $scanned );
+ }
+
+ function form_elements() {
+ return apply_filters( 'wpcf7_form_elements', $this->form_do_shortcode() );
+ }
+
+ function setup_posted_data() {
+ $posted_data = (array) $_POST;
+
+ $fes = $this->form_scan_shortcode();
+
+ foreach ( $fes as $fe ) {
+ if ( empty( $fe['name'] ) )
+ continue;
+
+ $name = $fe['name'];
+ $value = '';
+
+ if ( isset( $posted_data[$name] ) )
+ $value = $posted_data[$name];
+
+ $pipes = $fe['pipes'];
+
+ if ( WPCF7_USE_PIPE && is_a( $pipes, 'WPCF7_Pipes' ) && ! $pipes->zero() ) {
+ if ( is_array( $value) ) {
+ $new_value = array();
+
+ foreach ( $value as $v )
+ $new_value[] = $pipes->do_pipe( stripslashes( $v ) );
+
+ $value = $new_value;
+ } else {
+ $value = $pipes->do_pipe( stripslashes( $value ) );
+ }
+ }
+
+ $posted_data[$name] = $value;
+ }
+
+ $this->posted_data = apply_filters( 'wpcf7_posted_data', $posted_data );
+
+ return $this->posted_data;
+ }
+
+ function submit( $ajax = false ) {
+ $result = array(
+ 'valid' => true,
+ 'invalid_reasons' => array(),
+ 'spam' => false,
+ 'message' => '',
+ 'mail_sent' => false,
+ 'scripts_on_sent_ok' => null );
+
+ $this->setup_posted_data();
+
+ $validation = $this->validate();
+
+ if ( ! $validation['valid'] ) { // Validation error occured
+ $result['valid'] = false;
+ $result['invalid_reasons'] = $validation['reason'];
+ $result['message'] = $this->message( 'validation_error' );
+
+ } elseif ( ! $this->accepted() ) { // Not accepted terms
+ $result['message'] = $this->message( 'accept_terms' );
+
+ } elseif ( $this->spam() ) { // Spam!
+ $result['message'] = $this->message( 'spam' );
+ $result['spam'] = true;
+
+ } elseif ( $this->mail() ) {
+ $result['mail_sent'] = true;
+ $result['message'] = $this->message( 'mail_sent_ok' );
+
+ do_action_ref_array( 'wpcf7_mail_sent', array( &$this ) );
+
+ if ( $ajax ) {
+ $on_sent_ok = $this->additional_setting( 'on_sent_ok', false );
+
+ if ( ! empty( $on_sent_ok ) )
+ $result['scripts_on_sent_ok'] = array_map( 'wpcf7_strip_quote', $on_sent_ok );
+ } else {
+ $this->clear_post();
+ }
+
+ } else {
+ $result['message'] = $this->message( 'mail_sent_ng' );
+ }
+
+ // remove upload files
+ foreach ( (array) $this->uploaded_files as $name => $path ) {
+ @unlink( $path );
+ }
+
+ return $result;
+ }
+
+ /* Validate */
+
+ function validate() {
+ $fes = $this->form_scan_shortcode();
+
+ $result = array( 'valid' => true, 'reason' => array() );
+
+ foreach ( $fes as $fe ) {
+ $result = apply_filters( 'wpcf7_validate_' . $fe['type'], $result, $fe );
+ }
+
+ $result = apply_filters( 'wpcf7_validate', $result );
+
+ return $result;
+ }
+
+ function accepted() {
+ $accepted = true;
+
+ return apply_filters( 'wpcf7_acceptance', $accepted );
+ }
+
+ function spam() {
+ $spam = false;
+
+ if ( WPCF7_VERIFY_NONCE && ! $this->verify_nonce() )
+ $spam = true;
+
+ return apply_filters( 'wpcf7_spam', $spam );
+ }
+
+ function verify_nonce() {
+ return wpcf7_verify_nonce( $_POST['_wpnonce'], $_POST['_wpcf7_unit_tag'] );
+ }
+
+ /* Mail */
+
+ function mail() {
+ if ( $this->in_demo_mode() )
+ $this->skip_mail = true;
+
+ do_action_ref_array( 'wpcf7_before_send_mail', array( &$this ) );
+
+ if ( $this->skip_mail )
+ return true;
+
+ $result = $this->compose_mail( $this->setup_mail_template( $this->mail, 'mail' ) );
+
+ if ( $result ) {
+ $additional_mail = array();
+
+ if ( $this->mail_2['active'] )
+ $additional_mail[] = $this->setup_mail_template( $this->mail_2, 'mail_2' );
+
+ $additional_mail = apply_filters_ref_array( 'wpcf7_additional_mail',
+ array( $additional_mail, &$this ) );
+
+ foreach ( $additional_mail as $mail )
+ $this->compose_mail( $mail );
+
+ return true;
+ }
+
+ return false;
+ }
+
+ function setup_mail_template( $mail_template, $name = '' ) {
+ $defaults = array(
+ 'subject' => '', 'sender' => '', 'body' => '',
+ 'recipient' => '', 'additional_headers' => '',
+ 'attachments' => '', 'use_html' => false );
+
+ $mail_template = wp_parse_args( $mail_template, $defaults );
+
+ $name = trim( $name );
+
+ if ( ! empty( $name ) )
+ $mail_template['name'] = $name;
+
+ return $mail_template;
+ }
+
+ function compose_mail( $mail_template, $send = true ) {
+ $this->mail_template_in_process = $mail_template;
+
+ $regex = '/(\[?)\[\s*([a-zA-Z_][0-9a-zA-Z:._-]*)\s*\](\]?)/';
+
+ $use_html = (bool) $mail_template['use_html'];
+
+ $callback = array( &$this, 'mail_callback' );
+ $callback_html = array( &$this, 'mail_callback_html' );
+
+ $subject = preg_replace_callback( $regex, $callback, $mail_template['subject'] );
+ $sender = preg_replace_callback( $regex, $callback, $mail_template['sender'] );
+ $recipient = preg_replace_callback( $regex, $callback, $mail_template['recipient'] );
+ $additional_headers =
+ preg_replace_callback( $regex, $callback, $mail_template['additional_headers'] );
+
+ if ( $use_html ) {
+ $body = preg_replace_callback( $regex, $callback_html, $mail_template['body'] );
+ $body = wpautop( $body );
+ } else {
+ $body = preg_replace_callback( $regex, $callback, $mail_template['body'] );
+ }
+
+ $attachments = array();
+
+ foreach ( (array) $this->uploaded_files as $name => $path ) {
+ if ( false === strpos( $mail_template['attachments'], "[${name}]" ) || empty( $path ) )
+ continue;
+
+ $attachments[] = $path;
+ }
+
+ $components = compact(
+ 'subject', 'sender', 'body', 'recipient', 'additional_headers', 'attachments' );
+
+ $components = apply_filters_ref_array( 'wpcf7_mail_components',
+ array( $components, &$this ) );
+
+ extract( $components );
+
+ $headers = "From: $sender\n";
+
+ if ( $use_html )
+ $headers .= "Content-Type: text/html\n";
+
+ $headers .= trim( $additional_headers ) . "\n";
+
+ if ( $send )
+ return @wp_mail( $recipient, $subject, $body, $headers, $attachments );
+
+ return compact( 'subject', 'sender', 'body', 'recipient', 'headers', 'attachments' );
+ }
+
+ function mail_callback_html( $matches ) {
+ return $this->mail_callback( $matches, true );
+ }
+
+ function mail_callback( $matches, $html = false ) {
+ // allow [[foo]] syntax for escaping a tag
+ if ( $matches[1] == '[' && $matches[3] == ']' )
+ return substr( $matches[0], 1, -1 );
+
+ if ( isset( $this->posted_data[$matches[2]] ) ) {
+ $submitted = $this->posted_data[$matches[2]];
+
+ if ( is_array( $submitted ) )
+ $replaced = join( ', ', $submitted );
+ else
+ $replaced = $submitted;
+
+ if ( $html ) {
+ $replaced = strip_tags( $replaced );
+ $replaced = wptexturize( $replaced );
+ }
+
+ $replaced = apply_filters( 'wpcf7_mail_tag_replaced', $replaced, $submitted );
+
+ return stripslashes( $replaced );
+ }
+
+ if ( $special = apply_filters( 'wpcf7_special_mail_tags', '', $matches[2] ) )
+ return $special;
+
+ return $matches[0];
+ }
+
+ /* Message */
+
+ function message( $status ) {
+ $messages = $this->messages;
+ $message = isset( $messages[$status] ) ? $messages[$status] : '';
+
+ return apply_filters( 'wpcf7_display_message', $message, $status );
+ }
+
+ /* Additional settings */
+
+ function additional_setting( $name, $max = 1 ) {
+ $tmp_settings = (array) explode( "\n", $this->additional_settings );
+
+ $count = 0;
+ $values = array();
+
+ foreach ( $tmp_settings as $setting ) {
+ if ( preg_match('/^([a-zA-Z0-9_]+)[\t ]*:(.*)$/', $setting, $matches ) ) {
+ if ( $matches[1] != $name )
+ continue;
+
+ if ( ! $max || $count < (int) $max ) {
+ $values[] = trim( $matches[2] );
+ $count += 1;
+ }
+ }
+ }
+
+ return $values;
+ }
+
+ function in_demo_mode() {
+ $settings = $this->additional_setting( 'demo_mode', false );
+
+ foreach ( $settings as $setting ) {
+ if ( in_array( $setting, array( 'on', 'true', '1' ) ) )
+ return true;
+ }
+
+ return false;
+ }
+
+ /* Upgrade */
+
+ function upgrade() {
+ if ( ! isset( $this->mail['recipient'] ) )
+ $this->mail['recipient'] = get_option( 'admin_email' );
+
+
+ if ( ! is_array( $this->messages ) )
+ $this->messages = array();
+
+
+ foreach ( wpcf7_messages() as $key => $arr ) {
+ if ( ! isset( $this->messages[$key] ) )
+ $this->messages[$key] = $arr['default'];
+ }
+ }
+
+ /* Save */
+
+ function save() {
+ $metas = array( 'form', 'mail', 'mail_2', 'messages', 'additional_settings' );
+
+ $post_content = '';
+
+ foreach ( $metas as $meta ) {
+ $props = (array) $this->{$meta};
+
+ foreach ( $props as $prop )
+ $post_content .= "\n" . trim( $prop );
+ }
+
+ if ( $this->initial ) {
+ $post_id = wp_insert_post( array(
+ 'post_type' => self::post_type,
+ 'post_status' => 'publish',
+ 'post_title' => $this->title,
+ 'post_content' => trim( $post_content ) ) );
+ } else {
+ $post_id = wp_update_post( array(
+ 'ID' => (int) $this->id,
+ 'post_status' => 'publish',
+ 'post_title' => $this->title,
+ 'post_content' => trim( $post_content ) ) );
+ }
+
+ if ( $post_id ) {
+ foreach ( $metas as $meta )
+ update_post_meta( $post_id, $meta, wpcf7_normalize_newline_deep( $this->{$meta} ) );
+
+ if ( $this->initial ) {
+ $this->initial = false;
+ $this->id = $post_id;
+ do_action_ref_array( 'wpcf7_after_create', array( &$this ) );
+ } else {
+ do_action_ref_array( 'wpcf7_after_update', array( &$this ) );
+ }
+
+ do_action_ref_array( 'wpcf7_after_save', array( &$this ) );
+ }
+
+ return $post_id;
+ }
+
+ function copy() {
+ $new = new WPCF7_ContactForm();
+ $new->initial = true;
+ $new->title = $this->title . '_copy';
+
+ $new->form = $this->form;
+ $new->mail = $this->mail;
+ $new->mail_2 = $this->mail_2;
+ $new->messages = $this->messages;
+ $new->additional_settings = $this->additional_settings;
+
+ $new = apply_filters_ref_array( 'wpcf7_copy', array( &$new, &$this ) );
+
+ return $new;
+ }
+
+ function delete() {
+ if ( $this->initial )
+ return;
+
+ if ( wp_delete_post( $this->id, true ) ) {
+ $this->initial = true;
+ $this->id = null;
+ return true;
+ }
+
+ return false;
+ }
+}
+
+function wpcf7_contact_form( $id ) {
+ $contact_form = new WPCF7_ContactForm( $id );
+
+ if ( $contact_form->initial )
+ return false;
+
+ return $contact_form;
+}
+
+function wpcf7_get_contact_form_by_old_id( $old_id ) {
+ global $wpdb;
+
+ $q = "SELECT post_id FROM $wpdb->postmeta WHERE meta_key = '_old_cf7_unit_id'"
+ . $wpdb->prepare( " AND meta_value = %d", $old_id );
+
+ if ( $new_id = $wpdb->get_var( $q ) )
+ return wpcf7_contact_form( $new_id );
+}
+
+function wpcf7_get_contact_form_by_title( $title ) {
+ $page = get_page_by_title( $title, OBJECT, WPCF7_ContactForm::post_type );
+
+ if ( $page )
+ return wpcf7_contact_form( $page->ID );
+
+ return null;
+}
+
+function wpcf7_get_contact_form_default_pack( $args = '' ) {
+ global $l10n;
+
+ $defaults = array( 'locale' => null, 'title' => '' );
+ $args = wp_parse_args( $args, $defaults );
+
+ $locale = $args['locale'];
+ $title = $args['title'];
+
+ if ( $locale && $locale != get_locale() ) {
+ $mo_orig = $l10n['wpcf7'];
+ unset( $l10n['wpcf7'] );
+
+ if ( 'en_US' != $locale ) {
+ $mofile = wpcf7_plugin_path( 'languages/wpcf7-' . $locale . '.mo' );
+ if ( ! load_textdomain( 'wpcf7', $mofile ) ) {
+ $l10n['wpcf7'] = $mo_orig;
+ unset( $mo_orig );
+ }
+ }
+ }
+
+ $contact_form = new WPCF7_ContactForm();
+ $contact_form->initial = true;
+
+ $contact_form->title = ( $title ? $title : __( 'Untitled', 'wpcf7' ) );
+
+ $contact_form->form = wpcf7_get_default_template( 'form' );
+ $contact_form->mail = wpcf7_get_default_template( 'mail' );
+ $contact_form->mail_2 = wpcf7_get_default_template( 'mail_2' );
+ $contact_form->messages = wpcf7_get_default_template( 'messages' );
+ $contact_form->additional_settings = wpcf7_get_default_template( 'additional_settings' );
+
+ if ( isset( $mo_orig ) )
+ $l10n['wpcf7'] = $mo_orig;
+
+ $contact_form = apply_filters_ref_array( 'wpcf7_contact_form_default_pack',
+ array( &$contact_form, $args ) );
+
+ return $contact_form;
+}
+
+function wpcf7_get_current_contact_form() {
+ global $wpcf7_contact_form;
+
+ if ( ! is_a( $wpcf7_contact_form, 'WPCF7_ContactForm' ) )
+ return null;
+
+ return $wpcf7_contact_form;
+}
+
+function wpcf7_is_posted() {
+ if ( ! $contact_form = wpcf7_get_current_contact_form() )
+ return false;
+
+ return $contact_form->is_posted();
+}
+
+function wpcf7_get_validation_error( $name ) {
+ if ( ! $contact_form = wpcf7_get_current_contact_form() )
+ return '';
+
+ return $contact_form->validation_error( $name );
+}
+
+function wpcf7_get_message( $status ) {
+ if ( ! $contact_form = wpcf7_get_current_contact_form() )
+ return '';
+
+ return $contact_form->message( $status );
+}
+
+function wpcf7_scan_shortcode( $cond = null ) {
+ if ( ! $contact_form = wpcf7_get_current_contact_form() )
+ return null;
+
+ return $contact_form->form_scan_shortcode( $cond );
+}
+
+function wpcf7_form_controls_class( $type, $default = '' ) {
+ $type = trim( $type );
+ $default = explode( ' ', $default );
+
+ $classes = array_merge( array( 'wpcf7-form-control' ), $default );
+
+ $typebase = rtrim( $type, '*' );
+ $required = ( '*' == substr( $type, -1 ) );
+
+ $classes[] = 'wpcf7-' . $typebase;
+
+ if ( $required )
+ $classes[] = 'wpcf7-validates-as-required';
+
+ $classes = array_unique( $classes );
+
+ return implode( ' ', $classes );
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/includes/controller.php b/wp-content/plugins/contact-form-7/includes/controller.php
new file mode 100644
index 0000000..ac99de1
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/controller.php
@@ -0,0 +1,288 @@
+ false,
+ 'into' => '#' . $unit_tag,
+ 'captcha' => null );
+
+ $result = $wpcf7_contact_form->submit( true );
+
+ if ( ! empty( $result['message'] ) )
+ $items['message'] = $result['message'];
+
+ if ( $result['mail_sent'] )
+ $items['mailSent'] = true;
+
+ if ( ! $result['valid'] ) {
+ $invalids = array();
+
+ foreach ( $result['invalid_reasons'] as $name => $reason ) {
+ $invalids[] = array(
+ 'into' => 'span.wpcf7-form-control-wrap.' . $name,
+ 'message' => $reason );
+ }
+
+ $items['invalids'] = $invalids;
+ }
+
+ if ( $result['spam'] )
+ $items['spam'] = true;
+
+ if ( ! empty( $result['scripts_on_sent_ok'] ) )
+ $items['onSentOk'] = $result['scripts_on_sent_ok'];
+
+ $items = apply_filters( 'wpcf7_ajax_json_echo', $items, $result );
+
+ $wpcf7_contact_form = null;
+ }
+ }
+
+ $echo = json_encode( $items );
+
+ if ( wpcf7_is_xhr() ) {
+ @header( 'Content-Type: application/json; charset=' . get_option( 'blog_charset' ) );
+ echo $echo;
+ } else {
+ @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
+ echo '';
+ }
+
+ exit();
+}
+
+function wpcf7_is_xhr() {
+ if ( ! isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) )
+ return false;
+
+ return $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
+}
+
+function wpcf7_submit_nonajax() {
+ global $wpcf7_contact_form;
+
+ if ( ! isset( $_POST['_wpcf7'] ) )
+ return;
+
+ $id = (int) $_POST['_wpcf7'];
+
+ if ( $wpcf7_contact_form = wpcf7_contact_form( $id ) ) {
+ $result = $wpcf7_contact_form->submit();
+
+ if ( ! $result['valid'] ) {
+ $_POST['_wpcf7_validation_errors'] = array(
+ 'id' => $id,
+ 'messages' => $result['invalid_reasons'] );
+ } else {
+ $_POST['_wpcf7_mail_sent'] = array(
+ 'id' => $id,
+ 'ok' => $result['mail_sent'],
+ 'message' => $result['message'],
+ 'spam' => $result['spam'] );
+ }
+
+ $wpcf7_contact_form = null;
+ }
+}
+
+add_action( 'the_post', 'wpcf7_the_post' );
+
+function wpcf7_the_post() {
+ global $wpcf7;
+
+ $wpcf7->processing_within = 'p' . get_the_ID();
+ $wpcf7->unit_count = 0;
+}
+
+add_action( 'loop_end', 'wpcf7_loop_end' );
+
+function wpcf7_loop_end() {
+ global $wpcf7;
+
+ $wpcf7->processing_within = '';
+}
+
+add_filter( 'widget_text', 'wpcf7_widget_text_filter', 9 );
+
+function wpcf7_widget_text_filter( $content ) {
+ global $wpcf7;
+
+ if ( ! preg_match( '/\[[\r\n\t ]*contact-form(-7)?[\r\n\t ].*?\]/', $content ) )
+ return $content;
+
+ $wpcf7->widget_count += 1;
+ $wpcf7->processing_within = 'w' . $wpcf7->widget_count;
+ $wpcf7->unit_count = 0;
+
+ $content = do_shortcode( $content );
+
+ $wpcf7->processing_within = '';
+
+ return $content;
+}
+
+/* Shortcodes */
+
+add_action( 'plugins_loaded', 'wpcf7_add_shortcodes', 1 );
+
+function wpcf7_add_shortcodes() {
+ add_shortcode( 'contact-form-7', 'wpcf7_contact_form_tag_func' );
+ add_shortcode( 'contact-form', 'wpcf7_contact_form_tag_func' );
+}
+
+function wpcf7_contact_form_tag_func( $atts, $content = null, $code = '' ) {
+ global $wpcf7, $wpcf7_contact_form;
+
+ if ( is_feed() )
+ return '[contact-form-7]';
+
+ if ( 'contact-form-7' == $code ) {
+ $atts = shortcode_atts( array( 'id' => 0, 'title' => '' ), $atts );
+
+ $id = (int) $atts['id'];
+ $title = trim( $atts['title'] );
+
+ if ( ! $wpcf7_contact_form = wpcf7_contact_form( $id ) )
+ $wpcf7_contact_form = wpcf7_get_contact_form_by_title( $title );
+
+ } else {
+ if ( is_string( $atts ) )
+ $atts = explode( ' ', $atts, 2 );
+
+ $id = (int) array_shift( $atts );
+ $wpcf7_contact_form = wpcf7_get_contact_form_by_old_id( $id );
+ }
+
+ if ( ! $wpcf7_contact_form )
+ return '[contact-form-7 404 "Not Found"]';
+
+ if ( $wpcf7->processing_within ) { // Inside post content or text widget
+ $wpcf7->unit_count += 1;
+ $unit_count = $wpcf7->unit_count;
+ $processing_within = $wpcf7->processing_within;
+
+ } else { // Inside template
+
+ if ( ! isset( $wpcf7->global_unit_count ) )
+ $wpcf7->global_unit_count = 0;
+
+ $wpcf7->global_unit_count += 1;
+ $unit_count = 1;
+ $processing_within = 't' . $wpcf7->global_unit_count;
+ }
+
+ $unit_tag = 'wpcf7-f' . $wpcf7_contact_form->id . '-' . $processing_within . '-o' . $unit_count;
+ $wpcf7_contact_form->unit_tag = $unit_tag;
+
+ $form = $wpcf7_contact_form->form_html();
+
+ $wpcf7_contact_form = null;
+
+ return $form;
+}
+
+if ( WPCF7_LOAD_JS )
+ add_action( 'wp_enqueue_scripts', 'wpcf7_enqueue_scripts' );
+
+function wpcf7_enqueue_scripts() {
+ // jquery.form.js originally bundled with WordPress is out of date and deprecated
+ // so we need to deregister it and re-register the latest one
+ wp_deregister_script( 'jquery-form' );
+ wp_register_script( 'jquery-form',
+ wpcf7_plugin_url( 'includes/js/jquery.form.js' ),
+ array( 'jquery' ), '3.14', true );
+
+ $in_footer = true;
+ if ( 'header' === WPCF7_LOAD_JS )
+ $in_footer = false;
+
+ wp_enqueue_script( 'contact-form-7',
+ wpcf7_plugin_url( 'includes/js/scripts.js' ),
+ array( 'jquery', 'jquery-form' ), WPCF7_VERSION, $in_footer );
+
+ $_wpcf7 = array(
+ 'loaderUrl' => wpcf7_ajax_loader(),
+ 'sending' => __( 'Sending ...', 'wpcf7' ) );
+
+ if ( defined( 'WP_CACHE' ) && WP_CACHE )
+ $_wpcf7['cached'] = 1;
+
+ wp_localize_script( 'contact-form-7', '_wpcf7', $_wpcf7 );
+
+ do_action( 'wpcf7_enqueue_scripts' );
+}
+
+function wpcf7_script_is() {
+ return wp_script_is( 'contact-form-7' );
+}
+
+if ( WPCF7_LOAD_CSS )
+ add_action( 'wp_enqueue_scripts', 'wpcf7_enqueue_styles' );
+
+function wpcf7_enqueue_styles() {
+ wp_enqueue_style( 'contact-form-7',
+ wpcf7_plugin_url( 'includes/css/styles.css' ),
+ array(), WPCF7_VERSION, 'all' );
+
+ if ( wpcf7_is_rtl() ) {
+ wp_enqueue_style( 'contact-form-7-rtl',
+ wpcf7_plugin_url( 'includes/css/styles-rtl.css' ),
+ array(), WPCF7_VERSION, 'all' );
+ }
+
+ do_action( 'wpcf7_enqueue_styles' );
+}
+
+function wpcf7_style_is() {
+ return wp_style_is( 'contact-form-7' );
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/includes/css/styles-rtl.css b/wp-content/plugins/contact-form-7/includes/css/styles-rtl.css
new file mode 100644
index 0000000..b41afbd
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/css/styles-rtl.css
@@ -0,0 +1,12 @@
+span.wpcf7-not-valid-tip {
+ left: auto;
+ right: 20%;
+ direction: rtl;
+}
+span.wpcf7-not-valid-tip-no-ajax {
+ direction: rtl;
+}
+span.wpcf7-list-item {
+ margin-left: 0;
+ margin-right: 0.5em;
+}
diff --git a/wp-content/plugins/contact-form-7/includes/css/styles.css b/wp-content/plugins/contact-form-7/includes/css/styles.css
new file mode 100644
index 0000000..73e5096
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/css/styles.css
@@ -0,0 +1,65 @@
+div.wpcf7 {
+ margin: 0;
+ padding: 0;
+}
+
+div.wpcf7-response-output {
+ margin: 2em 0.5em 1em;
+ padding: 0.2em 1em;
+}
+
+div.wpcf7-mail-sent-ok {
+ border: 2px solid #398f14;
+}
+
+div.wpcf7-mail-sent-ng {
+ border: 2px solid #ff0000;
+}
+
+div.wpcf7-spam-blocked {
+ border: 2px solid #ffa500;
+}
+
+div.wpcf7-validation-errors {
+ border: 2px solid #f7e700;
+}
+
+span.wpcf7-form-control-wrap {
+ position: relative;
+}
+
+span.wpcf7-not-valid-tip {
+ position: absolute;
+ top: 20%;
+ left: 20%;
+ z-index: 100;
+ background: #fff;
+ border: 1px solid #ff0000;
+ font-size: 10pt;
+ width: 280px;
+ padding: 2px;
+}
+
+span.wpcf7-not-valid-tip-no-ajax {
+ color: #f00;
+ font-size: 10pt;
+ display: block;
+}
+
+span.wpcf7-list-item {
+ margin-left: 0.5em;
+}
+
+.wpcf7-display-none {
+ display: none;
+}
+
+div.wpcf7 img.ajax-loader {
+ border: none;
+ vertical-align: middle;
+ margin-left: 4px;
+}
+
+div.wpcf7 .watermark {
+ color: #888;
+}
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/includes/deprecated.php b/wp-content/plugins/contact-form-7/includes/deprecated.php
new file mode 100644
index 0000000..d712428
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/deprecated.php
@@ -0,0 +1,26 @@
+ 'wpcf7' );
+ $args = wp_parse_args( $args, $defaults );
+
+ $url = menu_page_url( $args['page'], false );
+ unset( $args['page'] );
+
+ $url = add_query_arg( $args, $url );
+
+ return esc_url_raw( $url );
+}
+
+function wpcf7_contact_form_default_pack( $locale = null ) {
+ wpcf7_deprecated_function( __FUNCTION__, '3.0', 'wpcf7_get_contact_form_default_pack()' );
+
+ return wpcf7_get_contact_form_default_pack( array( 'locale' => $locale ) );
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/contact-form-7/includes/formatting.php b/wp-content/plugins/contact-form-7/includes/formatting.php
new file mode 100644
index 0000000..3add7d1
--- /dev/null
+++ b/wp-content/plugins/contact-form-7/includes/formatting.php
@@ -0,0 +1,121 @@
+\s*
|', "\n\n", $pee );
+ // Space things out a little
+ /* wpcf7: remove select and input */
+ $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';
+ $pee = preg_replace( '!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee );
+ $pee = preg_replace( '!(' . $allblocks . '>)!', "$1\n\n", $pee );
+ $pee = str_replace( array( "\r\n", "\r" ), "\n", $pee ); // cross-platform newlines
+ if ( strpos( $pee, '