Changeset 1725384
- Timestamp:
- 09/06/2017 07:42:48 AM (9 years ago)
- File:
-
- 1 edited
-
offen/trunk/offen.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
offen/trunk/offen.php
r1695111 r1725384 4 4 Plugin Name: Offen 5 5 Description: Zeigt die Firmendaten und Öffnungszeiten auf der eigenen Webseite an. 6 Version: 2. 16 Version: 2.2 7 7 Author: OeffnungszeitenBuch.de 8 8 Author URI: https://www.oeffnungszeitenbuch.de/ … … 17 17 define('BUSINESS_HOURS_PLUGIN_BASE_PATH', plugin_dir_path( __FILE__ )); 18 18 define('BUSINESS_HOURS_PLUGIN_LANG_PATH', dirname( plugin_basename( __FILE__ ) ) . "/lang"); 19 20 # constants for registration api upon install 21 define('BUSINESS_HOURS_API_ID', 's3cr3t-218sDx(sd129)sXnMb'); 22 define('BUSINESS_HOURS_API_URL', 'https://oeffnungszeitenbuch.de/rpc/pluginurl.php'); 19 23 20 24 # Include Helpers … … 68 72 global $bh_options; 69 73 74 // register via the API 75 $registerapi = BUSINESS_HOURS_API_URL . '?s=' . BUSINESS_HOURS_API_ID . '&action=insertLink&url=' . urlencode(get_site_url()); 76 if($apiresponse = file_get_contents($registerapi)){ 77 add_option('bh_api_register',$apiresponse); 78 } else { 79 add_option('bh_api_register','FAIL'); 80 } 81 70 82 // we ADD instead of update options so data is not overwritten on reinstall 71 83 foreach($bh_options as $bh_op_name => $bh_op_value){ … … 77 89 update_option("bh_activated",date('d-m-y H:i')); 78 90 // if we have previously uninstalled, remove that option... 79 delete_option("bh_uninstalled"); 80 91 delete_option("bh_uninstalled"); 81 92 82 93 }
Note: See TracChangeset
for help on using the changeset viewer.