/home/altere25/usaigc.com/wp-content/plugins/wpdatatables/controllers
NameSizeModeActions
wdt_admin.php338100644editdlrm
wdt_admin_ajax_actions.php214430644editdlrm
wdt_functions.php447950644editdlrm
Edit: /home/altere25/usaigc.com/wp-content/plugins/wpdatatables/controllers/wdt_admin.php (33810B)
' . __('Go Premium', 'wpdatatables') . '', // 'manage_options', // 'https://wpdatatables.com/pricing/?utm_source=lite&utm_medium=plugin&utm_campaign=wpdtlite' // ); add_submenu_page( 'wpdatatables-dashboard', __('Go Premium', 'wpdatatables'), '' . __('Go Premium', 'wpdatatables') . '', 'manage_options', 'wpdatatables-lite-vs-premium' ); } add_action('admin_menu', 'wdtAdminMenu'); function wpdatatables_lite_go_premium_link_add_jquery() { ?> prepare_items(); ob_start(); $wdtBrowseTable->display(); /** @noinspection PhpUnusedLocalVariableInspection */ $tableHTML = ob_get_contents(); ob_end_clean(); ob_start(); include WDT_ROOT_PATH . 'templates/admin/browse/table/browse.inc.php'; $browseTablesPage = ob_get_contents(); ob_end_clean(); $browseTablesPage = apply_filters('wpdatatables_filter_browse_page', $browseTablesPage); echo $browseTablesPage; do_action('wpdatatables_browse_page'); } /** * Render Edit (Add from data source) Page */ function wdtEdit() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } if (isset($_GET['table_id'])) { if (isset($_GET['simple'])) { $tableID = (int)$_GET['table_id']; $tableData = WDTConfigController::loadSimpleTableConfig($tableID); } else if (isset($_GET['table_view'])) { $tableData = WDTConfigController::loadTableConfig((int)$_GET['table_id'], $_GET['table_view']); } else { $tableData = WDTConfigController::loadTableConfig((int)$_GET['table_id']); } if (isset($tableData->error)) { echo WDTTools::wdtShowError($tableData->error); return; } WDTTools::exportJSVar('wpdatatable_init_config', $tableData->table); } if ( isset($_GET['table_id']) && isset($_GET['simple'])) { ob_start(); include WDT_ROOT_PATH . 'templates/admin/table-settings/edit_simple_table.inc.php'; $editPage = ob_get_contents(); ob_end_clean(); $editPage = apply_filters('wpdatatables_filter_edit_page_simple_table', $editPage); echo $editPage; } else { ob_start(); include WDT_ROOT_PATH . 'templates/admin/table-settings/edit_table.inc.php'; $editPage = ob_get_contents(); ob_end_clean(); $editPage = apply_filters('wpdatatables_filter_edit_page', $editPage); echo $editPage; } } /** * Render Constructor (Create a Table) Page */ function wdtConstructor() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } if (isset($_GET['source'])) { wdtEdit(); } else { ob_start(); include WDT_ROOT_PATH . 'templates/admin/constructor/constructor.inc.php'; $constructorPage = ob_get_contents(); ob_end_clean(); $constructorPage = apply_filters('wpdatatables_filter_constructor_page', $constructorPage); echo $constructorPage; } } /** * Render Browse Charts (wpDataTables Charts) Page */ function wdtBrowseCharts() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } $action = ''; if (isset($_REQUEST['action']) && -1 != $_REQUEST['action']) { $action = $_REQUEST['action']; } if (isset($_REQUEST['action2']) && -1 != $_REQUEST['action2']) { $action = $_REQUEST['action2']; } if ($action === 'delete') { $chartId = $_REQUEST['chart_id']; if (!is_array($chartId)) { WPDataChart::delete((int)$chartId); } else { foreach ($chartId as $singleChartId) { WPDataChart::delete((int)$singleChartId); } } } $wdtBrowseChartsTable = new WDTBrowseChartsTable(); $wdtBrowseChartsTable->prepare_items(); ob_start(); $wdtBrowseChartsTable->display(); /** @noinspection PhpUnusedLocalVariableInspection */ $tableHTML = ob_get_contents(); ob_end_clean(); ob_start(); include WDT_ROOT_PATH . 'templates/admin/browse/chart/browse.inc.php'; $browseChartsPage = ob_get_contents(); ob_end_clean(); $browseChartsPage = apply_filters('wpdatatables_filter_charts_table_page', $browseChartsPage); echo $browseChartsPage; } /** * Render Chart Wizard (Create a Chart) Page */ function wdtChartWizard() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } $chartId = isset($_GET['chart_id']) ? (int)$_GET['chart_id'] : false; $chartEngine = isset($_GET['engine']) ? sanitize_text_field($_GET['engine']) : ''; if (!empty($chartId)) { try { $chartData = [ 'id' => $chartId, 'engine' => $chartEngine ]; $chartObj = WPDataChart::build($chartData, true); $chartObj->prepareData(); $chartObj->shiftXAxisColumnUp(); $chartObj->prepareRender(); } catch (Exception $e) { echo $e->getMessage(); exit; } } ob_start(); include WDT_ROOT_PATH . 'templates/admin/chart_wizard/chart_wizard.inc.php'; $chartWizardPage = ob_get_contents(); ob_end_clean(); $chartWizardPage = apply_filters('wpdatatables_filter_chart_wizard_page', $chartWizardPage); echo $chartWizardPage; } /** * Render Dashboard page */ function wdtMainDashboard() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/dashboard/dashboard.inc.php'; $dashboardPage = ob_get_contents(); ob_end_clean(); $dashboardPage = apply_filters('wpdatatables_filter_dashboard_page', $dashboardPage); echo $dashboardPage; do_action('wpdatatables_dashboard_page'); } /** * Render Settings page */ function wdtSettings() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/settings/settings.inc.php'; $settingsPage = ob_get_contents(); ob_end_clean(); $settingsPage = apply_filters('wpdatatables_filter_settings_page', $settingsPage); echo $settingsPage; do_action('wpdatatables_settings_page'); } /** * Render Support Center page */ function wdtSupport() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/support/support.inc.php'; $settingsPage = ob_get_contents(); ob_end_clean(); $settingsPage = apply_filters('wpdatatables_filter_support_page', $settingsPage); echo $settingsPage; do_action('wpdatatables_support_page'); } /** * Render Welcome page */ function wdtWelcomePage() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/welcome_page/welcome_page.inc.php'; $welcomePage = ob_get_contents(); ob_end_clean(); $settingsPage = apply_filters('wpdatatables_filter_welcome_page', $welcomePage); echo $welcomePage; do_action('wpdatatables_welcome_page'); } /** * Render System Info page */ function wdtSystemInfo() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/system-info/system_info.inc.php'; $settingsPage = ob_get_contents(); ob_end_clean(); $settingsPage = apply_filters('wpdatatables_filter_system_info_page', $settingsPage); echo $settingsPage; do_action('wpdatatables_system_info_page'); } /** * Render Getting Started page */ function wdtGettingStarted() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/getting-started/getting_started.inc.php'; $settingsPage = ob_get_contents(); ob_end_clean(); $settingsPage = apply_filters('wpdatatables_filter_getting_started_page', $settingsPage); echo $settingsPage; do_action('wpdatatables_getting_started_page'); } /** * Render Lite VS Premium page */ function wdtLiteVSPremium() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/lite-vs-premium/lite_vs_premium.inc.php'; $settingsPage = ob_get_contents(); ob_end_clean(); $settingsPage = apply_filters('wpdatatables_filter_lite_vs_premium_page', $settingsPage); echo $settingsPage; do_action('wpdatatables_lite_vs_premium_page'); } /** * Render Addons page */ function wdtAddOns() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } ob_start(); include WDT_ROOT_PATH . 'templates/admin/addons/addons.inc.php'; $addonsPage = ob_get_contents(); ob_end_clean(); $addonsPage = apply_filters('wpdatatables_filter_addons_page', $addonsPage); echo $addonsPage; }