*
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
### Check Whether User Can Manage Database
cforms2_check_access_priv();
?>
<div class="wrap">
	<div id="icon-cforms-corrupted" class="icon32"><br/></div><h2><?php 
_e('cforms error', 'cforms2');
?>
</h2>

<?php 
if ($_POST['fixsettings']) {
    ?>

<div class="error"><p><?php 
    _e('Please deactivate and then re-activate the cforms plugin now.', 'cforms2');
    ?>
</p></div>
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
### DB settings
global $wpdb;
$wpdb->cformssubmissions = $wpdb->prefix . 'cformssubmissions';
$wpdb->cformsdata = $wpdb->prefix . 'cformsdata';
### Check Whether User Can Manage Database
cforms2_check_access_priv('track_cforms');
### New global settings container, will eventually be the only one!
$cformsSettings = get_option('cforms_settings');
### if all data has been erased quit
if (cforms2_check_erased()) {
    return;
}
?>
<div class="wrap" id="top">
	<div id="icon-cforms-tracking" class="icon32"><br/></div><h2><?php 
_e('Tracking Form Data', 'cforms');
?>
</h2>

	<p><?php 
_e('All your recorded form submissions are listed below. View individual entries or a whole bunch and download as XML, TAB or CSV formatted file. Attachments can be accessed in the details section (<strong>View records</strong>). When deleting entries, associated attachments will be removed, too! ', 'cforms');