Changeset 756717
- Timestamp:
- 08/15/2013 02:22:24 PM (13 years ago)
- Location:
- siteapps/trunk/classes
- Files:
-
- 3 edited
-
PluginConfig.php (modified) (1 diff)
-
SiteAppsAPI.php (modified) (2 diffs)
-
SiteAppsCallbacks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
siteapps/trunk/classes/PluginConfig.php
r753877 r756717 41 41 public function saveOptions($options) 42 42 { 43 $options = array_merge(PluginConfig::getDefaultOptions(), $options); 43 44 update_option(SITEAPPS_PLUGIN_NAME, $options); 44 45 } -
siteapps/trunk/classes/SiteAppsAPI.php
r753877 r756717 50 50 { 51 51 $segmentsParam = json_encode(array('site_id' => $siteAppsId, 'user_email' => $email)); 52 52 53 $hash = hash_hmac('sha256', $segmentsParam, $privateKey . $userKey); 53 54 $segments = $this->getResponse('Segment/getSegments', $hash, $segmentsParam, $publicKey); … … 85 86 return $this->getSegments($siteAppsId, $email, $userKey, $privateKey, $publicKey); 86 87 } catch (Exception $e) { 87 //$this->messages->addCustomMessage($e->getMessage() , true);88 //$this->messages->addCustomMessage($e->getMessage() . $publicKey, true); 88 89 return array(); 89 90 } -
siteapps/trunk/classes/SiteAppsCallbacks.php
r753877 r756717 57 57 58 58 if ($this->isValidSiteAppsId($_POST['sa_id'])) { 59 $options = array();59 $options = PluginConfig::getOptions(); 60 60 $options['id'] = (int) $_POST['sa_id']; 61 61 $options['user_key'] = $_POST['sa_user_key'];
Note: See TracChangeset
for help on using the changeset viewer.