From b9faaa02fb2cc7c69208ee2b6d1d28bf98b22037 Mon Sep 17 00:00:00 2001 From: Jan-Jorre Laurens Date: Mon, 26 Nov 2012 12:22:53 +0100 Subject: [PATCH] Modified to use the HTTPS server URLS. --- api.php | 6 +++--- include/api/alliance_old.php | 4 ++-- include/api/alliance_simple.php | 4 ++-- include/api/cak.php | 4 ++-- include/api/character_old.php | 8 ++++---- include/api/character_simple.php | 8 ++++---- include/api/corporation_old.php | 4 ++-- include/api/corporation_simple.php | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/api.php b/api.php index 27d8b5b..457747a 100644 --- a/api.php +++ b/api.php @@ -19,7 +19,7 @@ if (isset($_GET['char_list'])) { //keyid-vcode - $url = "http://api.eve-online.com/account/Characters.xml.aspx"; + $url = "https://api.eveonline.com/account/Characters.xml.aspx"; $data = explode('-',$_GET['char_list']); $vars = array( 'keyID' => intval($data[0]), @@ -37,7 +37,7 @@ } //End if. } else if (isset($_GET['corp_name'])) { - $url = "http://api.eve-online.com/corp/CorporationSheet.xml.aspx"; + $url = "https://api.eveonline.com/corp/CorporationSheet.xml.aspx"; $vars = array( 'corporationID' => $_GET['corp_name'] ); @@ -53,4 +53,4 @@ echo $xml; -?> \ No newline at end of file +?> diff --git a/include/api/alliance_old.php b/include/api/alliance_old.php index acda80e..84ed037 100644 --- a/include/api/alliance_old.php +++ b/include/api/alliance_old.php @@ -20,7 +20,7 @@ function update_list() { global $db, $pun_request, $_LAST_ERROR; $_LAST_ERROR = 0; - $url = 'http://api.eve-online.com/eve/AllianceList.xml.aspx'; + $url = 'https://api.eveonline.com/eve/AllianceList.xml.aspx'; if (!$xml = $pun_request->post($url)) { $_LAST_ERROR = API_BAD_REQUEST; @@ -110,4 +110,4 @@ function endElement($parser, $name) { } //End Alliance class. -?> \ No newline at end of file +?> diff --git a/include/api/alliance_simple.php b/include/api/alliance_simple.php index aff1c37..c495955 100644 --- a/include/api/alliance_simple.php +++ b/include/api/alliance_simple.php @@ -15,7 +15,7 @@ function update_list() { global $db, $pun_request, $_LAST_ERROR; $_LAST_ERROR = 0; - $url = 'http://api.eve-online.com/eve/AllianceList.xml.aspx'; + $url = 'https://api.eveonline.com/eve/AllianceList.xml.aspx'; if (!$xml = $pun_request->post($url)) { $_LAST_ERROR = API_BAD_REQUEST; @@ -82,4 +82,4 @@ function update_list() { } //End Alliance class. -?> \ No newline at end of file +?> diff --git a/include/api/cak.php b/include/api/cak.php index 8b91ec8..3919b5d 100644 --- a/include/api/cak.php +++ b/include/api/cak.php @@ -46,7 +46,7 @@ class CAK { var $keys_validated; var $mask_validated; - var $base_url = 'http://api.eve-online.com'; + var $base_url = 'https://api.eveonline.com'; var $mask_url = '/account/APIKeyInfo.xml.aspx?keyID=%d&vCode=%s'; function CAK($_id = 0, $_vcode = 0, $_char_id = 0) { @@ -227,4 +227,4 @@ function validate_mask($req_mask = null) { } //End CAK. -?> \ No newline at end of file +?> diff --git a/include/api/character_old.php b/include/api/character_old.php index 85f8f75..70e9bc6 100644 --- a/include/api/character_old.php +++ b/include/api/character_old.php @@ -51,7 +51,7 @@ function load_character(&$cak) { return false; } //End if. - $url = "http://api.eve-online.com/char/CharacterSheet.xml.aspx"; + $url = "https://api.eveonline.com/char/CharacterSheet.xml.aspx"; $char_sheet; if (!$xml = $pun_request->post($url, $cak->get_auth())) { @@ -107,7 +107,7 @@ function load_skill_queue(&$cak) { return false; } //End if. - $url = "http://api.eve-online.com/char/SkillQueue.xml.aspx"; + $url = "https://api.eveonline.com/char/SkillQueue.xml.aspx"; $queue; if (!$xml = $pun_request->post($url, $cak->get_auth())) { @@ -143,7 +143,7 @@ function get_list(&$cak) { return false; } //End if. - $url = "http://api.eve-online.com/account/Characters.xml.aspx"; + $url = "https://api.eveonline.com/account/Characters.xml.aspx"; $characters; if (!$xml = $pun_request->post($url, $cak->get_auth())) { @@ -241,4 +241,4 @@ function endElement($parser, $name) { } //End endElement. } //End Character Class. -?> \ No newline at end of file +?> diff --git a/include/api/character_simple.php b/include/api/character_simple.php index 19d709c..fcc2613 100644 --- a/include/api/character_simple.php +++ b/include/api/character_simple.php @@ -46,7 +46,7 @@ function load_character(&$cak) { return false; } //End if. - $url = "http://api.eve-online.com/char/CharacterSheet.xml.aspx"; + $url = "https://api.eveonline.com/char/CharacterSheet.xml.aspx"; $char_sheet; if (!$xml = $pun_request->post($url, $cak->get_auth())) { @@ -123,7 +123,7 @@ function load_skill_queue(&$cak) { return false; } //End if. - $url = "http://api.eve-online.com/char/SkillQueue.xml.aspx"; + $url = "https://api.eveonline.com/char/SkillQueue.xml.aspx"; $queue; if (!$xml = $pun_request->post($url, $cak->get_auth())) { @@ -189,7 +189,7 @@ function get_list(&$cak) { return false; } //End if. - $url = "http://api.eve-online.com/account/Characters.xml.aspx"; + $url = "https://api.eveonline.com/account/Characters.xml.aspx"; $characters; if (!$xml = $pun_request->post($url, $cak->get_auth())) { @@ -243,4 +243,4 @@ function get_list(&$cak) { } //End Character Class. -?> \ No newline at end of file +?> diff --git a/include/api/corporation_old.php b/include/api/corporation_old.php index 6acf9c9..3f2e754 100644 --- a/include/api/corporation_old.php +++ b/include/api/corporation_old.php @@ -21,7 +21,7 @@ function load_corp($corpID) { global $db, $pun_request, $_LAST_ERROR; $_LAST_ERROR = 0; - $url = "http://api.eve-online.com/corp/CorporationSheet.xml.aspx"; + $url = "https://api.eveonline.com/corp/CorporationSheet.xml.aspx"; if (!$xml = $pun_request->post($url, array('corporationID' => $corpID))) { $_LAST_ERROR = API_BAD_REQUEST; @@ -70,4 +70,4 @@ function endElement($parser, $name) { } //End endElement. } //End Corporation Sheet. -?> \ No newline at end of file +?> diff --git a/include/api/corporation_simple.php b/include/api/corporation_simple.php index 2fadd5c..d07e34e 100644 --- a/include/api/corporation_simple.php +++ b/include/api/corporation_simple.php @@ -21,7 +21,7 @@ function load_corp($corpID) { global $db, $pun_request, $_LAST_ERROR; $_LAST_ERROR = 0; - $url = "http://api.eve-online.com/corp/CorporationSheet.xml.aspx"; + $url = "https://api.eveonline.com/corp/CorporationSheet.xml.aspx"; $corp_sheet; if (!$xml = $pun_request->post($url, array('corporationID' => $corpID))) { @@ -61,4 +61,4 @@ function load_corp($corpID) { } //End Corporation Sheet. -?> \ No newline at end of file +?>