コード例 #1
0
ファイル: si-contact-form.php プロジェクト: istrwei/china-vpn
define('FSCF_MESSAGE_FIELD', '4');
global $fscf_special_slugs;
// List of reserve slug names
$fscf_special_slugs = array('f_name', 'm_name', 'mi_name', 'l_name', 'email2', 'mailto_id', 'subject_id');
/********************
 * Includes
 ********************/
require_once FSCF_PATH . 'includes/class-fscf-util.php';
require_once FSCF_PATH . 'includes/class-fscf-display.php';
require_once FSCF_PATH . 'includes/class-fscf-process.php';
if (is_admin()) {
    require_once FSCF_PATH . 'includes/class-fscf-action.php';
    require_once FSCF_PATH . 'includes/class-fscf-options.php';
}
// Initialize plugin settings and hooks
FSCF_Util::setup();
register_activation_hook(__FILE__, 'FSCF_Util::import');
if (!class_exists('siContactForm')) {
    class siContactForm
    {
        function si_contact_form_short_code($atts)
        {
            // backwards compatibility with manual PHP call from 3.xx
            echo FSCF_Display::process_short_code($atts);
        }
    }
}
$si_contact_form = new siContactForm();
// Show activation time errors
//echo get_option( 'plugin_error' );
// end of file