<info>' . "\n"; echo "<newval>{$newval}</newval>\n"; echo "<id>{$_REQUEST['id']}</id>\n"; echo "<type>{$_REQUEST['type']}</type>\n"; echo "<component>{$_REQUEST['component']}</component>\n"; echo "<imgurl>{$img_url}</imgurl>\n"; echo "<baseurl>" . PAYPAL_ADMIN_URL . "</baseurl>\n"; echo "</info>\n"; break; case 'orderstatus': USES_paypal_class_orderstatus(); $field = $_GET['type']; switch ($field) { case 'enabled': case 'notify_buyer': $newval = ppOrderStatus::Toggle($_REQUEST['id'], $field, $_REQUEST['oldval']); break; default: exit; } $img_url = PAYPAL_URL . '/images/'; $img_url .= $newval == 1 ? 'on.png' : 'off.png'; header('Content-Type: text/xml'); header("Cache-Control: no-cache, must-revalidate"); //A date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); echo '<?xml version="1.0" encoding="ISO-8859-1"?> <info>' . "\n"; echo "<newval>{$newval}</newval>\n"; echo "<id>{$_REQUEST['id']}</id>\n"; echo "<type>{$_REQUEST['type']}</type>\n";