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 3.9 3.9-beta 3.9.1 3.9.2 3.9.3 4.0 4.0.1 4.0.2 4.0.3 4.1 4.1-beta 4.1.1 4.1.2 4.2 4.2-beta 4.2.1 4.2.2 4.3 4.3.1 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6 4.6.1 4.7 4.8 4.8.1 4.9 4.9.1 4.9.2 5.0 5.0.1
contact-form-7 / settings.php
contact-form-7 Last commit date
admin 15 years ago images 18 years ago includes 15 years ago languages 15 years ago modules 15 years ago jquery.form.js 15 years ago license.txt 16 years ago readme.txt 15 years ago screenshot-1.png 16 years ago scripts.js 15 years ago settings.php 16 years ago styles-rtl.css 16 years ago styles.css 15 years ago uninstall.php 16 years ago wp-contact-form-7.php 15 years ago
settings.php
111 lines
1 <?php
2
3 function wpcf7_plugin_path( $path = '' ) {
4 return path_join( WPCF7_PLUGIN_DIR, trim( $path, '/' ) );
5 }
6
7 function wpcf7_plugin_url( $path = '' ) {
8 return plugins_url( $path, WPCF7_PLUGIN_BASENAME );
9 }
10
11 function wpcf7_admin_url( $query = array() ) {
12 global $plugin_page;
13
14 if ( ! isset( $query['page'] ) )
15 $query['page'] = $plugin_page;
16
17 $path = 'admin.php';
18
19 if ( $query = build_query( $query ) )
20 $path .= '?' . $query;
21
22 $url = admin_url( $path );
23
24 return esc_url_raw( $url );
25 }
26
27 function wpcf7_table_exists( $table = 'contactforms' ) {
28 global $wpdb, $wpcf7;
29
30 if ( 'contactforms' != $table )
31 return false;
32
33 if ( ! $table = $wpcf7->{$table} )
34 return false;
35
36 return strtolower( $wpdb->get_var( "SHOW TABLES LIKE '$table'" ) ) == strtolower( $table );
37 }
38
39 function wpcf7() {
40 global $wpdb, $wpcf7;
41
42 if ( is_object( $wpcf7 ) )
43 return;
44
45 $wpcf7 = (object) array(
46 'contactforms' => $wpdb->prefix . "contact_form_7",
47 'processing_within' => '',
48 'widget_count' => 0,
49 'unit_count' => 0,
50 'global_unit_count' => 0 );
51 }
52
53 wpcf7();
54
55 require_once WPCF7_PLUGIN_DIR . '/includes/functions.php';
56 require_once WPCF7_PLUGIN_DIR . '/includes/formatting.php';
57 require_once WPCF7_PLUGIN_DIR . '/includes/pipe.php';
58 require_once WPCF7_PLUGIN_DIR . '/includes/shortcodes.php';
59 require_once WPCF7_PLUGIN_DIR . '/includes/classes.php';
60 require_once WPCF7_PLUGIN_DIR . '/includes/taggenerator.php';
61
62 if ( is_admin() )
63 require_once WPCF7_PLUGIN_DIR . '/admin/admin.php';
64 else
65 require_once WPCF7_PLUGIN_DIR . '/includes/controller.php';
66
67 function wpcf7_contact_forms() {
68 global $wpdb, $wpcf7;
69
70 return $wpdb->get_results( "SELECT cf7_unit_id as id, title FROM $wpcf7->contactforms" );
71 }
72
73 add_action( 'plugins_loaded', 'wpcf7_set_request_uri', 9 );
74
75 function wpcf7_set_request_uri() {
76 global $wpcf7_request_uri;
77
78 $wpcf7_request_uri = add_query_arg( array() );
79 }
80
81 function wpcf7_get_request_uri() {
82 global $wpcf7_request_uri;
83
84 return (string) $wpcf7_request_uri;
85 }
86
87 /* Loading modules */
88
89 add_action( 'plugins_loaded', 'wpcf7_load_modules', 1 );
90
91 function wpcf7_load_modules() {
92 $dir = WPCF7_PLUGIN_MODULES_DIR;
93
94 if ( ! ( is_dir( $dir ) && $dh = opendir( $dir ) ) )
95 return false;
96
97 while ( ( $module = readdir( $dh ) ) !== false ) {
98 if ( substr( $module, -4 ) == '.php' )
99 include_once $dir . '/' . $module;
100 }
101 }
102
103 /* L10N */
104
105 add_action( 'init', 'wpcf7_load_plugin_textdomain' );
106
107 function wpcf7_load_plugin_textdomain() {
108 load_plugin_textdomain( 'wpcf7', false, 'contact-form-7/languages' );
109 }
110
111 ?>