Changeset 746 for branches/Ver3.0
- Timestamp:
- May 19, 2011, 5:31:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/class/wpInfo_class.php
r744 r746 165 165 public function get_download_info($locale='') 166 166 { 167 $sql_version = preg_replace('/[^0-9.].*/', '', $this->mysql_version); 167 $local_package = ''; 168 $mysql_version = preg_replace('/[^0-9.].*/', '', $this->mysql_version); 168 169 $php_version = $this->php_version; 170 169 171 if (empty($locale)) $locale = $this->wp_Lang; 170 $url = "http://api.wordpress.org/core/version-check/1.5/?php=" . $php_version . "&locale=" . $locale . "&mysql=" . $sql_version; 171 172 173 /* test 174 $mysql_version='4.0.27'; 175 $php_version = '4.1.1'; 176 */ 177 // wprdpress original option 178 // ?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 179 $option = "?php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; 180 $url = "http://api.wordpress.org/core/version-check/1.5/" .$option; 172 181 $handle = @fopen($url,'r'); 173 182 if ($handle) { … … 199 208 $en_download_url = $ans[1][2]; 200 209 } 210 $ret = $this->text_indent('(Check URL: '.$url.')',3); 201 211 if ($locale == $download_lang){ 202 $ret = $this->text_indent(sprintf(_AM_XP2_WP_INFO_1,$locale),2);212 $ret .= $this->text_indent(sprintf(_AM_XP2_WP_INFO_1,$locale),2); 203 213 $ret .= $this->text_indent('<a href="'.$download_url.'">' . $download_url .'</a>' ,3); 204 214 if (!empty($en_download_url)){ … … 207 217 } 208 218 } else { 209 $ret = $this->text_indent(sprintf(_AM_XP2_WP_INFO_2,$locale));219 $ret .= $this->text_indent(sprintf(_AM_XP2_WP_INFO_2,$locale)); 210 220 $ret .= $this->text_indent(_AM_XP2_WP_INFO_3,2); 211 221 $ret .= $this->text_indent('<a href="http://codex.wordpress.org/WordPress_in_Your_Language" target=" _blank">WordPress_in_Your_Language</a>' ,3);
Note: See TracChangeset
for help on using the changeset viewer.