function ws_test() { $post = stripslashes_deep($_POST); if (isset($post['type'])) { $type = $post['type']; switch ($type) { case 'add_subscribers': EZP_CS_Test_Utility::add_test_subscribers($post); break; default: EZP_CS_Utility::debug('ws_test: Unknown test type'); } } }