Changeset 909711
- Timestamp:
- 05/07/2014 01:19:00 PM (12 years ago)
- File:
-
- 1 edited
-
copify/trunk/CopifyWordpress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
copify/trunk/CopifyWordpress.php
r909710 r909711 833 833 return; 834 834 } 835 // Version check 836 if (isset($_GET["check"]) && $_GET["check"] == 'version') { 837 echo json_encode($this->version); 838 die(); 839 } 840 // ID 841 if (!isset($_GET["id"])) { 842 throw new Exception('Must include order ID'); 843 } 844 // Email 835 // Token 845 836 if (!isset($_GET["token"])) { 846 837 throw new Exception('Must include auth token'); … … 889 880 $message = sprintf('Order %s auto-published', $id); 890 881 $json = array('success' => true, 'message' => $message); 891 echo json_encode($json);892 die();893 882 } catch (Exception $e) { 894 883 $message = $e->getMessage();
Note: See TracChangeset
for help on using the changeset viewer.