// Pre-2.8 compatibility if (!function_exists('esc_html')) { function esc_html($text) { return wp_specialchars($text); } } // Pre-2.8 compatibility if (!function_exists('esc_attr')) { function esc_attr($text) { return attribute_escape($text); } } if (class_exists("siContactForm")) { $si_contact_form = new siContactForm(); } if (isset($si_contact_form)) { $captcha_url_cf = $si_contact_form->get_captcha_url_cf(); $captcha_path_cf = WP_PLUGIN_DIR . '/si-contact-form/captcha'; // only used for the no-session captcha setting $ctf_captcha_url = $captcha_url_cf . '/temp/'; $ctf_captcha_dir = $captcha_path_cf . '/temp/'; $si_contact_form->si_contact_init_temp_dir($ctf_captcha_dir); // si_contact initialize options add_action('init', array(&$si_contact_form, 'si_contact_init'), 1); $si_contact_gb = get_option("si_contact_form_gb"); if (isset($si_contact_gb['captcha_disable_session']) && $si_contact_gb['captcha_disable_session'] == 'true') { // add javascript (conditionally to footer) // http://scribu.net/wordpress/optimal-script-loading.html add_action('wp_footer', array(&$si_contact_form, 'si_contact_add_script'));
// Pre-2.8 compatibility if (!function_exists('esc_html')) { function esc_html($text) { return wp_specialchars($text); } } // Pre-2.8 compatibility if (!function_exists('esc_attr')) { function esc_attr($text) { return attribute_escape($text); } } if (class_exists("siContactForm")) { $si_contact_form = new siContactForm(); } if (isset($si_contact_form)) { $captcha_url_cf = $si_contact_form->get_captcha_url_cf(); $captcha_path_cf = WP_PLUGIN_DIR . '/si-contact-form/captcha-secureimage'; // si_contact initialize options add_action('init', array(&$si_contact_form, 'si_contact_init'), 1); // start the PHP session add_action('init', array(&$si_contact_form, 'si_contact_start_session'), 2); //add_action('parse_request', array(&$si_contact_form,'si_contact_start_session'),2); //add_action('plugins_loaded', array(&$si_contact_form,'si_contact_start_session'),2); // si contact form admin options add_action('admin_menu', array(&$si_contact_form, 'si_contact_add_tabs'), 1); // adds "Settings" link to the plugin action page add_filter('plugin_action_links', array(&$si_contact_form, 'si_contact_plugin_action_links'), 10, 2); // use shortcode to print the contact form or process contact form logic