Changeset 1592650
- Timestamp:
- 02/09/2017 05:10:06 PM (9 years ago)
- File:
-
- 1 edited
-
bouncehelp/trunk/includes/admin.functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bouncehelp/trunk/includes/admin.functions.php
r1592630 r1592650 116 116 if(!empty($sitesResult['websites'])){ 117 117 $site = ''; $hash = ''; 118 118 119 foreach($sitesResult['websites'] as $k=>$site){ 119 120 if(strpos($site['name'], str_replace('www.', '', $_SERVER['HTTP_HOST']))){ 121 update_option( 'bouncehelp_api_sid', $site["hash"] ); 120 122 $site = $site['name']; 121 $hash = $site['hash'];122 123 } 123 124 else continue; 124 125 } 125 126 126 if(!empty($site) && !empty($hash)) {127 if(!empty($site)) { 127 128 128 update_option( 'bouncehelp_api_sid', $hash );129 129 $result = json_encode(array("status"=>"success","message"=>"You have successfully signed. The website is successfully connected.")); 130 130
Note: See TracChangeset
for help on using the changeset viewer.