exit; } // Exit if accessed directly $pluginURL = plugins_url(); require_once WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/base/SkinnyBaseActions.php'; require_once WP_CONST_ULTIMATE_CSV_IMP_DIRECTORY . 'lib/skinnymvc/core/SkinnyActions.php'; require_once 'actions.php'; $dashObj = new DashboardActions(); $maincontent = array(); $totalfilescount = ''; $content = $_REQUEST['postdata']; foreach ($content as $key => $value) { $maincontent = $value; } if ($maincontent['action'] == 'download') { echo $dashObj->downloadCSVFile($maincontent['file']); } elseif ($maincontent['action'] == 'downloadall') { echo $dashObj->downloadAllCSVFiles($maincontent['file']); } elseif ($maincontent['action'] == 'deletefiles') { $csvfile = $maincontent['csvname']; $managerID = $maincontent['managerid']; $importedas = $maincontent['importedas']; echo $dashObj->deleteCSVFiles($csvfile, $managerID, $importedas); } elseif ($maincontent['action'] == 'deletefilesandrecords' || $maincontent['action'] == 'deleteall') { $csvfile = $maincontent['csvname']; $managerID = $maincontent['managerid']; $importedas = $maincontent['importedas']; if (isset($maincontent['totalcount'])) { $totalfilescount = $maincontent['totalcount']; } if ($maincontent['action'] == 'deletefilesandrecords') {