$wpdb->cformssubmissions = $wpdb->prefix . 'cformssubmissions'; $wpdb->cformsdata = $wpdb->prefix . 'cformsdata'; ### New global settings container, will eventually be the only one! $cformsSettings = get_option('cforms_settings'); $cformsSettings = get_option('cforms_settings'); $plugindir = $cformsSettings['global']['plugindir']; $s = $cformsSettings['global']['cforms_IIS']; ### CSS styles $style = $cformsSettings['global']['cforms_css']; $stylefile = $cformsSettings['global']['cforms_root_dir'] . "{$s}styling{$s}" . $style; ### check if pre-9.0 update needs to be made if ($cformsSettings['global']['update']) { require_once dirname(__FILE__) . '/update-pre-9.php'; } ### Check Whether User Can Manage Database check_access_priv(); ### if all data has been erased quit if ($cformsSettings['global']['cforms_formcount'] == '') { ?> <div class="wrap"> <div id="icon-cforms-css" class="icon32"><br/></div><h2><?php _e('Styling your forms', 'cforms'); ?> </h2> <h2><?php _e('All cforms data has been erased!', 'cforms'); ?> </h2> <p><?php _e('Please go to your <strong>Plugins</strong> tab and either disable the plugin, or toggle its status (disable/enable) to revive cforms!', 'cforms');
<?php ### ### Please see cforms.php for more information ### ### DB settings global $wpdb; $wpdb->cformssubmissions = $wpdb->prefix . 'cformssubmissions'; $wpdb->cformsdata = $wpdb->prefix . 'cformsdata'; ### Check Whether User Can Manage Database check_access_priv('track_cforms'); ### New global settings container, will eventually be the only one! $cformsSettings = get_option('cforms_settings'); $plugindir = $cformsSettings['global']['plugindir']; $cforms_root = $cformsSettings['global']['cforms_root']; ### check if pre-9.0 update needs to be made if ($cformsSettings['global']['update']) { require_once dirname(__FILE__) . '/update-pre-9.php'; } ### if all data has been erased quit if (check_erased()) { return; } ### check for abspath.php abspath_check(); ?> <div class="wrap" id="top"> <div id="icon-cforms-tracking" class="icon32"><br/></div><h2><?php _e('Tracking Form Data', 'cforms'); ?> </h2>