Changeset 502115
- Timestamp:
- 02/08/2012 10:28:26 AM (14 years ago)
- Location:
- wordpress-easy-allopass/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-easy-allopass.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-easy-allopass/trunk/readme.txt
r502081 r502115 116 116 == Changelog == 117 117 118 = 2.0.0 = 119 * Replacing file_get_contents() by wp_remote_get() (02/08/2012) 120 * add_action('get_header', 'WEA_redirect', 0) => add_action('init', 'WEA_redirect', 0) to avoid error with other API. 118 121 = 1.0.10 = 119 * Adding https support (0 2/08/2012)120 * Minor bug fixes. (0 2/08/2012)122 * Adding https support (01/18/2012) 123 * Minor bug fixes. (01/18/2012) 121 124 = 1.0.9 = 122 125 * Minor language file corrections (10/21/2011) -
wordpress-easy-allopass/trunk/wp-easy-allopass.php
r502081 r502115 6 6 Author: Hasiniaina Ragaby 7 7 Author URI: http://www.vitar.123.fr 8 Version: 1.0.108 Version: 2.0.0 9 9 Copyright 2011 H. Ragaby (email : hragaby@hotmail.com) 10 10 … … 77 77 { 78 78 if (!isset($_GET["trxid"]) and !isset($_GET["transaction_id"]) ) $_GET["trxid"] = $_GET["transaction_id"] = "D"; 79 add_action(' get_header', 'WEA_redirect', 1);79 add_action('init', 'WEA_redirect', 0); 80 80 } 81 81 … … 147 147 <tr> 148 148 <td valign="middle" bgcolor="#CCCCCC">'. nl2br($txt) .'</td> 149 <td width="160" valign="top"><div align="center">'. file_get_contents(URL_WES . "wp-easy-allopass_btn.php?page=$page&id=$id&id_allopass=$id_allopass&txt=$txt_allopass&lang=$lang").'</div></td>149 <td width="160" valign="top"><div align="center">'. wp_remote_retrieve_body(wp_remote_get(URL_WES . "wp-easy-allopass_btn.php?page=$page&id=$id&id_allopass=$id_allopass&txt=$txt_allopass&lang=$lang")).'</div></td> 150 150 </tr> 151 151 </table> … … 158 158 { 159 159 $return_url__ = $protocol.$_SERVER['HTTP_HOST']; 160 if (isset($_COOKIE["POST_".$page."_".$id]) and file_get_contents(URL_WES . "wea-verif.php?id=$id_allopass&return_url=".urlencode($return_url__)."&code=" . $_GET["ok"]) == 1)160 if (isset($_COOKIE["POST_".$page."_".$id]) and wp_remote_retrieve_body(wp_remote_get(URL_WES . "wea-verif.php?id=$id_allopass&return_url=".urlencode($return_url__)."&code=" . $_GET["ok"])) == 1) 161 161 { 162 162 // Update stats for post … … 178 178 if ( isset($_COOKIE["POST_".$page."_".$id])) 179 179 { 180 if ( file_get_contents(URL_WES . "wea-verif.php?id=$id_allopass&code=" . $_COOKIE["POST_".$page."_".$id]) == 1)180 if (wp_remote_retrieve_body(wp_remote_get(URL_WES . "wea-verif.php?id=$id_allopass&code=" . $_COOKIE["POST_".$page."_".$id])) == 1) 181 181 { 182 182 $r_d = "<div style='color:#999999;background-color:#FFFF99;text-align:center;padding:5px;border:solid 1px #000000'><b><em>".WEA_BG_PAID_CONTENT."</em></b></div><br>";
Note: See TracChangeset
for help on using the changeset viewer.