function pte_ajax() { // Move all adjuntant functions to a separate file and include that here require_once PTE_PLUGINPATH . 'php/functions.php'; PteLogger::debug("PARAMETERS: " . print_r($_REQUEST, true)); switch ($_GET['pte-action']) { case "iframe": pte_init_iframe(); break; case "resize-images": pte_resize_images(); break; case "confirm-images": pte_confirm_images(); break; case "delete-images": pte_delete_images(); break; case "get-thumbnail-info": $id = (int) $_GET['id']; if (pte_check_id($id)) { print json_encode(pte_get_all_alternate_size_information($id)); } break; case "change-options": pte_update_user_options(); break; } die; }
function pte_ajax() { // Move all adjuntant functions to a separate file and include that here require_once PTE_PLUGINPATH . 'php/functions.php'; $logger = PteLogger::singleton(); $logger->debug("PARAMETERS: " . print_r($_REQUEST, true)); switch ($_GET['pte-action']) { case "test": pte_test(); break; case "launch": pte_launch(); break; case "resize-images": pte_resize_images(); break; case "confirm-images": pte_confirm_images(); break; case "delete-images": pte_delete_images(); break; } die; }